/* ============================================================
   Spectrum — ортодонтическая лаборатория, Казань
   Бренд: синий #3262AC · жёлтый #FBA800 · графит #4A4A49
   Шрифт: Montserrat. Градиент всегда: синий → жёлтый.
   ============================================================ */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-ExtraBold.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --blue: #3262AC;
  --yellow: #FBA800;
  --graphite: #4A4A49;
  --ink: #2C2C2B;
  --bg: #EDF0F5;          /* холодный светлый — фон рендеров */
  --bg-soft: #F6F8FB;
  --card: #FFFFFF;
  --line: linear-gradient(90deg, var(--blue), var(--yellow));
  --muted: #75757333;
  --radius: 20px;
  --shadow: 0 24px 60px -28px rgba(44, 62, 94, .28);
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* декоративные ауры с отрицательными отступами не должны создавать горизонтальный скролл на мобильных */
html, body { overflow-x: clip; }

body {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

::selection { background: var(--blue); color: #fff; }

h1, h2, h3 { color: var(--ink); line-height: 1.18; }

/* ---------- фирменная линия-спектр ---------- */

.spectrum-top {
  position: fixed; top: 0; left: 0; right: 0; height: 4px;
  background: var(--line); z-index: 60;
}

/* Заголовок секции «на линии» — как словесный знак в логотипе */
.rule-title {
  display: flex; align-items: center; gap: 28px;
  margin-bottom: 14px;
}
.rule-title h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap;
}
.rule-title::before,
.rule-title::after {
  content: ""; height: 3px; flex: 0 0 auto;
}
/* линия упирается в край экрана: хвосты выходят за контейнер */
.rule-title::before {
  background: var(--blue);
  width: 24px; margin-left: calc(50% - 50vw); flex-grow: 0;
  min-width: 0; width: calc(50vw - 50% + 4px);
}
.rule-title::after {
  background: var(--line);
  flex-grow: 1; margin-right: calc(50% - 50vw);
}
.section-lead { max-width: 640px; margin-bottom: 48px; }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 16px;
}

section { padding: 96px 0; position: relative; }

