/* ---------- Палитра: крем, олива, терракота, масляно-жёлтый, шалфей ---------- */
:root {
    --cream: #f7f4ea;
    --paper: #fffef9;
    --stone: #e6e1cf;
    --sage: #d5e2c0;
    --mist: #d9e6ea;
    --mist-soft: #e9f1f3;
    --slate: #4f6d7a;
    --slate-deep: #38515c;
    --olive-deep: #2c3d24;
    --olive: #4d6b32;
    --olive-bright: #7f9b45;
    --lime: #d6e78c;
    --ink: #231c16;
    --text: #3a3128;
    --muted: #6f6657;
    --line: #e3ddc9;

    --serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --sans: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --script: "Marck Script", "Segoe Script", "Comic Sans MS", cursive;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; }
a { color: var(--olive); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; }
em { font-style: italic; }
sup, sub { line-height: 0; }

.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

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

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--olive); color: var(--cream); padding: 10px 16px; }
.skip-link:focus { left: 12px; }

.script { font-family: var(--script); color: var(--slate); font-size: 28px; line-height: 1.2; margin: 0 0 8px; }

/* ---------- Фон: математические символы ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; }
.bg-pattern { position: absolute; inset: -60px; background-size: cover; background-position: center; background-repeat: no-repeat; will-change: transform; }
.bg-pattern-a { background-image: url("../img/bg-symbols-a.svg"); animation: bg-float-a 52s ease-in-out infinite; }
.bg-pattern-b { background-image: url("../img/bg-symbols-b.svg"); animation: bg-float-b 68s ease-in-out infinite; }
@keyframes bg-float-a { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(16px, -22px, 0); } }
@keyframes bg-float-b { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-20px, 16px, 0); } }

/* ---------- Шапка ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--cream) 96%, transparent);
    border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: center; gap: 22px; padding-block: 12px; }



.nav { display: flex; gap: 4px; }
.nav a { position: relative; text-decoration: none; color: var(--olive-deep); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 8px 13px; }
.nav a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--slate); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--olive-deep); transition: transform 0.3s; }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 30px; font: inherit; font-size: 13px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase;
    text-decoration: none; cursor: pointer; border: 1px solid var(--olive); border-radius: 999px;
    transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: 11px 22px; font-size: 12px; }
.btn-solid { background: var(--olive-deep); border-color: var(--olive-deep); color: var(--cream); box-shadow: 0 10px 22px rgba(47, 64, 32, 0.25); }
.btn-solid:hover { background: var(--olive); }
.btn-line { background: transparent; color: var(--olive-deep); border-color: var(--olive-deep); }
.btn-line:hover { background: var(--sage); }
.btn-lime { background: var(--lime); color: var(--olive-deep); border-color: var(--lime); }
.btn-lime:hover { background: #e2f092; }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(247, 244, 234, 0.55); }
.btn-ghost:hover { background: rgba(247, 244, 234, 0.12); }

/* ---------- Главный экран ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-block: 14px 80px; min-height: 0; }

.deco-triangle { position: absolute; left: 330px; bottom: 6px; width: 132px; opacity: 0.95; animation: float-b 12s ease-in-out infinite; }

.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--olive); }
.eyebrow-line { width: 34px; height: 2px; background: var(--slate); border-radius: 2px; }

.hero h1 { font-size: clamp(50px, 7.2vw, 100px); line-height: 0.96; letter-spacing: -0.035em; }
.hero h1 em { display: block; color: var(--olive); }
.hero-script { font-size: 36px; margin: 22px 0 0; transform: rotate(-2deg); transform-origin: left; }
.lede { margin: 24px 0 36px; font-size: 18px; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Портрет, окружность, формулы ---------- */
.portrait { position: relative; margin: 0; display: grid; justify-items: center; align-content: center; min-height: 560px; padding-inline: 34px; }

.unit-circle { position: absolute; inset: 0; margin: auto; width: 540px; max-width: 100%; z-index: 0; }

