/* Журнал SQ-MODYL — blog.modyl.info
   Цвета — из брендбука (#0C2630, #E6F2F8) и тёплого света окон на рендерах.
   Шрифты — Montserrat (как на modyl.info) и Inter (как в КП). Жирного нет нигде. */

@font-face {
  font-family: 'Montserrat Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/montserrat-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #08161c;      /* фон тёмных секций: ночь на рендерах */
  --petrol: #0c2630;     /* фирменный тёмный */
  --ink: #12232b;        /* текст */
  --slate: #56666e;      /* второстепенный текст */
  --line: #d9e3e8;       /* тонкие линии */
  --ice: #e6f2f8;        /* фирменный светлый */
  --paper: #f5f8f9;      /* фон страницы */
  --white: #ffffff;
  --glow: #d6c4a4;       /* шампанское: тёплый, но не рыжий (владелец: рыжее удешевляет) */
  --glow-deep: #75603f;  /* тёмная латунь — тот же акцент на светлом фоне, контраст 5,8:1 для мелких подписей */

  --display: 'Montserrat Variable', 'Montserrat', system-ui, sans-serif;
  --text: 'Inter Variable', 'Inter', system-ui, sans-serif;

  --gut: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1); /* easeOutExpo */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 17px/1.7 var(--text);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
