/* Manrope, variable 200–800, self-hosted. Заголовки — Brygada 1918 (Google Fonts, подключён в шаблоне) */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url(../fonts/manrope-cyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url(../fonts/manrope-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;
}

:root {
    --paper: #fbf8f3;
    --paper-2: #f4eee4;
    --sand: #eadbc4;
    --mist: #edf2f3;
    --mist-2: #cadde7;
    --sage: #4e9f92;
    --sage-soft: #dcebe6;
    --teal: #1f6b66;
    --teal-dark: #18524e;
    --apricot: #ee9e7c;
    --apricot-soft: #f8e1d5;
    --honey: #f1d48a;
    --honey-soft: #f8edcf;
    --night: #173a3d;
    --night-2: #1e4a4d;
    --ink: #1f2a2e;
    --text: #3a4448;
    --muted: #5e6970;
    --line: #e4dccf;
    --line-night: rgba(251, 248, 243, .16);

    --serif: 'Brygada 1918', Georgia, 'Times New Roman', serif;
    --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --radius: 18px;
    --radius-lg: 28px;
    --arch: 999px 999px 22px 22px;

    --container: 1200px;
    --gutter: 24px;
    --header-h: 78px;
}

/* ---------- base ---------- */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 450;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* иллюстрации нарисованы на белом: multiply растворяет белый в любом светлом фоне */
.ill {
    mix-blend-mode: multiply;
}

a {
    color: var(--teal);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

a:hover {
    color: var(--teal-dark);
}

h1, h2, h3 {
    margin: 0 0 .45em;
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

h1 em, h2 em, h3 em {
    color: var(--teal);
    font-style: italic;
    font-weight: 400;
}

p {
    margin: 0 0 1em;
}

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

.icon {
    width: 20px;
    height: 20px;
    flex: none;
    display: inline-block;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

section[id] {
    scroll-margin-top: calc(var(--header-h) + 8px);
}

/* ---------- buttons: pill with a «thread end» circle ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 56px;
    padding: 6px 8px 6px 26px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}

.btn-dot {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 50%;
    transition: transform .35s ease;
}

.btn-dot .icon {
    width: 18px;
    height: 18px;
}

.btn:hover .btn-dot {
    transform: rotate(-12deg) scale(1.06);
}

.btn-primary {
    background: var(--teal);
    color: #fff;
}

.btn-primary .btn-dot {
    background: var(--honey);
    color: var(--ink);
}

.btn-primary:hover {
    background: var(--teal-dark);
    color: #fff;
    box-shadow: 0 12px 28px rgba(23, 58, 61, .22);
}

.btn-light {
    background: var(--paper);
    color: var(--ink);
}

.btn-light .btn-dot {
    background: var(--teal);
    color: #fff;
}

.btn-light:hover {
    background: var(--honey-soft);
    color: var(--ink);
}

.btn-outline {
    padding: 6px 26px;
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn-lg {
    min-height: 64px;
    padding-left: 30px;
    font-size: 17px;
}

.btn-lg .btn-dot {
    width: 50px;
    height: 50px;
}

.btn-sm {
    min-height: 46px;
    padding: 4px 5px 4px 18px;
    font-size: 15px;
}

.btn-sm .btn-dot {
    width: 36px;
    height: 36px;
}

.btn-sm .btn-dot .icon {
    width: 16px;
    height: 16px;
}

.link-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) left bottom / 100% 1.5px no-repeat;
    padding-bottom: 4px;
    transition: background-size .3s ease, color .2s ease;
}

.link-line:hover {
    color: var(--teal);
    background-size: 30% 1.5px;
}

.link-line .icon {
    width: 18px;
    height: 18px;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 248, 243, .9);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    color: var(--ink);
    text-decoration: none;
}

.brand:hover {
    color: var(--ink);
}

.brand-mark {
    width: 46px;
    height: 46px;
    flex: none;
    transition: transform .5s ease;
}

.brand-mark .bm-bg { fill: var(--teal); }
.brand-mark .bm-line { stroke: var(--paper); }
.site-footer .brand-mark .bm-bg { fill: var(--paper); }
.site-footer .brand-mark .bm-line { stroke: var(--night); }

.brand:hover .brand-mark {
    transform: rotate(-20deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1;
}

.brand-name {
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.brand-sub {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

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

.nav a {
    position: relative;
    padding: 8px 10px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 4px;
    height: 1.5px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--teal);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.burger {
    display: none;
    position: relative;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.burger span {
    position: absolute;
    left: 13px;
    right: 13px;
    height: 1.8px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .25s ease, opacity .2s ease;
}

.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; right: 18px; }
.burger span:nth-child(3) { top: 28px; }

.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.mobile-nav[hidden] {
    display: none;
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
    padding-block: 8px 22px;
}

.mobile-nav a:not(.btn) {
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 22px;
    text-decoration: none;
}

.mobile-nav .btn {
    margin-top: 20px;
    justify-content: space-between;
}

/* ---------- section scaffolding ---------- */

.section {
    padding-block: clamp(72px, 9vw, 128px);
}

.section--tight {
    padding-top: 0;
}

.section--sand {
    background: var(--paper-2);
}

.section--night {
    background: var(--night);
    color: rgba(251, 248, 243, .82);
}

.section-head {
    max-width: 760px;
    margin-bottom: clamp(36px, 4.5vw, 60px);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    color: var(--teal);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 1.5px;
    background: currentColor;
}

.section-head--center .eyebrow::after {
    content: "";
    width: 34px;
    height: 1.5px;
    background: currentColor;
}

.h2 {
    font-size: clamp(34px, 4.6vw, 58px);
}

.lead {
    color: var(--muted);
    font-size: clamp(17px, 1.55vw, 20px);
    line-height: 1.6;
}

.section-head .lead {
    margin: 0;
}

/* ---------- thread (hand-drawn line) ---------- */

.thread {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    color: var(--ink);
}

.thread path,
.thread circle.knot {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.thread .sun {
    fill: var(--apricot);
}

.js .thread-draw path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 2.6s cubic-bezier(.45, .05, .25, 1);
}

.js .thread-draw.is-in path {
    stroke-dashoffset: 0;
}

.js .thread-draw .sun {
    transform: scale(0);
    transform-box: fill-box;
    transform-origin: center;
    transition: transform .6s ease 2.2s;
}

.js .thread-draw.is-in .sun {
    transform: scale(1);
}

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

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(28px, 4.5vw, 64px) clamp(40px, 5vw, 72px);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: center;
}

.hero h1 {
    margin-bottom: 26px;
    font-size: clamp(50px, 7.2vw, 100px);
    line-height: .98;
    letter-spacing: -0.03em;
}

.hero h1 em {
    display: block;
}

.hero-lead {
    max-width: 30ch;
    margin-bottom: 34px;
    color: var(--text);
    font-size: clamp(18px, 1.75vw, 22px);
    font-weight: 500;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 22px;
}

.hero-note {
    max-width: 22ch;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    margin: 42px 0 0;
    padding: 0;
    list-style: none;
}

.hero-facts li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 2px 20px;
    border-left: 1px solid var(--line);
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 650;
}

.hero-facts li:first-child {
    padding-left: 0;
    border-left: 0;
}

.hero-facts .icon {
    width: 18px;
    height: 18px;
    color: var(--teal);
}

/* картинка уходит за правый край экрана — река «утекает» со страницы */
.hero-art {
    position: relative;
    margin-right: calc(-1 * (max(0px, (100vw - var(--container) - var(--gutter) * 2) / 2) + var(--gutter)));
}

.hero-art::before {
    content: "";
    position: absolute;
    left: 4%;
    top: 8%;
    width: 46%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--paper-2);
    z-index: -1;
}

.hero-art img {
    width: 100%;
}

.hero-thread {
    margin-top: clamp(8px, 2vw, 24px);
    color: var(--ink);
}

/* ---------- familiar thoughts: two drifting lines ---------- */

.thoughts {
    display: grid;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.thoughts-row {
    display: flex;
    width: max-content;
    animation: drift 70s linear infinite;
}

.thoughts-row--reverse {
    animation-direction: reverse;
    animation-duration: 80s;
}

.thoughts:hover .thoughts-row {
    animation-play-state: paused;
}

.thoughts-list {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.thoughts-list li {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-right: 28px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(24px, 2.9vw, 38px);
    font-style: italic;
    line-height: 1.35;
    white-space: nowrap;
}

.thoughts-list li::after {
    content: "";
    width: 10px;
    height: 10px;
    flex: none;
    border-radius: 50%;
    background: var(--apricot);
}

.thoughts-row--reverse .thoughts-list li {
    color: var(--teal);
}

.thoughts-row--reverse .thoughts-list li::after {
    background: var(--honey);
}

@keyframes drift {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.familiar-note {
    max-width: 760px;
    margin: clamp(36px, 4vw, 56px) auto 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(22px, 2.3vw, 30px);
    line-height: 1.35;
    text-align: center;
}

.familiar-note em {
    color: var(--teal);
}

/* ---------- topics: arch windows ---------- */

.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(36px, 4vw, 56px) clamp(22px, 3vw, 40px);
}

.topic {
    display: flex;
    flex-direction: column;
}

.arch {
    position: relative;
    overflow: hidden;
    border-radius: var(--arch);
    background: var(--paper-2);
}

.arch--paper { background: var(--paper); }
.arch--mist { background: var(--mist); }
.arch--sage { background: var(--sage-soft); }
.arch--honey { background: var(--honey-soft); }
.arch--apricot { background: var(--apricot-soft); }

.topic .arch {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    aspect-ratio: 1 / 1.02;
    padding: 30% 9% 8%;
    transition: transform .5s ease;
}

.topic .arch img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    transition: transform .6s ease;
}

.topic:hover .arch img {
    transform: translateY(-6px) scale(1.03);
}

.topic-meta {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 22px 0 8px;
}

.topic-num {
    color: var(--apricot);
    font-family: var(--serif);
    font-size: 26px;
    font-style: italic;
    line-height: 1;
}

.topic-label {
    color: var(--teal);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.topic-quote {
    margin: 0 0 10px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 23px;
    font-style: italic;
    line-height: 1.3;
}

.topic-text {
    margin: 0;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.6;
}

.more-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 28px;
    margin-top: clamp(48px, 5vw, 72px);
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.more-cta p {
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(21px, 2vw, 26px);
}

/* ---------- changes: the thread straightens ---------- */

.changes-thread {
    margin-bottom: 18px;
}

.changes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(22px, 3vw, 40px);
}

.change-step {
    display: block;
    margin-bottom: 10px;
    color: var(--apricot);
    font-family: var(--serif);
    font-size: 20px;
    font-style: italic;
}

.change h3 {
    font-size: clamp(26px, 2.4vw, 32px);
}

.change p {
    margin: 0;
    color: var(--muted);
}

.change ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.change li,
.ticks li {
    position: relative;
    padding-left: 26px;
    color: var(--text);
}

.change li::before,
.ticks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .62em;
    width: 12px;
    height: 7px;
    border-left: 1.8px solid var(--teal);
    border-bottom: 1.8px solid var(--teal);
    transform: translateY(-50%) rotate(-45deg);
}

.callout {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(20px, 4vw, 64px);
    align-items: start;
    margin-top: clamp(56px, 6vw, 88px);
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius-lg);
    background: var(--apricot-soft);
}

