/* Анна. Мягкая сила — тёмная версия референса Myriam Muzquiz: дидона Noto Serif Display, красный курсив, чёрно-белые фото. */

@font-face { font-family: "Serif Display"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/nsd-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Serif Display"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/nsd-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: "Serif Display"; font-style: italic; font-weight: 300 700; font-display: swap; src: url(fonts/nsd-italic-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Serif Display"; font-style: italic; font-weight: 300 700; font-display: swap; src: url(fonts/nsd-italic-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: "Golos"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/golos-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/golos-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: "Golos"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/golos-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --ground: #121011;     /* почти чёрный, тёплый */
  --panel: #1B1718;      /* панель как серый блок референса, только тёмный */
  --panel-2: #262021;
  --panel-3: #342c2d;
  --ink: #F2ECE6;
  --ink-soft: #ADA49E;
  --ink-86: rgb(255 255 255 / .86);
  --line-soft: rgb(242 236 230 / .1);
  --scrim: rgb(8 6 7 / .84);
  --red: #C8202A;        /* кнопки и заливки, красный логотипа АЭ чуть глубже */
  --red-hi: #DD2A33;
  --red-text: #EE4A51;   /* курсивные акценты на тёмном */
  --wine: #3F0A0E;       /* подвал, как бордовый блок референса */
  --wine-2: #2C070A;
  --white: #FFFFFF;
  --line: rgb(242 236 230 / .12);
  --bar-bg: #121011;

  --serif: "Serif Display", "Golos", "Times New Roman", serif;
  --sans: "Golos", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-s: 0.875rem;
  --t-b: 1.0625rem;
  --t-l: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem);
  --t-h: clamp(2.125rem, 1.5rem + 2.2vw, 3.5rem);
  --t-d: clamp(2.75rem, 1.3rem + 4.2vw, 5.25rem);

  --max: 1200px;
  --pad: clamp(20px, 3vw, 40px);
  --gap: clamp(96px, 10vw, 160px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-color: var(--panel-2) var(--ground); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--t-b)/1.6 var(--sans); font-variant-numeric: lining-nums; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: from-font; text-underline-offset: 0.22em; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-style: italic; color: var(--red-text); }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 60; background: var(--ink); color: var(--ground); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
h1, h2, h3, p, li, blockquote, figcaption, summary { overflow-wrap: break-word; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* Типографика разделов: по центру, прямой шрифт + красный курсив, как «Strategic Evolution» */
.title { font: 400 var(--t-h)/1.1 var(--serif); letter-spacing: -0.015em; text-align: center; text-wrap: balance; }
.title em { font-weight: 400; }
.lead { margin: 20px auto 0; max-width: 40rem; text-align: center; color: var(--ink-soft); text-wrap: pretty; }
.lead--center a { color: var(--ink); text-decoration-color: var(--red); }

/* Кнопки: прямоугольник с заливкой, как в референсе */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  background: var(--red); color: var(--white); text-decoration: none; font-weight: 500; font-size: 1rem; border: 0;
  transition: background-color .2s ease, transform .16s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.btn--wide { width: 100%; }
.btn--ghost { background: var(--panel-2); color: var(--ink); }
.link { background: none; border: 0; padding: 6px 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 0.3em; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--red-hi); }
  .btn--ghost:hover { background: var(--panel-3); }
  .link:hover { color: var(--red-text); }
}