b, strong, th, h1, h2, h3, h4, legend, summary { font-weight: inherit; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ice); color: var(--petrol); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font: 400 14px/1 var(--display); letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.btn--glow { background: var(--glow); color: var(--night); }
.btn--glow:hover { background: #f3c793; }
.btn--ink { background: var(--petrol); color: var(--white); }
.btn--ink:hover { background: #163a48; }
.btn--ghost { background: transparent; border-color: var(--line); }
.btn--ghost:hover { border-color: var(--slate); }
.btn--lg { min-height: 58px; padding: 0 36px; font-size: 16px; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 13px; }

/* ---------- Шапка ---------- */
.mast {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px);
  height: 76px; padding: 0 var(--gut);
  color: var(--white);
  transition: background-color .6s var(--ease), color .6s var(--ease), height .6s var(--ease), backdrop-filter .6s;
}
.mast.is-solid {
  height: 64px; color: var(--ink);
  background: rgba(245, 248, 249, 0.82);
  backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 rgba(12, 38, 48, 0.08);
}
.mast__brand { display: flex; align-items: baseline; gap: 14px; text-decoration: none; }
.logo { width: auto; height: 20px; }
.logo--ink { display: none; }
.mast.is-solid .logo--white { display: none; }
.mast.is-solid .logo--ink { display: block; }
.mast__brand { align-items: center; }
.mast__journal { font: 300 13px/1 var(--display); opacity: .72; padding-left: 14px; border-left: 1px solid currentColor; }
.mast__nav { display: flex; gap: clamp(14px, 1.8vw, 28px); margin-left: auto; }
.mast__nav a, .mast__phone { font: 300 14px/1 var(--display); text-decoration: none; opacity: .86; transition: opacity .3s; }
.mast__nav a:hover, .mast__phone:hover { opacity: 1; }
.mast__burger { display: none; }

.drawer {
  position: fixed; inset: 0; z-index: 39; padding: 96px var(--gut) 32px;
  display: flex; flex-direction: column; gap: 28px;
  background: var(--night); color: var(--white);
}
.drawer[hidden] { display: none; }
.drawer nav { display: grid; gap: 4px; }
.drawer nav a { font: 200 30px/1.35 var(--display); text-decoration: none; }
.drawer__phone { font: 300 18px/1 var(--display); text-decoration: none; opacity: .8; }

@media (max-width: 1180px) { .mast__nav { display: none; } .mast__phone { margin-left: auto; } }
@media (max-width: 720px) {
  .mast { height: 64px; }
  .mast__phone, .mast__cta { display: none; }
  .mast__burger {
    display: grid; place-content: center; gap: 7px; margin-left: auto;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  }
  .mast__burger span { display: block; width: 24px; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
  .mast__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .mast__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mast__journal { display: none; }
}

/* ---------- Герой главной ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); background: var(--night); overflow: hidden; isolation: isolate;
}
.hero--short { min-height: 78svh; }
.hero__media, .ahero__media { position: absolute; inset: 0; z-index: -2; }
.hero__img, .ahero__img { width: 100%; height: 100%; object-fit: cover; }
.hero::after, .ahero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,22,28,.55) 0%, rgba(8,22,28,0) 22%),
    linear-gradient(90deg, rgba(8,22,28,.82) 0%, rgba(8,22,28,.5) 34%, rgba(8,22,28,0) 62%),
    linear-gradient(0deg, rgba(8,22,28,.9) 0%, rgba(8,22,28,.35) 30%, rgba(8,22,28,0) 55%);
}
@media (min-width: 900px) {
  .hero__media, .ahero__media { left: 22%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%); mask-image: linear-gradient(90deg, transparent 0, #000 28%); }
  .hero__img, .ahero__img { object-position: 60% 50%; }
}
.hero__in { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) clamp(40px, 8vh, 96px); }
.hero__t {
  margin: 0; max-width: 11ch;
  font: 200 clamp(44px, 7vw, 112px)/0.98 var(--display); letter-spacing: -0.035em;
}
.hero__sub { max-width: 46ch; margin: 28px 0 0; font: 300 clamp(16px, 1.4vw, 19px)/1.6 var(--text); color: rgba(255,255,255,.78); }
.hero__feature {
  display: inline-grid; gap: 6px; margin-top: 40px; padding: 18px 26px 20px 22px;
  border-left: 1px solid var(--glow); text-decoration: none; max-width: 520px;
  background: linear-gradient(90deg, rgba(231,181,124,.12), rgba(231,181,124,0));
  transition: background-color .6s var(--ease);
}
.hero__feature-k { font: 300 13px/1 var(--display); color: var(--glow); }
.hero__feature-t { font: 300 clamp(17px, 1.5vw, 21px)/1.35 var(--display); }
.hero__feature:hover .hero__feature-t { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.hero__cap, .ahero__cap {
  position: absolute; right: var(--gut); bottom: 24px;
  margin: 0; font: 300 12px/1 var(--display); color: rgba(255,255,255,.5);
}

/* Разбивка заголовка на строки для проявления — делает blog.js */
[data-split] .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
[data-split] .line > span { display: block; }

/* ---------- Лента статей ---------- */
.feed, .ledger, .more, .facts { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--gut) 0; }
.feed__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.feed h2, .ledger__t, .more h2, .faq h2 {
  margin: 0; font: 200 clamp(36px, 5vw, 72px)/1 var(--display); letter-spacing: -0.03em; color: var(--petrol);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent;
  font: 300 14px/1 var(--display); cursor: pointer; transition: all .4s var(--ease);
}
.chip:hover { border-color: var(--slate); }
.chip.is-on { background: var(--petrol); border-color: var(--petrol); color: var(--white); }

.feed__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 32px); }
.card { grid-column: span 4; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.card[hidden] { display: none; }
.card--half { grid-column: span 6; }
.card--half .card__media { aspect-ratio: 16 / 10; }
.card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; gap: 0 clamp(24px, 4vw, 64px); align-items: end; }
.card--wide .card__media { grid-row: 1 / span 4; aspect-ratio: 16 / 10; }
.card--wide .card__t { font-size: clamp(28px, 3vw, 44px); line-height: 1.12; }
.card__media { position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; background: var(--petrol); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.4s var(--ease), filter 1.4s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card__meta { display: flex; gap: 18px; margin: 22px 0 10px; font: 300 13px/1 var(--display); color: var(--slate); }
.card__meta span:first-child { color: var(--glow-deep); }
.card__t { font: 300 clamp(20px, 1.7vw, 25px)/1.28 var(--display); letter-spacing: -0.01em; color: var(--petrol); }
.card__d { margin-top: 12px; font: 300 15px/1.6 var(--text); color: var(--slate); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1000px) { .card { grid-column: span 6; } .card--wide { grid-template-columns: 1fr; } .card--wide .card__media { grid-row: auto; } }
@media (max-width: 640px) { .card { grid-column: 1 / -1; } }

/* ---------- Витрина моделей: горизонтальный проезд ---------- */
.show { margin-top: clamp(80px, 10vw, 140px); background: var(--night); color: var(--white); overflow: hidden; }
.show__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vh, 48px); padding: clamp(64px, 9vh, 96px) 0; }
.show__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; padding: 0 var(--gut); max-width: var(--max); margin: 0 auto; width: 100%; }
.show__head h2 { margin: 0; font: 200 clamp(40px, 6vw, 92px)/.98 var(--display); letter-spacing: -0.035em; }
.show__head p { margin: 0; max-width: 36ch; font: 300 15px/1.6 var(--text); color: rgba(255,255,255,.62); }
.show__track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--gut); width: max-content; will-change: transform; }
.slide { flex: none; width: clamp(280px, 38vw, 600px); text-decoration: none; color: inherit; }
.slide__media { position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; background: var(--petrol); }
.slide__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 1.1s var(--ease); }
.slide__media > img:first-child { filter: brightness(.82); }
.slide:hover .slide__media > img:first-child { filter: none; transform: scale(1.04); }
.slide:hover .card__light { opacity: 1; transform: scale(1.04); }
.slide__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 20px; }
.slide__name { font: 200 clamp(26px, 2.6vw, 40px)/1.05 var(--display); letter-spacing: -0.02em; }
.slide__price { font: 300 16px/1.2 var(--display); color: var(--glow); white-space: nowrap; }
.slide__meta { display: flex; gap: 18px; margin-top: 8px; font: 300 14px/1.3 var(--display); color: rgba(255,255,255,.56); }
@media (max-width: 900px), (hover: none) {
  .show__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .show__track::-webkit-scrollbar { display: none; }
  .slide { width: min(78vw, 420px); scroll-snap-align: start; }
  .slide__media > img:first-child { filter: none; }
}

