/* Layout: «редакционный журнал о спокойствии» — асимметричная бенто-сетка, главное фото доминирует;
   молочный фон с бумажной фактурой, пудровые и песочные карточки, оливковые кнопки, шоколадный текст;
   страница читается как история из глав: с чем вы пришли → зоны комфорта → обо мне → как я работаю */
:root {
  color-scheme: light;
  --milk: #fbf7f2;        /* фон */
  --paper: #fffdf9;       /* светлые карточки */
  --powder: #f4e6e1;      /* пудровый */
  --rose: #ead2cd;        /* пыльно-розовый */
  --sand: #eee2d2;        /* тёплый песочный */
  --sage: #e1e6d4;        /* мягкий шалфей */
  --olive: #66724b;       /* кнопки */
  --olive-deep: #545e3d;
  --on-olive: #fffdf9;
  --choc: #3a2a24;        /* основной текст */
  --muted: #76645c;
  --line: rgba(58, 42, 36, .12);

  --font-display: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.2rem;
  --step-2: clamp(1.35rem, 1.15rem + .8vw, 1.7rem);
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
  --step-4: clamp(2.4rem, 1.4rem + 4vw, 4.6rem);

  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 20px;
  --wrap: 1240px;
  --gutter: clamp(16px, 3.5vw, 40px);
  --soft-shadow: 0 24px 48px -32px rgba(58, 42, 36, .35);
  --ease: cubic-bezier(.22, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0; background: var(--milk); color: var(--choc);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* Бумажная фактура поверх всего экрана */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .22 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.22; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--olive); }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 46ch; line-height: 1.6; }
.prose { max-width: 60ch; display: flex; flex-direction: column; gap: 1.1rem; }
.prose p { color: var(--muted); }
.eyebrow { font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--olive); font-weight: 600; }
.chapter { display: flex; align-items: center; gap: .9rem; font-size: var(--step--1); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.chapter b { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.6rem; color: var(--olive); text-transform: none; letter-spacing: 0; }
.chapter::after { content: ""; flex: 0 0 56px; height: 1px; background: var(--line); }
.head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: clamp(32px, 5vw, 64px); max-width: 52rem; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.7rem; border-radius: 999px; background: var(--olive); color: var(--on-olive);
  text-decoration: none; font-weight: 600; font-size: 1rem; border: 1.5px solid var(--olive); cursor: pointer;
  transition: background .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--olive-deep); border-color: var(--olive-deep); transform: translateY(-2px); box-shadow: var(--soft-shadow); }
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn--soft { background: var(--rose); border-color: var(--rose); color: var(--choc); }
.btn--soft:hover { background: #e2c3bd; border-color: #e2c3bd; }
.btn--ghost { background: transparent; color: var(--choc); border-color: rgba(58,42,36,.25); }
.btn--ghost:hover { background: var(--paper); border-color: var(--choc); }
.btn--small { padding: .7rem 1.25rem; font-size: .93rem; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.reassure { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--muted); }
.reassure svg { width: 1em; height: 1em; color: var(--olive); flex: none; }

/* ---------- Шапка: плавающая «пилюля» ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; padding: 14px var(--gutter) 0; }
.bar {
  max-width: var(--wrap); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--line); border-radius: 999px; padding: .45rem .45rem .45rem 1.5rem;
  box-shadow: 0 10px 30px -22px rgba(58,42,36,.4);
}
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; }
.logo b { font-family: var(--font-display); font-size: 1.22rem; font-weight: 400; }
.logo span { font-size: .72rem; color: var(--muted); letter-spacing: .03em; }
.nav { display: flex; gap: .15rem; align-items: center; }
.nav a { text-decoration: none; font-size: .94rem; padding: .6rem .95rem; border-radius: 999px; transition: background .3s var(--ease); }
.nav a:not(.btn):hover { background: var(--powder); }
.header-facts { display: none; }
@media (min-width: 1180px) {
  .header-facts { display: flex; gap: .4rem; font-size: .78rem; color: var(--muted); }
}

/* Мобильная «док-пилюля» внизу экрана — под большой палец */
.dock { display: none; }
.sheet { display: none; }
@media (max-width: 900px) {
  .site-header { position: static; padding-top: 12px; }
  .bar { justify-content: center; padding: .7rem 1.2rem; }
  .bar .nav { display: none; }
  .logo { align-items: center; text-align: center; }
  .dock {
    display: flex; position: fixed; z-index: 50; left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line); border-radius: 999px; padding: .4rem; gap: .4rem; box-shadow: 0 16px 40px -18px rgba(58,42,36,.45);
  }
  .dock > * { flex: 1; }
  .dock-menu { background: transparent; border: 0; font: inherit; font-weight: 600; color: var(--choc); border-radius: 999px; padding: .85rem; cursor: pointer; }
  .dock-menu:active { background: var(--powder); }
  .sheet {
    display: block; position: fixed; z-index: 49; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: .6rem; box-shadow: var(--soft-shadow);
    transform: translateY(16px); opacity: 0; visibility: hidden; transition: transform .35s var(--ease), opacity .35s var(--ease), visibility .35s;
  }
  .sheet.is-open { transform: none; opacity: 1; visibility: visible; }
  .sheet a { display: block; padding: .95rem 1.1rem; border-radius: 16px; text-decoration: none; font-size: 1.05rem; }
  .sheet a:active { background: var(--powder); }
  body { padding-bottom: 96px; }
}

