/* =========================================================
   Киото — суши-роллы. Основные стили (mobile-first)
   Тёмная тема в стиле логотипа: графит + неоновый розовый
   ========================================================= */

/* ---------- Цвета, шрифты, размеры ---------- */
/* Узор «сэйгайха» встроен прямо в стили (data:image/svg+xml), чтобы не зависеть
   от настроек хостинга для SVG-файлов. Исходники узора — assets/decor/. */
:root {
  /* Фоны (сняты с логотипа) */
  --bg: #131218;            /* основной фон, как вокруг вывески */
  --bg-2: #1A171D;          /* чередующиеся секции */
  --surface: #221B1F;       /* карточки — тёплый оттенок «таблички» логотипа */
  --surface-2: #2E1E1F;     /* табличка логотипа */

  /* Розовый (неон логотипа) */
  --neon: #FE92A2;          /* главный акцент: кнопки, линии, цены */
  --neon-dark: #F27389;     /* наведение */
  --blush: #F7D4CE;         /* светлый розовый: заголовки, как буквы «КИОТО» */
  --glow: rgba(254, 146, 162, .45);   /* свечение */

  /* Текст (серые) */
  --text: #EEE7E9;          /* основной текст */
  --muted: #B5AAB0;         /* второстепенный текст */
  --line: rgba(254, 146, 162, .22);   /* тонкие рамки */
  --line-soft: rgba(255, 255, 255, .08);

  --white: #FFFFFF;

  --font-head: "Tenor Sans", "Optima", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --header-h: 64px;
  --radius: 4px;            /* почти прямые углы, как рамка вывески */
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: var(--neon); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.15; margin: 0; }
p { margin: 0; }
address { font-style: normal; }

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

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--neon);
  color: var(--bg);
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