/* ---------- Модели и цены ---------- */
.ledger__t { margin-bottom: 40px; }
.ledger__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger__row a {
  position: relative; display: grid; align-items: center;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 2fr) 120px;
  gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding .6s var(--ease), background-color .6s var(--ease);
}
.ledger__name { font: 200 clamp(24px, 2.6vw, 38px)/1.1 var(--display); letter-spacing: -0.02em; color: var(--petrol); }
.ledger__kind, .ledger__area { font: 300 15px/1.3 var(--display); color: var(--slate); }
.ledger__price { font: 300 17px/1.3 var(--display); color: var(--ink); white-space: nowrap; }
.ledger__thumb { width: 120px; height: 76px; border-radius: var(--r-sm); overflow: hidden; background: var(--petrol); justify-self: end; }
.ledger__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ledger__thumb:empty { visibility: hidden; }
.ledger__row a:hover { padding-left: 16px; padding-right: 16px; background: var(--white); }
.ledger__row a:hover .ledger__thumb img { transform: scale(1.08); }
.ledger__note { margin: 20px 0 0; font: 300 13px/1.5 var(--text); color: var(--slate); }
@media (max-width: 820px) {
  .ledger__row a { grid-template-columns: 1fr 96px; grid-template-rows: auto auto auto; gap: 4px 16px; }
  .ledger__name { grid-column: 1; }
  .ledger__thumb { grid-column: 2; grid-row: 1 / span 3; width: 96px; height: 72px; }
  .ledger__kind, .ledger__area, .ledger__price { grid-column: 1; }
  .ledger__kind { display: none; }
}

/* ---------- Факты ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.facts p { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); font: 300 16px/1.5 var(--text); color: var(--slate); }
.facts span { display: block; margin-bottom: 10px; font: 200 clamp(36px, 4vw, 56px)/1 var(--display); letter-spacing: -0.03em; color: var(--petrol); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Момент: приглашение посчитать ---------- */
.moment {
  position: relative; isolation: isolate; overflow: hidden;
  margin: clamp(80px, 11vw, 160px) var(--gut) 0; border-radius: var(--r-lg);
  min-height: clamp(420px, 62vh, 640px); display: flex; align-items: flex-end;
  background: var(--night); color: var(--white);
}
.moment__bg { position: absolute; inset: -12% 0; z-index: -2; }
.moment__img { width: 100%; height: 100%; object-fit: cover; }
.moment::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,22,28,.88) 0%, rgba(8,22,28,.5) 45%, rgba(8,22,28,.05) 100%); }
.moment__in { padding: clamp(32px, 5vw, 72px); max-width: 640px; }
.moment h2 { margin: 0; font: 200 clamp(36px, 5vw, 68px)/1.02 var(--display); letter-spacing: -0.03em; }
.moment p { margin: 22px 0 32px; font: 300 17px/1.6 var(--text); color: rgba(255,255,255,.78); max-width: 44ch; }