.callout h3 {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
}

.callout p {
    margin: 0;
    color: var(--text);
    font-size: 17.5px;
}

/* ---------- method (night section) ---------- */

.method-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(36px, 5vw, 80px);
    align-items: center;
}

.moon {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--paper-2);
    overflow: hidden;
}

.moon img {
    width: 84%;
}

.method-art {
    position: relative;
}

.method-art .stars {
    position: absolute;
    inset: -6% -6% auto auto;
    width: 26%;
    color: var(--honey);
}

.section--night .eyebrow {
    color: var(--honey);
}

.section--night h2 {
    color: var(--paper);
}

.section--night h2 em {
    color: var(--apricot);
}

.section--night .lead {
    color: rgba(251, 248, 243, .82);
}

.method-text > p {
    color: rgba(251, 248, 243, .72);
}

.myths {
    margin-top: 34px;
    border-top: 1px solid var(--line-night);
}

.myths-head,
.myth {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line-night);
}

.myths-head {
    padding: 14px 0;
    color: var(--honey);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.myth p {
    margin: 0;
}

.myth-q {
    color: rgba(251, 248, 243, .6);
    font-family: var(--serif);
    font-size: 19px;
    font-style: italic;
    text-decoration: line-through;
    text-decoration-color: var(--apricot);
    text-decoration-thickness: 1.5px;
}

.myth-a {
    color: var(--paper);
}

/* ---------- principles ---------- */

.principles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.principle {
    padding: 34px 28px 38px;
    border-left: 1px solid var(--line);
}

.principle:first-child {
    padding-left: 0;
    border-left: 0;
}

.principle:last-child {
    padding-right: 0;
}

.principle-ico {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 26px;
    border-radius: 50%;
    background: var(--sage-soft);
    color: var(--teal);
}

.principle:nth-child(2) .principle-ico { background: var(--apricot-soft); color: #9a4a30; }
.principle:nth-child(3) .principle-ico { background: var(--honey-soft); color: #7a5a12; }
.principle:nth-child(4) .principle-ico { background: var(--mist); color: #2f5d72; }

.principle-ico .icon {
    width: 24px;
    height: 24px;
}

.principle h3 {
    font-size: 26px;
}

.principle p {
    margin: 0;
    color: var(--muted);
    font-size: 15.5px;
}

/* ---------- formats ---------- */

.formats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 56px);
}

.format {
    display: flex;
    flex-direction: column;
}

.format .arch {
    aspect-ratio: 1 / .78;
}

.format .arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.format-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 28px;
}

.format-body h3 {
    font-size: clamp(30px, 3vw, 40px);
}

.ticks {
    display: grid;
    gap: 10px;
    margin: 6px 0 30px;
    padding: 0;
    list-style: none;
}

.format-body .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* ---------- steps + example message ---------- */

.steps-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(36px, 5vw, 88px);
    align-items: center;
}