.icon { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ---------- Кнопки (прямоугольные, тонкая рамка, надпись в разрядку) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 13px/1.2 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn--primary { background: var(--neon); color: var(--bg); }
.btn--primary:hover { background: var(--neon-dark); box-shadow: 0 0 22px var(--glow); }
.btn--outline { border-color: var(--neon); color: var(--blush); background: transparent; }
.btn--outline:hover { background: rgba(254, 146, 162, .1); box-shadow: 0 0 18px var(--glow); }
.btn--icon { min-height: 42px; width: 42px; padding: 0; }
.btn--lg { min-height: 52px; padding: 12px 30px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Шапка: прозрачная над главным экраном, плотная при прокрутке ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s;
}
.header.is-scrolled,
.header.is-menu-open {
  background: rgba(19, 18, 24, .96);
  border-bottom-color: var(--line);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo { display: block; margin-right: auto; border-radius: var(--radius); overflow: hidden; }
.logo__img { height: 38px; width: auto; }

/* Мобильная навигация (выпадает из-под шапки) */
.nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .55);
  padding: 8px 16px 12px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav.is-open { transform: none; opacity: 1; visibility: visible; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  text-decoration: none;
  font: 400 18px/1.3 var(--font-head);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav__link:hover { color: var(--neon); }

.burger {
  width: 44px; height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--blush);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Главный экран ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 88px;
  display: flex;
  align-items: center;
  text-align: center;
  background: var(--bg);   /* тот же цвет, что вокруг вывески на логотипе */
}
.hero__pattern {
  position: absolute; inset: auto 0 0 0;
  height: 140px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='80' height='40' viewBox='0 0 80 40'%3E%3Cdefs%3E%3Cg id='s' fill='%23131218' stroke='%23FE92A2' stroke-width='1'%3E%3Ccircle r='19.5'/%3E%3Ccircle r='14.5'/%3E%3Ccircle r='9.5'/%3E%3Ccircle r='4.5'/%3E%3C/g%3E%3C/defs%3E%3Cuse xlink:href='%23s' x='0' y='0'/%3E%3Cuse xlink:href='%23s' x='40' y='0'/%3E%3Cuse xlink:href='%23s' x='80' y='0'/%3E%3Cuse xlink:href='%23s' x='20' y='20'/%3E%3Cuse xlink:href='%23s' x='60' y='20'/%3E%3Cuse xlink:href='%23s' x='0' y='40'/%3E%3Cuse xlink:href='%23s' x='40' y='40'/%3E%3Cuse xlink:href='%23s' x='80' y='40'/%3E%3C/svg%3E") repeat-x left bottom / 80px 40px;
  opacity: .14;
  -webkit-mask-image: linear-gradient(to top, #000 20%, transparent);
          mask-image: linear-gradient(to top, #000 20%, transparent);
}
.hero__content { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero__title { width: calc(100% + 32px); margin: 0 -16px; max-width: 980px; }
.hero__logo {
  width: 100%;
  height: auto;
  /* края картинки плавно растворяются в фоне */
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 50%, #000 70%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 85% at 50% 50%, #000 70%, transparent 100%);
}
/* ---------- Секции ---------- */
.section { padding: 64px 0; }
.section__title {
  /* заголовок с линиями по бокам, как «— СУШИ-РОЛЛЫ —» на логотипе */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  font-size: clamp(30px, 7vw, 44px);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blush);
  text-shadow: 0 0 18px var(--glow);
  margin-bottom: 14px;
}
.section__title::before, .section__title::after {
  content: "";
  flex: 0 1 80px;
  height: 1px;
  background: var(--neon);
  box-shadow: 0 0 6px var(--glow);
}
.section__lead { color: var(--muted); max-width: 60ch; margin: 0 auto; text-align: center; }

/* ---------- Меню ---------- */
.menu { padding-bottom: 72px; }
.menu__tabs-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: rgba(19, 18, 24, .96);
  border-bottom: 1px solid var(--line-soft);
  margin: 28px 0 28px;
}
.menu__tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.menu__tabs::-webkit-scrollbar { display: none; }
.menu__tab {
  flex-shrink: 0;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: 600 12px/1.2 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.menu__tab:hover { border-color: var(--neon); color: var(--blush); }
.menu__tab[aria-selected="true"] {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--bg);
  box-shadow: 0 0 16px var(--glow);
}

.menu__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Карточка блюда */
.dish {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.dish:hover { border-color: rgba(254, 146, 162, .55); box-shadow: 0 0 24px rgba(254, 146, 162, .15); }
.dish__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.dish__img { width: 100%; height: 100%; object-fit: cover; }
.dish__ph {
  /* заглушка, если фото ещё нет */
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='80' height='40' viewBox='0 0 80 40'%3E%3Cdefs%3E%3Cg id='s' fill='%23241A1D' stroke='%235A3A41' stroke-width='1'%3E%3Ccircle r='19.5'/%3E%3Ccircle r='14.5'/%3E%3Ccircle r='9.5'/%3E%3Ccircle r='4.5'/%3E%3C/g%3E%3C/defs%3E%3Cuse xlink:href='%23s' x='0' y='0'/%3E%3Cuse xlink:href='%23s' x='40' y='0'/%3E%3Cuse xlink:href='%23s' x='80' y='0'/%3E%3Cuse xlink:href='%23s' x='20' y='20'/%3E%3Cuse xlink:href='%23s' x='60' y='20'/%3E%3Cuse xlink:href='%23s' x='0' y='40'/%3E%3Cuse xlink:href='%23s' x='40' y='40'/%3E%3Cuse xlink:href='%23s' x='80' y='40'/%3E%3C/svg%3E") repeat center / 80px 40px;
}
.dish__ph-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: rgba(19, 18, 24, .85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blush);
  font-size: 13px;
  letter-spacing: .06em;
}
.dish__ph svg { width: 34px; height: 34px; color: var(--neon); filter: drop-shadow(0 0 6px var(--glow)); }
.dish__test {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 10px;
  border-radius: var(--radius);
  background: rgba(19, 18, 24, .9);
  border: 1px solid var(--line);
  color: var(--blush);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dish__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
  flex-grow: 1;
}
.dish__name { font: 400 21px/1.25 var(--font-head); color: var(--blush); }
.dish__desc { color: var(--muted); font-size: 14px; flex-grow: 1; }
.dish__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid var(--line-soft);
}
.dish__weight { color: var(--muted); font-size: 14px; }
.dish__price { font: 700 22px/1 var(--font-body); color: var(--neon); white-space: nowrap; }

.menu__empty, .menu__noscript {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.menu__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-top: 40px;
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.menu__cta p { font: 400 20px/1.35 var(--font-head); color: var(--blush); }

/* ---------- О нас ---------- */
.about { background: var(--bg-2); border-top: 1px solid var(--line-soft); }
.about__inner > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.about__text { font-size: 17px; text-align: center; }

/* ---------- Контакты ---------- */
.contacts__grid { display: grid; gap: 28px; margin-top: 32px; }
.info-list { margin: 0 0 22px; }
.info-list__row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.info-list dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--neon);
  margin-bottom: 4px;
}
.info-list dd { margin: 0; font-size: 17px; }
.info-list__phone { color: var(--text); font-weight: 600; text-decoration: none; }
.info-list__phone:hover { color: var(--neon); }
.contacts__subtitle {
  font-size: 22px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blush);
  margin: 34px 0 14px;
}
/* Мессенджеры: значки одноцветные светлые (так разрешают правила брендов),
   розовое свечение — на рамке, как у остальных элементов сайта */