/* ---------- Подвал ---------- */
.foot { margin-top: clamp(80px, 10vw, 140px); background: var(--night); color: rgba(255,255,255,.72); }
.foot__in {
  max-width: var(--max); margin: 0 auto; padding: 72px var(--gut) 48px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px;
}
.foot__logo { display: inline-block; color: var(--white); }
.foot__logo .logo { height: 22px; }
.foot__brand p { max-width: 36ch; margin: 20px 0 0; font: 300 15px/1.6 var(--text); }
.foot h2 { margin: 0 0 18px; font: 300 13px/1 var(--display); color: var(--glow); }
.foot__col { display: flex; flex-direction: column; gap: 10px; }
.foot__col a { font: 300 15px/1.4 var(--display); text-decoration: none; color: rgba(255,255,255,.86); }
.foot__col a:hover { color: var(--white); }
.foot address { margin-top: 10px; font: 300 13px/1.55 var(--text); font-style: normal; color: rgba(255,255,255,.56); }
.foot__legal {
  max-width: var(--max); margin: 0 auto; padding: 22px var(--gut) 32px;
  display: flex; flex-wrap: wrap; gap: 10px 28px; border-top: 1px solid rgba(255,255,255,.1);
  font: 300 12px/1.5 var(--text); color: rgba(255,255,255,.46);
}
.foot__legal a { color: inherit; }
@media (max-width: 900px) { .foot__in { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot__in { grid-template-columns: 1fr; } }

/* ---------- Статья: герой ---------- */
.ahero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88svh, 900px); display: flex; align-items: flex-end;
  background: var(--night); color: var(--white);
}
.ahero__in { width: 100%; max-width: var(--max); margin: 0 auto; padding: 120px var(--gut) clamp(40px, 7vh, 80px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font: 300 13px/1 var(--display); color: rgba(255,255,255,.62); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.ahero__t {
  margin: 0; max-width: 17ch;
  font: 200 clamp(34px, 4.6vw, 72px)/1.04 var(--display); letter-spacing: -0.03em;
}
.ahero__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 32px 0 0; font: 300 14px/1 var(--display); color: rgba(255,255,255,.7); }
.ahero__meta span:first-child { color: var(--glow); }
.ahero__meta span:empty { display: none; }

/* ---------- Статья: чтение ---------- */
.read {
  max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 112px) var(--gut) 0;
  display: grid; grid-template-columns: minmax(200px, 3fr) minmax(0, 7fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 72px);
}
.toc { position: sticky; top: 100px; align-self: start; }
.toc__t { margin: 0 0 16px; font: 300 13px/1 var(--display); color: var(--glow-deep); }
.toc ol { list-style: none; margin: 0 0 28px; padding: 0; border-left: 1px solid var(--line); }
.toc a {
  display: block; padding: 8px 0 8px 18px; margin-left: -1px; border-left: 1px solid transparent;
  font: 300 14px/1.4 var(--display); color: var(--slate); text-decoration: none; transition: color .4s, border-color .4s;
}
.toc a:hover { color: var(--ink); }
.toc a.is-here { color: var(--petrol); border-left-color: var(--glow-deep); }
@media (max-width: 1100px) { .read { grid-template-columns: 1fr; max-width: 820px; } .toc { display: none; } }