/* Шапка: ссылки слева, имя по центру, кнопка справа */
.bar { position: sticky; top: 0; z-index: 40; background: var(--bar-bg); }
.bar__in { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 12px var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.bar__nav { display: flex; gap: 22px; font-size: 0.9375rem; }
.bar__nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink-soft); transition: color .2s ease; }
.bar__nav a:hover { color: var(--ink); }
.bar__logo { display: grid; text-decoration: none; font: 400 1.75rem/0.9 var(--serif); letter-spacing: -0.01em; text-align: left; }
.bar__logo span:last-child { padding-left: 0.9em; }
.bar__logo span { white-space: nowrap; }
picture { display: contents; }
.bar__side { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.bar__menu { display: none; }

/* Hero: фото справа во всю высоту, текст слева */
.hero { position: relative; min-height: min(calc(100svh - 68px), 880px); display: grid; align-items: center; overflow: hidden; background: var(--ground); }
.hero__photo { position: absolute; top: 0; bottom: 0; right: 0; height: 100%; aspect-ratio: 1624 / 2354; max-width: 58%; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__photo { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); } /* taste-skill-ignore: маска растворяет край фото в фоне */
.hero__photo::after { content: none; }
.hero__wrap { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 72px; }
.hero__text { max-width: 40rem; }
.hero__who { font: 400 1.0625rem/1.5 var(--sans); color: var(--ink); max-width: 30ch; }
.hero__title { margin-top: 18px; font: 400 var(--t-d)/1.02 var(--serif); letter-spacing: -0.02em; }
.hero__title span, .hero__title em { display: block; }
.hero__title em { font-style: italic; }
.hero__act { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero__note { font-size: var(--t-s); line-height: 1.5; color: var(--ink-soft); }

/* Пять профессий: фото слева, список справа, открытый пункт — красный блок */
.five { padding: var(--gap) 0 0; }
.five__grid { margin: 56px auto 0; max-width: 62rem; }
.five__photo { overflow: hidden; background: var(--panel); min-height: 520px; }
.five__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.five__list { display: flex; flex-direction: column; }
.five__list li { background: transparent; transition: background-color .35s var(--ease-out); }
.five__list li + li { box-shadow: 0 -1px 0 var(--line); } /* taste-skill-ignore: разделитель строк, как в референсе */
.five__list li.is-open, .five__list li.is-open + li { box-shadow: none; } /* taste-skill-ignore: разделитель строк, как в референсе */
.five__list button { display: flex; align-items: baseline; gap: 18px; width: 100%; padding: 24px 28px 0; background: none; border: 0; text-align: left; }
.five__list li:not(.is-open) button { padding-bottom: 24px; }
.five__list i { font: 400 1.75rem/1 var(--serif); font-style: normal; font-variant-numeric: lining-nums; color: var(--ink-soft); min-width: 2ch; }
.five__list b { font: 400 clamp(1.5rem, 1.2rem + 0.9vw, 2.125rem)/1.15 var(--serif); flex: 1; }
.five__list button::after { content: ""; flex: none; align-self: center; width: 18px; height: 18px; background: linear-gradient(currentColor 0 0) center / 18px 1.6px no-repeat, linear-gradient(currentColor 0 0) center / 1.6px 18px no-repeat; color: var(--red-text); transition: transform .3s var(--ease-out); } /* taste-skill-ignore: знак «+», нарисован линиями */
.five__list li.is-open button::after { transform: rotate(45deg); color: var(--white); }
.five__list p { display: none; padding: 10px 28px 28px calc(28px + 2ch + 18px); max-width: 40rem; }
.five__list li.is-open { background: var(--red); }
.five__list li.is-open i { color: var(--white); }
.five__list li.is-open p { display: block; }
@media (hover: hover) and (pointer: fine) { .five__list li:not(.is-open) button:hover b { color: var(--red-text); } }
.five__more { margin-top: 48px; text-align: center; font: 400 var(--t-l)/1.35 var(--serif); }

/* Обо мне: тёмная панель с крупной фразой + фото, как «Quantitative Certainty» */
.about { margin-top: var(--gap); display: grid; grid-template-columns: 1fr 1fr; min-height: 720px; }
.about__panel { background: var(--panel); display: flex; justify-content: flex-end; }
.about__text { width: 100%; max-width: calc(var(--max) / 2 + var(--pad)); padding: clamp(64px, 8vw, 120px) clamp(32px, 5vw, 72px) clamp(64px, 8vw, 120px) var(--pad); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.about__title { font: 400 clamp(2.25rem, 1.4rem + 2.6vw, 4rem)/1.05 var(--serif); letter-spacing: -0.02em; margin-bottom: 14px; text-wrap: balance; }
.about__text > p { max-width: 34rem; }
.about__sign { margin-top: 18px; display: flex; align-items: center; gap: 18px; }
.about__sign img { width: 92px; }
.about__sign p { font-size: var(--t-s); color: var(--ink-soft); line-height: 1.45; }
.about__sign b { display: block; font: italic 400 1.375rem/1.2 var(--serif); color: var(--ink); margin-bottom: 2px; }
.about__photo { position: relative; overflow: hidden; background: var(--panel-2); }
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

/* Запросы: живой выбор */
.requests { padding-top: var(--gap); }
.requests__grid { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips button {
  border: 0; background: var(--panel); color: var(--ink); padding: 16px 18px; min-height: 56px; text-align: left; line-height: 1.35;
  transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.chips button:active { transform: scale(0.98); }
.chips button[aria-pressed="true"] { background: var(--red); color: var(--white); }
@media (hover: hover) and (pointer: fine) { .chips button[aria-pressed="false"]:hover { background: var(--panel-2); } }
.answer { position: sticky; top: 100px; background: var(--panel); padding: clamp(28px, 3vw, 44px); }
.answer__name { font: italic 400 var(--t-l)/1.2 var(--serif); color: var(--red-text); }
.answer__text { margin-top: 16px; font: 400 1.125rem/1.6 var(--sans); min-height: 8em; transition: opacity .22s ease, filter .22s ease; }
.answer.is-swap .answer__text, .answer.is-swap .answer__name { opacity: 0; filter: blur(3px); }
.answer__name { transition: opacity .22s ease, filter .22s ease; }
.answer .btn { margin-top: 28px; }
.answer__msg { margin-top: 14px; font-size: var(--t-s); color: var(--ink-soft); line-height: 1.5; }

/* Как проходит час: четыре шага с красными кружками, как «Areas of Expertise» */
.how { padding-top: var(--gap); }
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { background: var(--panel); padding: 28px 26px 26px; display: flex; flex-direction: column; min-height: 300px; }
.steps i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: var(--white); font: 400 1.375rem/1 var(--serif); font-style: normal; font-variant-numeric: lining-nums; }
.steps h3 { margin-top: 28px; font: 400 1.5rem/1.2 var(--serif); }
.steps p { margin-top: 10px; color: var(--ink-soft); font-size: 0.9875rem; line-height: 1.55; }
.steps span { margin-top: auto; padding-top: 20px; font: italic 400 1.125rem/1.2 var(--serif); color: var(--red-text); }
.gain { margin-top: 20px; background: var(--red); color: var(--white); padding: clamp(32px, 4vw, 52px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 32px; align-items: center; }
.gain__title { font: 400 clamp(1.75rem, 1.3rem + 1.3vw, 2.5rem)/1.1 var(--serif); }
.gain__title em { color: var(--white); }
.gain__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.gain__list li { font-size: 0.9875rem; line-height: 1.45; color: var(--ink-86); }
.gain__list b { display: block; font: 400 1.375rem/1.2 var(--serif); color: var(--white); margin-bottom: 4px; }

/* Образование: путь по годам, документы спрятаны во вкладку */
.edu { margin-top: var(--gap); padding: var(--gap) 0; background: var(--panel); }
.edu__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.edu__head { position: sticky; top: 120px; }
.edu__title { font: 400 clamp(2.25rem, 1.5rem + 2.4vw, 3.75rem)/1.05 var(--serif); letter-spacing: -0.015em; }
.edu__title em { display: block; }
.edu__sub { margin-top: 22px; max-width: 30rem; color: var(--ink-soft); text-wrap: pretty; }
.tabs { margin-top: 36px; display: inline-flex; background: var(--ground); padding: 4px; gap: 4px; }
.tabs button { border: 0; background: none; color: var(--ink-soft); min-height: 48px; padding: 0 20px; font-size: 0.9375rem; transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out); }
.tabs button span { margin-left: 6px; font-variant-numeric: tabular-nums; }
.tabs button[aria-selected="true"] { background: var(--red); color: var(--white); }
.tabs button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .tabs button[aria-selected="false"]:hover { color: var(--ink); } }
.panel[hidden] { display: none; }
.panel:not([hidden]) { animation: panelIn .4s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }

.path li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 28px; padding: 26px 0; box-shadow: 0 -1px 0 var(--line-soft); } /* taste-skill-ignore: разделители лет, как в референсе */
.path li:first-child { box-shadow: none; padding-top: 0; } /* taste-skill-ignore: без разделителя у первой строки */
.path b { font: 400 clamp(2rem, 1.6rem + 1.2vw, 2.75rem)/1 var(--serif); color: var(--ink-soft); font-variant-numeric: lining-nums; letter-spacing: -0.01em; }
.path li:first-child b, .path li:last-child b { color: var(--red-text); }
.path h3 { font: 400 1.375rem/1.25 var(--serif); }
.path p { hyphens: auto; -webkit-hyphens: auto; margin-top: 6px; color: var(--ink-soft); font-size: 0.9875rem; line-height: 1.6; max-width: 34rem; }

.docs__note { color: var(--ink-soft); font-size: 0.9375rem; margin-bottom: 20px; }
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.docs button {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "y arrow" "t arrow"; align-items: center; column-gap: 16px;
  width: 100%; min-height: 84px; padding: 16px 20px; border: 0; background: var(--ground); text-align: left; line-height: 1.35;
  transition: background-color .2s ease, transform .16s var(--ease-out);
}
.docs button::after { grid-area: arrow; content: ""; width: 10px; height: 10px; border-top: 1.5px solid var(--red-text); border-right: 1.5px solid var(--red-text); transform: rotate(45deg); transition: transform .2s var(--ease-out); }
.docs b { grid-area: y; font: 400 0.875rem/1.4 var(--sans); color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.docs button:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .docs button:hover { background: var(--panel-2); }
  .docs button:hover::after { transform: translateX(3px) rotate(45deg); }
}

/* Отзывы */
.reviews { padding-top: var(--gap); }
.quote-big { margin: 48px auto 0; max-width: 52rem; text-align: center; }
.quote-big blockquote p { font: italic 400 clamp(1.75rem, 1.2rem + 1.8vw, 3rem)/1.2 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.quote-big figcaption { margin-top: 18px; color: var(--ink-soft); font-size: var(--t-s); }
.quote-big__full { margin-top: 12px; }
.quote-big__full p { margin: 16px auto 0; max-width: 44rem; text-align: left; color: var(--ink); }
details summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 0.3em; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] > summary { color: var(--ink-soft); }
.quotes { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quotes--two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.quote { background: var(--panel); padding: 32px 30px; display: flex; flex-direction: column; gap: 20px; }
.quote blockquote p { font-size: 1rem; line-height: 1.6; }
.quote figcaption { margin-top: auto; font: italic 400 1.0625rem/1.3 var(--serif); color: var(--red-text); }
.more { margin-top: 28px; text-align: center; }
.more .quotes { text-align: left; }

/* Контакт: заголовок + панель + фото, как «Connect for a Strategy Session» */
.contact { padding: var(--gap) 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.contact__text { position: relative; z-index: 2; margin-right: -64px; }
.contact__title { font: 400 var(--t-d)/1.02 var(--serif); font-size: clamp(2.125rem, 1.2rem + 3.6vw, 4.5rem); letter-spacing: -0.02em; }
.contact__title em { display: block; }
.contact__panel { margin-top: 32px; background: var(--panel); padding: clamp(28px, 3vw, 40px); max-width: 34rem; }
.price { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-bottom: 22px; box-shadow: 0 1px 0 var(--line); } /* taste-skill-ignore: разделитель строк, как в референсе */
.price__name { font: 400 1.375rem/1.25 var(--serif); }
.price__name span { display: block; margin-top: 4px; font: 400 var(--t-s)/1.4 var(--sans); color: var(--ink-soft); }
.price__sum { font: 400 clamp(1.75rem, 1.4rem + 1vw, 2.25rem)/1 var(--serif); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.contact__say { margin: 22px 0 24px; }
.contact__note { margin-top: 14px; font-size: var(--t-s); color: var(--ink-soft); }
.contact__safe { margin-top: 22px; display: grid; gap: 8px; font-size: 0.9375rem; line-height: 1.5; }
.contact__safe li { display: flex; gap: 12px; align-items: baseline; }
.contact__safe li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--red-text); transform: translateY(-2px); }
.contact__photo { overflow: hidden; aspect-ratio: 4 / 5; background: var(--panel); }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

/* Подвал: бордовый блок, как в референсе */
.foot { background: var(--wine); }
.foot__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.foot__logo { width: 150px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; }
.foot__nav a, .foot__wa { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot__nav a:hover, .foot__wa:hover { text-decoration: underline; }
.foot__wa { justify-self: end; text-align: right; line-height: 1.45; display: block; padding: 6px 0; }
.foot__bottom { background: var(--wine-2); }
.foot__bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-top: 18px; padding-bottom: 18px; font-size: var(--t-s); color: rgb(242 236 230 / .74); }
.foot__bottom-in p { text-wrap: balance; }
.foot__bottom-in p:last-child { max-width: 46ch; text-align: right; }

/* Просмотр документов */
html.is-locked { overflow: hidden; }
.viewer { width: min(1100px, 100vw); max-width: 100vw; height: min(92svh, 920px); max-height: 100svh; padding: 0; border: 0; background: var(--panel); color: var(--ink); overflow: hidden; }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: vIn .3s var(--ease-out); }
.viewer::backdrop { background: var(--scrim); }
@keyframes vIn { from { opacity: 0; transform: scale(.97); } }
.viewer__top { display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 24px; background: var(--panel-2); }
.viewer__cap { flex: 1; font-size: 0.9375rem; line-height: 1.4; }
.viewer__count { font-size: var(--t-s); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.viewer__close, .viewer__nav { border: 0; background: var(--ground); color: var(--ink); width: 48px; height: 48px; display: grid; place-items: center; transition: background-color .2s ease, transform .16s var(--ease-out); }
.viewer__close:hover, .viewer__nav:hover { background: var(--red); }
.viewer__close:active, .viewer__nav:active { transform: scale(.94); }
.viewer svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.viewer__stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 20px 80px; min-height: 0; }
.viewer__img, .viewer__err { grid-area: 1 / 1; }
.viewer__img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .25s ease; }
.viewer__img.is-loading { opacity: .3; }
.viewer__nav { position: absolute; top: 50%; margin-top: -24px; }
.viewer__nav--prev { left: 16px; }
.viewer__nav--next { right: 16px; }
.viewer__err { display: none; max-width: 28ch; text-align: center; font: italic 400 var(--t-l)/1.4 var(--serif); }
.viewer.is-broken .viewer__err { display: block; }
.viewer.is-broken .viewer__img { display: none; }
.viewer.is-closing { animation: vOut .2s ease forwards; }
@keyframes vOut { to { opacity: 0; transform: scale(.97); } }

/* Движение */
.js [data-rv] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s); }
.js [data-rv].is-in { opacity: 1; transform: none; }
.js [data-rv="photo"] { opacity: 1; transform: none; }
.js [data-rv="photo"] img { clip-path: inset(100% 0 0 0); transform: scale(1.06); transition: clip-path .8s var(--ease-io), transform 1.1s var(--ease-out); }
.js [data-rv="photo"].is-in img { clip-path: inset(0 0 0 0); transform: none; }
.js .hero__photo img { animation: heroImg 1.6s var(--ease-out) both; }
@keyframes heroImg { from { transform: scale(1.04); } }
.js .hero__who { animation: up .8s var(--ease-out) .15s both; }
.js .hero__title > * { animation: up .9s var(--ease-out) both; }
.js .hero__title > :nth-child(1) { animation-delay: .25s; }
.js .hero__title > :nth-child(2) { animation-delay: .33s; }
.js .hero__title > :nth-child(3) { animation-delay: .41s; }
.js .hero__title > :nth-child(4) { animation-delay: .49s; }
.js .hero__act { animation: up .8s var(--ease-out) .62s both; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } }
.five__list li.is-open p { animation: pIn .45s var(--ease-out); }
@keyframes pIn { from { opacity: 0; transform: translateY(-6px); } }
@supports (animation-timeline: view()) {
  .about__photo img { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  @keyframes drift { from { transform: scale(1.12) translateY(-3%); } to { transform: scale(1.12) translateY(3%); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rv] { transform: none; transition: opacity .4s ease; }
  .js [data-rv="photo"] img { clip-path: none; transform: none; transition: none; }
  .js .hero__photo img, .js .hero__who, .js .hero__title > *, .js .hero__act { animation: fade .4s ease both; }
  .about__photo img { animation: none !important; }
  .five__list li.is-open p, .viewer[open], .viewer.is-closing { animation: none; }
  .answer__text, .answer__name { filter: none !important; }
}
@keyframes fade { from { opacity: 0; } }

/* Планшет */
@media (max-width: 68.75em) {
  .bar__in { grid-template-columns: auto 1fr; padding-top: 10px; padding-bottom: 10px; }
  .bar__logo { grid-column: 1; grid-row: 1; }
  .bar__side { grid-column: 2; grid-row: 1; }
  .bar__menu { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 0; background: var(--panel-2); color: var(--ink); }
  .bar__nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--panel); padding: 8px 0 12px; }
  .bar__nav a { display: flex; color: var(--ink); padding: 0 var(--pad); min-height: 52px; font-size: 1.125rem; }
  .bar.is-open .bar__nav { display: flex; animation: menuIn .22s var(--ease-out); }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gain { grid-template-columns: 1fr; }
  .gain__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Телефон */
@media (max-width: 820px) {
  .bar__logo { font-size: 1.1875rem; padding-top: 2px; }

  .hero { min-height: 0; display: block; }
  .hero__photo { position: relative; inset: auto; height: 54svh; width: 100%; max-width: none; aspect-ratio: auto; -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 34%); mask-image: linear-gradient(0deg, transparent 0%, #000 34%); } /* taste-skill-ignore: маска под текстом */
  .hero__wrap { margin-top: -72px; padding-top: 0; padding-bottom: 48px; }
  .hero__who { text-shadow: 0 0 18px var(--ground), 0 1px 3px var(--ground); }
  .hero__title { font-size: clamp(2.5rem, 10.5vw, 3.25rem); }

  .five__grid { grid-template-columns: minmax(0, 1fr); }
  .five__photo { min-height: 0; aspect-ratio: 4 / 5; }
  .five__list button { padding: 20px 20px 0; gap: 14px; }
  .five__list li:not(.is-open) button { padding-bottom: 20px; }
  .five__list p { padding: 8px 20px 24px; }

  .about { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .about__photo { order: -1; aspect-ratio: 4 / 5; }
  .about__text { padding: 56px var(--pad); }

  .requests__grid { grid-template-columns: minmax(0, 1fr); }
  .answer { position: static; }

  .steps { grid-template-columns: 1fr; gap: 12px; }
  .steps li { min-height: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; padding: 24px 20px; }
  .steps i { width: 44px; height: 44px; font-size: 1.125rem; grid-row: 1 / span 3; }
  .steps h3 { margin-top: 6px; font-size: 1.375rem; }
  .steps span { padding-top: 12px; }
  .gain__list { grid-template-columns: 1fr 1fr; }

  .edu__grid { grid-template-columns: minmax(0, 1fr); }
  .edu__head { position: static; }
  .tabs { display: flex; }
  .tabs button { flex: 1; padding: 0 12px; }
  .path li { grid-template-columns: 4.75rem minmax(0, 1fr); gap: 16px; padding: 22px 0; }
  .path b { font-size: 1.75rem; }
  .docs { grid-template-columns: minmax(0, 1fr); }

  .quotes, .quotes--two { grid-template-columns: 1fr; }

  .contact__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .price { flex-wrap: wrap; }
  .contact__text { margin-right: 0; }
  .contact__photo { order: -1; }

  .foot__top { grid-template-columns: 1fr; justify-items: start; }
  .foot__nav { justify-content: flex-start; }
  .foot__wa { justify-self: start; text-align: left; }
  .foot__bottom-in p:last-child { text-align: left; }

  .viewer { height: 100svh; }
  .viewer__stage { padding: 12px 12px 80px; }
  .viewer__nav { top: auto; bottom: 16px; margin: 0; }
  .viewer__nav--prev { left: calc(50% - 58px); }
  .viewer__nav--next { right: calc(50% - 58px); }
}
@media (max-width: 359px) {
  .chips { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .chips button { padding: 14px 14px; font-size: 0.9375rem; }
  .bar__in { gap: 10px; }
  .bar__side { gap: 6px; }
  .bar__menu { padding: 0 10px; }
  .bar .btn--sm { padding: 0 12px; }
  .bar__logo { font-size: 1.0625rem; }
  .gain__list { grid-template-columns: 1fr; }
}
html:not(.js) .bar__menu { display: none; }
@media (max-width: 68.75em) { html:not(.js) .bar__nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; background: none; grid-column: 1 / -1; } }

/* Дидона в мелком размере: чуть плотнее, чтобы волосяные линии не пропадали на тёмном */
.bar__logo, .steps h3, .five__list b, .path h3, .price__name, .answer__text, .answer__name, .gain__list b, .quote figcaption, .about__sign b, .steps span, .five__more { font-weight: 500; }
/* Самые узкие телефоны: шапка в одну строку */
@media (max-width: 359px) {
  .bar__logo { font-size: 0.9375rem; }
  .bar__logo span:last-child { padding-left: 0.5em; }
  .bar__menu { padding: 0 8px; }
  .bar .btn--sm { padding: 0 10px; font-size: 0.875rem; }
}
