/* ===== Токены ===== */
:root {
  --bg: #F4F4F1;
  --surface: #FFFFFF;
  --hero: #E4E4DF;
  --ink: #111111;
  --ink-2: #2A2A27;
  --muted: #5C5C57;
  --muted-2: #6E6E68;
  --line: #DADAD5;
  --line-soft: #ECECE8;
  --busy-bg: #E6E6E2;
  --busy-fg: #9A9A94;
  --field: #FAFAF8;
  --accent: #111111;
  --error: #A3341F;
  --ph-a: #ECECE8;
  --ph-b: #E4E4DF;
  --serif: Prata, Georgia, serif;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); padding-bottom: 24px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: #55554F; }
h1, h2, h3, p, figure { margin: 0; }
input, textarea, button { font-family: inherit; }
input::placeholder, textarea::placeholder { color: #8C8C86; }
input:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.wrap { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
.sec { margin-top: 120px; }
.m-only { display: none; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.3vw, 50px); line-height: 1.1; }
.sec-lead { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 600px; }
.big-title { font-family: var(--serif); font-size: 28px; }
.muted-sm { font-size: 12px; color: var(--muted-2); }

/* Заглушка под картинку/инфографику */
.ph {
  background: repeating-linear-gradient(135deg, var(--ph-a) 0 12px, var(--ph-b) 12px 24px);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: #6A6A64;
}

/* ===== Кнопки ===== */
.icon-btn {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn--dark { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.icon-btn--dark:hover { color: #FFFFFF; }
.icon-btn--sm { width: 40px; height: 40px; }

.pill-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 6px 26px 6px 6px; border-radius: 999px; border: none;
  font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
.pill-btn__icon { width: 44px; height: 44px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pill-btn--light { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.pill-btn--light .pill-btn__icon { background: var(--ink); color: #FFFFFF; }
.pill-btn--dark { background: var(--accent); color: #FFFFFF; }
.pill-btn--dark:hover { color: #FFFFFF; }
.pill-btn--dark .pill-btn__icon { background: #FFFFFF; color: var(--ink); }
.pill-btn:disabled { opacity: .6; cursor: progress; }

.ghost-btn { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); }
.dark-btn { background: var(--ink); color: #FFFFFF; border-radius: 999px; padding: 13px 22px; font-size: 13px; font-weight: 700; text-decoration: none; }
.dark-btn:hover { color: #FFFFFF; }

/* ===== Шапка ===== */
.hdr { display: flex; align-items: center; justify-content: space-between; height: 84px; position: relative; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; text-decoration: none; }
.logo { font-family: var(--serif); font-size: 30px; text-decoration: none; letter-spacing: -.01em; position: absolute; left: 50%; transform: translateX(-50%); }
.logo sup { font-family: var(--sans); font-size: 11px; font-weight: 700; margin-left: 2px; }
.hdr-right { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.hdr-tg { font-size: 14px; font-weight: 500; text-underline-offset: 4px; }

/* ===== Первый экран ===== */
.hero {
  position: relative; container-type: inline-size;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 35%); column-gap: 28px;
  min-height: clamp(500px, 38vw, 640px); padding: 18px;
  border-radius: 28px; overflow: hidden; background: var(--hero);
}
.hero-left { display: flex; flex-direction: column; justify-content: center; gap: clamp(32px, 4cqw, 56px); padding: 28px 22px 24px; }
.hero-h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5.1cqw, 74px); line-height: 1.02; letter-spacing: -.01em; text-transform: uppercase; }
.hero-sub { margin-top: .5em; font-family: var(--serif); font-size: clamp(22px, 2.6cqw, 38px); line-height: 1.15; color: #55554F; }
.hero-copy { max-width: 520px; }
.text-link { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: #A9A9A3; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-link:hover { color: var(--ink); text-decoration-color: currentColor; }
.hero-copy p { margin-bottom: 24px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.hero-photo { position: relative; border-radius: 22px; overflow: hidden; background: #0E0E0E; min-height: 420px; }
.hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* Кнопка «Почему я имею право…» на фото */
.why-btn {
  position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); z-index: 2;
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 6px 6px 6px 18px; border: none; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.94); color: var(--ink); font: 600 14px/1.3 var(--sans);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.why-btn__icon { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--ink); color: #FFFFFF; display: flex; align-items: center; justify-content: center; transition: transform .25s ease; }
.why-btn[aria-expanded="true"] .why-btn__icon { transform: rotate(180deg); }

/* Раскрывающийся блок с историей Electron Motors */
.story {
  margin-top: 20px; background: var(--surface); border-radius: 28px; padding: clamp(24px, 3vw, 44px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 3.5vw, 48px); align-items: start;
  animation: rise .45s ease both; scroll-margin-top: 16px;
}
.story__title .text-link { font-weight: inherit; }
.story__title { margin: 0 0 20px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.15; }
.story__text p { margin-bottom: 12px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.story__label { margin: 26px 0 12px; font-size: 13px; font-weight: 700; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stats li { background: var(--bg); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.stats b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.stats span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.story__close { grid-column: 1; justify-self: start; margin-top: -8px; }
.story__shot { position: sticky; top: 16px; }
.story__shot-btn { position: relative; display: block; width: 100%; padding: 0; border: none; border-radius: 18px; overflow: hidden; background: #141A28; cursor: zoom-in; }
.story__shot-btn img { width: 100%; height: auto; }
.story__zoom { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 12px; font-weight: 700; }
.story__shot figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Дашборд целиком */
.shot-dialog { width: min(1240px, 94vw); max-width: none; padding: 0; border: none; border-radius: 18px; background: #141A28; overflow: hidden; }
.shot-dialog::backdrop { background: rgba(10,10,10,.75); }
.shot-dialog__scroll { max-height: 88vh; overflow: auto; }
.shot-dialog__scroll img { width: 100%; min-width: 900px; height: auto; }
.shot-dialog__close { position: absolute; top: 10px; right: 10px; z-index: 1; }

/* ===== Полоса записи ===== */
.bar-wrap { margin-top: 20px; }
.bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: center; background: var(--surface); border-radius: 999px; padding: 10px 10px 10px 16px; }
.bar-item { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px; font-size: 14px; font-weight: 600; text-align: center; }
.bar-item + .bar-item { border-left: 1px solid var(--line-soft); }
.bar-item svg { flex: none; }
.bar-go { margin-left: 10px; width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--ink); color: #FFFFFF; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.bar-go:hover { color: #FFFFFF; }

/* ===== Шаги ===== */
.steps-lead { max-width: 820px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.step-card { background: var(--surface); border-radius: 22px; padding: 10px 10px 18px; display: flex; flex-direction: column; }
.step-card__img {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: none;
  border-radius: 16px; overflow: hidden; background: var(--ph-a);
}
.step-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.step-card__img--right img { object-position: 100% 50%; }
.step-card__num { position: absolute; top: 10px; right: 10px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px; }
.step-card__dur { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 5px; color: #FFFFFF; background: var(--ink); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.step-card__body { padding: 18px 10px 0; display: flex; flex-direction: column; flex-grow: 1; }
.step-card__body h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.step-card__body p { margin: 10px 0 18px; font-size: 14px; line-height: 1.55; color: var(--muted); flex-grow: 1; }
.step-card__link { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line-soft); padding-top: 14px; font-size: 13px; font-weight: 600; text-decoration: none; }

/* ===== Запись ===== */
.book-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.book-head p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.contact-alt { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; background: var(--hero); border-radius: 20px; padding: 14px 14px 14px 24px; }
.contact-alt__text { font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 560px; }
.contact-alt__text b { font-weight: 700; color: var(--ink); }
.contact-alt__links { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-btn { border: none; font-family: inherit; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 999px; padding: 6px 20px 6px 6px; text-decoration: none; font-size: 14px; font-weight: 700; }
.contact-btn:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.contact-btn small { margin-left: 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.contact-btn__icon { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--ink); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.contact-alt + .book-card { margin-top: 16px; }
.book-card { margin-top: 36px; background: var(--surface); border-radius: 28px; padding: 32px; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); }

.cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.cal-nav { display: flex; gap: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-week { margin-bottom: 8px; }
.cal-week div { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted-2); padding: 4px 0; }

.day {
  height: 66px; width: 100%; border-radius: 14px; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 16px; font-weight: 600;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); cursor: pointer;
}
.day__sub { font-size: 10px; font-weight: 500; color: var(--muted); }
.day:not(:disabled):hover { border-color: var(--ink); }
.day.is-busy { background: var(--busy-bg); color: var(--busy-fg); border-color: var(--busy-bg); cursor: default; }
.day.is-busy .day__sub { color: #A6A6A0; }
.day.is-full .day__num { text-decoration: line-through; }
.day.is-on { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }
.day.is-on .day__sub { color: #D9D9D4; }
.day--blank { height: 66px; }

.legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 20px; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 8px; }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg--free { background: var(--surface); border: 1px solid #D6D6D0; }
.lg--busy { background: var(--busy-bg); }
.lg--on { background: var(--accent); }

.slot-col { border-left: 1px solid var(--line-soft); padding-left: clamp(24px, 3vw, 40px); }
.day-summary { font-size: 13px; color: var(--muted); margin: 6px 0 22px; min-height: 18px; }
.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.slot {
  height: 46px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
}
.slot:not(:disabled):hover { border-color: var(--ink); }
.slot:disabled { background: var(--busy-bg); color: var(--busy-fg); border-color: var(--busy-bg); text-decoration: line-through; cursor: default; }
.slot.is-on { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }
.note { margin-top: 22px; font-size: 12px; line-height: 1.5; color: var(--muted-2); }

/* Выезжающая панель под календарём */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal-panel { margin-top: 32px; border-top: 1px solid var(--line-soft); padding-top: 32px; animation: rise .45s ease both; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.panel-head__left { display: flex; align-items: center; gap: 14px; }
.round-icon { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--accent); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.round-icon--lg { width: 56px; height: 56px; }
.booking-label { font-size: 18px; font-weight: 700; }

.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; }
.form-col { display: flex; flex-direction: column; gap: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.field .opt { font-weight: 500; color: var(--muted-2); }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  font-size: 15px; background: var(--field); color: var(--ink);
}
.field input { height: 50px; padding: 0 16px; }
.field textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field.has-error input { border-color: var(--error); }

.about-box { background: var(--bg); border-radius: 20px; padding: 24px; }
.about-box__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.about-box__title { font-size: 16px; font-weight: 700; }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; background: var(--surface); color: #55554F; }
.about-box__text { margin: 10px 0 20px; font-size: 13px; line-height: 1.55; color: #4A4A45; }
.about-box .field textarea { background: var(--surface); }
.chip-label { font-size: 13px; font-weight: 600; margin: 18px 0 4px; }
.chip-hint { font-size: 12px; color: var(--muted-2); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.chip[aria-pressed="true"] { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: #4A4A45; max-width: 560px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.form-error { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--error); }

.done { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.done__left { display: flex; align-items: center; gap: 18px; }
.done__text { font-size: 14px; color: var(--muted); margin-top: 6px; }
.done-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== Материалы ===== */
.mat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: start; }
.mat-lead { margin: 16px 0 44px; max-width: 460px; }
.feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
.feat__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feat h3 { margin-bottom: 8px; font-size: 17px; font-weight: 600; }
.feat p { font-size: 13px; line-height: 1.55; color: var(--muted); }
.feat__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 700; text-decoration: none; }
.feat__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.mat-cta { margin-top: 44px; }

/* Карта инструментов */
.tools { background: var(--surface); color: var(--ink); border-radius: 28px; padding: clamp(22px, 2.6vw, 34px); scroll-margin-top: 16px; }
.tools__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.tools__title { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; }
.tools__sub { margin-top: 6px; font-size: 13px; color: var(--muted); }
.tools__live { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tools__live i { width: 8px; height: 8px; border-radius: 50%; background: #2E9E5B; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(46, 158, 91, .55); } 50% { box-shadow: 0 0 0 6px rgba(46, 158, 91, 0); } }
.tools__list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tool { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 16px; background: var(--bg); }
.tool__logo { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tool__logo img { width: 26px; height: 26px; }
.tool__logo--empty { color: #9A9A94; border-style: dashed; border-color: var(--line); }
.tool__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tool__task { font-size: 12px; color: var(--muted); }
.tool__name { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none; }
a.tool__name:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tool__name--todo { color: #9A9A94; font-weight: 600; }
.tool__tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #FFFFFF; }
.tool__tag--soft { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.tools__note { margin-top: 22px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.tools__foot { margin-top: 10px; font-size: 12px; color: var(--muted-2); }

/* ===== Страницы документов ===== */
.doc { max-width: 820px; margin: 24px auto 0; background: var(--surface); border-radius: 28px; padding: clamp(24px, 4vw, 56px); }
.doc__back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-decoration: none; margin-bottom: 24px; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; }
.doc__meta { margin-top: 10px; font-size: 13px; color: var(--muted); }
.doc h2 { margin: 36px 0 12px; font-size: 19px; font-weight: 700; }
.doc p, .doc li { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.doc p { margin: 0 0 10px; }
.doc ul, .doc ol { margin: 0 0 10px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc__card { margin: 20px 0 0; padding: 18px 20px; border-radius: 16px; background: var(--bg); }
.doc__card p { margin: 0 0 4px; }

/* ===== Подвал ===== */
.foot { background: var(--ink); color: #FFFFFF; border-radius: 28px; padding: 48px 44px 28px; }
.foot a { color: #FFFFFF; text-decoration: none; }
.foot a:hover { color: #CFCFCA; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.logo--foot { position: static; transform: none; }
.foot-brand p { margin-top: 14px; font-size: 14px; line-height: 1.55; color: #B8B8B2; max-width: 320px; }
.foot-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #8F8F89; margin-bottom: 16px; }
.foot-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid #2E2E2B; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #8F8F89; }
.foot-bottom a { color: #B8B8B2; text-decoration: underline; }
.foot-bottom--solo { margin-top: 0; padding-top: 0; border-top: none; }

/* ===== Небольшие ноутбуки, планшеты в альбомной ориентации ===== */
@media (max-width: 1180px) and (min-width: 901px) {
  .bar { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; border-radius: 28px; padding: 8px 8px 8px 16px; }
  .bar-item:nth-child(3) { border-left: none; }
  .bar-item:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .bar-go { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 1180px) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Планшеты и телефоны ===== */
@media (max-width: 900px) {
  .nav-links, .hide-m { display: none; }
  .m-only { display: inline; }
  .hdr { height: 64px; }
  .logo { position: static; transform: none; font-size: 24px; }
  .sec { margin-top: 80px; }

  .hero { display: flex; flex-direction: column; gap: 22px; padding: 22px 16px 16px; min-height: 0; border-radius: 24px; }
  .hero-left { display: contents; }
  .hero-title { order: 1; }
  .hero-h1 { font-size: clamp(28px, 10.5cqw, 52px); }
  .hero-sub { font-size: clamp(20px, 6.2cqw, 30px); }
  .hero-copy { order: 2; max-width: none; }
  .hero-photo { order: 3; width: 100%; aspect-ratio: 4 / 5; max-height: 560px; min-height: 0; }

  .bar { grid-template-columns: minmax(0, 1fr); border-radius: 24px; padding: 8px 18px 18px; }
  .bar-item { justify-content: flex-start; text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .bar-item + .bar-item { border-left: none; }
  .bar-go { width: 100%; height: 54px; border-radius: 999px; margin: 14px 0 0; gap: 10px; font-size: 14px; font-weight: 700; }

  .steps-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: 16px; }
  .steps-grid::-webkit-scrollbar { display: none; }
  .step-card { flex: none; width: min(340px, 82vw); scroll-snap-align: start; }

  .book-head, .book-grid, .mat-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .story { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
  .story__shot { position: static; }
  .story__close { margin-top: 0; }
  .book-card { padding: 20px; border-radius: 22px; margin-top: 24px; }
  .slot-col { border-left: none; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 24px; }
  .big-title { font-size: 24px; }
  .foot { padding: 36px 24px 24px; border-radius: 22px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

/* ===== Телефоны ===== */
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tool { grid-template-columns: auto minmax(0, 1fr); }
  .tool__tag { display: none; }
  .cal-grid { gap: 4px; }
  .day, .day--blank { height: 46px; }
  .day { border-radius: 10px; font-size: 15px; }
  .day__sub { display: none; }
  .book-card { padding: 16px; }
  .about-box { padding: 18px; }
  .why-btn { font-size: 13px; padding-left: 14px; }
  .contact-alt { padding: 18px; }
  .contact-alt__links { width: 100%; flex-direction: column; }
  .contact-btn { width: 100%; }
  .pill-btn { width: 100%; font-size: 13px; letter-spacing: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .done-actions { width: 100%; }
  .done-actions > * { flex: 1 1 auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-panel { animation: none; }
}