.steps {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 24px;
    bottom: 28px;
    border-left: 1.5px dashed var(--sand);
}

.step {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 22px;
    padding-bottom: 30px;
}

.step:last-child {
    padding-bottom: 0;
}

.step-num {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 21px;
    font-style: italic;
}

.step:first-child .step-num {
    border-color: var(--teal);
    background: var(--teal);
    color: #fff;
}

.step h3 {
    margin: 8px 0 6px;
    font-size: 25px;
}

.step p {
    margin: 0;
    color: var(--muted);
}

.steps-cta {
    margin-top: 40px;
}

.letter {
    position: relative;
    max-width: 420px;
    margin-inline: auto;
    padding: 22px 22px 18px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 30px 60px -30px rgba(23, 58, 61, .28);
    transform: rotate(1.5deg);
}

.letter-wrap {
    position: relative;
    padding: 6% 4%;
}

.letter-wrap::before {
    content: "";
    position: absolute;
    inset: 0 8% 56px 8%;
    z-index: -1;
    border-radius: var(--arch);
    background: var(--sage-soft);
}

.letter-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.letter-head .brand-mark {
    width: 46px;
    height: 46px;
}

.letter-head b {
    display: block;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.3;
}

.letter-head span {
    color: var(--sage);
    font-size: 12.5px;
    font-weight: 700;
}

.chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
}

.msg {
    max-width: 86%;
    margin: 0;
    padding: 10px 14px 8px;
    border-radius: 18px;
    font-size: 14.5px;
    line-height: 1.45;
}

.msg small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    text-align: right;
}

.msg--in {
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    background: var(--paper-2);
}

.msg--out {
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    background: var(--sage-soft);
}

.mock-caption {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 13.5px;
    text-align: center;
}

.js .chat .msg {
    opacity: 0;
    transform: translateY(10px);
}

.js .is-in .chat .msg {
    animation: msg-in .5s ease forwards;
}

.js .is-in .chat .msg:nth-child(2) { animation-delay: .6s; }
.js .is-in .chat .msg:nth-child(3) { animation-delay: 1.2s; }
.js .is-in .chat .msg:nth-child(4) { animation-delay: 1.8s; }

@keyframes msg-in {
    to { opacity: 1; transform: none; }
}

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

.about {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: center;
}

.about-art {
    position: relative;
    max-width: 400px;
}

.about-art .arch,
.person .arch {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    aspect-ratio: 1 / 1.25;
    padding: 13% 9% 6%;
}

.about-art .arch img,
.person .arch img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
}

.about-art .thread {
    position: absolute;
    left: -12%;
    bottom: -8%;
    width: 70%;
}

.about-copy .lead {
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(21px, 2vw, 26px);
    line-height: 1.4;
}

.about-copy > p {
    color: var(--muted);
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0 34px;
}

.facts div {
    padding-top: 14px;
    border-top: 1.5px solid var(--ink);
}

.facts b {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 500;
}

