/* ===================================================================
   ATELIER FABRE — дизайн-система
   Основа: оформление сайта НУР Техника (шапка-капсула, светлые
   карточки, Golos Text, оранжевый + графитовый акценты).
   Фирменный знак — орнамент ❖ (assets/ornament.svg) вместо солнца НУР.
   Все цвета — в :root ниже: чтобы сменить акцент, меняйте --orange.
   =================================================================== */

@view-transition { navigation: auto; }
.vt-freeze, .vt-freeze * { transition: none !important; }
::view-transition-group(root),
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

:root {
  --orange: #FEC059;
  --rc-navy: #4d5152;
  --rc-bg: #eef0ec;
  --rc-ink-soft: #586158;
  --ink: #1c2128;
  --line: #d7dbe0;
  --paper-deep: #f2f2f2;
  --green: #3e7a5d;
  --font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-y: scroll; overflow-x: hidden; scrollbar-gutter: stable; height: 100%; scroll-padding-top: 104px; }
body {
  margin: 0;
  font-family: var(--font);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: 100%; color: inherit; -webkit-appearance: none; appearance: none; margin: 0; background: none; border: none; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===== Бровь с орнаментом ===== */
.rc-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rc-navy); line-height: 1.3; }
.rc-eyebrow::before { content: ""; width: 18px; height: 18px; background: url('assets/ornament.svg') center/contain no-repeat; flex-shrink: 0; }