.prose { min-width: 0; max-width: 700px; }
.prose p, .prose li { color: #26363d; }
.prose p { margin: 0 0 1.15em; }
.lead p { font: 300 clamp(20px, 1.9vw, 25px)/1.55 var(--display); color: var(--petrol); letter-spacing: -0.005em; }
.lead p + p { font: 300 17px/1.7 var(--text); color: #26363d; }
.chapter { padding-top: 24px; }
.prose h2 {
  margin: clamp(48px, 6vw, 80px) 0 24px;
  font: 200 clamp(30px, 3.4vw, 46px)/1.1 var(--display); letter-spacing: -0.025em; color: var(--petrol);
}
.prose h3 { margin: 36px 0 12px; font: 300 22px/1.3 var(--display); color: var(--petrol); }
.prose a { color: var(--petrol); text-decoration: underline; text-decoration-color: var(--glow-deep); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .3s; }
.prose a:hover { text-decoration-color: var(--petrol); }
.prose ul { list-style: none; margin: 0 0 1.4em; padding: 0; }
.prose ul li { position: relative; padding-left: 28px; margin-bottom: .6em; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .85em; width: 14px; height: 1px; background: var(--glow-deep); }
.steps { list-style: none; counter-reset: s; margin: 8px 0 1.6em; padding: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 200 26px/1.1 var(--display); color: var(--glow-deep); }
.prose blockquote { margin: 32px 0; padding: 4px 0 4px 28px; border-left: 1px solid var(--glow-deep); font: 300 22px/1.5 var(--display); color: var(--petrol); }

.table { margin: 28px 0 36px; overflow-x: auto; border-radius: var(--r-md); background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.table table { width: 100%; border-collapse: collapse; font: 300 15px/1.45 var(--text); }
.table th { text-align: left; padding: 16px 20px; font: 300 13px/1.3 var(--display); color: var(--slate); background: var(--ice); }
.table td { padding: 14px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.table tr:hover td { background: #fbfdfe; }
@media (max-width: 640px) {
  .table { background: none; box-shadow: none; }
  .table thead { display: none; }
  .table tr { display: block; margin-bottom: 12px; padding: 6px 0; background: var(--white); border-radius: var(--r-sm); box-shadow: 0 0 0 1px var(--line); }
  .table td { display: grid; grid-template-columns: 40% 1fr; gap: 12px; border: 0; padding: 8px 16px; }
  .table td::before { content: attr(data-label); color: var(--slate); font: 300 13px/1.4 var(--display); }
}

.frame { margin: clamp(40px, 6vw, 72px) 0; }
.frame__clip { overflow: hidden; border-radius: var(--r-lg); background: var(--petrol); aspect-ratio: 3 / 2; }
.frame__clip img { width: 100%; height: 118%; object-fit: cover; }
.frame figcaption { margin-top: 14px; font: 300 13px/1.5 var(--display); color: var(--slate); }
@media (min-width: 1101px) { .frame { margin-right: calc(-1 * clamp(80px, 12vw, 220px)); } }

.nudge { margin: 56px 0; padding: 32px 36px; border-radius: var(--r-lg); background: var(--ice); }
.nudge p { margin: 0 0 20px; color: var(--slate); }
.nudge .nudge__t { margin-bottom: 8px; font: 300 24px/1.3 var(--display); color: var(--petrol); }

.faq { margin-top: 24px; }
.faq h2 { margin-bottom: 28px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer; padding: 24px 56px 24px 0;
  font: 300 clamp(18px, 1.6vw, 21px)/1.4 var(--display); color: var(--petrol);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 18px; height: 1px; background: var(--petrol);
  transition: transform .6s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0); }
.faq__a { overflow: hidden; }
.faq__a p { margin: 0 0 24px; color: var(--slate); }
.checked { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font: 300 14px/1.6 var(--text); color: var(--slate); }

.more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.more__grid .card { grid-column: auto; }
.more__links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 0; padding: 0; }
.more__links a { display: inline-block; padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; font: 300 14px/1 var(--display); text-decoration: none; transition: border-color .4s; }
.more__links a:hover { border-color: var(--petrol); }
.more__grid--2 { grid-template-columns: 1fr 1fr; }
.more__grid--2 .card__media { aspect-ratio: 16 / 10; }
.more__grid--1 { grid-template-columns: 1fr; max-width: 820px; }
@media (max-width: 1000px) { .more__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .more__grid { grid-template-columns: 1fr; } }

/* ---------- Полоса прочитанного ---------- */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--glow); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Расчёт за 1 минуту ---------- */
.quiz { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.quiz[hidden] { display: none; }
.quiz__veil { position: absolute; inset: 0; background: rgba(8,22,28,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .5s var(--ease); }
.quiz__card {
  position: relative; width: min(560px, 100%); max-height: calc(100svh - 32px); overflow: auto;
  padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: var(--paper);
  animation: rise .8s var(--ease);
}
.quiz__x { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.quiz__x::before, .quiz__x::after { content: ''; position: absolute; left: 11px; top: 19px; width: 18px; height: 1px; background: var(--ink); transform: rotate(45deg); }
.quiz__x::after { transform: rotate(-45deg); }
.quiz__step { margin: 0 0 10px; font: 300 13px/1 var(--display); color: var(--glow-deep); }
.quiz__title { margin: 0 0 24px; font: 200 34px/1.1 var(--display); letter-spacing: -0.02em; color: var(--petrol); }
.quiz__pane { display: none; margin: 0; padding: 0; border: 0; }
.quiz__pane.is-on { display: block; animation: fade .6s var(--ease); }
.quiz__pane legend { margin-bottom: 16px; padding: 0; font: 300 19px/1.35 var(--display); color: var(--ink); }
.opts { display: grid; gap: 8px; }
.opts--row { grid-template-columns: repeat(3, 1fr); margin: 16px 0; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: block; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); font: 300 15px/1.3 var(--display); text-align: left; transition: all .35s var(--ease);
}
.opts--row .opt span { text-align: center; }
.opt:hover span { border-color: var(--slate); }
.opt input:checked + span { border-color: var(--petrol); background: var(--petrol); color: var(--white); }
.opt input:focus-visible + span { outline: 2px solid var(--glow); outline-offset: 2px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field span { font: 300 13px/1 var(--display); color: var(--slate); }
.field input {
  height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white);
  font: 300 17px/1 var(--text); color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--petrol); }
.consent { display: flex; gap: 12px; align-items: flex-start; font: 300 13px/1.5 var(--text); color: var(--slate); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--petrol); flex: none; }
.quiz__hint { margin: 18px 0 0; padding: 14px 18px; border-radius: var(--r-sm); background: var(--ice); font: 300 15px/1.5 var(--display); color: var(--petrol); }
.quiz__hint:empty { display: none; }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.quiz__nav [hidden] { display: none; }
.quiz__nav .btn:last-child, .quiz__nav [data-quiz-next] { margin-left: auto; }
.quiz__error { margin: 14px 0 0; font: 300 14px/1.4 var(--text); color: #a4442c; }
.quiz__error:empty { display: none; }
.quiz__done h2 { margin: 0 0 12px; font: 200 32px/1.1 var(--display); color: var(--petrol); }
.quiz__done p { margin: 0 0 24px; color: var(--slate); }
/* ---------- Живые слои ---------- */
.fx { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero .fx, .ahero .fx { mix-blend-mode: screen; }
.moment .fx { opacity: .8; }
video.hero__img, video.ahero__img, video.moment__img { width: 100%; height: 100%; object-fit: cover; }
.is-breathing { animation: breathe 26s ease-in-out infinite alternate; transform-origin: 62% 55%; }
/* Свет в окнах: включается при открытии и живёт, как от огня в печи */
.live { position: relative; display: block; }
.live img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live__light { mix-blend-mode: screen; opacity: 0; filter: saturate(1.15);
  animation: lights-on 2.8s cubic-bezier(.16,1,.3,1) .9s forwards, ember 6.5s ease-in-out 3.7s infinite alternate; }
@keyframes lights-on { 0% { opacity: 0; } 35% { opacity: .55; } 42% { opacity: .3; } 100% { opacity: .95; } }
@keyframes ember { 0% { opacity: .95; } 30% { opacity: .78; } 55% { opacity: 1; } 80% { opacity: .84; } 100% { opacity: .97; } }

/* На карточке свет загорается при наведении */
.card__light { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen;
  opacity: 0; transform: scale(1.001); transition: opacity 1.1s var(--ease), transform 1.4s var(--ease); pointer-events: none; }
.card .card__media > img:first-child { filter: brightness(.86) saturate(.95); transition: transform 1.4s var(--ease), filter 1.1s var(--ease); }
.card:hover .card__media > img:first-child { filter: none; }
.card:hover .card__light { opacity: 1; transform: scale(1.045); }
@media (hover: none) { .card .card__media > img:first-child { filter: none; } }

/* То, что рисует браузер, тоже в фирменных цветах */
html { scrollbar-color: #9fb0b8 var(--paper); }
input, textarea { caret-color: var(--glow-deep); }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.07); } }

.cursor { position: fixed; left: 0; top: 0; z-index: 70; width: 0; height: 0; pointer-events: none; }
.cursor span {
  position: absolute; left: -48px; top: -48px; width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(231,181,124,.92); color: var(--night);
  font: 400 13px/1 var(--display); letter-spacing: .02em;
  transform: scale(0); opacity: 0;
  transition: transform .6s var(--ease), opacity .4s var(--ease);
}
.cursor.is-on span { transform: scale(1); opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }

/* ---------- Появление ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .live__light { opacity: .95; animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================================
   Отделка (Impeccable + Taste + Emil Kowalski, 05.10.2026)
   ========================================================================= */

/* Шапка-остров: капсула над страницей, а не полоса во всю ширину */
.mast {
  inset: 14px 0 auto 0; margin: 0 auto;
  width: min(1280px, calc(100% - 2 * clamp(10px, 2vw, 28px)));
  height: 64px; padding: 0 8px 0 28px; border-radius: 999px;
  background: rgba(8, 22, 28, 0.26);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.mast.is-solid {
  height: 60px;
  background: rgba(245, 248, 249, 0.8);
  box-shadow: inset 0 0 0 1px rgba(12, 38, 48, 0.08), 0 14px 34px -16px rgba(12, 38, 48, 0.28);
}
@media (max-width: 720px) {
  .mast, .mast.is-solid { inset: 10px 0 auto 0; height: 56px; padding: 0 6px 0 20px; }
}

/* Кадры в оправе: тонкий лоток вокруг стекла */
.card__media, .frame__clip {
  box-shadow: 0 0 0 6px rgba(12, 38, 48, 0.035), 0 0 0 7px rgba(12, 38, 48, 0.08);
}
.slide__media {
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.035), 0 0 0 7px rgba(255, 255, 255, 0.1);
}
.feed__grid, .more__grid { padding: 8px; margin: -8px; }

/* Кнопка расчёта: стрелка в своём круге, нажатие ощущается */
.btn { transform: translate(var(--mx, 0), var(--my, 0)); }
.btn:active { transform: translate(var(--mx, 0), var(--my, 0)) scale(0.98); transition-duration: .15s; }
.btn--ic { padding-right: 7px; gap: 14px; }
.btn--lg.btn--ic { padding-right: 9px; }
.btn__ic {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(8, 22, 28, 0.1);
  transition: transform .6s var(--ease), background-color .6s var(--ease);
}
.btn--lg .btn__ic { width: 40px; height: 40px; }
.btn--ink .btn__ic { background: rgba(255, 255, 255, 0.12); }
.btn:hover .btn__ic { transform: translate(2px, -2px) scale(1.06); }

/* Зерно, как у фотопечати: почти не видно, но картинка перестаёт быть «цифровой» */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Мобильное меню: пункты выезжают по очереди */
.drawer nav a, .drawer__phone, .drawer .btn { opacity: 0; transform: translateY(22px); }
.drawer.is-open nav a, .drawer.is-open .drawer__phone, .drawer.is-open .btn {
  opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.drawer.is-open nav a:nth-child(2) { transition-delay: .04s; }
.drawer.is-open nav a:nth-child(3) { transition-delay: .08s; }
.drawer.is-open nav a:nth-child(4) { transition-delay: .12s; }
.drawer.is-open nav a:nth-child(5) { transition-delay: .16s; }
.drawer.is-open nav a:nth-child(6) { transition-delay: .2s; }
.drawer.is-open nav a:nth-child(7) { transition-delay: .24s; }
.drawer.is-open nav a:nth-child(8) { transition-delay: .28s; }
.drawer.is-open .drawer__phone { transition-delay: .32s; }
.drawer.is-open .btn { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .drawer nav a, .drawer__phone, .drawer .btn { opacity: 1; transform: none; }
}

/* Кнопки без рыжего (владелец 05.10: «рыжие кнопки удешевляют»).
   На тёмном — светлая, почти белая; на светлом — фирменный тёмный, как на modyl.info */
.btn--glow { background: rgba(245, 248, 249, 0.94); color: var(--petrol); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.btn--glow:hover { background: #ffffff; }
.btn--glow .btn__ic { background: rgba(12, 38, 48, 0.08); }
.mast.is-solid .btn--glow, .quiz .btn--glow, .page-article .read .btn--glow {
  background: var(--petrol); color: var(--white); box-shadow: none;
}
.mast.is-solid .btn--glow:hover, .quiz .btn--glow:hover { background: #163a48; }
.mast.is-solid .btn--glow .btn__ic, .quiz .btn--glow .btn__ic { background: rgba(255, 255, 255, 0.12); }

/* Круг «Читать» — светлое стекло, а не цветное пятно */
.cursor span {
  background: rgba(245, 248, 249, 0.82); color: var(--petrol);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -12px rgba(8, 22, 28, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
