/* ═══════════════════════════════════════════════════════════
   «Рядом с Викой» — редизайн главной, ноябрь 2026
   Стенд. На боевой сайт НЕ выкладывается без отдельного задания.

   Геометрия снята с макета пиксельно: окно 1193, контейнер 1121
   (поля по 36), шапка 47, карточки 175×180 с зазором 14.
   ═══════════════════════════════════════════════════════════ */

:root{
  --bg:          #FDF6F6;
  --brand:       #BD5A79;
  --brand-deep:  #A8426B;
  --brand-ink:   #B13A62;
  --title-ink:   #5A2340;
  --ink:         #241D29;
  --text:        #3F3946;
  /* TASK-005: было #8A8090 — 3,67 : 1 на светлом фоне при кегле 13 px,
     норма для мелкого текста 4,5 : 1. Стало #6E6478 — 5,4-5,6 : 1 на всех
     фонах проекта. Тот же цвет уже стоит на странице /istoriya/, так что в
     палитру не вводится ничего нового. */
  --muted:       #6E6478;

  --shell: 1143px;
}

*{ box-sizing:border-box; }

html,body{ margin:0; padding:0; }

body{
  color:var(--text);
  font-family:'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;

  /* единый фон страницы: розовое пятно героя плавно уходит в белый */
  background:
    radial-gradient(680px 420px at 6% 10%,   #FCE9EF 0%, rgba(252,233,239,0) 68%),
    radial-gradient(760px 480px at 96% 2%,   #FDE7E2 0%, rgba(253,231,226,0) 70%),
    radial-gradient(520px 420px at 52% 44%,  #FBE6EE 0%, rgba(251,230,238,0) 72%),
    linear-gradient(178deg,
      #FDF0F2 0px, #FDF0F2 240px,
      #FDF3F3 430px,
      #FDF6F6 640px, #FDF6F6 100%);
  background-repeat:no-repeat;
}

img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }

.shell{
  width:100%;
  max-width:var(--shell);
  margin:0 auto;
  padding:0;
}

/* ─────────────────────────── ШАПКА ─────────────────────────── */

.topbar{
  background:#fff;
  position:relative;
  z-index:30;
}

.topbar__inner{
  display:flex;
  align-items:center;
  height:47px;
}

.logo{ display:flex; align-items:center; gap:10px; flex:none; position:relative; z-index:2; }

/* Логотип — картинка (знак «цветок с портретом» + слово withvika).
   Подпись «Рядом с Викой» в исходном логотипе в шапке нечитаема: при высоте
   38px она была бы ростом 5px, поэтому в шапке стоит сокращённый замок. */
.logo__img{
  display:block;
  height:38px; width:auto;
}

.nav{
  display:flex;
  align-items:center;
  gap:2px;
  /* Логотип-картинка уже 127px вместо прежних 234px текстом: без этого
     отступа меню уезжает влево, а справа остаётся пустое поле. */
  margin-left:120px;
}

.nav__link{
  font-size:14px;
  font-weight:600;
  color:#36303C;
  padding:7px 15px;
  border-radius:999px;
  white-space:nowrap;
  transition:background .15s, color .15s;
}
.nav__link:hover{ background:#FCEFF3; color:var(--brand-ink); }

/* TASK-005: фон был var(--brand) — белый текст на нём давал 4,28 : 1 при
   норме 4,5 : 1. Взят --brand-deep (5,74 : 1) — тот самый цвет, который у
   пункта уже был на наведении, так что новых цветов в палитре не появилось. */
.nav__link--active{
  background:var(--brand-deep);
  color:#fff;
  padding:7px 24px;
}
.nav__link--active:hover{ background:var(--brand-deep); color:#fff; }

.topbar__tools{
  display:flex;
  align-items:center;
  gap:14px;
  margin-left:auto;
  flex:none;
}

/* Указатель языка, а не переключатель: английской версии нет, переключать
   нечего. Поэтому это <span> — ни курсора-руки, ни нажатия, ни стрелки вниз. */
.lang{
  display:flex; align-items:center; gap:5px;
  font-size:14px; font-weight:700; color:#2E2833;
  cursor:default;
}
.lang__globe{ width:20px; height:20px; fill:none; stroke:#2E2833; stroke-width:1.7; }

/* Текст только для скринридера: в потоке есть, на экране нет.
   Пара к нему — версия ресурсов в адресе (TASK-002C): без неё у вернувшегося
   посетителя могла оказаться новая разметка со старой таблицей стилей, и этот
   текст выводился бы на экран как обычный. */
.vh{
  position:absolute; width:1px; height:1px;
  margin:-1px; padding:0; border:0;
  clip:rect(0 0 0 0); clip-path:inset(50%);
  overflow:hidden; white-space:nowrap;
}

/* Разделы, которых пока нет: на десктопе приглушены, пояснение — в aria-label
   самой ссылки. Подпись «скоро» помечена в разметке атрибутом hidden и
   показывается только в компактном меню (ниже), где для неё есть место и где
   не страдает согласованная геометрия шапки. */
/* TASK-005: цвет был #8A8292 — 3,69 : 1 на белой шапке при кегле 14 px. */
.nav__link--soon{ color:var(--muted); font-weight:600; }
.nav__link--soon:hover{ background:#FBF2F5; color:var(--muted); }

/* Видимый фокус.
   Сначала (TASK-002B) правило было написано только для шапки — ради
   управления меню с клавиатуры. В остальной странице фокус рисовал сам
   браузер: видимый, но чужой и разный в разных браузерах.
   TASK-005: стиль один на все элементы управления страницы. Радиус здесь
   НЕ задаётся намеренно — рамка фокуса сама повторяет скругление элемента,
   а жёсткий border-radius обрубил бы углы карточкам (.tile, радиус 20px)
   ровно в тот момент, когда на них переходят клавиатурой. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible{
  outline:2.5px solid var(--brand);
  outline-offset:3px;
}
/* В шапке рамка прилегает плотнее: там кнопки стоят вплотную друг к другу. */
.topbar a:focus-visible,
.burger:focus-visible{
  outline-offset:2px;
  border-radius:999px;
}

/* ── Кнопка меню. На широком экране её нет: список виден целиком. ── */
.burger{ display:none; }
.burger__bars{ display:flex; flex-direction:column; justify-content:center; gap:4.5px; }
.burger__bars span{
  display:block; height:2.4px; width:21px;
  background:#2E2833; border-radius:2px;
  transition:transform .18s, opacity .18s;
}

/* ─────────────────────────── ГЕРОЙ ─────────────────────────── */

.hero{
  position:relative;
  padding:42px 0 33px;
}

.hero__blob{ display:none; }   /* фон собран на body */

.hero__inner{
  position:relative; z-index:2;
  display:grid;
  grid-template-columns:487px 656px;
  align-items:start;
}

.hero__left{ padding-left:29px; position:relative; z-index:6; min-width:0; }

.badge{
  display:inline-flex; align-items:center; gap:8px;
  margin:0;
  background:#F9DFE6;
  color:#A33A61;
  font-size:14px; font-weight:700; line-height:1.3;
  padding:6px 20px;
  border-radius:999px;
}
.badge__heart{
  width:15px; height:14px; flex:none;
  fill:none; stroke:#C2547C; stroke-width:2.4;
  stroke-linejoin:round;
}

.hero__title{
  /* В макете заголовок набран ПРЯМЫМ маркерным шрифтом, а не наклонным
     рукописным. Ближайший свободный кириллический — Shantell Sans 800;
     он шире оригинала, поэтому текст слегка растянут по вертикали. */
  font-family:'Shantell Sans', 'Caveat', cursive;
  font-weight:800;
  font-variation-settings:'BNCE' 0, 'INFM' 45;
  font-size:52px;
  line-height:1.40;
  color:var(--title-ink);
  margin:13px 0 0 -10px;
  display:flex; align-items:center; gap:17px;
  white-space:nowrap;
}
/* Shantell Sans шире шрифта макета примерно на 18%: при 62px строка «Рядом
   с Викой» выходила за свою колонку и ложилась на первую фотографию.
   Ширина чернил макета — 414px, поэтому кегль 52px, а высота букв
   возвращается вертикальным растяжением. */
.hero__title-t{ display:inline-block; transform:scaleY(1.30); transform-origin:center; }

.hero__title-heart{
  width:46px; height:42px; flex:none;
  fill:none; stroke:#E0567F; stroke-width:2.3;
  stroke-linejoin:round;
  margin-top:4px;
}

.hero__lead{
  margin:2px 0 0;
  font-size:18.5px;
  line-height:1.38;
  color:#3F3946;
}

.hero__actions{
  display:flex; gap:14px;
  margin-top:17px;
}

.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:inherit; font-size:15.5px; font-weight:700; line-height:1.2;
  border-radius:999px;
  padding:12px 28px;
  cursor:pointer;
  white-space:nowrap;
  transition:transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn__ico{ width:19px; height:19px; flex:none; fill:none; stroke:currentColor; stroke-width:2; }
.btn__ico--end{ stroke-linecap:round; stroke-linejoin:round; }

/* TASK-005: верхний стоп градиента был #C96389 — белый текст кегля 15,5 px
   давал на нём 3,73 : 1 при норме 4,5 : 1. Это главная кнопка сайта, и
   читалась она хуже всего остального. Стало #BA527A (4,59 : 1); нижний стоп
   #B44C72 (4,98 : 1) не трогали — градиент стал чуть ровнее, направление и
   форма прежние. */
.btn--primary{
  background:linear-gradient(180deg, #BA527A 0%, #B44C72 100%);
  color:#fff;
  border:0;
  box-shadow:0 6px 16px rgba(176,66,107,.20);
}
.btn--primary:hover{ transform:translateY(-1px); box-shadow:0 9px 20px rgba(176,66,107,.28); }

.btn--ghost{
  background:#FFF8FB;
  color:var(--brand-ink);
  border:1.6px solid #F0C3D4;
}
.btn--ghost:hover{ background:#fff; border-color:#E6A8C1; transform:translateY(-1px); }

.features{
  list-style:none;
  display:flex;
  gap:13px;
  margin:36px 0 0 -24px;
  padding:0;
}
.feature{
  display:flex; align-items:center; gap:8px;
  font-size:11.2px; font-weight:600; line-height:1.32;
  color:#4A4350;
  white-space:nowrap;
}
.feature__ico{
  width:21px; height:21px; flex:none;
  fill:none; stroke:#C2547C; stroke-width:1.9;
  stroke-linecap:round; stroke-linejoin:round;
}

/* фотографии */

.hero__right{
  position:relative;
  top:-18px;
  height:340px;
}

.shot{
  position:absolute;
  margin:0;
  background:#fff;
  padding:7px 7px 8px;
  border-radius:19px;
  box-shadow:0 12px 26px rgba(150,80,105,.15);
}
/* Окно кадра. object-fit:cover даёт «всю фотографию целиком», а в макете
   кадры взяты крупнее и смещены — поэтому снимок кладётся в окно своим
   размером и сдвигом, как в исходном дизайне. */
.shot__win{
  display:block; position:relative;
  width:100%; height:100%;
  overflow:hidden;
  border-radius:13px;
}
.shot__win img{ position:absolute; width:auto; max-width:none; }

.shot--1 .shot__win img{ height:575px; left:-105px; top:-55px; }
.shot--2 .shot__win img{ height:540px; left:-112px; top:-150px; }
.shot--3 .shot__win img{ height:420px; left:-30px;  top:-20px; }

/* Белые штрихи-блик в левом верхнем углу первой карточки — есть в макете */
.shot__spark{
  position:absolute; left:16px; top:14px;
  width:58px; height:50px;
  fill:none; stroke:#fff; stroke-width:3.4; stroke-linecap:round;
  z-index:2; pointer-events:none;
}

/* Размеры и наклоны сняты с макета по белым рамкам (15.11.2026):
   грань каждой рамки прослежена по строкам/столбцам, угол — из её наклона.
   Порядок слоёв тоже из макета: вторая карточка уходит ПОД соседние. */
.shot--1{ width:215px; height:322px; left:0;    top:4px;  transform:rotate(-3.3deg); z-index:3; }
.shot--2{ width:200px; height:316px; left:203px; top:22px; transform:rotate(7deg);    z-index:1; }
.shot--3{ width:228px; height:332px; left:401px; top:17px; transform:rotate(7.5deg);  z-index:2; }

/* Карточка-наклейка. Снято с крупного фрагмента макета:
   наклон ПРОТИВ часовой ~9°, фон розовый (не белый), белый кант по краю,
   углы неровные — форма нарисована от руки, а не скруглённый прямоугольник. */
.hero__card{
  position:absolute;
  left:74px; top:204px;
  z-index:5;
  width:182px;
  transform:rotate(-9deg);
  background:#FAEAE8;
  border:3.5px solid #FFFFFF;
  border-radius:26px 20px 24px 30px / 22px 28px 20px 24px;
  padding:10px 15px 12px;
  box-shadow:0 10px 22px rgba(150,80,105,.16);
}
.hero__card-title{
  margin:0;
  font-family:'Caveat', cursive;
  font-size:25px; font-weight:700; color:#2A2838;
  display:flex; align-items:center; gap:7px;
}
.hero__card-heart{
  width:16px; height:14px; flex:none;
  fill:none; stroke:#E0567F; stroke-width:2.4; stroke-linejoin:round;
}
.hero__card-text{
  margin:5px 0 0;
  font-size:16px; font-weight:700; line-height:1.26; color:#2A2838;
}
.hero__flower{
  position:absolute; right:-8px; bottom:-20px;
  width:46px; height:52px;
}
.hero__flower .petals ellipse{ fill:#F3A8BE; stroke:#E08098; stroke-width:1.2; }
.hero__flower .core{ fill:#F4C84A; stroke:#E0A93C; stroke-width:1.2; }
.hero__flower .stem{ fill:none; stroke:#D4738C; stroke-width:2.2; stroke-linecap:round; }

.hero__heart-deco{
  position:absolute;
  left:613px; top:226px;
  width:36px; height:32px;
  fill:#E8445F; stroke:none;
  transform:rotate(-8deg);
}

/* ────────────────────── ШЕСТЬ РАЗДЕЛОВ ────────────────────── */

.sections{ padding:0; }

.sections__grid{
  display:grid;
  grid-template-columns:repeat(6, 1fr);
  gap:14px;
  padding-left:12px;   /* ряд карточек в макете смещён вправо относительно текста героя */
}

.tile{
  position:relative;
  border-radius:20px;
  padding:16px 10px 34px;
  min-height:190px;
  display:block;
  transition:transform .18s, box-shadow .18s;
}
.tile:hover{ transform:translateY(-3px); box-shadow:0 14px 26px rgba(150,100,120,.14); }

.tile--pink { background:linear-gradient(165deg, #FDE4E7 0%, #FBDCE8 100%); }
.tile--cream{ background:linear-gradient(165deg, #FDF1E3 0%, #FBEBD9 100%); }
.tile--mint { background:linear-gradient(165deg, #F0F5E8 0%, #E8F1E0 100%); }
.tile--lilac{ background:linear-gradient(165deg, #ECE9FA 0%, #E6E2F7 100%); }
.tile--sky  { background:linear-gradient(165deg, #E2F0FA 0%, #D9EAF7 100%); }
.tile--peach{ background:linear-gradient(165deg, #FFEAE1 0%, #FDE2D8 100%); }

.tile__ico{ width:64px; height:64px; display:block; margin:0 auto 6px; }
.tile__ico .s-pink      { fill:none; stroke:#E06D92; stroke-width:2.6; stroke-linejoin:round; }
.tile__ico .f-pink      { fill:#F3A9C0; stroke:none; }
.tile__ico .s-rose      { fill:#FFF7FA; stroke:#E06D92; stroke-width:2.6; stroke-linejoin:round; }
.tile__ico .s-rose-thin { fill:none; stroke:#F0A8C0; stroke-width:2; }
.tile__ico .s-violet    { fill:#F6F4FF; stroke:#8C7FD6; stroke-width:2.6; stroke-linejoin:round; }
.tile__ico .s-blue      { fill:none; stroke:#5B9BE0; stroke-width:2.6; }
.tile__ico .s-green     { fill:#EFF6EA; stroke:#8BBE7C; stroke-width:2.6; stroke-linejoin:round; }
.tile__ico .f-green     { fill:#8BBE7C; stroke:none; }

.tile__title{
  margin:0 0 6px;
  font-size:17.5px; font-weight:800; line-height:1.24;
  color:var(--ink);
  letter-spacing:-.2px;
}
.tile__text{
  margin:0;
  font-size:11.5px; line-height:1.36; color:#4A4350;
}
.tile__arrow{
  position:absolute; right:14px; bottom:16px;
  width:24px; height:24px;
  fill:none; stroke:#D4487A; stroke-width:2.2;
  stroke-linecap:round; stroke-linejoin:round;
}

/* ─────────────── ИСТОРИЯ + НОВОЕ В ПРОЕКТЕ ─────────────── */

.story{ padding:8px 0 0; }

.story__grid{
  display:grid;
  grid-template-columns:649fr 480fr;
  gap:14px;
  align-items:start;
}

.story__card{
  display:grid;
  grid-template-columns:272px 1fr;
  gap:24px;
  background:linear-gradient(170deg, #FFF3F6 0%, #FDEBF0 100%);
  border-radius:24px;
  padding:16px;
}

.story__media{ position:relative; }

/* Окно кадра: в макете лицо крупное, а object-fit:cover даёт фигуру целиком */
.story__win{
  display:block; position:relative;
  width:100%; height:222px;
  overflow:hidden; border-radius:18px;
}
.story__win img{ position:absolute; width:auto; max-width:none; height:517px; left:-61px; top:-61px; }

/* Травы и цветы по краю фотографии — есть в макете */
.story__flora{ position:absolute; z-index:2; pointer-events:none; }
.story__flora--top{ left:-6px; top:4px; width:50px; height:64px; }
.story__flora--bottom{ left:-4px; bottom:-14px; width:78px; height:96px; }
.play{
  position:absolute; right:12px; bottom:12px;
  width:46px; height:46px;
  border-radius:50%;
  border:0; cursor:pointer;
  background:#FFFFFF;
  display:grid; place-items:center;
  box-shadow:0 6px 18px rgba(42,35,51,.22);
}
.play svg{ width:20px; height:20px; margin-left:3px; }

.story__body{ padding:7px 0 0; }

.story__title{
  font-weight:800;
  font-size:29px;
  line-height:1.1;
  letter-spacing:-.4px;
  color:#4A1B33;
  margin:0;
  display:flex; align-items:center; gap:11px;
}
.story__heart{
  width:30px; height:27px; flex:none;
  fill:none; stroke:#E0567F; stroke-width:2.3; stroke-linejoin:round;
}

.story__text{
  margin:14px 0 0;
  font-size:15.5px; line-height:1.62; color:#3F3946;
}

.btn--wide{ margin-top:22px; padding:12px 30px; font-size:15.5px; }

/* лента */

.feed{
  background:#FFFBFC;
  border:1.5px solid #FBE6EC;
  border-radius:24px;
  padding:18px 18px 12px;
}

.feed__head{
  display:flex; align-items:center; gap:10px;
  padding-bottom:12px;
}
.feed__ico{
  width:24px; height:24px; flex:none;
  fill:none; stroke:#D4487A; stroke-width:1.9;
  color:#F0A8C0;
}
.feed__title{
  margin:0;
  font-size:18.5px; font-weight:800; color:var(--ink);
}
.feed__all{
  margin-left:auto;
  display:inline-flex; align-items:center; gap:6px;
  font-size:13px; font-weight:700; color:var(--brand-ink);
  border-bottom:1px solid #EFC3D3;
  padding-bottom:1px;
}
.feed__all svg{
  width:17px; height:17px;
  fill:none; stroke:currentColor; stroke-width:2.1;
  stroke-linecap:round; stroke-linejoin:round;
}

.post{
  display:grid;
  grid-template-columns:119px 1fr;
  gap:14px;
  padding:11px 0;
  border-top:1px solid #F8E7EC;
  align-items:start;
}
.post:first-of-type{ border-top:0; }
.post:hover .post__title{ color:var(--brand-ink); }
.post:first-of-type .post__title{ color:#B5376A; }

.post__img{
  width:119px; height:78px;
  object-fit:cover;
  border-radius:12px;
}
.post__title{
  margin:0;
  font-size:13.5px; font-weight:700; line-height:1.34;
  color:var(--ink);
  transition:color .15s;
}
.post__meta{
  margin:8px 0 0;
  display:flex; align-items:center; gap:12px;
}
.post__date{ font-size:13px; color:var(--muted); font-weight:600; }

.tag{
  font-size:12px; font-weight:700;
  padding:3px 11px;
  border-radius:999px;
}
.tag--green { background:#DDEBD7; color:#4C6B45; }
.tag--lilac { background:#E4E2F6; color:#514B86; }
.tag--violet{ background:#E6E0F8; color:#56468F; }

/* ─── TASK-003A: честные пометки и пустая лента ───────────────────────────
   Пометка «раздел готовится» — ОТДЕЛЬНЫМ абзацем, а не значком внутри строки.
   У статики нет Cache-Control, и у вернувшегося посетителя может оказаться
   новая разметка со старой таблицей стилей: неизвестный класс тогда ничего не
   ломает — текст просто встаёт отдельной строкой, а не приклеивается к
   описанию. Ровно эта ошибка чинилась в TASK-002C.
   Цвета и шрифт — те же, что у плашки «скоро» в компактном меню: ничего
   нового в палитру и типографику не вводится.
   TASK-005: цвет текста был #8A8292 — на фоне плашки #F6EEF1 это 3,24 : 1
   при норме 4,5 : 1 для мелкого текста. Стало var(--muted) — 4,9 : 1. */
.tile__soon,
.story__soon{
  display:inline-block;
  margin:8px 0 0;
  font-size:11.5px; font-weight:700; letter-spacing:.02em;
  color:var(--muted); background:#F6EEF1;
  border-radius:999px; padding:4px 11px;
}
.story__soon{ margin-top:22px; font-size:13px; padding:7px 15px; }

/* Лента без публикаций: пустое состояние и то, что уже работает */
.feed__empty{
  margin:2px 0 0;
  font-size:14.5px; line-height:1.6; color:var(--text);
}
.feed__ready-title{
  margin:16px 0 0;
  font-size:13px; font-weight:700; color:var(--muted);
}
.feed__ready{ margin:8px 0 6px; padding:0; list-style:none; }
.feed__ready li{
  padding:10px 0;
  border-top:1px solid #F8E7EC;
  font-size:13.5px; line-height:1.5; color:var(--text);
}
.feed__ready li:first-child{ border-top:0; }
.feed__ready a{
  font-weight:700; color:var(--brand-ink);
  border-bottom:1px solid #EFC3D3;
}
.feed__ready a:hover{ color:var(--brand-deep); }

/* ─────────────────────────── ПОДВАЛ ─────────────────────────── */

.scape{
  position:relative;
  margin-top:8px;
  padding-top:22px;
}

/* В подвале логотип стоит целиком, с подписью «Рядом с Викой»:
   места хватает, в отличие от шапки. */
.scape__logo{
  display:block;
  width:max-content;
  margin:0 auto 16px;
}
.scape__logo img{ display:block; height:94px; width:auto; }

.scape__line{
  position:relative;
  z-index:2;
  margin:0 auto;
  max-width:var(--shell);
  text-align:center;
  font-family:'Caveat', cursive;
  font-weight:600;
  font-size:29px;
  line-height:1.22;
  color:#6E4356;
  -webkit-text-stroke:.35px currentColor;
}
.scape__heart{
  display:inline-block;
  width:23px; height:21px;
  vertical-align:-3px;
  margin-left:6px;
  fill:none; stroke:#E0567F; stroke-width:2.3; stroke-linejoin:round;
}

.scape__art{
  display:block;
  width:100%;
  height:150px;
  margin-top:-78px;
}

/* ═══════════════════ ПЛАНШЕТ ═══════════════════ */

@media (max-width:1180px){
  .shell{ padding:0 20px; }

  /* ── ШАПКА НА УЗКОМ ЭКРАНЕ ──
     Порог 1180px выбран не на глаз: десктопное меню занимает 737px и вместе с
     логотипом, отступом 120px и правым блоком перестаёт влезать именно здесь.
     До этой правки оно вылезало за экран (на 768px — на 333px вправо), а
     `overflow-x:hidden` у body просто обрезал правый край шапки. */

  /* Отступ, посчитанный под макет 1193px, здесь только мешает */
  .nav{ margin-left:24px; flex-wrap:wrap; }

  /* Без JavaScript: кнопки нет (она hidden), список переносится по строкам,
     шапка растёт по содержимому. Навигация доступна.
     Только .topbar--nav: у шапки /skoro/ меню нет, и её высота остаётся прежней. */
  /* height:auto нужен, чтобы при открытом меню шапка выросла, а без JS список
     разделов перенёсся на вторую строку. min-height держит прежние 47px:
     кнопка 44px в них укладывается, и полоса шапки не становится выше, чем
     была до задачи. Боковые отступы остаются за .shell — задавать здесь
     `padding:N 0` нельзя, оно их обнулит. */
  .topbar--nav .topbar__inner{
    height:auto; min-height:47px; flex-wrap:wrap;
  }

  /* Скрипт выполнился — список можно сворачивать в кнопку */
  [data-nav="enhanced"] .burger{
    display:flex; align-items:center; justify-content:center;
    width:44px; height:44px;           /* палец, а не пиксель: 44×44 */
    margin-left:auto; order:2;
    background:none; border:0; cursor:pointer; padding:0;
  }
  [data-nav="enhanced"] .topbar__tools{ order:3; margin-left:14px; }

  [data-nav="enhanced"] .nav{
    order:4;
    display:none;                       /* закрыто — из потока и из Tab */
    width:100%;
    margin:8px 0 0;
    flex-direction:column;
    align-items:stretch;
    gap:2px;
    padding:6px 0 4px;
    border-top:1.5px solid #F6DDE5;
  }
  [data-nav="enhanced"] .nav[data-open="true"]{ display:flex; }

  /* Пункты в столбце: во всю ширину, высотой под палец */
  [data-nav="enhanced"] .nav__link{
    display:flex; align-items:center; justify-content:space-between;
    min-height:46px; padding:8px 16px;
    font-size:16px; border-radius:14px;
  }
  [data-nav="enhanced"] .nav__link--active{ padding:8px 16px; }

  /* Здесь для подписи «скоро» есть место — показываем её плашкой.
     display обязателен: он перебивает `display:none`, который браузер сам
     даёт элементу с атрибутом hidden. */
  [data-nav="enhanced"] .nav__soon[hidden]{
    display:inline-block;
    flex:none;
    font-size:11.5px; font-weight:700; letter-spacing:.02em;
    color:var(--muted); background:#F6EEF1;   /* TASK-005: было #8A8292, 3,24 : 1 */
    border-radius:999px; padding:3px 9px;
  }

  /* Кнопка в открытом состоянии: три полоски складываются в крестик —
     видно, что меню раскрыто, не только по цвету */
  [data-nav="enhanced"] .burger[aria-expanded="true"] .burger__bars span:nth-child(1){
    transform:translateY(6.9px) rotate(45deg);
  }
  [data-nav="enhanced"] .burger[aria-expanded="true"] .burger__bars span:nth-child(2){
    opacity:0;
  }
  [data-nav="enhanced"] .burger[aria-expanded="true"] .burger__bars span:nth-child(3){
    transform:translateY(-6.9px) rotate(-45deg);
  }

  .hero__inner{ grid-template-columns:1fr; gap:28px; }
  .hero__left{ padding-left:0; }
  .hero__right{ top:0; height:420px; }
  .sections__grid{ grid-template-columns:repeat(3,1fr); }
  .story__grid{ grid-template-columns:1fr; }
  .story__card{ grid-template-columns:1fr 1fr; }
}

/* ═══════════════════ ТЕЛЕФОН ═══════════════════ */

@media (max-width:700px){

  .shell{ padding:0 16px; }

  .topbar__inner{ height:56px; }                 /* как было до задачи */
  .topbar--nav .topbar__inner{ height:auto; min-height:56px; }
  .logo{ margin-left:16px; }
  .logo__img{ height:34px; }

  .topbar__tools{ gap:14px; margin-right:16px; }

  /* На 320px правый блок и кнопка не делят место с указателем языка:
     он и прежде был скрыт на телефоне. */
  .lang{ display:none; }

  .hero{ padding:18px 0 26px; }
  .hero__inner{ gap:22px; }
  .hero__left{ text-align:center; }
  .badge{ display:none; }

  /* Заголовок набран в одну строку (white-space:nowrap), поэтому кегль
     считается от ширины экрана: иначе строка уезжает за края. */
  .hero__title{
    font-size:min(9.8vw, 46px);
    justify-content:center;
    margin:2px 0 0;
    gap:10px;
  }
  .hero__title-heart{ width:min(7.4vw, 34px); height:auto; margin-top:2px; }

  .hero__lead{ font-size:16px; }
  .hero__lead br{ display:none; }

  .hero__actions{ flex-direction:column; gap:12px; margin-top:20px; }
  .btn{ justify-content:center; width:100%; padding:14px 28px; font-size:16px; }

  /* В макете телефона ряда «фишек» нет: после кнопок сразу разделы. */
  .features{ display:none; }

  .hero__right{
    order:-1;
    position:relative;
    top:0;
    height:auto;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    gap:7px;
    padding-top:6px;
  }
  .shot{
    position:static;
    width:31.5%; height:200px;
    padding:5px 5px 6px;
    border-radius:14px;
    flex:none;
  }
  .shot__win{ border-radius:10px; }
  /* Кадры те же, что на десктопе, но заданы долями окна: пиксельные сдвиги
     десктопа в маленькой рамке показывали случайный кусок фотографии. */
  /* left задаётся в тех же правилах, что и высота: у десктопных
     .shot--N .shot__win img вес выше, чем у общего .shot__win img. */
  .shot--1 .shot__win img{ height:187%; top:-18%; left:50%; transform:translateX(-50%); }
  .shot--2 .shot__win img{ height:179%; top:-50%; left:50%; transform:translateX(-50%); }
  .shot--3 .shot__win img{ height:132%; top:-6%;  left:50%; transform:translateX(-50%); }
  .shot__spark{ left:10px; top:8px; width:38px; height:33px; stroke-width:3; }
  .shot--1{ transform:rotate(-4deg); }
  .shot--2{ transform:rotate(1.5deg); }
  .shot--3{ transform:rotate(-2deg); }

  .hero__card{ display:none; }
  /* Сердечко над правой фотографией — как в макете телефона, контуром */
  .hero__heart-deco{
    display:block;
    left:auto; right:2px; top:-2px;
    width:26px; height:24px;
    fill:none; stroke:#E8708F; stroke-width:2.2; stroke-linejoin:round;
    transform:rotate(-6deg);
  }

  .sections__grid{ grid-template-columns:1fr 1fr; gap:12px; }
  .tile{ min-height:128px; padding:16px 14px 18px; text-align:center; }
  .tile__ico{ width:44px; height:44px; margin:2px auto 10px; }
  .tile__title{ font-size:16px; }
  .tile__text{ display:none; }
  .tile__arrow{ display:none; }

  .story{ padding:26px 0 0; }
  .story__card{ grid-template-columns:1fr; gap:16px; padding:14px; }
  .story__win{ height:230px; }
  .story__win img{ height:420px; left:-50px; top:-40px; }
  .story__body{ padding:0; }
  .story__title{ font-size:38px; }
  .story__text br{ display:none; }

  .feed{ padding:16px 14px 10px; }
  .post{ grid-template-columns:92px 1fr; gap:12px; }
  .post__img{ width:92px; height:64px; }
  .post__title{ font-size:14.5px; }
  .post__title br{ display:none; }

  .scape__logo{ margin-bottom:12px; }
  .scape__logo img{ height:62px; }
  .scape__line{ font-size:24px; }
  .scape__art{ height:150px; margin-top:-40px; }
}
