

/* ============================================================
   Ravelis — кухни на заказ
   Фирменные цвета: графит #2E2E2E, жёлтый #F1B435, молочный #F7F4EF
   ============================================================ */

@font-face {
  font-family: 'Florisel Script';
  src: url('../fonts/florisel-script.woff2') format('woff2'),
       url('../fonts/Floriselscript.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Брендовая палитра */
  --graphite: #2E2E2E;
  --yellow: #F1B435;
  --milk: #F7F4EF;
  --white: #FFFFFF;

  --graphite-soft: #3A3A3A;
  --graphite-deep: #232323;
  --surface-soft: #FBF8F4;
  --yellow-deep: #DB9F1F;

  --line: rgba(46, 46, 46, .12);
  --line-strong: rgba(46, 46, 46, .22);
  --line-light: rgba(255, 255, 255, .18);
  --muted: rgba(46, 46, 46, .62);
  --muted-light: rgba(255, 255, 255, .68);

  /* Полупрозрачные плашки */
  --glass-light: rgba(255, 255, 255, .10);
  --glass-light-2: rgba(255, 255, 255, .16);
  --glass-dark: rgba(46, 46, 46, .55);
  --glass-milk: rgba(247, 244, 239, .72);

  /* Мессенджеры */
  --viber: #7360F2;
  --viber-deep: #5C45D6;
  --tg: #229ED9;
  --tg-deep: #1B87BB;

  --radius-2xl: 32px;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow: 0 24px 48px rgba(46, 46, 46, .10);
  --shadow-soft: 0 12px 28px rgba(46, 46, 46, .07);
  --shadow-lift: 0 30px 60px rgba(46, 46, 46, .16);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --transition: 260ms var(--ease);

  --container: 1220px;
  --gutter: 20px;
  --section-y: clamp(64px, 8vw, 120px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--milk);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--yellow); color: var(--graphite); }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Типографика ---------- */

h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5.6vw, 66px); }
h2 { font-size: clamp(28px, 4.2vw, 50px); }
h3 { font-size: clamp(19px, 2vw, 24px); line-height: 1.2; letter-spacing: -.02em; }

p { margin: 0; }

/* Подзаголовок рукописным шрифтом — всегда строчными */
.script {
  font-family: 'Florisel Script', 'Manrope', cursive;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0;
  line-height: 0.85;
  font-size: clamp(86px, 4.2vw, 54px);
  color: var(--yellow);
  display: block;
}

/* На светлых плашках жёлтый осветляется — берём более плотный оттенок */
.section--milk .script,
.section--white .script { color: var(--yellow-deep); }

.script--sm { font-size: clamp(68px, 3vw, 38px); }
.script--graphite { color: var(--graphite); }

/* ---------- Раскладка ---------- */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; position: relative; }
.section--dark { background: var(--graphite); color: var(--white); }
.section--milk { background: var(--milk); }
.section--white { background: var(--white); }

.section-head { max-width: 780px; margin-bottom: clamp(34px, 4vw, 58px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p.lead { margin-top: 18px; color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); }
.section--dark .section-head p.lead { color: var(--muted-light); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 14px;
  margin-bottom: 18px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: var(--graphite);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.eyebrow--ghost {
  background: var(--glass-light-2);
  color: var(--white);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(8px);
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
              color var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  text-align: center;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.99); }

.btn--primary { background: var(--yellow); color: var(--graphite); box-shadow: 0 10px 26px rgba(241, 180, 53, .32); }
.btn--primary:hover { background: var(--yellow-deep); box-shadow: 0 16px 32px rgba(241, 180, 53, .40); }

.btn--dark { background: var(--graphite); color: var(--white); }
.btn--dark:hover { background: var(--graphite-deep); }

.btn--light { background: var(--white); color: var(--graphite); box-shadow: var(--shadow-soft); }
.btn--light:hover { background: var(--milk); }

.btn--glass {
  background: var(--glass-light-2);
  color: var(--white);
  border-color: var(--line-light);
  backdrop-filter: blur(10px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .26); }

.btn--outline { background: transparent; color: var(--graphite); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--graphite); background: rgba(46, 46, 46, .04); }

.btn--sm { min-height: 46px; padding: 0 20px; font-size: 14px; }
.btn--full { width: 100%; }