.socials { display: grid; gap: 12px; }
.social {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.social::after {
  content: "→";
  margin-left: auto;
  color: var(--neon);
  font-size: 18px;
  transition: transform .2s;
}
.social:hover {
  border-color: var(--neon);
  background: #2A2025;
  box-shadow: 0 0 20px rgba(254, 146, 162, .18);
}
.social:hover::after { transform: translateX(4px); }
.social__icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  fill: #F4EEF0;
}
.social__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.social__name { font: 400 18px/1.2 var(--font-head); color: var(--blush); letter-spacing: .04em; }
.social__hint { font-size: 13px; color: var(--muted); }

.contacts__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 0 24px rgba(254, 146, 162, .08);
  background: var(--surface);
  min-height: 320px;
}
.contacts__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* ---------- Подвал ---------- */
.footer {
  position: relative;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 40px 0 32px;
  font-size: 15px;
}
.footer__inner { display: grid; gap: 18px; justify-items: center; text-align: center; }
.footer__logo { width: 170px; height: auto; border-radius: var(--radius); }
.footer__info { display: grid; gap: 4px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--neon); }
.footer__copy { font-size: 13px; color: #8E848A; }
.footer__socials { display: flex; gap: 12px; }
.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.footer__social svg { width: 22px; height: 22px; fill: #F4EEF0; }
.footer__social:hover { border-color: var(--neon); box-shadow: 0 0 14px var(--glow); }

/* ---------- Заглушки (временные, удалить после заполнения) ---------- */
.todo-note {
  padding: 16px 18px;
  border: 1px dashed var(--neon);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}
.todo-note strong { color: var(--blush); }

/* Всплывающее уведомление */
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 200;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border: 1px solid var(--neon);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--blush);
  font-size: 14px;
  box-shadow: 0 0 20px var(--glow);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Планшет: от 600px
   ========================================================= */
@media (min-width: 600px) {
  .container { padding: 0 24px; }
  .nav { padding: 8px 24px 12px; }
  .menu__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .socials { grid-template-columns: repeat(3, 1fr); }
  .social { position: relative; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
  .social::after { position: absolute; top: 16px; right: 16px; }
  .menu__cta { flex-direction: row; justify-content: space-between; text-align: left; padding: 24px 28px; }
}

@media (min-width: 768px) {
  .section { padding: 88px 0; }
  .hero { padding: calc(var(--header-h) + 56px) 0 96px; }
  .hero__title { width: 100%; margin: 0; }
  .contacts__map, .contacts__map iframe { min-height: 400px; }
}

/* =========================================================
   ПК: от 1024px — обычное меню вместо бургера
   ========================================================= */
@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  .burger { display: none; }
  .header__call { margin-left: 8px; width: 46px; min-height: 46px; }

  .nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0;
    background: none;
    border: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav__list { display: flex; gap: 32px; margin: 0; }
  .nav__link { padding: 6px 0; border: 0; font-size: 15px; }

  .logo__img { height: 46px; }

  .menu__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .menu__tabs { justify-content: center; gap: 10px; }
  .menu__tab { padding: 10px 22px; }

  .contacts__grid { grid-template-columns: 5fr 7fr; gap: 40px; align-items: stretch; }
  .socials { grid-template-columns: 1fr; }
  .social { flex-direction: row; align-items: center; gap: 16px; padding: 14px 18px; }
  .social::after { position: static; }

  .footer__inner { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; align-items: center; gap: 20px 40px; }
  .footer__copy { grid-column: 1 / -1; justify-self: start; padding-top: 16px; border-top: 1px solid var(--line-soft); width: 100%; }
}

/* Для тех, у кого в системе отключена анимация */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================
   ФОН ГЛАВНОГО ЭКРАНА: волны, неоновое свечение, падающие лепестки
   ========================================================= */
.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
/* тёмные поля картинки-вывески не закрывают свечение за ней */
.hero { isolation: isolate; }
/* весь блок с вывеской смешивается с фоном (а не только картинка) — так это работает и во время затухания */
.hero__content { mix-blend-mode: lighten; }
.hero__waves, .hero__glow, .hero__petals { position: absolute; inset: 0; }

/* волны по всему экрану, едва заметные, гаснут к краям */
.hero__waves {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='80' height='40' viewBox='0 0 80 40'%3E%3Cdefs%3E%3Cg id='s' fill='%23131218' stroke='%23FE92A2' stroke-width='1'%3E%3Ccircle r='19.5'/%3E%3Ccircle r='14.5'/%3E%3Ccircle r='9.5'/%3E%3Ccircle r='4.5'/%3E%3C/g%3E%3C/defs%3E%3Cuse xlink:href='%23s' x='0' y='0'/%3E%3Cuse xlink:href='%23s' x='40' y='0'/%3E%3Cuse xlink:href='%23s' x='80' y='0'/%3E%3Cuse xlink:href='%23s' x='20' y='20'/%3E%3Cuse xlink:href='%23s' x='60' y='20'/%3E%3Cuse xlink:href='%23s' x='0' y='40'/%3E%3Cuse xlink:href='%23s' x='40' y='40'/%3E%3Cuse xlink:href='%23s' x='80' y='40'/%3E%3C/svg%3E") repeat center / 80px 40px;
  opacity: .07;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}
/* мягкое розовое свечение за вывеской, медленно «дышит» */
.hero__glow {
  background:
    radial-gradient(ellipse 48% 34% at 50% 40%, rgba(254, 146, 162, .30), transparent 70%),
    radial-gradient(ellipse 85% 60% at 50% 100%, rgba(254, 146, 162, .12), transparent 70%);
  animation: hero-breathe 7s ease-in-out infinite;
}
@keyframes hero-breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }

/* лепестки (создаются в js/script.js) */
.petal {
  position: absolute;
  top: -40px;
  width: 14px; height: 10px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #FCD5DC, var(--neon));
  box-shadow: 0 0 8px rgba(254, 146, 162, .5);
  opacity: 0;
  animation: petal-fall linear infinite;
}
@keyframes petal-fall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: .85; }
  50%  { transform: translate(-40px, 50vh) rotate(200deg); }
  90%  { opacity: .7; }
  100% { transform: translate(30px, 105vh) rotate(420deg); opacity: 0; }
}

/* без анимации для тех, у кого она отключена в системе */
@media (prefers-reduced-motion: reduce) {
  .hero__glow { animation: none; }
  .hero__petals { display: none; }
}

/* Первый экран — во всю высоту на всех устройствах, меню начинается после прокрутки */
.hero {
  min-height: 100vh;   /* для старых браузеров */
  min-height: 100svh;  /* высота экрана без адресной строки */
}

/* =========================================================
   «РАСКРЫВАЮЩИЙСЯ» САЙТ: первый экран закреплён, остальные блоки
   при прокрутке наезжают на него, как шторка
   ========================================================= */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
}
/* содержимое первого экрана плавно гаснет, пока на него наезжает меню
   (переменная --reveal от 0 до 1 задаётся в js/script.js) */
.hero__content,
.hero__scroll {
  opacity: calc(1 - var(--reveal, 0) * 1.2);
  transform: translateY(calc(var(--reveal, 0) * -40px)) scale(calc(1 - var(--reveal, 0) * .06));
}
main > .section,
.footer {
  position: relative;
  z-index: 1;
}
.menu {
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -24px 48px rgba(0, 0, 0, .55);
}
.contacts { background: var(--bg); }

/* подсказка «Листайте» */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  margin-left: -50px;
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--blush);
  text-decoration: none;
  font: 400 12px/1 var(--font-head);
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hero__scroll svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: var(--neon);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px var(--glow));
  animation: scroll-hint 1.8s ease-in-out infinite;
}
.hero__scroll:hover { color: var(--neon); }
@keyframes scroll-hint { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  .hero__scroll svg { animation: none; }
  .hero__content, .hero__scroll { opacity: 1; transform: none; }
}

/* раздел, к которому перешли по ссылке, получает фокус — без рамки вокруг всего блока */
main > section:focus { outline: none; }