.facts span {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.45;
}

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

.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.faq-side .lead {
    margin-bottom: 28px;
}

.faq {
    border-top: 1px solid var(--line);
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(20px, 1.9vw, 24px);
    line-height: 1.3;
    list-style: none;
    cursor: pointer;
    transition: color .2s ease;
}

.faq summary:hover {
    color: var(--teal);
}

.faq summary::-webkit-details-marker {
    display: none;
}

.toggle {
    position: relative;
    flex: none;
    width: 42px;
    height: 42px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    transition: transform .3s ease, background-color .2s ease, color .2s ease;
}

.toggle::before,
.toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 1.6px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq details[open] .toggle {
    transform: rotate(45deg);
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

.faq-answer {
    max-width: 62ch;
    padding: 0 60px 26px 0;
    color: var(--muted);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    font-weight: 700;
}

/* ---------- final CTA ---------- */

.cta {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    padding: clamp(32px, 5vw, 72px);
    border-radius: 40px;
    background: var(--night);
    color: rgba(251, 248, 243, .84);
}

.cta h2 {
    color: var(--paper);
    font-size: clamp(36px, 4.6vw, 60px);
}

.cta h2 em {
    color: var(--honey);
}

.cta p {
    max-width: 44ch;
    font-size: clamp(16px, 1.5vw, 18px);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 32px;
}

.cta-handle {
    color: var(--honey);
    font-weight: 700;
}

.cta .arch {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    aspect-ratio: 1 / .92;
    padding: 20% 5% 9%;
    background: var(--paper-2);
}

.cta .arch img {
    width: 100%;
}

/* ---------- inner pages ---------- */

.page-hero {
    padding-block: clamp(36px, 5vw, 72px) clamp(28px, 3vw, 44px);
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
}

.crumbs a {
    color: var(--muted);
}

.page-title {
    font-size: clamp(46px, 6.4vw, 88px);
    letter-spacing: -0.03em;
}

.page-hero .lead {
    max-width: 640px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(24px, 3vw, 40px);
    align-items: stretch;
}

.tg-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    min-height: 380px;
    padding: clamp(28px, 4vw, 48px);
    border-radius: 40px;
    background: var(--night);
    color: rgba(251, 248, 243, .84);
}

.tg-card::after {
    content: "";
    position: absolute;
    right: -14%;
    bottom: -38%;
    width: 64%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--night-2);
}

.tg-card > * {
    position: relative;
    z-index: 1;
}

.tg-card h2 {
    color: var(--paper);
    font-size: clamp(36px, 4vw, 54px);
}

.tg-card p {
    max-width: 38ch;
    margin: 0;
    font-size: 18px;
}

.tg-card .btn {
    align-self: flex-start;
}

.tg-ico {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--honey);
    color: var(--ink);
}

.tg-ico .icon {
    width: 28px;
    height: 28px;
}

.contact-list {
    border-top: 1px solid var(--line);
}

.contact-row {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 6px 18px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.contact-row .ico {
    grid-row: span 3;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--sage-soft);
    color: var(--teal);
}

.contact-row h2 {
    margin: 0;
    font-size: 26px;
}

.contact-row p {
    margin: 0;
    color: var(--muted);
}

.contact-row .link-line {
    justify-self: start;
    margin-top: 8px;
    font-size: 15px;
}

.person {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

.person h2 {
    font-size: clamp(30px, 3vw, 40px);
}

.person p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-size: 17.5px;
}

.notfound {
    text-align: center;
}

.notfound img {
    width: min(380px, 80%);
    margin: 0 auto 10px;
}

.notfound-code {
    margin: 0 0 8px;
    color: var(--apricot);
    font-family: var(--serif);
    font-size: 22px;
    font-style: italic;
}

.notfound h1 {
    font-size: clamp(40px, 5.4vw, 68px);
}

.notfound .lead {
    max-width: 520px;
    margin-inline: auto;
}

.notfound-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

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

.site-footer {
    padding: 72px 0 30px;
    background: var(--night);
    color: rgba(251, 248, 243, .72);
}

.site-footer .brand,
.site-footer .brand:hover {
    color: var(--paper);
}