/* ---------- Шапка ---------- */

.topbar {
  background: var(--graphite);
  color: var(--muted-light);
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  flex-wrap: wrap;
}

.topbar__geo { display: inline-flex; align-items: center; gap: 8px; }
.topbar__socials { display: inline-flex; align-items: center; gap: 8px; }

.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(247, 244, 239, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition), background var(--transition);
}

.header.is-stuck { box-shadow: 0 8px 24px rgba(46, 46, 46, .08); background: rgba(247, 244, 239, .94); }

.header__row {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 30px;
  width: 118px;
  background-color: var(--graphite);
  -webkit-mask: url('../img/logo-mask.png') no-repeat center / contain;
  mask: url('../img/logo-mask.png') no-repeat center / contain;
  transition: background-color var(--transition);
}
.logo:hover { background-color: var(--yellow-deep); }
.logo--white { background-color: var(--white); }
.logo--white:hover { background-color: var(--yellow); }
.logo--lg { height: 40px; width: 158px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.nav a {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--graphite);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav a:hover { background: rgba(46, 46, 46, .06); }

.header__contact { display: flex; align-items: center; gap: 14px; }

.header__phone {
  display: grid;
  gap: 1px;
  text-align: right;
  line-height: 1.2;
}
.header__phone b { font-size: 16px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.header__phone span { font-size: 12px; color: var(--muted); white-space: nowrap; }

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
  padding: 0;
  place-items: center;
  flex: 0 0 auto;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--graphite);
  border-radius: 2px;
  position: relative;
  transition: transform var(--transition), background var(--transition);
}
.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--graphite);
  border-radius: 2px;
  transition: transform var(--transition), top var(--transition);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after { top: 0; transform: rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--graphite);
  color: var(--white);
  padding: 24px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 380ms var(--ease), visibility 380ms;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__close {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--glass-light-2); border: 1px solid var(--line-light);
  color: var(--white); font-size: 24px; line-height: 1; cursor: pointer;
}
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu nav a {
  font-size: 24px; font-weight: 800; letter-spacing: -.02em;
  padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.mobile-menu__foot { margin-top: auto; display: grid; gap: 14px; }
.mobile-menu__phone { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.mobile-menu__hours { color: var(--muted-light); font-size: 14px; }

/* Соцсети */
.social {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-light);
  background: var(--glass-light);
  color: var(--white);
  transition: background var(--transition), transform var(--transition), color var(--transition), border-color var(--transition);
}
.social:hover { background: var(--yellow); color: var(--graphite); border-color: var(--yellow); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }
.social--sm { width: 30px; height: 30px; }
.social--sm svg { width: 15px; height: 15px; }
.social--onlight { border-color: var(--line-strong); background: var(--white); color: var(--graphite); }
.social--onlight:hover { background: var(--yellow); border-color: var(--yellow); }

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  background: var(--graphite);
  color: var(--white);
  overflow: hidden;
  padding: clamp(46px, 6vw, 84px) 0 clamp(56px, 7vw, 96px);
}

.hero::before {
  content: '';
  position: absolute;
  right: -18%;
  top: -28%;
  width: 62vw;
  height: 62vw;
  max-width: 780px;
  max-height: 780px;
  background: radial-gradient(circle, rgba(241, 180, 53, .20) 0%, rgba(241, 180, 53, 0) 66%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero h1 { margin-bottom: 6px; }
.hero h1 em { font-style: normal; color: var(--yellow); }

.hero__lead {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--muted-light);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.65;
}

.hero__usp {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0;
}

.usp-chip {
  padding: 16px 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--glass-light);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(8px);
}
.usp-chip b { display: block; font-size: clamp(20px, 2.1vw, 26px); font-weight: 800; letter-spacing: -.03em; color: var(--yellow); line-height: 1.1; }
.usp-chip span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--muted-light); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__note {
  margin-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  max-width: 48ch;
  line-height: 1.5;
}

/* Композиция изображений первого экрана — «плашки» как в референсах */
.hero__media { position: relative; }

.hero__photo {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 8px solid var(--white);
  box-shadow: var(--shadow-lift);
  background: var(--white);
}
.hero__photo img { width: 100%; height: clamp(280px, 34vw, 440px); object-fit: cover; }