.portrait-frame {
    position: relative; z-index: 2; width: min(100%, 300px); aspect-ratio: 4 / 5;
    border-radius: 160px 160px 28px 28px; padding: 10px;
    background: var(--paper); border: 1px solid var(--line);
    box-shadow: 0 30px 50px rgba(47, 64, 32, 0.22), 0 0 0 10px rgba(213, 226, 187, 0.55);
    animation: float-a 10s ease-in-out infinite;
}
@keyframes float-a { 50% { transform: translate3d(0, -8px, 0); } }
@keyframes float-b { 50% { transform: translate3d(8px, -10px, 0); } }
.portrait-photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 150px 150px 20px 20px; background: var(--sage); }

.portrait-caption { position: relative; z-index: 2; margin-top: 34px; padding: 7px 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--olive-deep); }

.chip { position: absolute; z-index: 3; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; font-family: Georgia, serif; font-size: 28px; color: var(--olive-deep); box-shadow: 0 12px 24px rgba(47, 64, 32, 0.18); animation: bob 6s ease-in-out infinite; }
.chip-1 { top: 4%; left: 6%; background: var(--lime); }
.chip-2 { top: 12%; right: 2%; background: var(--stone); animation-delay: -1.4s; }
.chip-3 { bottom: 34%; left: 2%; background: var(--mist); animation-delay: -2.8s; }
.chip-4 { bottom: 12%; right: 4%; background: var(--sage); animation-delay: -4.2s; }
.chip-5 { top: 44%; right: 1%; background: var(--slate); color: var(--cream); width: 46px; height: 46px; font-size: 24px; animation-delay: -5s; }
@keyframes bob { 50% { transform: translate3d(0, -9px, 0); } }
.chip, .formula, .portrait-frame, .deco-triangle, .marquee-track { will-change: transform; backface-visibility: hidden; }

.formula { position: absolute; z-index: 3; padding: 8px 16px; border-radius: 999px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--olive-deep); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 22px rgba(47, 64, 32, 0.14); white-space: nowrap; animation: bob 7s ease-in-out infinite; }
.formula-1 { top: 22%; left: 0; animation-delay: -2s; }
.formula-2 { top: 62%; right: 0; background: var(--mist-soft); animation-delay: -3.5s; }
.formula-3 { bottom: 17%; left: 4%; background: var(--sage); animation-delay: -1s; }

/* ---------- Бегущая строка формул ---------- */
.marquee { overflow: hidden; background: var(--slate-deep); color: var(--cream); padding-block: 15px; border-block: 3px solid var(--olive-deep); }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee-track span { flex: none; padding-inline: 28px; font-family: var(--serif); font-style: italic; font-size: 21px; white-space: nowrap; position: relative; }
.marquee-track span::after { content: "◆"; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); font-size: 9px; font-style: normal; color: var(--lime); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Цветные блоки ---------- */
.band { position: relative; padding-block: 100px; overflow: hidden; }
.band > .wrap { position: relative; z-index: 1; }
.band-sage { background: var(--sage); }
.band-olive { background: var(--olive-deep); color: var(--cream); }
.band-olive::before { content: ""; position: absolute; inset: 0; opacity: 0.1; background: url("../img/math-pattern-light.svg") repeat; }
.band-olive h2 { color: var(--cream); }

/* Графическая бумага */
.band-grid {
    background-color: var(--mist);
    background-image:
        linear-gradient(rgba(79, 109, 122, 0.17) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 109, 122, 0.17) 1px, transparent 1px),
        linear-gradient(rgba(79, 109, 122, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 109, 122, 0.08) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}

/* ---------- Заявление, числовая прямая, цифры ---------- */
.statement-band::after { content: "π"; position: absolute; right: 4%; top: -6%; font-family: Georgia, serif; font-size: clamp(220px, 34vw, 460px); line-height: 1; color: var(--lime); opacity: 0.07; pointer-events: none; }
.statement { margin: 0; font-family: var(--serif); font-size: clamp(40px, 6.2vw, 88px); line-height: 1; letter-spacing: -0.035em; max-width: 14ch; color: var(--cream); }
.statement em { color: var(--lime); }
.numberline { display: block; width: 100%; margin: 64px 0 8px; overflow: visible; }