/* ===== Кнопки ===== */
.rc-pill { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; line-height: 1.2; min-height: 47px; padding: 13px 26px; border-radius: 12px; white-space: nowrap; border: 1.5px solid transparent; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.rc-pill--solid { background: var(--rc-navy); color: #fff; }
.rc-pill--solid:hover { background: var(--orange); color: var(--rc-navy); }
.rc-pill--ghost { border-color: var(--orange); color: var(--rc-navy); background: transparent; }
.rc-pill--ghost:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ===== Шапка-капсула ===== */
.rc-header-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 200; padding: 0 24px; }
.rc-header { max-width: 1320px; margin: 0 auto; background: #fff; border-radius: 999px; box-shadow: 0 4px 24px rgba(20,30,25,0.08); }
.rc-header__row { display: flex; align-items: center; gap: 22px; padding: 10px 10px 10px 22px; }
.rc-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; color: var(--rc-navy); flex-shrink: 0; white-space: nowrap; letter-spacing: 0.01em; }
.rc-logo__mark { width: 20px; height: 20px; background: url('assets/ornament.svg') center/contain no-repeat; flex-shrink: 0; }
.rc-nav { display: flex; align-items: center; gap: 2px; }
.rc-nav > a, .rc-drop__btn { font-size: 14.5px; font-weight: 600; color: #3a4048; padding: 10px 14px; border-radius: 10px; white-space: nowrap; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; display: inline-flex; align-items: center; gap: 4px; line-height: 1.6; }
.rc-nav > a:hover, .rc-drop__btn:hover, .rc-drop:focus-within .rc-drop__btn { background: var(--rc-bg); color: var(--orange); }
.rc-nav > a.is-active, .rc-drop.is-active .rc-drop__btn { font-weight: 700; color: var(--rc-navy); background: var(--rc-bg); }
.rc-nav > a.rc-nav__accent { border: 1.5px solid var(--orange); color: var(--rc-navy); font-weight: 700; padding: 8.5px 14.5px; margin-left: 6px; }
.rc-nav > a.rc-nav__accent:hover { background: var(--orange); color: var(--rc-navy); }
.rc-drop__btn svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.rc-drop { position: relative; }
.rc-drop__panel { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: #fff; border-radius: 18px; box-shadow: 0 12px 32px rgba(20,30,25,0.16); padding: 8px; display: flex; flex-direction: column; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease; z-index: 70; }
.rc-drop__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.rc-drop:hover .rc-drop__panel, .rc-drop:focus-within .rc-drop__panel, .rc-drop.is-open .rc-drop__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.rc-drop:hover .rc-drop__btn svg, .rc-drop.is-open .rc-drop__btn svg { transform: rotate(180deg); }
.rc-drop__panel a { padding: 10px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: #3a4048; transition: background-color 0.15s ease, color 0.15s ease; }
.rc-drop__panel a:hover { background: var(--rc-bg); color: var(--orange); }
.rc-drop__panel a.is-active { background: var(--rc-bg); color: var(--rc-navy); font-weight: 700; }
.rc-header__right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.rc-header__phone { font-size: 14.5px; font-weight: 700; color: var(--rc-navy); padding: 10px 14px; border-radius: 10px; white-space: nowrap; transition: color 0.15s ease; }
.rc-header__phone:hover { color: var(--orange); }

.rc-burger { display: none; position: relative; }
.rc-burger summary { list-style: none; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; background: var(--rc-bg); display: flex; align-items: center; justify-content: center; font-size: 0; }
.rc-burger summary::-webkit-details-marker { display: none; }
.rc-burger summary::before { content: ""; display: block; width: 18px; height: 14px; background-image: linear-gradient(var(--rc-navy),var(--rc-navy)), linear-gradient(var(--rc-navy),var(--rc-navy)), linear-gradient(var(--rc-navy),var(--rc-navy)); background-size: 18px 2px; background-position: left top, left center, left bottom; background-repeat: no-repeat; }
.rc-burger__panel { display: none; position: absolute; top: calc(100% + 10px); right: 0; background: #fff; border-radius: 18px; box-shadow: 0 12px 32px rgba(20,30,25,0.18); padding: 8px; width: min(300px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow-y: auto; flex-direction: column; gap: 2px; z-index: 60; }
.rc-burger[open] .rc-burger__panel { display: flex; }
.rc-burger__panel a { padding: 10px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; color: #3a4048; transition: background-color 0.15s ease, color 0.15s ease; }
.rc-burger__panel a:hover { background: var(--rc-bg); color: var(--orange); }
.rc-burger__panel a.is-active { font-weight: 700; color: var(--rc-navy); background: var(--rc-bg); }
.rc-burger__panel a.rc-nav__accent { border: 1.5px solid var(--orange); color: var(--rc-navy); font-weight: 700; margin-top: 6px; text-align: center; }
.rc-burger__panel a.rc-nav__accent:hover { background: var(--orange); }
.rc-burger__group { font-size: 12.5px; color: #9aa19a; padding: 10px 14px 2px; }

@media (max-width: 1500px) { .rc-header__phone { display: none; } }
@media (max-width: 1180px) { .rc-nav { display: none; } .rc-burger { display: block; } .rc-header__phone { display: inline-flex; } }
@media (max-width: 640px) { .rc-header-wrap { padding: 0 12px; top: 10px; } .rc-header__row { padding: 8px 6px 8px 16px; gap: 8px; } .rc-logo { font-size: 16px; } }
@media (max-width: 480px) { .rc-header__phone { display: none; } }
@media (max-width: 360px) { .rc-logo { font-size: 14px; gap: 5px; } .rc-logo__mark { width: 16px; height: 16px; } }

/* ===== Общие секции ===== */
.rc-section { padding: 0 24px 64px; }
.rc-section__inner { max-width: 1320px; margin: 0 auto; }
.rc-section h2 { font-size: clamp(24px,3vw,34px); font-weight: 700; max-width: 760px; margin: 14px 0 28px; color: var(--rc-navy); line-height: 1.2; }
.rc-section__lead { font-size: 17px; color: var(--rc-ink-soft); max-width: 760px; margin: -12px 0 28px; }
.rc-grid-fix > *, .rc-offer__cards > *, .rc-cards2__grid > *, .rc-assort__grid > * { min-width: 0; }

/* ===== Главный баннер (главная) ===== */
.rc-hero-section { padding: 24px 24px 0; margin-top: 88px; }
.rc-hero { max-width: 1320px; margin: 0 auto; position: relative; border-radius: 32px; overflow: hidden; background: linear-gradient(to right, var(--rc-bg) 0%, var(--rc-bg) 34%, rgba(238,240,236,0.6) 48%, rgba(238,240,236,0) 64%), url('assets/img/home-hero.jpg') 72% center/cover no-repeat, var(--rc-bg); min-height: 480px; display: flex; align-items: stretch; }
.rc-hero__text { padding: 52px 48px 48px 52px; display: flex; flex-direction: column; justify-content: center; gap: 14px; max-width: 620px; }
.rc-hero__text h1 { font-size: clamp(28px,3.6vw,44px); font-weight: 600; line-height: 1.1; color: var(--rc-navy); }
.rc-hero__text p { font-size: 17px; color: var(--rc-ink-soft); max-width: 440px; margin: 0; }
.rc-hero__cta-row { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.rc-hero__mobile-photo { display: none; }
@media (max-width: 760px) {
  .rc-hero { background: var(--rc-bg); flex-direction: column; min-height: 0; }
  .rc-hero__mobile-photo { display: block; order: -1; height: 230px; margin: 14px 14px 0; border-radius: 24px; background: url('assets/img/home-hero-mobile.jpg') center/cover no-repeat; }
  .rc-hero__text { max-width: 100%; padding: 24px 24px 32px; }
}

/* ===== Баннер внутренних страниц: фото в своей рамке справа ===== */
.pg-hero { padding: 24px 24px 64px; margin-top: 88px; }
.pg-hero__frame { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; background: var(--rc-bg); border-radius: 32px; overflow: hidden; min-height: 440px; }
.pg-hero__text { padding: 52px 48px 48px 52px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.pg-hero__text h1 { font-size: 36px; font-weight: 600; line-height: 1.15; color: var(--rc-navy); }
.pg-hero__text p { font-size: 17px; color: var(--rc-ink-soft); margin: 0; max-width: 520px; }
.pg-hero__photo { position: relative; min-height: 320px; }
.pg-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg-hero__frame--text { grid-template-columns: 1fr; min-height: 0; }
.pg-hero__frame--text .pg-hero__text { max-width: 820px; }
@media (max-width: 860px) {
  .pg-hero__frame { grid-template-columns: 1fr; min-height: 0; }
  .pg-hero__photo { order: -1; min-height: 240px; margin: 14px 14px 0; border-radius: 24px; overflow: hidden; }
  .pg-hero__text { padding: 24px 24px 32px; }
  .pg-hero__text h1 { font-size: 28px; }
}

/* ===== Пара карточек: светлая + тёмная ===== */
.rc-cards2 { padding: 64px 24px; }
.rc-cards2--tight { padding-top: 0; }
.rc-cards2__grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rc-card { display: block; border-radius: 28px; padding: 40px; border: 2px solid transparent; transition: border-color 0.15s ease; }
a.rc-card:hover { border-color: var(--orange); }
a.rc-card:hover .rc-card__more { color: var(--orange); }
.rc-card--light { background: var(--rc-bg); color: var(--rc-navy); }
.rc-card--dark { background: var(--rc-navy); color: #fff; }
.rc-card--dark .rc-eyebrow { color: #f0c896; }
.rc-card h3 { font-size: 18px; font-weight: 700; margin: 16px 0 0; line-height: 1.35; }
.rc-card p { font-size: 17px; margin: 16px 0 0; }
.rc-card--light p { color: #41493f; }
.rc-card--dark p { color: rgba(255,255,255,0.8); }
.rc-card ul { margin: 14px 0 0; padding-left: 20px; font-size: 17px; }
.rc-card--light ul { color: #41493f; }
.rc-card--dark ul { color: rgba(255,255,255,0.85); }
.rc-card li + li { margin-top: 6px; }
.rc-card .rc-card__more { display: inline-block; margin-top: 20px; font-weight: 700; font-size: 14.5px; color: var(--rc-navy); transition: color 0.15s ease; }
.rc-card--dark .rc-card__more { color: var(--orange); }
.rc-card--wide { grid-column: 1 / -1; }
.rc-card__cols { columns: 2; column-gap: 40px; }
.rc-card__cols li { break-inside: avoid; }
@media (max-width: 760px) { .rc-cards2__grid { grid-template-columns: 1fr; } .rc-card { padding: 28px; } .rc-card__cols { columns: 1; } }

/* ===== Сетка карточек с номерами ===== */
.rc-offer__cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.rc-offer__cards--3 { grid-template-columns: repeat(3,1fr); }
.rc-offer__card { display: block; background: var(--rc-bg); border-radius: 20px; padding: 26px; color: var(--rc-navy); border: 2px solid transparent; transition: border-color 0.15s ease; }
a.rc-offer__card:hover { border-color: var(--orange); }
a.rc-offer__card h3 { transition: color 0.15s ease; }
a.rc-offer__card:hover h3 { color: var(--orange); }
.rc-offer__num { font-size: 22px; font-weight: 800; color: var(--orange); margin-bottom: 10px; line-height: 1.2; }
.rc-offer__num--big { font-size: 40px; color: var(--rc-navy); margin-bottom: 4px; }
.rc-offer__card h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; color: var(--rc-navy); line-height: 1.35; }
.rc-offer__card p { font-size: 14.5px; color: var(--rc-ink-soft); margin: 0; }
.rc-offer__card .rc-card__more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--rc-navy); transition: color 0.15s ease; }
a.rc-offer__card:hover .rc-card__more { color: var(--orange); }
@media (max-width: 1000px) { .rc-offer__cards, .rc-offer__cards--3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .rc-offer__cards, .rc-offer__cards--3 { grid-template-columns: 1fr; } }

/* ===== Каталог: карточки-перевёртыши (как «Ассортимент» НУР) ===== */
.rc-assort__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.rc-assort__item { display: flex; flex-direction: column; height: 100%; }
.rc-assort__flip { perspective: 1200px; }
.rc-assort__3d { position: relative; width: 100%; transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.rc-assort__face { overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.rc-assort__face--front { position: relative; display: flex; flex-direction: column; }
.rc-assort__photo-wrap { aspect-ratio: 1/1; background: var(--rc-bg); overflow: hidden; }
.rc-assort__photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.rc-assort__label { padding: 14px 18px; background: var(--rc-bg); font-size: clamp(15px,1.3vw,19px); line-height: 1.2; letter-spacing: 0.03em; text-transform: uppercase; color: #1a1714; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-assort__face--back { position: absolute; inset: 0; transform: rotateY(180deg); background: var(--rc-navy); color: #fff; padding: 24px; display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.rc-assort__face--back b { display: block; font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.rc-assort__face--back ul { margin: 0; padding-left: 18px; }
.rc-assort__face--back li { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.92); padding: 1px 4px 1px 2px; margin-left: -2px; border-radius: 6px; transition: color 0.15s ease, transform 0.15s ease, background-color 0.15s ease; }
.rc-assort__face--back li:hover { color: var(--orange); transform: translateX(5px); background: rgba(255,255,255,0.08); }
.rc-assort__face--back p { margin: 0; font-size: 15px; color: rgba(255,255,255,.92); }
.rc-assort__cta { margin-top: auto; padding-top: 12px; font-weight: 800; font-size: 15px; color: var(--orange); }
@media (hover: hover) {
  .rc-assort__item:hover .rc-assort__3d, .rc-assort__item:focus-visible .rc-assort__3d { transform: rotateY(180deg); }
}
@media (hover: none) {
  .rc-assort__3d { transform: none !important; }
  .rc-assort__face--back { position: static; transform: none; overflow: visible; margin-top: 12px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { .rc-assort__3d { transition: none; } }
@media (max-width: 1180px) { .rc-assort__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .rc-assort__grid { grid-template-columns: 1fr; } }

/* ===== Галерея работ ===== */
.rc-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.rc-gallery__item { display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 4/3; background: var(--rc-bg); cursor: zoom-in; border: 2px solid transparent; padding: 0; transition: border-color 0.15s ease; }
.rc-gallery__item:hover { border-color: var(--orange); }
.rc-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.rc-gallery__note { font-size: 14px; color: #9aa19a; margin: 14px 0 0; }

/* ===== Пошаговый процесс ===== */
.rc-steps { display: flex; flex-direction: column; gap: 14px; }
.rc-step { display: grid; grid-template-columns: 160px 1fr; gap: 28px; background: var(--rc-bg); border-radius: 24px; padding: 30px 34px; }
.rc-step__num { font-size: 22px; font-weight: 800; color: var(--orange); line-height: 1.2; }
.rc-step__num span { display: block; font-size: 14px; font-weight: 600; color: var(--rc-ink-soft); margin-top: 6px; letter-spacing: 0.02em; }
.rc-step h3 { font-size: 18px; font-weight: 700; color: var(--rc-navy); margin: 0 0 8px; }
.rc-step p { font-size: 16.5px; color: #41493f; margin: 0; }
.rc-step p + p { margin-top: 10px; }
.rc-step__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rc-step__tags span { font-size: 13.5px; font-weight: 600; color: var(--rc-navy); background: #fff; border-radius: 10px; padding: 6px 12px; }
@media (max-width: 760px) { .rc-step { grid-template-columns: 1fr; gap: 10px; padding: 24px; } }

/* ===== Отзывы ===== */
.rc-reviews { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.rc-review { background: var(--rc-bg); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.rc-review p { margin: 0; font-size: 16px; color: #41493f; }
.rc-review__who { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--rc-navy); }
.rc-review::before { content: ""; width: 22px; height: 22px; background: url('assets/ornament.svg') center/contain no-repeat; }
@media (max-width: 1000px) { .rc-reviews { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .rc-reviews { grid-template-columns: 1fr; } }

/* ===== Контакты и форма замера ===== */
.rc-contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; max-width: 1320px; margin: 0 auto; }
.rc-contact__list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 14px; }
.rc-contact__list li { font-size: 17px; color: #41493f; }
.rc-contact__list b { display: block; font-size: 13.5px; font-weight: 400; color: #9aa19a; }
.rc-contact__list a { color: var(--rc-navy); font-weight: 700; transition: color 0.15s ease; }
.rc-contact__list a:hover { color: var(--orange); }
.rc-msg-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.rc-msg-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--rc-navy); background: #fff; border: 1.5px solid #c9cec5; border-radius: 12px; padding: 10px 16px; transition: border-color 0.15s ease, color 0.15s ease; }
.rc-msg-btn:hover { border-color: var(--orange); color: var(--orange); }
.rc-msg-btn svg, .rc-msg-btn img { width: 20px; height: 20px; flex-shrink: 0; }
.rc-form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.rc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rc-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: rgba(255,255,255,0.75); }
.rc-form input, .rc-form select, .rc-form textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid transparent; border-radius: 12px; padding: 12px 14px; transition: border-color 0.15s ease; }
.rc-form textarea { min-height: 96px; resize: vertical; }
.rc-form input:focus, .rc-form select:focus, .rc-form textarea:focus { outline: none; border-color: var(--orange); }
.rc-form__consent { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-size: 13.5px; line-height: 1.45; }
.rc-form__consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--orange); flex-shrink: 0; padding: 0; }
.rc-form__consent a { color: #fff; text-decoration: underline; }
.rc-form .rc-pill { align-self: flex-start; margin-top: 6px; }
.rc-form .rc-pill--ghost { color: #fff; }
.rc-form .rc-pill--ghost:hover { color: var(--rc-navy); }
.rc-form__status { margin: 0; font-size: 15px; font-weight: 700; color: var(--orange); min-height: 1.4em; }
@media (max-width: 960px) { .rc-contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .rc-form__row { grid-template-columns: 1fr; } }

/* ===== Текстовая страница (политика) ===== */
.rc-prose { max-width: 820px; font-size: 17px; color: #41493f; }

/* ===== Финальный баннер + подвал ===== */
.rc-final { padding: 0 24px 24px; margin-top: auto; }
.rc-final__inner { max-width: 1320px; margin: 0 auto; }
.rc-final__banner { background: linear-gradient(135deg, var(--rc-navy) 0%, #63676a 100%); border-radius: 32px; padding: 56px; }
.rc-final__banner h2 { color: #fff; font-size: 36px; font-weight: 600; max-width: 700px; margin: 0 0 10px; line-height: 1.2; }
.rc-final__banner p { color: rgba(255,255,255,0.75); font-size: 17px; margin: 0 0 28px; max-width: 640px; }
.rc-final__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.rc-final__btns .rc-pill--ghost { color: #fff; }
.rc-final__btns .rc-pill--ghost:hover { color: var(--rc-navy); }
.rc-write-btn { display: inline-flex; align-items: center; border: 1.5px solid #fff; color: #fff; padding: 5px 22px 5px 5px; border-radius: 12px; min-height: 47px; }
.rc-write-btn__label { font-weight: 700; font-size: 16px; white-space: nowrap; margin-left: 10px; }
.rc-write-btn__icons { display: flex; align-items: center; height: 34px; margin-left: 14px; }
.rc-write-btn__ic { position: relative; width: 34px; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; transition: color 0.15s ease, background-color 0.15s ease; }
.rc-write-btn__ic::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 16px; background: #fff; }
.rc-write-btn__ic:first-child::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 16px; background: #fff; }
.rc-write-btn__ic:last-child::after { display: none; }
.rc-write-btn__ic:first-child { border-radius: 10px 0 0 10px; }
.rc-write-btn__ic:last-child { border-radius: 0 10px 10px 0; }
.rc-write-btn__ic:hover { color: var(--orange); background: rgba(255,255,255,0.1); }
.rc-write-btn__ic svg { width: 18px; height: 18px; display: block; }
.rc-write-btn__ic img { width: 18px; height: 18px; object-fit: contain; transition: opacity 0.15s ease; }
.rc-write-btn__ic .max-orange { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: 0; }
.rc-write-btn__ic:hover .max-white { opacity: 0; }
.rc-write-btn__ic:hover .max-orange { opacity: 1; }
@media (max-width: 860px) { .rc-final__banner { padding: 40px 28px; } .rc-final__banner h2 { font-size: 28px; } }
@media (max-width: 480px) { .rc-write-btn { padding: 4px 14px 4px 4px; } .rc-write-btn__label { margin-left: 6px; } .rc-write-btn__icons { margin-left: 8px; } .rc-write-btn__ic { width: 30px; } .rc-final__btns .rc-pill { padding: 11px 20px; } }

.rc-footer-block { margin-top: 24px; padding-top: 48px; background: #eef0f2; border-radius: 32px; }
.rc-footer-block__grid { padding: 0 56px 40px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.rc-footer-block__logo { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 18px; color: var(--rc-navy); margin-bottom: 12px; }
.rc-footer-block__logo .rc-logo__mark { width: 16px; height: 16px; }
.rc-footer-block__about { font-size: 14px; color: var(--rc-ink-soft); line-height: 1.5; margin: 0 0 14px; max-width: 320px; }
.rc-footer-block__btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-footer-block__btn { font-size: 13px; font-weight: 700; color: var(--rc-navy); border: 1.5px solid #c9cec5; border-radius: 10px; padding: 8px 14px; transition: border-color 0.15s ease, color 0.15s ease; }
.rc-footer-block__btn:hover { border-color: var(--orange); color: var(--orange); }
.rc-footer-block__col-title { font-size: 13.5px; color: #9aa19a; margin-bottom: 16px; }
.rc-footer-block__links-cols { display: flex; gap: 20px; }
.rc-footer-block__links { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; }
.rc-footer-block__links a { font-size: 14.5px; font-weight: 600; color: var(--rc-navy); transition: color 0.15s ease; }
.rc-footer-block__links a:hover { color: var(--orange); }
.rc-footer-block__address { font-size: 14px; color: var(--rc-navy); margin: 0 0 10px; }
.rc-footer-block__address a { color: var(--rc-navy); font-weight: 600; transition: color 0.15s ease; }
.rc-footer-block__address a:hover { color: var(--orange); }
.rc-footer-block__bottom { padding: 0 56px 32px; font-size: 13.5px; color: #9aa19a; }
.rc-footer-block__bottom a { color: inherit; text-decoration: underline; transition: color 0.15s ease; }
.rc-footer-block__bottom a:hover { color: var(--orange); }
@media (max-width: 860px) {
  .rc-footer-block__grid { grid-template-columns: 1fr; padding: 0 24px 32px; gap: 24px; }
  .rc-footer-block__bottom { padding: 0 24px 24px; }
}

/* ===== Кнопка «Наверх» ===== */
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,0.22); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; }
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (max-width: 640px) { .back-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; font-size: 18px; } }

/* ===== Плавающая кнопка «Связаться» ===== */
.callback-fab { position: fixed; right: 80px; bottom: 20px; z-index: 998; }
@media (max-width: 640px) { .callback-fab { right: 64px; bottom: 14px; } }
.callback-fab__btn { width: 48px; height: 48px; border-radius: 10px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,0.22); transition: background-color 0.2s ease, transform 0.2s ease; }
@media (max-width: 640px) { .callback-fab__btn { width: 44px; height: 44px; } }
.callback-fab__btn svg { width: 22px; height: 22px; }
.callback-fab__btn:hover { background: var(--orange); }
.callback-fab.is-open .callback-fab__btn { transform: rotate(90deg); }
.callback-fab__panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: 320px; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,0.25); padding: 16px; opacity: 0; transform: translateY(10px) scale(0.97); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.callback-fab.is-open .callback-fab__panel { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 420px) {
  .callback-fab__panel { position: fixed; right: auto; left: 50%; bottom: 78px; transform: translateX(-50%) translateY(10px) scale(0.97); width: min(320px, calc(100vw - 24px)); }
  .callback-fab.is-open .callback-fab__panel { transform: translateX(-50%); }
}
.callback-fab__msg-title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 2px; }
.callback-fab__msg-sub { font-size: 12.5px; color: var(--rc-ink-soft); margin: 0 0 12px; }
.callback-fab__channels { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-bottom: 12px; }
.callback-fab__channel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 2px; border-radius: 12px; font-size: 11.5px; font-weight: 700; color: #fff; text-align: center; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.callback-fab__channel:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.2); }
.callback-fab__channel--vk { background: linear-gradient(135deg, #4a76a8, #0077FF); }
.callback-fab__channel--tg { background: linear-gradient(135deg, #29A9EA, #1c8ad9); }
.callback-fab__channel--wa { background: linear-gradient(135deg, #2bd46b, #1ea952); }
.callback-fab__channel--max { background: linear-gradient(135deg, #6b5bd6, #8b5cf6); }
.callback-fab__channel .bot-ic { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.callback-fab__call { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; color: var(--ink); transition: background-color 0.15s ease; }
.callback-fab__call:hover { background: var(--paper-deep); }
.callback-fab__call svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--green); }
.callback-fab__call span { font-size: 14px; line-height: 1.4; }
.callback-fab__call b { color: var(--green); font-size: 15px; }
.callback-fab__divider { height: 1px; background: var(--line); margin: 10px 0; }
.callback-fab__form { display: flex; flex-direction: column; gap: 8px; }
.callback-fab__title { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0 0 2px; }
.callback-fab__form input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 15px; }
.callback-fab__form input:focus { outline: none; border-color: var(--green); }
.callback-fab__submit { margin-top: 2px; padding: 10px; border-radius: 8px; background: var(--orange); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; transition: background-color 0.15s ease; }
.callback-fab__submit:hover { background: var(--green); }
.callback-fab__submit:disabled { opacity: 0.6; cursor: default; }
.callback-fab__success { display: none; font-size: 14px; color: var(--green); font-weight: 700; text-align: center; margin: 4px 0 0; }
.callback-fab.is-success .callback-fab__form input, .callback-fab.is-success .callback-fab__submit, .callback-fab.is-success .callback-fab__title { display: none; }
.callback-fab.is-success .callback-fab__success { display: block; }
@media (prefers-reduced-motion: reduce) { .callback-fab__btn, .callback-fab__panel, .back-to-top { transition: none; } }

/* ===== Просмотр фото на весь экран ===== */
.rc-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(20,22,23,0.92); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.rc-lightbox.is-open { display: flex; }
.rc-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.rc-lightbox__close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; font-size: 24px; cursor: pointer; transition: background-color 0.15s ease; }
.rc-lightbox__close:hover { background: var(--orange); color: var(--rc-navy); }

/* Пока открыто мобильное меню — плавающие кнопки не перекрывают его */
body:has(.rc-burger[open]) .callback-fab,
body:has(.rc-burger[open]) .back-to-top { display: none; }

/* ===== Слайдер «до/после» (дизайн-проект) =====
   Две картинки друг на друге; левая обрезается по положению шторки --pos.
   Фото показываются целиком (contain), без увеличения и обрезки.
   Плашки под картинкой подсвечиваются, когда видна бо́льшая часть
   «их» картинки; клик по плашке открывает картинку полностью. */
.rc-compare { margin-top: 18px; }
.rc-compare__frame { position: relative; aspect-ratio: 2/1; border-radius: 20px; overflow: hidden; background: #fff; --pos: 50%; cursor: ew-resize; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.rc-compare__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; pointer-events: none; -webkit-user-drag: none; }
.rc-compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.rc-compare__divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none; }
.rc-compare__divider::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,0.25); }
.rc-compare__handle { position: absolute; top: 50%; left: 0; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; color: var(--rc-navy); display: flex; align-items: center; justify-content: center; gap: 2px; box-shadow: 0 4px 16px rgba(0,0,0,0.25); border: 2px solid #fff; transition: border-color 0.15s ease, color 0.15s ease; }
.rc-compare__handle svg { width: 14px; height: 14px; }
.rc-compare__frame:hover .rc-compare__handle,
.rc-compare.is-dragging .rc-compare__handle { border-color: var(--orange); color: var(--orange); }
.rc-compare__range { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rc-compare__range:focus-visible + .rc-compare__frame .rc-compare__handle { border-color: var(--orange); outline: 2px solid var(--orange); outline-offset: 3px; }
.rc-compare__caps { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.rc-compare__cap { flex: 0 1 auto; max-width: 48%; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--rc-navy); background: #fff; border: 1.5px solid #fff; border-radius: 10px; padding: 6px 12px; cursor: pointer; text-align: left; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.rc-compare__cap:last-child { text-align: right; }
.rc-compare__cap:hover { border-color: var(--orange); }
.rc-compare__cap.is-active { background: var(--orange); border-color: var(--orange); color: var(--rc-navy); }
@media (max-width: 560px) {
  .rc-compare__handle { width: 42px; height: 42px; }
  .rc-compare__frame { border-radius: 14px; }
  .rc-compare__cap { flex: 1 1 0; max-width: none; font-size: 12.5px; padding: 6px 10px; }
}

/* ===== Пары «эскиз / реализация» ===== */
.rc-pairs { display: flex; flex-direction: column; gap: 20px; }
.rc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rc-pair__fig { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rc-pair__fig .rc-gallery__item { aspect-ratio: auto; background: #fff; }
.rc-pair__fig .rc-gallery__item img { height: auto; object-fit: contain; }
.rc-pair__cap { align-self: flex-start; font-size: 13.5px; font-weight: 600; color: var(--rc-navy); background: var(--rc-bg); border-radius: 10px; padding: 6px 12px; transition: background-color 0.15s ease; }
.rc-pair__fig:hover .rc-pair__cap, .rc-pair__fig:focus-within .rc-pair__cap { background: var(--orange); }
@media (max-width: 640px) { .rc-pair { grid-template-columns: 1fr; gap: 12px; } }

/* ===== Текстовый баннер страницы (как «Точно получится» у НУР) ===== */
.rc-text-hero { padding: 24px 24px 0; margin-top: 88px; }
.rc-text-hero__inner { max-width: 1320px; margin: 0 auto; background: var(--rc-bg); border-radius: 32px; padding: 48px 52px; }
.rc-text-hero h1 { font-size: 36px; font-weight: 600; line-height: 1.15; color: var(--rc-navy); margin: 14px 0 12px; max-width: 900px; }
.rc-text-hero p { font-size: 18px; color: var(--rc-ink-soft); max-width: 760px; margin: 0; }
.rc-text-hero .rc-pill { margin-top: 22px; }
@media (max-width: 640px) { .rc-text-hero__inner { padding: 32px 24px; } .rc-text-hero h1 { font-size: 28px; } }

/* ===== Ряды «текст + лента фото» (как «Точно получится» у НУР) ===== */
.gr-rows { padding: 32px 24px 0; }
.gr-rows__inner { max-width: 1320px; margin: 0 auto; }
.gr-row { display: grid; grid-template-columns: minmax(300px,4fr) minmax(0,6fr); gap: 26px; align-items: stretch; margin-bottom: 64px; }
.gr-row--reverse { direction: rtl; }
.gr-row--reverse > * { direction: ltr; }
.gr-row__text { position: relative; display: flex; flex-direction: column; }
.gr-row__plate { position: relative; z-index: 2; background: var(--rc-navy); border-radius: 14px; padding: 14px 16px; box-shadow: 0 10px 24px -12px rgba(0,0,0,0.28); }
.gr-row__plate p { margin: 0; font-size: 18px; line-height: 1.35; color: #fff; }
.gr-row__main { position: relative; z-index: 1; flex: 1 1 auto; margin-top: -24px; background: var(--rc-bg); border: 1px solid var(--line); border-radius: 20px; padding: 42px 18px 12px; display: flex; flex-direction: column; gap: 6px; }
.gr-row__num { display: flex; align-items: center; gap: 14px; font-size: 30px; font-weight: 800; letter-spacing: 0.02em; line-height: 1; color: var(--orange); }
.gr-row__num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gr-row__title { margin: 4px 0 0; font-size: 26px; line-height: 1.15; font-weight: 400; letter-spacing: -0.015em; color: var(--rc-navy); text-wrap: balance; }
.gr-row__lead { margin: 0; font-size: 18px; line-height: 1.3; color: var(--rc-navy); }
.gr-row__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
@media (max-width: 860px) { .gr-row, .gr-row--reverse { grid-template-columns: 1fr; direction: ltr; gap: 24px; } }
@media (max-width: 640px) { .gr-row__title { font-size: 23px; } }

.gr-carousel { position: relative; min-width: 0; }
.gr-strip { display: flex; flex-wrap: nowrap; gap: 10px; align-items: stretch; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; padding-bottom: 4px; min-width: 0; scrollbar-width: thin; }
.gr-strip .rc-gallery__item.gr-tile { aspect-ratio: auto; flex: 0 0 auto; height: 380px; width: auto; border-radius: 16px; background: var(--rc-bg); }
.gr-strip .gr-tile img { height: 100%; width: auto; max-width: none; object-fit: contain; }
.gr-carousel__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--rc-navy); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.18); display: flex; align-items: center; justify-content: center; transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease; }
.gr-carousel__arrow:hover { background: var(--orange); color: #fff; }
.gr-carousel__arrow--prev { left: -18px; }
.gr-carousel__arrow--next { right: -18px; }
.gr-carousel__arrow[hidden] { display: none; }
@media (max-width: 640px) {
  .gr-strip .rc-gallery__item.gr-tile { height: 190px; }
  .gr-carousel__arrow { width: 34px; height: 34px; font-size: 18px; }
  .gr-carousel__arrow--prev { left: -8px; } .gr-carousel__arrow--next { right: -8px; }
}
@media (max-width: 420px) { .gr-strip .rc-gallery__item.gr-tile { height: 160px; } }

/* ===== «Смотрите больше фото и видео» ===== */
.proof-card { max-width: 1320px; margin: 0 auto; background: var(--rc-bg); border-radius: 32px; padding: 44px 48px; }
.proof-card__note { font-size: 18px; color: var(--rc-ink-soft); max-width: 720px; margin: 0 0 22px; }
.proof-card__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.proof-card__btns .rc-pill { font-size: 20px; }
@media (max-width: 640px) { .proof-card { padding: 32px 24px; } .proof-card__btns { grid-template-columns: 1fr; } }