.hero__badge {
  position: absolute;
  left: -14px;
  bottom: -26px;
  display: grid;
  gap: 2px;
  padding: 16px 22px;
  border-radius: var(--radius-xl);
  background: var(--yellow);
  color: var(--graphite);
  box-shadow: var(--shadow-lift);
  max-width: 200px;
}
.hero__badge b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.hero__badge span { font-size: 12.5px; font-weight: 600; line-height: 1.35; }

.hero__glass {
  position: absolute;
  right: -10px;
  top: -22px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: var(--glass-light-2);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

/* ---------- Преимущества ---------- */

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.adv-card {
  position: relative;
  padding: 30px 26px 32px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: grid;
  gap: 12px;
  align-content: start;
}
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(241, 180, 53, .55); }

.adv-card--accent { background: var(--yellow); border-color: var(--yellow); }
.adv-card--accent .adv-card__text { color: rgba(46, 46, 46, .75); }
.adv-card--dark { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.adv-card--dark .adv-card__text { color: var(--muted-light); }
.adv-card--dark .adv-card__icon { background: var(--glass-light-2); border-color: var(--line-light); color: var(--yellow); }

.adv-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--milk);
  border: 1px solid var(--line);
  color: var(--graphite);
  margin-bottom: 4px;
}
.adv-card__icon svg { width: 24px; height: 24px; }
.adv-card--accent .adv-card__icon { background: rgba(255, 255, 255, .55); border-color: rgba(46, 46, 46, .14); }

.adv-card__text { color: var(--muted); font-size: 15px; line-height: 1.6; }

.adv-card__meta {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  font-size: 13px;
  font-weight: 700;
}
.adv-card--dark .adv-card__meta { border-top-color: rgba(255, 255, 255, .2); color: var(--yellow); }

/* ---------- Каталог ---------- */

.catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.tab {
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.tab:hover { border-color: var(--graphite); }
.tab.is-active { background: var(--graphite); border-color: var(--graphite); color: var(--white); }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project.is-hidden { display: none; }

.project__media { position: relative; overflow: hidden; background: var(--surface-soft); }
.project__media img { width: 100%; height: 250px; object-fit: cover; transition: transform 600ms var(--ease); }
.project:hover .project__media img { transform: scale(1.05); }

.project__tag {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}
.project__tag--yellow { background: var(--yellow); }

.project__body { padding: 22px 22px 24px; display: grid; gap: 14px; align-content: start; flex: 1; }
.project__title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.project__spec { display: grid; gap: 8px; font-size: 14px; }
.project__spec div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px dashed var(--line); padding-bottom: 7px; }
.project__spec div:last-child { border-bottom: none; padding-bottom: 0; }
.project__spec dt, .project__spec span:first-child { color: var(--muted); }
.project__spec span:last-child { font-weight: 700; text-align: right; }

.project__price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.project__price b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.project__price span { font-size: 12.5px; color: var(--muted); }

.catalog-more { margin-top: 30px; display: flex; justify-content: center; }

.catalog-note {
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  background: var(--glass-milk);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ---------- О компании ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.about__media { position: relative; }
.about__photo {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 8px solid var(--white);
  box-shadow: var(--shadow);
}
.about__photo img { width: 100%; height: clamp(280px, 32vw, 420px); object-fit: cover; }

.about__stat {
  position: absolute;
  right: -16px;
  bottom: -24px;
  padding: 18px 24px;
  border-radius: var(--radius-xl);
  background: var(--graphite);
  color: var(--white);
  box-shadow: var(--shadow-lift);
}
.about__stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--yellow); line-height: 1; }
.about__stat span { font-size: 12.5px; color: var(--muted-light); }

.about__text { color: var(--muted); font-size: clamp(15px, 1.3vw, 17px); line-height: 1.7; display: grid; gap: 16px; }

.about__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}
.fact {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.fact b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.fact span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.4; }

.about__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag {
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  background: rgba(241, 180, 53, .18);
  border: 1px solid rgba(241, 180, 53, .5);
  font-size: 13.5px;
  font-weight: 700;
}
.tag--muted { background: var(--white); border-color: var(--line-strong); color: var(--muted); }

/* ---------- Этапы работы ---------- */

.steps-list { display: grid; gap: 14px; counter-reset: step; }