.figures { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid rgba(247, 244, 234, 0.25); }
.figure { display: grid; gap: 6px; padding: 34px 24px 0 0; }
.figure + .figure { padding-left: 32px; border-left: 1px solid rgba(247, 244, 234, 0.25); }
.figure-num { font-family: var(--serif); font-size: clamp(52px, 6.4vw, 84px); line-height: 1; font-weight: 500; color: var(--lime); letter-spacing: -0.03em; }
.figure-num small { font-size: 0.55em; margin-left: 2px; }
.figure-word { font-style: italic; color: var(--cream); }
.figure-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247, 244, 234, 0.78); font-weight: 700; max-width: 28ch; }

/* ---------- Секции ---------- */
.section { padding-block: 100px; }

.prose p { margin: 0 0 22px; font-size: 18.5px; line-height: 1.8; }
.prose p:last-child { margin-bottom: 0; }
.prose p:first-child::first-letter { float: left; font-family: var(--serif); font-size: 82px; line-height: 0.8; padding: 8px 14px 0 0; color: var(--olive); font-weight: 500; }
.prose .source { font-size: 13.5px; }
.prose p.source:first-child::first-letter { all: unset; }

.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.about-text { padding: 44px 44px 40px; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 20px 40px rgba(47, 64, 32, 0.07); }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; }
.facts div { position: relative; padding: 22px 22px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; transition: transform 0.3s, box-shadow 0.3s; }
.facts div:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(47, 64, 32, 0.12); }
.fact-glyph { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 14px; font-family: Georgia, serif; font-size: 24px; color: var(--olive-deep); }
.g-lime { background: var(--lime); }
.g-stone { background: var(--stone); }
.g-mist { background: var(--mist); }
.g-sage { background: var(--sage); }
.g-slate { background: var(--slate); color: var(--cream); }
.g-olive { background: var(--olive-deep); color: var(--lime); }
.facts dt { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); }
.facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 20px; line-height: 1.3; color: var(--ink); }