/* ---------- Hero: асимметричное бенто ---------- */
.hero { padding-block: clamp(20px, 3vw, 40px) clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 1rem; }
.hero-grid > * { min-width: 0; }
.tile { border-radius: var(--r-lg); padding: clamp(1.4rem, 2.6vw, 2.2rem); background: var(--paper); display: flex; flex-direction: column; gap: .9rem; min-width: 0; position: relative; }
.t-powder { background: var(--powder); } .t-rose { background: var(--rose); } .t-sand { background: var(--sand); } .t-sage { background: var(--sage); }
.t-olive { background: var(--olive); color: var(--on-olive); }
.t-olive h3 em, .t-olive h2 em { color: var(--rose); }
.photo-tile { border-radius: var(--r-xl); overflow: hidden; position: relative; min-height: 560px; background: var(--rose); }
.photo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.photo-tile figcaption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem;
  background: color-mix(in srgb, var(--paper) 84%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--r-md); padding: .85rem 1.1rem; font-size: .9rem; line-height: 1.35;
}
.photo-tile figcaption b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; }
.hero-side { display: flex; flex-direction: column; gap: 1rem; }
.hero-intro { flex: 1; justify-content: center; gap: 1.4rem; background: var(--powder); border-radius: var(--r-xl); }
.hero-intro h1 em { display: inline; }
.fears { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.fears li { display: inline-flex; align-items: center; gap: .45rem; background: var(--paper); border-radius: 999px; padding: .4rem .9rem; font-size: .88rem; }
.fears li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mini { text-decoration: none; transition: transform .4s var(--ease), background .4s var(--ease); gap: .4rem; }
.mini:hover { transform: translateY(-4px); }
.mini small { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.mini b { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1.2; }
.mini .meta { margin-top: auto; padding-top: .6rem; font-size: .92rem; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.mini .arrow { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper); flex: none; transition: background .3s var(--ease), color .3s var(--ease); }
.mini:hover .arrow { background: var(--olive); color: var(--on-olive); }
.t-olive .meta { color: rgba(255,253,249,.8); }
.t-olive small { color: rgba(255,253,249,.75); }
.t-olive .arrow { background: rgba(255,253,249,.18); }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .photo-tile { min-height: 0; aspect-ratio: 4 / 5; max-height: 72vh; }
  .mini-grid { grid-template-columns: 1fr; }
}

/* ---------- Глава 1: с чем вы пришли ---------- */
.quotes { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.quote {
  border-radius: var(--r-lg); padding: clamp(1.4rem, 2.5vw, 2rem); background: var(--paper);
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 1.1rem + .7vw, 1.75rem); line-height: 1.3;
  display: flex; flex-direction: column; gap: 1.2rem; transition: transform .5s var(--ease), background .5s var(--ease);
}
.quote::before { content: "«"; font-size: 2.6rem; line-height: .5; color: var(--olive); opacity: .5; }
.quote:hover { transform: translateY(-4px) rotate(-.4deg); }
.q-a { grid-column: 1 / span 7; } .q-b { grid-column: 8 / span 5; }
.q-c { grid-column: 1 / span 4; } .q-d { grid-column: 5 / span 4; } .q-e { grid-column: 9 / span 4; }
.after-quotes { margin-top: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; }
.after-quotes p { font-family: var(--font-display); font-size: var(--step-2); max-width: 36ch; }
@media (max-width: 820px) { .quotes { grid-template-columns: 1fr; } .q-a, .q-b, .q-c, .q-d, .q-e { grid-column: auto; } }

/* ---------- Глава 2: зоны комфорта ---------- */
.zones { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.zone { text-decoration: none; transition: transform .45s var(--ease), background .45s var(--ease); min-height: 240px; }
.zone:hover { transform: translateY(-4px); }
.zone .tag { align-self: flex-start; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
.zone p { color: var(--muted); }
.zone .go { margin-top: auto; display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .93rem; }
.zone .go::after { content: "→"; transition: transform .35s var(--ease); }
.zone:hover .go::after { transform: translateX(5px); }
.t-powder.zone:hover { background: #efdcd5; } .t-sand.zone:hover { background: #e7d8c4; } .t-sage.zone:hover { background: #d8dfc7; } .t-rose.zone:hover { background: #e4c7c1; }
.z-wide { grid-column: span 3; } .z-mid { grid-column: span 2; }
@media (max-width: 900px) { .zones { grid-template-columns: 1fr 1fr; } .z-wide, .z-mid { grid-column: span 1; } }
@media (max-width: 560px) { .zones { grid-template-columns: 1fr; } .zone { min-height: 0; } }

/* ---------- Глава 3: обо мне ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about > * { min-width: 0; }
.about-photo { position: relative; }
.about-photo .frame { border-radius: 260px 260px var(--r-xl) var(--r-xl); overflow: hidden; aspect-ratio: 3 / 4; background: var(--sand); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.about-photo .note {
  position: absolute; right: -4%; bottom: 8%; max-width: 230px; background: var(--paper); border-radius: var(--r-md); padding: 1rem 1.2rem;
  font-family: var(--font-display); font-style: italic; font-size: 1.1rem; line-height: 1.35; box-shadow: var(--soft-shadow);
}
.about-text { display: flex; flex-direction: column; gap: 1.6rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.stat { border-radius: var(--r-md); padding: 1.1rem 1.2rem; background: var(--sand); display: flex; flex-direction: column; gap: .3rem; }
.stat b { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 1.5rem + 1.3vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .86rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 420px; } .about-photo .note { right: 0; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Глава 4: как я работаю ---------- */
.approach { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.approach > * { min-width: 0; }
.a-main { grid-column: span 7; background: var(--sage); }
.a-time { grid-column: span 5; background: var(--olive); color: var(--on-olive); justify-content: space-between; }
.a-time .big { font-family: var(--font-display); font-size: clamp(4rem, 3rem + 4vw, 7rem); line-height: .9; }
.a-time p { color: rgba(255,253,249,.85); }
.a-methods { grid-column: span 12; background: var(--paper); }
.methods { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.methods li { border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem; font-size: .95rem; background: var(--milk); }
.methods li small { color: var(--olive); font-weight: 600; margin-left: .35rem; }
.steps { grid-column: span 12; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; }
.steps .tile::before { content: counter(s, decimal-leading-zero); font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--olive); }
.steps p { color: var(--muted); }
@media (max-width: 860px) {
  .a-main, .a-time, .a-methods { grid-column: span 12; }
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Услуги и цены ---------- */
.services { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.service { gap: 1rem; }
.service .price { font-family: var(--font-display); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.9rem); line-height: 1; font-variant-numeric: tabular-nums; }
.service .price small { font-family: var(--font-body); font-size: .9rem; color: var(--muted); }
.service p { color: var(--muted); }
.service .btn-row, .service > .btn { margin-top: auto; }
.service > .btn { align-self: flex-start; }
.s-consult { grid-column: span 5; }
.s-course { grid-column: span 7; }
.s-practice { grid-column: span 5; }
.s-podcast { grid-column: span 7; }
.t-olive.service p, .t-olive.service .price small { color: rgba(255,253,249,.82); }
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; font-size: .95rem; }
.feature-list li::before { content: "— "; color: var(--olive); }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } .s-consult, .s-course, .s-practice, .s-podcast { grid-column: auto; } }

/* ---------- Образование ---------- */
.edu-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.edu-grid > * { min-width: 0; }
.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: 4.4rem 1fr; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.timeline time { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--olive); font-variant-numeric: tabular-nums; }
.timeline small { display: block; color: var(--muted); font-size: .88rem; margin-top: .2rem; line-height: 1.45; }
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.doc {
  appearance: none; border: 0; padding: 0; background: var(--paper); border-radius: 16px; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4 / 3; position: relative; font: inherit; color: inherit;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.doc:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--soft-shadow); }
.doc img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doc--tall { grid-row: span 2; aspect-ratio: auto; }
.doc-ph {
  display: grid; place-items: center; text-align: center; padding: .75rem; font-size: .82rem; color: var(--muted); cursor: default;
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(102,114,75,.07) 12px 13px), var(--sand); border: 1.5px dashed rgba(58,42,36,.2);
}
.doc-ph:hover { transform: none; box-shadow: none; }
@media (max-width: 860px) { .edu-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .docs { grid-template-columns: repeat(2, 1fr); } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(43, 31, 27, .82); backdrop-filter: blur(4px); }
.lightbox img { max-height: 82vh; width: auto; margin-inline: auto; border-radius: 14px; }
.lightbox p { color: #fff; text-align: center; margin-top: .7rem; font-size: .95rem; }
.lightbox button { position: fixed; top: 16px; right: 16px; background: var(--paper); color: var(--choc); border: 0; border-radius: 999px; padding: .65rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Контакты ---------- */
.contact-wrap { background: var(--rose); border-radius: var(--r-xl); padding: clamp(1.6rem, 5vw, 4.5rem); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); }
.contact-wrap > * { min-width: 0; }
.contact-intro { display: flex; flex-direction: column; gap: 1.2rem; }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-content: start; }
.contact {
  display: flex; flex-direction: column; gap: .2rem; padding: 1.2rem 1.35rem; border-radius: var(--r-md); background: var(--paper); text-decoration: none;
  transition: transform .4s var(--ease), background .4s var(--ease);
}
a.contact:hover { transform: translateY(-3px); background: #fff; }
a.contact:active { transform: scale(.98); }
.contact small { color: var(--olive); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.contact b { font-weight: 500; font-size: 1.05rem; overflow-wrap: anywhere; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; grid-column: 1 / -1; margin-top: .5rem; }
.chip { border: 1px solid rgba(58,42,36,.22); border-radius: 999px; padding: .45rem 1rem; font-size: .92rem; text-decoration: none; transition: background .3s var(--ease); }
a.chip:hover { background: var(--paper); }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contacts { grid-template-columns: 1fr; } }

/* ---------- Подвал ---------- */
.site-footer { padding-block: 2.5rem 3rem; color: var(--muted); font-size: .86rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; }

/* ---------- Страница курса ---------- */
.course-hero .hero-intro h1 { text-transform: uppercase; letter-spacing: .01em; }
.course-intro { display: grid; grid-template-columns: 5fr 7fr; gap: 1rem; }
.course-intro > * { min-width: 0; }
@media (max-width: 860px) { .course-intro { grid-template-columns: 1fr; } }
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.path li { background: var(--paper); border-radius: var(--r-md); padding: 1.4rem 1.5rem; display: grid; grid-template-columns: 3.6rem 1fr; gap: 1.1rem; align-items: start; transition: transform .45s var(--ease); }
.path li:hover { transform: translateY(-3px); }
.path .num { font-family: var(--font-display); font-style: italic; font-size: 1.55rem; color: var(--olive); background: var(--powder); border-radius: 16px; display: grid; place-items: center; height: 3.3rem; font-variant-numeric: tabular-nums; }
.path li.wide .num { font-size: 1.05rem; }
.path h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.path p { color: var(--muted); font-size: .97rem; }
@media (max-width: 760px) { .path { grid-template-columns: 1fr; } }
.blocks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.blocks .tile p { color: var(--muted); font-size: .97rem; }
@media (max-width: 1000px) { .blocks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blocks { grid-template-columns: 1fr; } }
.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 820px) { .prices { grid-template-columns: 1fr; } }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table td { padding: .8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table td:last-child { text-align: right; font-weight: 600; padding-left: 1rem; }
.t-olive .price-table td { border-color: rgba(255,253,249,.2); }
.save { display: block; font-weight: 500; font-size: .85rem; color: var(--olive); }
.t-olive .save { color: var(--rose); }
.cta-tile { align-items: center; text-align: center; gap: 1.3rem; padding-block: clamp(2.5rem, 6vw, 5rem); }
.codeword { font-family: var(--font-display); font-style: italic; font-size: clamp(1.8rem, 1.2rem + 3vw, 3.6rem); background: var(--paper); border-radius: 999px; padding: .35rem 2rem; max-width: 100%; overflow-wrap: anywhere; }

/* ---------- Плавное появление при прокрутке ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal.d1 { transition-delay: .1s; } .js .reveal.d2 { transition-delay: .2s; } .js .reveal.d3 { transition-delay: .3s; }
  .hero .tile, .hero .photo-tile { animation: rise 1.1s var(--ease) both; }
  .hero .hero-side > :nth-child(2) { animation-delay: .15s; }
  @keyframes rise { from { opacity: 0; transform: translateY(20px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 560px) { .photo-tile figcaption { left: .6rem; right: .6rem; bottom: .6rem; padding: .6rem .9rem; } .photo-tile figcaption > span:last-child:not(:first-child) { display: none; } }

/* ---------- Подарок ---------- */
.services .s-consult, .services .s-course, .services .s-practice { grid-column: span 4; }
@media (max-width: 900px) { .services .s-consult, .services .s-course, .services .s-practice { grid-column: auto; } }
.gift { background: var(--rose); border-radius: var(--r-xl); padding: clamp(1.6rem, 5vw, 4.5rem); display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: center; position: relative; overflow: hidden; }
.gift > * { min-width: 0; }
.gift::before { content: ""; position: absolute; width: 420px; height: 420px; left: -160px; bottom: -220px; border-radius: 50%; background: var(--powder); opacity: .7; }
.gift-text { position: relative; display: flex; flex-direction: column; gap: 1.3rem; }
.gift-text .lead { color: var(--choc); opacity: .85; max-width: 52ch; }
.gift-cta { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); }
.btn--paper { background: var(--paper); border-color: var(--paper); color: var(--choc); }
.btn--paper:hover { background: #fff; border-color: #fff; }
.gift-visual { position: relative; }
.gift-photo { border-radius: 220px 220px var(--r-lg) var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.gift-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.gift-steps { position: absolute; left: -12%; bottom: 6%; margin: 0; padding: 1rem 1.2rem 1rem 2.4rem; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--soft-shadow); font-size: .92rem; line-height: 1.45; display: flex; flex-direction: column; gap: .35rem; max-width: 270px; }
.gift-steps li::marker { color: var(--olive); font-family: var(--font-display); font-style: italic; }
.gift-badge { position: absolute; top: 6%; right: -2%; background: var(--olive); color: var(--on-olive); border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; font-size: .9rem; transform: rotate(6deg); box-shadow: var(--soft-shadow); }
@media (max-width: 860px) {
  .gift { grid-template-columns: 1fr; }
  .gift-visual { max-width: 380px; width: 100%; justify-self: center; }
  .gift-steps { left: 0; right: 0; max-width: none; position: relative; margin-top: -3rem; margin-inline: 1rem; }
  .gift-badge { right: 4%; }
}
.service .price { color: var(--choc); }
.t-olive.service .price { color: var(--on-olive); }
.t-olive .feature-list li::before { color: var(--rose); }
.doc--wide { grid-column: span 2; }
@media (max-width: 480px) { .doc--wide { grid-column: span 2; } }
/* Сетка дипломов: ровные ряды */
.docs { grid-auto-rows: clamp(110px, 11vw, 150px); grid-auto-flow: dense; }
.docs .doc { aspect-ratio: auto; height: 100%; }
.docs .doc--wide { grid-column: span 2; grid-row: span 2; }
.docs .doc--tall { grid-row: span 2; }
.docs .doc--long { grid-column: span 2; }
.docs .doc img { object-position: center; }
.docs .doc--tall img { object-position: top center; }
/* Мини-карточки на первом экране: не вылезать за край на средних экранах */
.mini-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mini b { font-size: clamp(1.1rem, .95rem + .45vw, 1.35rem); overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.mini small, .tile h3, .zone h3, .quote { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1180px) {
  .mini-grid { grid-template-columns: 1fr; gap: .6rem; }
  .mini { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 1rem; row-gap: .2rem; padding-block: 1rem; }
  .mini small { flex-basis: 100%; }
  .mini b { flex: 1 1 12rem; }
  .mini .meta { margin-top: 0; padding-top: 0; gap: .8rem; }
}