.step-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) minmax(0, 300px);
  gap: clamp(16px, 2.4vw, 36px);
  align-items: center;
  padding: 26px 30px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.step-row:hover { transform: translateX(6px); box-shadow: var(--shadow-soft); }

.section--dark .step-row {
  background: var(--glass-light);
  border-color: var(--line-light);
  backdrop-filter: blur(8px);
}
.section--dark .step-row:hover { background: var(--glass-light-2); }

.step-row__num {
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--yellow);
}
.step-row__title { font-size: clamp(18px, 1.9vw, 23px); font-weight: 800; letter-spacing: -.02em; }
.step-row__text { margin-top: 7px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.section--dark .step-row__text { color: var(--muted-light); }

.step-row__time {
  justify-self: end;
  text-align: right;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--milk);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.section--dark .step-row__time { background: var(--glass-light-2); border-color: var(--line-light); color: var(--white); }

.steps-cta {
  margin-top: 34px;
  padding: clamp(26px, 3.4vw, 42px);
  border-radius: var(--radius-2xl);
  background: var(--yellow);
  color: var(--graphite);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
}
.steps-cta h3 { font-size: clamp(22px, 2.6vw, 32px); }
.steps-cta p { margin-top: 8px; font-size: 15px; color: rgba(46, 46, 46, .72); max-width: 52ch; }
.steps-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ---------- Рассрочка ---------- */

.rassrochka {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 46px);
  align-items: start;
}

.rassrochka__card {
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: var(--radius-2xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.rassrochka__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 22px;
}
.rassrochka__price b { font-size: clamp(38px, 5vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.rassrochka__price span { font-size: 15px; color: var(--muted); }

.terms { display: grid; gap: 12px; margin-top: 6px; }
.term {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  background: var(--milk);
  font-size: 14.5px;
}
.term span:first-child { color: var(--muted); }
.term span:last-child { font-weight: 800; text-align: right; }

.rassrochka__side { display: grid; gap: 14px; }

.pay-card {
  padding: 26px 28px;
  border-radius: var(--radius-xl);
  background: var(--graphite);
  color: var(--white);
  display: grid;
  gap: 12px;
}
.pay-card h3 { font-size: 20px; }
.pay-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pay-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted-light); line-height: 1.5; }
.pay-card li::before { content: ''; flex: 0 0 auto; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: var(--yellow); }

.docs-card {
  padding: 26px 28px;
  border-radius: var(--radius-xl);
  background: var(--glass-milk);
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.docs-card h3 { font-size: 20px; }
.docs-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.docs-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.docs-card li::before { content: ''; flex: 0 0 auto; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: var(--graphite); }

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 60px);
  align-items: start;
}

.faq-list { display: grid; gap: 10px; }

.faq-item {
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item.is-open { border-color: rgba(241, 180, 53, .7); box-shadow: var(--shadow-soft); }

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 24px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.4;
}
.faq-item__q:hover { color: var(--yellow-deep); }

.faq-item__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  position: relative;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--graphite);
  border-radius: 2px;
  transition: opacity var(--transition), background var(--transition);
}
.faq-item__icon::before { width: 12px; height: 2px; }
.faq-item__icon::after { width: 2px; height: 12px; }
.faq-item.is-open .faq-item__icon { background: var(--yellow); border-color: var(--yellow); transform: rotate(180deg); }
.faq-item.is-open .faq-item__icon::after { opacity: 0; }

.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 340ms var(--ease);
}
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a > div { overflow: hidden; }
.faq-item__a p {
  padding: 0 24px 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 68ch;
}

.faq-aside {
  padding: 30px 28px;
  border-radius: var(--radius-xl);
  background: var(--graphite);
  color: var(--white);
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
}
.faq-aside p { color: var(--muted-light); font-size: 14.5px; line-height: 1.6; }

/* ---------- Контакты и форма ---------- */

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.contact-card {
  padding: clamp(26px, 3vw, 38px);
  border-radius: var(--radius-2xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 22px;
  align-content: start;
}

.contact-row { display: grid; gap: 4px; }
.contact-row__label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-row__value { font-size: clamp(19px, 2vw, 25px); font-weight: 800; letter-spacing: -.02em; }
.contact-row__value a:hover { color: var(--yellow-deep); }
.contact-row__note { font-size: 14px; color: var(--muted); line-height: 1.55; }

.contact-socials { display: flex; flex-wrap: wrap; gap: 10px; }

.geo-list { display: grid; gap: 8px; }
.geo-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--milk);
  font-size: 14.5px;
  line-height: 1.5;
}
.geo-item svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: var(--yellow-deep); }