/* цветные ауры — живость поверх строгого бренда */
.aura { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.aura-blue { background: rgba(50, 98, 172, .16); }
.aura-yellow { background: rgba(251, 168, 0, .16); }
section > .container { position: relative; z-index: 1; }

/* градиентный текст — строго синий → жёлтый */
.grad-text {
  background: var(--line);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- header ---------- */

.site-header {
  position: fixed; top: 4px; left: 0; right: 0; z-index: 50;
  background: rgba(246, 248, 251, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(50, 98, 172, .10);
}
.site-header .container {
  display: flex; align-items: center; gap: 32px;
  height: 68px;
}
.logo img { height: 30px; width: auto; display: block; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a {
  font-size: 13.5px; font-weight: 500; color: var(--graphite);
  white-space: nowrap;
  transition: color .2s;
}
.main-nav a:hover { color: var(--blue); }
.header-phone {
  font-size: 14px; font-weight: 600; color: var(--ink);
  white-space: nowrap;
}
.header-phone:hover { color: var(--blue); }

/* ---------- hero ---------- */

.hero { position: relative; padding: 0; overflow: hidden; }
.hero-inner {
  position: relative; min-height: min(92vh, 860px);
  display: flex; align-items: center;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 18% center;
}
.hero-content {
  position: relative; z-index: 2;
  margin-left: auto; width: 50%;
  padding: 140px 0 96px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--blue); }
.hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  max-width: 520px; margin-bottom: 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* линия, входящая с правого края под заголовком */
.hero-line {
  height: 3px; background: var(--line);
  width: calc(100% + 24px + (100vw - var(--container)) / 2);
  max-width: 640px;
  margin-bottom: 36px;
  transform-origin: right center;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-family: inherit; font-size: 14.5px; font-weight: 600;
  cursor: pointer; border: none; transition: transform .18s, box-shadow .18s, background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, #4479C8, var(--blue) 60%);
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(50, 98, 172, .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -10px rgba(50, 98, 172, .7); }
.btn-yellow {
  background: linear-gradient(135deg, #FFBE33, var(--yellow) 60%);
  color: #3A2E10;
  box-shadow: 0 14px 30px -10px rgba(251, 168, 0, .55);
}
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -10px rgba(251, 168, 0, .7); }
.btn-ghost {
  background: rgba(255, 255, 255, .75); color: var(--ink);
  border: 1.5px solid rgba(74, 74, 73, .25);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- stats ---------- */

.stats { padding: 0; }
.stats .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  background: var(--card); border-radius: var(--radius);
  padding: 40px 44px; margin-top: -64px;
  position: relative; z-index: 3;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stats .container::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--line); border-radius: 4px 4px 0 0;
}
.stat b {
  display: block; font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 800; letter-spacing: -.02em;
  line-height: 1.1; margin-bottom: 6px;
  background: var(--line);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat span { font-size: 13.5px; line-height: 1.45; display: block; }

/* ---------- about ---------- */

.about-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px;
  align-items: start;
}
.about-grid p + p { margin-top: 16px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.value-chip {
  background: var(--card); border-radius: 14px;
  padding: 22px 22px 20px;
  position: relative; overflow: hidden;
  font-weight: 600; font-size: 14.5px; color: var(--ink);
  transition: transform .3s ease, box-shadow .3s ease;
}
.value-chip::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--line);
}
.value-chip:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(50, 98, 172, .45); }
.values .value-chip:nth-child(2n) { background: linear-gradient(180deg, #FFF8EA, #fff 55%); }
.values .value-chip:nth-child(2n+1) { background: linear-gradient(180deg, #EEF4FF, #fff 55%); }
.value-chip small {
  display: block; font-weight: 400; font-size: 13px;
  color: var(--graphite); margin-top: 6px; line-height: 1.5;
}

/* ---------- products ---------- */

.products { background: linear-gradient(180deg, #E9F0FB, var(--bg-soft) 55%); }
.product-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px;
}
.product-card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 64px -24px rgba(50, 98, 172, .45);
}
.product-card .body { position: relative; }
.product-card .body::before {
  content: ""; position: absolute; top: 0; left: 26px; width: 44px; height: 3px;
  background: var(--line); border-radius: 3px;
}
.product-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.product-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.product-card p { font-size: 13.5px; line-height: 1.6; flex: 1; }
.product-card .price {
  margin-top: 18px; font-weight: 700; font-size: 15px; color: var(--blue);
}
.product-card.wide { grid-column: span 3; }
.product-card.third { grid-column: span 2; }

/* каталог категорий */
.catalog {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.cat {
  background: var(--card); border-radius: 16px; padding: 24px;
  font-size: 13px;
}
.cat h4 { font-size: 14.5px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.cat p { line-height: 1.55; }
.cat .from {
  display: inline-block; margin-top: 14px;
  font-weight: 700; font-size: 13px; color: var(--ink);
  background: rgba(251, 168, 0, .16);
  border-radius: 999px; padding: 4px 12px;
}

/* ---------- digital (цифровое производство) ---------- */

.digital { background: var(--bg-soft); overflow: hidden; }
.digital-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.digital-list { display: grid; gap: 18px; }
.digital-list li { display: flex; gap: 16px; font-size: 14.5px; line-height: 1.6; }
.digital-list li::before {
  content: ""; flex: 0 0 22px; height: 3px; margin-top: 11px;
  background: var(--line);
}
.digital-list b { color: var(--ink); font-weight: 700; display: block; margin-bottom: 2px; }

/* ---------- cabinet (SpectrumCabinet) ---------- */

.cabinet { overflow: hidden; }
.cabinet-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.cabinet-features li {
  background: var(--card);
  border-radius: 16px; padding: 26px 28px;
  font-size: 13.5px; line-height: 1.6;
  transition: box-shadow .3s ease, transform .3s ease;
}
.cabinet-features li:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -22px rgba(50, 98, 172, .4); }
.cabinet-features li:nth-child(2n) { background: linear-gradient(180deg, #FFF8EA, #fff 55%); }
.cabinet-features li:nth-child(2n+1) { background: linear-gradient(180deg, #EEF4FF, #fff 55%); }
.cabinet-features b {
  display: block; color: var(--ink); font-weight: 700; font-size: 15.5px; margin-bottom: 6px;
}
.cabinet-features b::before {
  content: ""; display: block; width: 26px; height: 3px;
  background: var(--line); border-radius: 3px; margin-bottom: 12px;
}
.cabinet-cta {
  margin-top: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(135deg, #27519B, #3E77CC);
  color: #E7EEF9;
  border-radius: var(--radius); padding: 30px 36px;
  box-shadow: 0 28px 64px -24px rgba(50, 98, 172, .55);
  position: relative; overflow: hidden;
}
.cabinet-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(380px 240px at 94% 0%, rgba(251, 168, 0, .3), transparent 60%);
}
.cabinet-cta > * { position: relative; }
.cabinet-cta p { font-size: 14px; line-height: 1.6; }
.cabinet-cta b { color: #fff; font-size: 16px; }
.cabinet-cta .btn { flex: none; }

/* баннер регистрации в контактах */
.register-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: var(--card);
  border-radius: var(--radius); padding: 30px 34px 28px;
  margin-bottom: 26px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.register-banner::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--line);
}
.register-banner h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.register-banner p { font-size: 13.5px; }
.register-banner .btn { flex: none; }

/* ---------- benefits ---------- */

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit {
  background: var(--card); border-radius: 16px; padding: 28px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.benefit:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -22px rgba(50, 98, 172, .4); }
.benefit .num {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  color: #8A5B00; background: rgba(251, 168, 0, .18);
  padding: 4px 12px; border-radius: 999px;
}
.benefit:nth-child(2n) .num { color: var(--blue); background: rgba(50, 98, 172, .12); }
.benefit h3 { font-size: 16.5px; font-weight: 700; margin: 10px 0 8px; }
.benefit p { font-size: 13.5px; line-height: 1.6; }

/* ---------- education (семинары) ---------- */

.education { overflow: hidden; }
.edu-list {
  list-style: none;
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.edu-list li {
  display: grid; grid-template-columns: 190px 1fr; gap: 24px;
  padding: 22px 32px; align-items: baseline;
  border-top: 1px solid rgba(74, 74, 73, .1);
  transition: background .25s ease;
}
.edu-list li:first-child { border-top: none; }
.edu-list li:hover { background: #F4F7FC; }
.edu-date {
  display: inline-block; justify-self: start;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
  color: #8A5B00; background: rgba(251, 168, 0, .16);
  padding: 5px 14px; border-radius: 999px;
}
.edu-list li:nth-child(2n) .edu-date { color: var(--blue); background: rgba(50, 98, 172, .1); }
.edu-list div { font-size: 14px; line-height: 1.6; }
.edu-list b { display: block; color: var(--ink); font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.edu-note { font-size: 13px; margin-top: 20px; }

/* ---------- steps ---------- */

.steps { background: linear-gradient(180deg, #FFF6E3, var(--bg-soft) 70%); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.step {
  padding: 34px 32px 0 0; position: relative; counter-increment: step;
}
.step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 24px; height: 3px;
  background: var(--line);
}
.step .step-num {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 27px; font-weight: 800; color: #fff;
  background: var(--blue); margin-bottom: 18px;
  box-shadow: 0 14px 30px -12px rgba(50, 98, 172, .6);
}
.step:nth-child(2) .step-num {
  background: var(--yellow); color: #3A2E10;
  box-shadow: 0 14px 30px -12px rgba(251, 168, 0, .6);
}
.step:nth-child(3) .step-num {
  background: linear-gradient(135deg, var(--blue), var(--yellow));
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 14px; line-height: 1.65; }

/* ---------- price ---------- */

.price-wrap {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start;
}
.terms-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.terms-table th {
  text-align: left; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); font-weight: 600; padding: 0 0 12px;
}
.terms-table td {
  padding: 13px 0; border-top: 1px solid rgba(74, 74, 73, .14);
}
.terms-table td:last-child { text-align: right; font-weight: 600; color: var(--ink); white-space: nowrap; }
.price-note { font-size: 13px; margin-top: 20px; line-height: 1.6; }
.price-cta {
  background: linear-gradient(135deg, #27519B, #3E77CC);
  color: #D9E4F5;
  border-radius: var(--radius); padding: 36px;
  box-shadow: 0 28px 64px -24px rgba(50, 98, 172, .65);
  position: relative; overflow: hidden;
}
.price-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(360px 260px at 92% 0%, rgba(251, 168, 0, .3), transparent 60%);
}
.price-cta > * { position: relative; }
.price-cta h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: #fff; }
.price-cta p { font-size: 14px; margin-bottom: 24px; }
.free-list { margin-top: 26px; display: grid; gap: 10px; font-size: 13.5px; color: #E7EEF9; }
.free-list li { display: flex; gap: 12px; align-items: baseline; }
.free-list li::before {
  content: ""; flex: 0 0 16px; height: 3px; background: var(--line);
  transform: translateY(-3px);
}

/* ---------- contacts ---------- */

.contacts { padding-bottom: 72px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  background: var(--card); border-radius: 16px; padding: 30px 28px 28px;
  font-size: 14px; line-height: 1.7;
  position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.contact-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--line);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -22px rgba(50, 98, 172, .4); }
.contact-card h4 {
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.contact-card a { font-weight: 600; color: var(--ink); }
.contact-card a:hover { color: var(--blue); }
.contact-card .big { font-size: 19px; font-weight: 700; }

/* ---------- footer ---------- */

.site-footer { padding: 0 0 44px; background: var(--ink); }
.footer-line { height: 3px; background: var(--line); margin-bottom: 40px; }
.footer-top {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding-bottom: 26px; margin-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-logo { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer-tagline { font-size: 13px; color: #B4B6BA; line-height: 1.6; margin-left: auto; text-align: right; }
.footer-legal { display: grid; gap: 7px; }
.footer-legal p { font-size: 12.5px; color: #9A9CA1; line-height: 1.55; }
.footer-legal a { color: #C3CDDC; }
.footer-legal a:hover { color: #fff; }
.footer-copy { margin-top: 24px; font-size: 12px; color: #74767B; }

@media (max-width: 880px) {
  .footer-tagline { margin-left: 0; text-align: left; }
}

/* ---------- design gallery (детские дизайны) ---------- */

.design {
  padding-bottom: 72px;
  background: linear-gradient(115deg, #E8F0FF 0%, #F6F8FB 45%, #FFF3DB 100%);
}
.design .section-lead { max-width: 720px; }
.marquee {
  overflow: hidden; margin-top: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex; gap: 18px; width: max-content;
  padding: 10px 0 26px;
  animation: marquee 55s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.design-card {
  flex: none; width: 250px; border-radius: 18px; overflow: hidden;
  box-shadow: 0 16px 36px -18px rgba(44, 62, 94, .35);
  transition: transform .35s ease;
}
.design-card:hover { transform: translateY(-6px) rotate(-.5deg); }
.design-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
@keyframes marquee { to { transform: translateX(-50%); } }
.design-note { font-size: 13px; margin-top: 4px; }
.design-note a { color: var(--blue); font-weight: 600; }

/* ---------- digital media collage ---------- */

.digital-media .main {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease var(--d, 0s), transform .8s cubic-bezier(.22, .8, .3, 1) var(--d, 0s);
}
.reveal.reveal-left { transform: translateX(-36px); }
.reveal.reveal-right { transform: translateX(36px); }
.reveal.reveal-scale { transform: translateY(14px) scale(.95); }
.reveal.visible { opacity: 1; transform: none; }

/* цифры шагов «выпрыгивают» */
.step .step-num { opacity: 0; }
.step.visible .step-num { animation: pop .7s cubic-bezier(.34, 1.56, .64, 1) calc(var(--d, 0s) + .15s) forwards; }
@keyframes pop {
  0% { opacity: 0; transform: scale(.3) rotate(-6deg); }
  70% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}

/* линия заголовка «дорисовывается» к краю */
.rule-title::after { transform-origin: left center; transition: transform 1.1s cubic-bezier(.22, .8, .3, 1) calc(var(--d, 0s) + .25s); }
.rule-title.reveal:not(.visible)::after { transform: scaleX(0); }

.hero .eyebrow {
  background: linear-gradient(135deg, #FFC64D, var(--yellow));
  color: #3A2E10; padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(251, 168, 0, .6);
}

.contact-grid .contact-card:nth-child(1) { background: linear-gradient(180deg, #EEF4FF, #fff 50%); }
.contact-grid .contact-card:nth-child(2) { background: linear-gradient(180deg, #FFF8EA, #fff 50%); }
.contact-grid .contact-card:nth-child(3) { background: linear-gradient(180deg, #EEF4FF, #fff 50%); }

/* ---------- hero entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-img { animation: heroZoom 2.4s cubic-bezier(.2, .7, .3, 1) both; }
  .hero-content .eyebrow,
  .hero-content h1,
  .hero-content .hero-sub,
  .hero-content .hero-cta { opacity: 0; animation: fadeUp .8s cubic-bezier(.2, .7, .3, 1) forwards; }
  .hero-content .eyebrow { animation-delay: .15s; }
  .hero-content h1 { animation-delay: .3s; }
  .hero-line { transform: scaleX(0); animation: drawLine 1.1s cubic-bezier(.22, .8, .3, 1) .55s forwards; }
  .hero-content .hero-sub { animation-delay: .7s; }
  .hero-content .hero-cta { animation-delay: .85s; }

  .site-header { animation: headerIn .7s ease .2s both; }

  .product-card img, .digital-media .main { transition: transform .6s ease; }
  .product-card:hover img { transform: scale(1.05); }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes drawLine { to { transform: scaleX(1); } }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes headerIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.scrolled {
  background: rgba(246, 248, 251, .95);
  box-shadow: 0 10px 34px -16px rgba(44, 62, 94, .22);
}

section[id] { scroll-margin-top: 84px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rule-title.reveal:not(.visible)::after { transform: none; }
  .rule-title::after { transition: none; }
  .product-card, .btn, .design-card, .benefit, .value-chip, .contact-card { transition: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; overflow-x: auto; }
  .marquee-track { animation: none; }
  .step .step-num { opacity: 1; }
  .step.visible .step-num { animation: none; }
}

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

/* ---------- адаптив ---------- */

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card.wide, .product-card.third { grid-column: span 1; }
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid, .cabinet-features { grid-template-columns: repeat(2, 1fr); }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  section { padding: 68px 0; }
  .main-nav { display: none; }
  .hero-inner { min-height: 0; display: block; }
  /* на мобильных аппарат целиком: кадр прижат к левому краю, где стоит модель */
  .hero-img { position: static; height: 300px; object-position: left center; }
  .hero-content { width: 100%; padding: 44px 0 64px; }
  .hero-line { width: 100vw; margin-left: calc(50% - 50vw); max-width: none; }
  .about-grid, .digital-grid, .price-wrap { grid-template-columns: 1fr; gap: 40px; }
  .cabinet-features { grid-template-columns: 1fr; }
  .design-card { width: 200px; }
  .steps-grid { grid-template-columns: 1fr; gap: 36px; }
  .edu-list li { grid-template-columns: 1fr; gap: 8px; padding: 18px 22px; }
  .step { padding-right: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .rule-title h2 { white-space: normal; }
}

@media (max-width: 560px) {
  .stats .container { grid-template-columns: 1fr 1fr; padding: 28px; gap: 20px; margin-top: -40px; }
  .values, .catalog, .benefit-grid, .product-grid { grid-template-columns: 1fr; }
}