/* ---------- Мой путь: график ---------- */
.journey-wrap { position: relative; padding-top: 8px; }
.journey-curve { position: absolute; left: 0; top: 0; width: 100%; height: 110px; overflow: visible; }
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.journey li { position: relative; text-align: center; padding: 0 12px; }
.journey li:nth-child(1) { margin-top: 86px; }
.journey li:nth-child(2) { margin-top: 68px; }
.journey li:nth-child(3) { margin-top: 50px; }
.journey li:nth-child(4) { margin-top: 30px; }
.journey li::before { content: ""; position: absolute; top: -22px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--paper); border: 4px solid var(--slate); box-shadow: 0 0 0 6px rgba(247, 244, 234, 0.85); }
.journey-year { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(42px, 4.6vw, 62px); line-height: 1; color: var(--olive-deep); letter-spacing: -0.02em; }
.journey h3 { font-size: 24px; margin: 12px 0 6px; }
.journey p { margin: 0 auto; max-width: 24ch; font-size: 15px; line-height: 1.55; color: var(--muted); }
.journey li.journey-now::before { background: var(--lime); box-shadow: 0 0 0 10px rgba(211, 229, 122, 0.5); }
.journey li.journey-now .journey-year { font-family: var(--script); font-style: normal; font-size: clamp(40px, 4.2vw, 56px); color: var(--slate); }
.journey-axis-label { display: block; margin-top: 28px; text-align: right; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--olive-deep); border-top: 2px solid var(--olive-deep); padding-top: 6px; position: relative; }
.journey-axis-label::after { content: ""; position: absolute; right: 0; top: -8px; border-left: 12px solid var(--olive-deep); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

/* ---------- Награды ---------- */
.awards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.award { position: relative; overflow: hidden; padding: 40px 36px; background: #e6efd2; border: 1px solid #cddcb5; border-radius: 28px; transition: transform 0.3s, box-shadow 0.3s; }
.award-mist { background: var(--mist); border-color: #bdd3da; }
.award:hover { transform: translateY(-4px); box-shadow: 0 22px 38px rgba(47, 64, 32, 0.14); }
.award-mark { position: absolute; right: 16px; top: -26px; font-family: Georgia, serif; font-size: 190px; line-height: 1; color: var(--olive-deep); opacity: 0.07; pointer-events: none; }
.award-seal { position: relative; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--olive-deep); color: var(--lime); margin-bottom: 22px; }
.award-mist .award-seal { background: var(--slate); color: var(--cream); }
.award-seal svg { width: 38px; height: 38px; }
.award h3 { position: relative; font-size: 27px; line-height: 1.2; margin-bottom: 10px; }
.award p { position: relative; margin: 0; color: var(--text); font-size: 16px; }
.source { display: block; margin: 22px 0 0; font-size: 13.5px; color: var(--muted); font-style: italic; }
.band-sage .source { color: var(--olive-deep); }

/* ---------- Лицей ---------- */
.lyceum-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.mini-label { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive-deep); }
.lyceum-side .mini-label:not(:first-child) { margin-top: 32px; }
.lyceum-grid .prose + .mini-label { margin-top: 30px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { position: relative; display: grid; gap: 4px; align-content: start; padding: 22px 20px 20px; background: var(--paper); border-radius: 22px; }
.stat-num { font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--olive-deep); letter-spacing: -0.02em; }
.stat-plain { color: var(--slate); }
.stat-label { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.ring-stat { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border-radius: 50%; background: conic-gradient(var(--olive-bright) calc(var(--p) * 1%), var(--sage) 0); }
.ring-stat::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--paper); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 9px 18px; background: var(--paper); border: 1px solid rgba(47, 64, 32, 0.2); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--olive-deep); }