.map {
  margin-top: 4px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 240px;
  background: var(--milk);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.35) contrast(1.03); }

/* Форма */
.form-card {
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--radius-2xl);
  background: var(--graphite);
  color: var(--white);
  box-shadow: var(--shadow);
}
.form-card h3 { font-size: clamp(22px, 2.4vw, 30px); }
.form-card > p.lead { margin-top: 10px; color: var(--muted-light); font-size: 15px; line-height: 1.6; }

.form { display: grid; gap: 14px; margin-top: 26px; }

.field { display: grid; gap: 7px; }
.field__label { font-size: 13px; font-weight: 700; color: var(--muted-light); }
.field__label i { font-style: normal; color: var(--yellow); }

.input,
.textarea,
.select {
  width: 100%;
  min-height: 54px;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
  color: var(--white);
  font-family: inherit;
  font-size: 15.5px;
  transition: border-color var(--transition), background var(--transition);
}
.input::placeholder, .textarea::placeholder { color: rgba(255, 255, 255, .38); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(255, 255, 255, .11);
}
.textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5 7 7.5l6-6' stroke='%23F1B435' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}
.select option { background: var(--graphite); color: var(--white); }

.field--error .input,
.field--error .select { border-color: #E4685E; }
.field__error { display: none; font-size: 12.5px; color: #FFB3AC; }
.field--error .field__error { display: block; }

.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.channels { display: flex; flex-wrap: wrap; gap: 8px; }
.channel { position: relative; }
.channel input { position: absolute; opacity: 0; pointer-events: none; }
.channel span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.channel span:hover { border-color: rgba(241, 180, 53, .7); }
.channel input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--graphite); }
.channel input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 3px; }

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted-light);
  cursor: pointer;
}
.consent input { flex: 0 0 auto; width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--yellow); cursor: pointer; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--yellow); }
.field--error .consent { color: #FFB3AC; }

.form__success {
  display: none;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(241, 180, 53, .14);
  border: 1px solid var(--yellow);
  text-align: center;
}
.form__success.is-visible { display: block; }
.form__success b { display: block; font-size: 19px; margin-bottom: 8px; }
.form__success span { font-size: 14.5px; color: var(--muted-light); }

/* ---------- Подвал ---------- */

.footer { background: var(--graphite-deep); color: var(--muted-light); padding: clamp(46px, 5vw, 70px) 0 26px; }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer__about { display: grid; gap: 16px; align-content: start; }
.footer__about p { font-size: 14px; line-height: 1.6; max-width: 34ch; }

.footer__col h4 { font-size: 14px; font-weight: 800; color: var(--white); letter-spacing: .02em; margin-bottom: 16px; }
.footer__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer__col a { font-size: 14.5px; transition: color var(--transition); }
.footer__col a:hover { color: var(--yellow); }
.footer__col p { font-size: 14.5px; line-height: 1.6; }
.footer__col b { color: var(--white); font-size: 17px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .45);
}
.footer__bottom a:hover { color: var(--yellow); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Плавающие элементы ---------- */

.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.fab__btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--graphite);
  border: 0;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(46, 46, 46, .26);
  transition: transform var(--transition), background var(--transition),
              color var(--transition), box-shadow var(--transition);
}
.fab__btn:hover { transform: scale(1.06); background: var(--yellow-deep); }
.fab__btn svg { width: 24px; height: 24px; }

/* Кнопки мессенджеров — размер как у кнопки звонка, брендовые цвета */
.fab__btn--viber,
.fab__btn--tg {
  background: var(--white);
  border: 1px solid rgba(46, 46, 46, .08);
}

.fab__btn--viber { color: var(--viber); box-shadow: 0 14px 32px rgba(115, 96, 242, .28); }
.fab__btn--viber:hover {
  background: #F5F2FF;
  color: var(--viber-deep);
  box-shadow: 0 18px 38px rgba(115, 96, 242, .36);
}