.site-footer .brand-sub {
    color: rgba(251, 248, 243, .6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.1fr;
    gap: 40px;
}

.footer-about p {
    max-width: 36ch;
    margin: 20px 0 26px;
    font-size: 15px;
}

.footer-title {
    margin: 6px 0 18px;
    color: var(--honey);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.footer-links {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
}

.footer-links li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-links a {
    color: var(--paper);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--honey);
}

.footer-links .icon {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--apricot);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;
    margin-top: 52px;
    padding-top: 22px;
    border-top: 1px solid var(--line-night);
    font-size: 13.5px;
}

/* ---------- sticky Telegram bar (phones) ---------- */

.mobile-cta {
    display: none;
}

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

.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform .8s ease;
}

.js .reveal.is-in {
    opacity: 1;
    transform: none;
}

.js .reveal-delay-1 { transition-delay: .1s; }
.js .reveal-delay-2 { transition-delay: .2s; }
.js .reveal-delay-3 { transition-delay: .3s; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
    .nav,
    .header-cta {
        display: none;
    }

    .burger {
        display: inline-block;
    }

    .principles {
        grid-template-columns: repeat(2, 1fr);
    }

    .principle,
    .principle:first-child,
    .principle:last-child {
        padding: 30px 24px 34px;
        border-left: 0;
    }

    .principle:nth-child(odd) {
        padding-left: 0;
        border-right: 1px solid var(--line);
    }

    .principle:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }

    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .facts {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .method-grid,
    .steps-grid,
    .cta,
    .contact-grid,
    .about,
    .faq-grid,
    .callout {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-art {
        margin-inline: calc(-1 * var(--gutter));
    }

    .hero-art::before {
        left: 6%;
        width: 50%;
    }

    .changes {
        grid-template-columns: 1fr;
    }

    .changes-thread {
        display: none;
    }

    .method-art {
        max-width: 460px;
        margin-inline: auto;
    }

    .about-art {
        max-width: 320px;
    }

    .cta .arch {
        max-width: 420px;
        margin-inline: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 68px;
        --gutter: 18px;
    }

    body {
        font-size: 16px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 22px;
    }

    .formats-grid {
        grid-template-columns: 1fr;
    }

    .mobile-cta {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 60;
        display: block;
        transform: translateY(160%);
        transition: transform .35s ease;
    }

    .mobile-cta.is-visible {
        transform: none;
    }

    .mobile-cta .btn {
        width: 100%;
        justify-content: space-between;
        box-shadow: 0 16px 36px rgba(23, 58, 61, .35);
    }

    .site-footer {
        padding-bottom: 104px;
    }
}

@media (max-width: 640px) {
    .topics-grid,
    .principles {
        grid-template-columns: 1fr;
    }

    .principle,
    .principle:first-child,
    .principle:last-child,
    .principle:nth-child(odd) {
        padding: 28px 0 30px;
        border-right: 0;
        border-top: 1px solid var(--line);
    }

    .principle:first-child {
        border-top: 0;
    }

    .hero-facts {
        gap: 10px 18px;
    }

    .hero-facts li,
    .hero-facts li:first-child {
        padding: 0;
        border-left: 0;
        font-size: 13.5px;
    }

    .topic .arch {
        aspect-ratio: 1 / .8;
        padding: 20% 14% 6%;
    }

    .hero-actions .btn,
    .steps-cta .btn,
    .format-body .btn,
    .about-copy .btn,
    .cta-actions .btn,
    .tg-card .btn,
    .faq-side .btn {
        width: 100%;
        justify-content: space-between;
    }

    .hero-note {
        max-width: none;
    }

    .btn-lg {
        min-height: 58px;
        padding-left: 22px;
        font-size: 16px;
    }

    .btn-lg .btn-dot {
        width: 44px;
        height: 44px;
    }

    .cta,
    .tg-card {
        padding: 30px 22px;
        border-radius: 30px;
    }

    .myths-head {
        display: none;
    }

    .myth {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .faq-answer {
        padding-right: 0;
    }

    .person {
        grid-template-columns: 1fr;
    }

    .person .arch {
        max-width: 220px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .letter {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .reveal,
    .js .chat .msg {
        opacity: 1;
        transform: none;
    }

    .js .thread-draw path {
        stroke-dashoffset: 0;
    }

    .js .thread-draw .sun {
        transform: none;
    }

    .thoughts {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .thoughts-row {
        width: auto;
    }

    .thoughts-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 0;
    }

    .thoughts-list[aria-hidden="true"] {
        display: none;
    }
}