/* ---------- Контакты ---------- */
.closing { text-align: center; padding-block: 120px; }
.watermark { position: absolute; font-family: Georgia, serif; color: var(--lime); opacity: 0.08; line-height: 1; pointer-events: none; z-index: 0; }
.watermark-pi { left: 3%; top: 8%; font-size: 320px; }
.watermark-sum { right: 4%; bottom: -4%; font-size: 360px; }
.closing h2 { font-size: clamp(54px, 9vw, 120px); line-height: 0.95; letter-spacing: -0.04em; }
.closing-lead { margin: 22px auto 52px; max-width: 46ch; font-size: 18px; color: rgba(247, 244, 234, 0.82); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; margin-bottom: 44px; }
.contact { padding: 26px 26px 24px; border: 1px solid rgba(247, 244, 234, 0.24); border-radius: 22px; display: grid; gap: 4px; background: rgba(247, 244, 234, 0.05); }
.contact-label { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); margin-bottom: 6px; }
.contact a, .contact address { color: var(--cream); font-family: var(--serif); font-style: normal; font-size: 22px; line-height: 1.35; text-decoration: none; }
.contact a:hover { color: var(--lime); }
.closing-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Монохромные фото на фонах ---------- */
.band-photo { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-size: cover; background-repeat: no-repeat; }
.band-photo-ruler { left: 38%; background-image: url("../img/photos/ruler.jpg"); background-position: center; opacity: 0.38; filter: brightness(0.55); -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.band-photo-library { left: 34%; background-image: url("../img/photos/library.jpg"); background-position: center top; opacity: 0.3; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.band-photo-stairs { left: 58%; background-image: url("../img/photos/staircase.jpg"); background-position: center 30%; opacity: 0.32; filter: brightness(0.7); -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); mask-image: linear-gradient(90deg, transparent, #000 55%); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--ink); color: #cdbfae; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 30px; font-size: 14px; }
.footer-inner p { margin: 0; }
.credits { margin: 0 auto; padding: 0 0 26px; font-size: 12.5px; line-height: 1.5; color: #9f9684; }
.qed { color: var(--lime); margin-left: 6px; }
.to-top { color: var(--lime); text-decoration: none; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; font-size: 12px; }



/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
    .header-cta { display: none; }
}

@media (max-width: 1100px) {
    .deco-triangle { display: none; }
}

@media (max-width: 1000px) {
    .header-inner { justify-content: flex-end; }
    .nav-toggle { display: block; }
    .nav { position: absolute; top: 100%; left: 24px; right: 24px; display: none; flex-direction: column; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 34px rgba(47, 64, 32, 0.14); }
    .nav.is-open { display: flex; }
    .nav a { padding: 14px; }
    .nav a::after { left: 14px; right: auto; width: 28px; }
}

@media (max-width: 920px) {
    .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 12px; min-height: 0; }
    .portrait { order: -1; min-height: 500px; }
    .deco-triangle { display: none; }
    .about-grid, .lyceum-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-text { padding: 32px 26px; }
    .contact-grid { grid-template-columns: 1fr; }
    .journey-curve { display: none; }
    .journey { grid-template-columns: 1fr 1fr; row-gap: 40px; }
    .journey li, .journey li:nth-child(n) { margin-top: 28px; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .section, .band { padding-block: 68px; }
    .awards, .facts, .stats { grid-template-columns: 1fr; }
    .figures { grid-template-columns: 1fr; }
    .figure, .figure + .figure { padding: 28px 0 0; border-left: 0; }
    .journey { grid-template-columns: 1fr; text-align: left; padding-left: 4px; }
    .journey li { text-align: left; padding: 0 0 0 44px; margin-top: 8px; }
    .journey li::before { left: 0; top: 6px; margin-left: 0; }
    .journey p { margin: 0; }
    .journey-axis-label { display: none; }
    .journey::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; border-left: 2px dashed var(--slate); }
    .header-inner { gap: 12px; }
    .chip { width: 46px; height: 46px; font-size: 22px; }
    .formula { font-size: 14px; padding: 6px 12px; }
    .formula-3 { display: none; }
    .numberline { margin-top: 44px; }
    .watermark { font-size: 200px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}



/* ---------- Телефон: крупные шрифты, всё коротко ---------- */
.m-only { display: none; }

@media (max-width: 760px) {
    html { scroll-padding-top: 72px; }
    body { font-size: 18px; line-height: 1.6; -webkit-tap-highlight-color: transparent; }
    a, button { touch-action: manipulation; }
    .d-only { display: none !important; }
    .wrap { width: calc(100% - 32px); }

    /* шапка: кнопка и меню */
    .header-inner { justify-content: space-between; padding-block: 10px; gap: 12px; }
    .header-cta { display: inline-flex; width: auto; flex: 1; max-width: 240px; padding: 14px 20px; font-size: 15px; }
    .hero-actions .btn-line { display: none; }
    .nav-toggle { width: 48px; height: 48px; }
    .nav { left: 16px; right: 16px; }
    .nav a { padding: 16px 14px; font-size: 17px; }

    /* лишнее убираем */
    .marquee, .deco-triangle, .numberline, .formula, .chip-4, .chip-5, .unit-circle, .portrait-caption, .watermark, .award-mark, .journey-curve, .journey-axis-label, .ring-stat { display: none; }

    /* первый экран: имя сразу сверху */
    .hero { display: flex; flex-direction: column; padding: 16px 0 24px; gap: 0; min-height: 0; }
    .hero-text { order: 1; }
    .portrait { order: 2; min-height: 0; padding: 0; margin-top: 24px; }
    .eyebrow { font-size: 14px; letter-spacing: 0.1em; margin-bottom: 14px; }
    .hero h1 { font-size: clamp(50px, 15.5vw, 70px); line-height: 0.98; }
    .hero-script { font-size: 36px; margin: 14px 0 0; }
    .lede.m-only { display: block; font-size: 20px; line-height: 1.5; color: var(--text); margin: 16px 0 22px; max-width: none; }
    .hero-actions { flex-direction: column; gap: 12px; }
    .btn { width: 100%; padding: 18px 20px; font-size: 16px; }
    .btn-call.m-only { display: inline-flex; order: -1; }
    .portrait-frame { width: 200px; }
    .chip { width: 44px; height: 44px; font-size: 22px; }
    .chip-1 { top: 2%; left: 6%; }
    .chip-2 { top: 8%; right: 6%; }
    .chip-3 { bottom: 14%; left: 4%; }

    /* блоки */
    .band, .section { padding-block: 44px; }
    .statement { font-size: clamp(40px, 12.5vw, 56px); }
    .figures { grid-template-columns: 1fr; margin-top: 26px; }
    .figure { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; row-gap: 2px; padding: 16px 0; border-bottom: 1px solid rgba(247, 244, 234, 0.25); }
    .figure + .figure { padding-left: 0; border-left: 0; }
    .figure-num { font-size: 48px; flex: none; }
    .figure-label { font-size: 15px; letter-spacing: 0.05em; max-width: none; flex: 1 1 150px; }

    /* «Обо мне»: только факты крупно */
    .about-grid { grid-template-columns: 1fr; gap: 0; }
    .facts { grid-template-columns: 1fr; gap: 10px; }
    .facts div { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center; padding: 16px; border-radius: 18px; }
    .fact-glyph { grid-row: span 2; width: 52px; height: 52px; margin: 0; font-size: 26px; border-radius: 14px; }
    .facts dt { font-size: 13px; }
    .facts dd { font-size: 22px; line-height: 1.25; }

    /* «Мой путь»: годы и заголовки */
    .journey { grid-template-columns: 1fr; row-gap: 12px; padding-left: 0; }
    .journey::before { display: none; }
    .journey li, .journey li:nth-child(n) { margin-top: 0; padding: 14px 16px 14px 52px; text-align: left; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; background: rgba(255, 254, 249, 0.85); border: 1px solid rgba(79, 109, 122, 0.25); border-radius: 18px; }
    .journey li::before { left: 16px; top: 22px; margin-left: 0; width: 18px; height: 18px; border-width: 3px; }
    .journey-year { font-size: 38px; }
    .journey h3 { font-size: 22px; margin: 0; }
    .journey p { display: none; }

    /* награды: только названия */
    .awards { grid-template-columns: 1fr; gap: 12px; }
    .award { padding: 18px; border-radius: 20px; display: flex; align-items: center; gap: 16px; }
    .award-seal { width: 54px; height: 54px; margin: 0; flex: none; }
    .award-seal svg { width: 30px; height: 30px; }
    .award h3 { font-size: 22px; line-height: 1.2; margin: 0; }
    .award p { display: none; }
    .source { font-size: 14px; }

    /* лицей: цифры */
    .lyceum-grid { grid-template-columns: minmax(0, 1fr); }
    .mini-label { font-size: 13px; letter-spacing: 0.1em; }
    .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat { padding: 16px 14px; border-radius: 18px; }
    .stat-num { font-size: 44px; }
    .stat-label { font-size: 15px; line-height: 1.35; }

    /* контакты: крупно и нажимаемо */
    .closing { padding-block: 52px; }
    .closing h2 { font-size: clamp(52px, 17vw, 76px); }
    .closing-lead { font-size: 18px; margin: 12px auto 24px; }
    .contact-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
    .contact { padding: 16px 18px; }
    .contact-label { font-size: 13px; }
    .contact a, .contact address { font-size: 22px; }
    .contact a { display: block; padding: 6px 0; }
    .closing-actions { flex-direction: column; }

    .footer-inner { flex-direction: column; font-size: 15px; padding-block: 22px 14px; }
    .to-top { display: none; }
    .credits { font-size: 13px; }
}