.fab__btn--tg { color: var(--tg); box-shadow: 0 14px 32px rgba(34, 158, 217, .26); }
.fab__btn--tg:hover {
  background: #EFF9FE;
  color: var(--tg-deep);
  box-shadow: 0 18px 38px rgba(34, 158, 217, .34);
}

/* Одинаковые width/height — иконка не деформируется (как у остальных иконок) */
.fab__btn--viber .fab__msg-icon,
.fab__btn--tg .fab__msg-icon {
  display: block;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  fill: currentColor !important;
  stroke: none !important;
}

/* Модальное окно */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(35, 35, 35, .62);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms var(--ease), visibility 260ms;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal__box {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-2xl);
  background: var(--graphite);
  color: var(--white);
  padding: clamp(24px, 3vw, 36px);
  position: relative;
  transform: translateY(20px) scale(.98);
  transition: transform 300ms var(--ease);
}
.modal.is-open .modal__box { transform: translateY(0) scale(1); }

.modal__close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background: var(--glass-light);
  color: var(--white);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
}
.modal__close:hover { background: var(--glass-light-2); }

.modal__box h3 { font-size: 24px; padding-right: 44px; }
.modal__box > p { margin-top: 10px; color: var(--muted-light); font-size: 14.5px; line-height: 1.6; }

/* ---------- Анимация появления ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 1120px) {
  .nav a { padding: 10px 11px; font-size: 14px; }
  .header__phone span { display: none; }
}

@media (max-width: 980px) {
  .nav, .header__contact .btn { display: none; }
  .burger { display: grid; margin-left: auto; }
  .header__contact { margin-left: 0; }
  .header__row { gap: 14px; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { margin-top: 34px; }
  .hero__badge { left: 0; }

  .adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
  .about__stat { right: 0; }
  .rassrochka { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-cta { grid-template-columns: 1fr; }
  .steps-cta__btns { justify-content: flex-start; }
  .step-row { grid-template-columns: 62px minmax(0, 1fr); padding: 22px 24px; }
  .step-row__time { grid-column: 2; justify-self: start; text-align: left; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --radius-2xl: 26px; --radius-xl: 22px; }

  .topbar__row { min-height: 40px; justify-content: center; }
  .topbar__geo { display: none; }

  .hero__usp { grid-template-columns: 1fr; gap: 10px; }
  .usp-chip { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; }
  .usp-chip b { font-size: 22px; flex: 0 0 auto; white-space: nowrap; }
  .usp-chip span { margin-top: 0; }
  .hero__cta .btn { width: 100%; }
  .hero__glass { display: none; }
  .hero__photo { border-width: 6px; }

  .adv-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .about__facts { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .steps-cta__btns .btn { width: 100%; }

  .fab__btn { width: 52px; height: 52px; }

  .project__media img { height: 220px; }
  .catalog-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .catalog-tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; }
}

/* ============================================================
   Иконки Viber — принудительный брендовый фиолетовый
   ============================================================ */

.icon-viber,
.icon-viber path {
  fill: #7360F2 !important;
  stroke: none !important;
}
.social:hover .icon-viber,
.social:hover .icon-viber path { fill: #5C45D6 !important; }

.fab__btn--viber .fab__msg-icon,
.fab__btn--viber .fab__msg-icon path {
  fill: #7360F2 !important;
  stroke: none !important;
}
.fab__btn--viber:hover .fab__msg-icon,
.fab__btn--viber:hover .fab__msg-icon path { fill: #5C45D6 !important; }

.fab__btn--tg .fab__msg-icon,
.fab__btn--tg .fab__msg-icon path {
  fill: currentColor !important;
  stroke: none !important;
}

/* Все плавающие кнопки одинакового размера */
.fab {
  gap: 10px;
}

.fab .fab__btn {
  box-sizing: border-box;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  padding: 0 !important;
  border-radius: 50%;
}

/* Все иконки одинакового размера */
.fab .fab__btn svg {
  display: block;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

/* Фиолетовый Viber */
.fab .fab__btn--viber svg,
.fab .fab__btn--viber svg path {
  fill: #7360F2 !important;
  stroke: none !important;
}

/* Голубой Telegram */
.fab .fab__btn--tg svg,
.fab .fab__btn--tg svg path {
  fill: #229ED9 !important;
  stroke: none !important;
}

/* Мобильная версия */
@media (max-width: 640px) {
  .fab .fab__btn {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
  }
}