/* ==========================================================================
   ROSSO — базові стилі
   Токени й правила: design.md. Довільних кольорів тут бути не повинно.
   ========================================================================== */

:root {
  /* Бренд */
  --rosso-red: #d92f1e;
  --rosso-red-deep: #74241d;
  --rosso-red-soft: #fcd9d5;

  /* Поверхні */
  --bg: #ffffff;
  --bg-soft: #e2cbc5;
  --surface-warm: #ffefeb;
  --surface-muted: #f3e4e0;
  /* Темна поверхня — той самий теплий чорний, що й скрим фото (--scrim) */
  --surface-dark: #1a0e0b;

  /* Межі */
  --border: #e7d9d5;
  --border-soft: #faeae6;
  --line-on-dark: rgba(255, 255, 255, .30);

  /* Текст */
  --text: #111111;
  --text-muted: #6e6360;
  --text-on-red: #ffffff;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #c9bab5;

  /* Теплий чорний для затемнення фото — нейтральний сірий холодив би кадр */
  --scrim: 26, 14, 11;

  /* Радіуси */
  --radius-field: 10px;
  --radius-card: 16px;
  --radius-btn: 8px;
  --radius-pill: 999px;

  /* Тіні — теплі, на базі --rosso-red-deep */
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .06);
  --shadow-md: 0 6px 20px rgba(116, 36, 29, .10);
  --shadow-lg: 0 16px 40px rgba(116, 36, 29, .14);

  /* Типографіка */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Заголовки — Poiret One. Одне накреслення (400), тож жирність не задаємо
     ніде: браузер інакше домалює фальшивий bold і тонкі штрихи «запливуть». */
  --font-display: "Poiret One", "Montserrat", system-ui, sans-serif;
  --fs-hero: clamp(2rem, 1.1rem + 4.4vw, 4rem);
  --fs-display-alt: clamp(2.75rem, 1.3rem + 6.4vw, 5.25rem);
  --fs-h2: clamp(1.625rem, 1.15rem + 2.1vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .7vw, 1.625rem);
  --fs-lead: clamp(1.125rem, 1.05rem + .35vw, 1.25rem);
  --fs-body: clamp(1rem, .98rem + .1vw, 1.0625rem);
  --fs-small: .875rem;
  --fs-caption: .75rem;

  /* Простір */
  --gap: 1rem;
  --container: 1280px;
  --pad-x: 1rem;
  --section-y: 4rem;

  /* Рух */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 64px;
}

@media (min-width: 768px) {
  :root {
    --pad-x: 1.5rem;
    --section-y: 6rem;
    --header-h: 76px;
  }
}

@media (min-width: 1280px) {
  :root {
    --pad-x: 2.5rem;
    --section-y: 7.5rem;
  }
}

/* --------------------------------------------------------------------------
   Шрифт — Montserrat, self-hosted (без зовнішніх CDN, розділ 9.3 TZ.md).
   Кирилиця й латиниця розділені: гість з українським текстом не тягне
   латинський файл і навпаки.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/montserrat-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/montserrat-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Poiret One — тільки заголовки. Одне накреслення 400, тонкий геометричний
   ар-деко. Українська кирилиця повна: у кириличній підмножині є Є І Ї Ґ і
   рядкові є і ї ґ (перевірено за coverage-даними Google Fonts), апостроф ’
   лежить у латинській підмножині. */
@font-face {
  font-family: "Poiret One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poiret-one-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+2116;
}

@font-face {
  font-family: "Poiret One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poiret-one-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

/* Власні display: grid/flex інакше перебивають атрибут hidden */
[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--rosso-red-deep);
}

:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--rosso-red-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Типографіка
   Заголовки — чорні. Червоний тільки акцент (design.md §3.1).
   -------------------------------------------------------------------------- */
/* Poiret One — тонкий і геометричний, тож трекінг тут додатний, а не
   від'ємний як у Montserrat: щільно поставлені тонкі штрихи злипаються. */
.display {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
}

.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Великий заголовок у нижньому регістрі — за макетом бронювання.
   Верхнього регістру тут навмисно немає: у Poiret One саме рядкові
   з довгими виносними дають той тонкий ар-деко-малюнок. */
.display-alt {
  font-family: var(--font-display);
  font-size: var(--fs-display-alt);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .01em;
}

.lead {
  font-size: var(--fs-lead);
  font-style: italic;
  line-height: 1.5;
}

.accent {
  color: var(--rosso-red);
}

.eyebrow {
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: var(--btn-h);
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease),
    border-color .3s var(--ease);
}

@media (min-width: 768px) {
  .btn {
    --btn-h: 52px;
  }
}

.btn--primary {
  background: var(--rosso-red);
  color: var(--text-on-red);
}

.btn--primary:hover {
  background: var(--rosso-red-deep);
}

.btn--secondary {
  background: transparent;
  border-color: var(--rosso-red);
  color: var(--rosso-red-deep);
}

.btn--secondary:hover {
  background: var(--surface-warm);
}

.btn--external {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
}

.btn--external:hover {
  border-color: var(--rosso-red);
}

.btn--block {
  width: 100%;
}

/* Кругла кнопка з макета бронювання. Колір — брендовий --rosso-red:
   кораловий із референсу в токенах не значиться (design.md §1). */
.btn--circle {
  flex-direction: column;
  gap: 0;
  width: 168px;
  height: 168px;
  min-height: 0;
  padding: 1rem;
  border-radius: 50%;
  font-size: var(--fs-caption);
  letter-spacing: .1em;
  line-height: 1.6;
  text-transform: uppercase;
  text-wrap: balance;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
}

.btn__ext {
  font-size: .85em;
}

/* --------------------------------------------------------------------------
   Хедер
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.header__logo {
  display: block;
  margin-right: auto;
}

.header__logo img {
  width: auto;
  height: 30px;
}

@media (min-width: 768px) {
  .header__logo img {
    height: 36px;
  }
}

.header.is-stuck {
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

/* Сторінки без hero: хедер непрозорий одразу. Окремий клас, а не is-stuck,
   бо той вішає й знімає скрипт скролу — вони б билися. */
.header--solid {
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

/* З відкритим меню хедер не може лишатись прозорим: крізь нього просвічував би
   hero, і зверху над білим меню висіла б смуга фото. Тіні тут немає навмисно —
   хедер і панель меню мають читатись як одне біле полотно.
   Клас окремий від is-stuck: той вішає скрип скролу, вони б билися. */
.header.is-menu-open {
  background: var(--bg);
  box-shadow: none;
}

/* Контент внутрішньої сторінки не має підлазити під фіксований хедер */
.page {
  padding-top: var(--header-h);
}

.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-right: 1.5rem;
  }

  .nav a {
    color: var(--text);
    font-size: var(--fs-small);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: .02em;
    text-transform: uppercase;
  }

  .nav a:hover {
    color: var(--rosso-red-deep);
  }
}

/* Кнопка «Забронювати» присутня в хедері й на мобільному (ТЗ 2.1) */
.header__cta {
  --btn-h: 42px;
  padding-inline: .9rem;
  font-size: var(--fs-small);
  white-space: nowrap;
}

@media (min-width: 480px) {
  .header__cta {
    padding-inline: 1.1rem;
  }
}

/* Дуже вузькі екрани: місця вистачає лише на логотип і бургер */
@media (max-width: 359px) {
  .header__cta {
    display: none;
  }
}

/* Бургер */
.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .burger {
    display: none;
  }
}

.burger__box {
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: background-color .15s var(--ease);
}

.burger__box::before,
.burger__box::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform .3s var(--ease);
}

.burger__box::before {
  top: -7px;
}

.burger__box::after {
  top: 7px;
}

.burger[aria-expanded="true"] .burger__box {
  background: transparent;
}

.burger[aria-expanded="true"] .burger__box::before {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__box::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Мобільне меню */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 40;
  display: grid;
  align-content: start;
  gap: .25rem;
  padding: 1.5rem var(--pad-x) 2rem;
  background: var(--bg);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}

.mobile-menu[data-open="true"] {
  transform: none;
  opacity: 1;
  visibility: visible;
}

/* Тільки прямі нащадки — пункти навігації. Посилання всередині блоку
   контактів мають власний, дрібніший вигляд. */
.mobile-menu > a {
  padding: .75rem 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
  font-size: var(--fs-h3);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

.mobile-menu__contacts {
  display: grid;
  gap: .5rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: var(--fs-small);
}

.mobile-menu__contacts p {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
}

.mobile-menu__contacts svg {
  flex: none;
  /* Іконка 17px у рядку з line-height 1.7 — зсуваємо до оптичної середини літер */
  margin-top: .3rem;
  color: var(--rosso-red);
}

.mobile-menu__contacts a {
  color: inherit;
  text-decoration: none;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  /* Контент притиснутий донизу — саме там градієнт найтемніший */
  align-items: end;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + 2rem) clamp(2.5rem, 6vh, 4.5rem);
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

/* Кроп уже зашитий у деривативи (tools/make-images.php), тут просто заповнюємо.
   <picture> обов'язково розтягуємо: без цього height:100% на <img> резолвиться
   проти авто-висоти й фото не заповнює екран. */
.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

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

/* Два шари замість одного: угорі світлий серпанок, щоб читався чорний хедер,
   унизу тепле затемнення під білий текст (design.md §7). */
.hero__media::before,
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero__media::before {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, .50) 0%,
    rgba(255, 255, 255, .14) 10%,
    rgba(255, 255, 255, 0) 20%
  );
}

.hero__media::after {
  background: linear-gradient(
    180deg,
    rgba(var(--scrim), 0) 16%,
    rgba(var(--scrim), .34) 40%,
    rgba(var(--scrim), .70) 62%,
    rgba(var(--scrim), .88) 84%,
    rgba(var(--scrim), .93) 100%
  );
}

/* На вузькому екрані контент займає майже пів-екрана: при десктопній кривій
   низ ставав глухою плитою й фото зникало зовсім. */
@media (max-width: 767px) {
  .hero__media::after {
    background: linear-gradient(
      180deg,
      rgba(var(--scrim), 0) 12%,
      rgba(var(--scrim), .28) 38%,
      rgba(var(--scrim), .60) 60%,
      rgba(var(--scrim), .78) 100%
    );
  }
}

.hero__inner {
  display: grid;
  justify-items: center;
  gap: .9rem;
  text-align: center;
  color: var(--text-on-dark);
}

/* Компактніший за попередній лок: знак не має накривати обличчя людей на фото */
.hero__logo {
  width: min(215px, 55vw);
  height: auto;
}

@media (min-width: 768px) {
  .hero__logo {
    width: min(285px, 26vw);
  }
}

/* Не display-кегль: заголовок навмисно менший, щоб лягав у два рядки
   й не сперечався з логотипом над ним. */
.hero__title {
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1rem + 3.1vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--text-on-dark);
}

.hero__lead {
  max-width: 46ch;
  color: var(--text-on-dark);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.5rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  color: var(--text-on-dark);
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.hero__meta svg {
  flex: none;
  color: var(--rosso-red);
}

.hero__meta a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.hero__meta a:hover {
  color: var(--rosso-red-soft);
}

/* --------------------------------------------------------------------------
   Про заклад (TZ 3.2)
   Асиметрична сітка: текст і широкий кадр ліворуч, високий — праворуч
   на всю висоту обох рядків.
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  gap: 2rem;
}

.about figure {
  margin: 0;
}

.about img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
}

.about__tall img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about__wide img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .about__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    column-gap: clamp(2rem, 4vw, 4.5rem);
    row-gap: 2.5rem;
    align-items: start;
  }

  .about__text {
    grid-column: 1;
    grid-row: 1;
  }

  .about__wide {
    grid-column: 1;
    grid-row: 2;
  }

  .about__tall {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

.about__title {
  margin: .5rem 0 1.25rem;
}

.about__text p + p {
  margin-top: 1rem;
}

.about__quote {
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  text-align: center;
}

/* Коротка червона риска над цитатою — той самий прийом, що на фірмовому
   банері самовиносу (design.md §6.8) */
.about__quote::before {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 0 auto 1.5rem;
  background: var(--rosso-red);
}

.about__quote p {
  max-width: 20ch;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1rem + 3.2vw, 3.25rem);
  line-height: 1.15;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Сторінка /gallery
   -------------------------------------------------------------------------- */
/* Подвійний клас навмисно: цей блок стоїть у файлі раніше за .section,
   тож при однаковій специфічності виграв би саме .section. */
.section.page-head {
  padding-bottom: 0;
}

.page-head .display {
  margin: .5rem 0 1rem;
}

.page-head__lead {
  max-width: 52ch;
}

/* Суцільний текст внутрішньої сторінки (політика конфіденційності). Рядок
   тримаємо коротким: довші за ~70 знаків рядки читати важко. */
.prose {
  max-width: 68ch;
}

.prose p {
  margin-bottom: 1rem;
}

.prose .h2 {
  margin-top: 2.5rem;
  margin-bottom: .75rem;
}

.prose a {
  color: var(--rosso-red-deep);
}

/* Сітка — продовження шапки сторінки, а не окрема тема */
.section.gallery-page {
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}

.chip {
  min-height: 44px;
  padding: 0 1.1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-small);
  cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
    color .3s var(--ease);
}

.chip:hover {
  border-color: var(--rosso-red);
}

/* Стан несе і колір, і aria-pressed — колір не єдиний носій (design.md §9) */
.chip[aria-pressed="true"] {
  background: var(--rosso-red);
  border-color: var(--rosso-red);
  color: var(--text-on-red);
}

.filters__empty {
  margin-bottom: 2rem;
  color: var(--text-muted);
}

/* Масонрі на колонках: кадри лишаються у власних пропорціях, без кропу */
.masonry {
  columns: 2;
  column-gap: 1rem;
}

@media (min-width: 768px) {
  .masonry {
    columns: 3;
  }
}

@media (min-width: 1024px) {
  .masonry {
    columns: 4;
    column-gap: 1.25rem;
  }
}

.masonry figure {
  break-inside: avoid;
  margin: 0 0 1rem;
}

@media (min-width: 1024px) {
  .masonry figure {
    margin-bottom: 1.25rem;
  }
}

.masonry img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-field);
}

/* --------------------------------------------------------------------------
   Атмосфера (TZ 3.6) — горизонтальна стрічка зі снапом
   -------------------------------------------------------------------------- */
.gallery__head {
  display: grid;
  justify-items: start;
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}

/* Кнопка стає в один ряд із текстом і притискається до правого краю сітки */
@media (min-width: 768px) {
  .gallery__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.gallery__intro {
  display: grid;
  justify-items: start;
  gap: .75rem;
  max-width: 44ch;
}

.gallery__intro p {
  color: var(--text-on-dark-muted);
}

.gallery__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* На вузькому екрані круглі кнопки не заповнюють рядок — притиснуті до лівого
   краю вони висять збоку від центрованого тексту секції. */
@media (max-width: 767px) {
  .gallery__actions {
    justify-content: center;
  }
}

.gallery__btn {
  width: 148px;
  height: 148px;
  gap: .5rem;
  padding: .875rem;
}

/* Нік — власна назва, тож верхній регістр і розріджений трекінг
   .btn--circle тут знімаємо: «@ROSSO_REST» читалося б як помилка. */
.gallery__btn:not(.btn-ring) {
  font-size: var(--fs-small);
  letter-spacing: .02em;
  text-transform: none;
}

/* Стрічка навмисно поза .container і без бічних відступів: фото йдуть від краю
   до краю екрана. Якщо колись знадобиться поставити першу плитку на сітку
   сайту, padding-inline і scroll-padding-inline треба задавати ОБИДВА й
   однаковим значенням — снап рахує позицію від краю скролпорта, а не від
   внутрішнього відступу, і сам підкрутить стрічку на ширину padding. */
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.strip::-webkit-scrollbar {
  display: none;
}

.strip > li {
  scroll-snap-align: start;
}

.strip img {
  /* Висота фіксована, ширину дає пропорція кадру — саме так у стрічці
     виникають змішані орієнтації. max-width знімаємо: глобальне 100%
     інакше рахувалося б від max-content-колонки й зжимало плитку. */
  height: clamp(260px, 34vw, 420px);
  width: auto;
  max-width: none;
  border-radius: var(--radius-field);
}

/* --------------------------------------------------------------------------
   Для сімей (TZ 3.5)
   Широкий кадр із карткою, що лягає на його лівий край, і два кадри-тези нижче.
   -------------------------------------------------------------------------- */
.family__hero {
  position: relative;
}

.family__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.family__card {
  display: grid;
  justify-items: start;
  gap: .75rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface-warm);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}

/* До 900px картка просто підпливає під кадр із невеликим напуском */
@media (max-width: 899px) {
  .family__card {
    position: relative;
    margin: -2.5rem 1rem 0;
  }
}

@media (min-width: 900px) {
  /* Кадр зсунутий управо рівно настільки, щоб картка лягла на його край,
     а мама з донькою лишились праворуч від неї */
  .family__media {
    margin-left: 22%;
  }

  .family__media img {
    aspect-ratio: 16 / 10;
  }

  .family__card {
    position: absolute;
    left: 0;
    top: 50%;
    translate: 0 -50%;
    width: 42%;
    max-width: 420px;
  }
}

.family__points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 639px) {
  .family__points {
    grid-template-columns: minmax(0, 1fr);
  }
}

.family__points img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-field);
}

.family__points h3 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  letter-spacing: .03em;
}

.family__points p {
  margin-top: .25rem;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Неаполітанська піца (TZ 3.4) — за референсом Che Buono
   -------------------------------------------------------------------------- */
.pizza {
  padding-block: var(--section-y);
  background: var(--surface-dark);
  color: var(--text-on-dark);
  /* Великий кадр навмисно виходить за праву межу — зайве ховаємо */
  overflow: hidden;
}

.pizza__grid {
  display: grid;
  gap: 2.5rem;
  padding-inline: var(--pad-x);
}

@media (min-width: 1024px) {
  /* Ліва колонка стоїть на сітці сайту, права біжить до самого краю екрана.
     Тому тут не .container: він обмежив би обидві колонки однаково. */
  .pizza__grid {
    grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    padding-left: max(var(--pad-x), calc(50vw - var(--container) / 2));
    padding-right: 0;
  }
}

.pizza__title {
  display: grid;
  margin-bottom: 1.75rem;
  /* Свій кегль, менший за --fs-display-alt: тут три рядки в піврядковій
     колонці, а не один заголовок на всю ширину, як у бронюванні */
  font-size: clamp(1.75rem, .95rem + 2.6vw, 3rem);
  line-height: 1.18;
  color: var(--text-on-dark);
}

.pizza__accent {
  /* 3.9:1 на темному — прохідно для великого кеглю (WCAG AA ≥24px),
     але дрібним текстом цей колір тут не набирати (design.md §1.3) */
  color: var(--rosso-red);
}

.pizza__text p {
  max-width: 46ch;
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
}

.pizza__text p + p {
  margin-top: 1rem;
}

.pizza__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-top: 2.5rem;
}

@media (max-width: 767px) {
  .pizza__actions {
    justify-content: center;
  }
}

/* Три круглі кнопки поруч мусять бути однакового діаметра: залита
   .btn--circle за замовчуванням 168px, контурна .btn-ring — 136px.
   Діаметр плаваючий: у колонці 46% від --container три кнопки фіксованих
   148px не вміщаються в ряд між 1024 і ~1180px і рвуть ряд 2+1. */
.pizza__actions .btn--circle,
.pizza__actions .btn-ring {
  width: clamp(126px, 11vw, 148px);
  height: clamp(126px, 11vw, 148px);
  padding: .875rem;
}

/* Кільцева кнопка — контурна, на відміну від залитих .btn--circle */
.btn-ring {
  display: inline-grid;
  place-content: center;
  width: 136px;
  height: 136px;
  padding: 1rem;
  border: 1px solid var(--line-on-dark);
  border-radius: 50%;
  color: var(--text-on-dark);
  font-size: var(--fs-caption);
  letter-spacing: .1em;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  text-wrap: balance;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}

.btn-ring:hover {
  border-color: var(--rosso-red);
  color: var(--rosso-red-soft);
}

.pizza__collage {
  position: relative;
}

/* Пара кадрів — один «слайд» галереї. Позиціювання меншого кадру рахується
   від пари, а не від колажу: інакше стрілки й лічильник теж стали б системою
   координат для нього. */
.pizza__pair {
  position: relative;
}

/* Неактивна пара після прогріву (див. main.js): лишається в дереві, щоб
   картинки завантажились, але не займає місця й не ловить кліки. */
.pizza__pair.is-off {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.pizza__photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
}

@media (min-width: 1024px) {
  /* Великий кадр зсунутий управо й підрізаний краєм екрана,
     менший лягає на нього знизу зліва — колаж із референсу */
  .pizza__photo--big {
    margin-left: 16%;
  }

  /* Правий край великого кадру зрізає екран — округляти там нічого */
  .pizza__photo--big img {
    border-radius: var(--radius-card) 0 0 var(--radius-card);
  }

  .pizza__photo--small {
    position: absolute;
    left: 0;
    bottom: -2.5rem;
    width: 40%;
  }
}

/* На вузькому екрані колаж розпадається: менший кадр просто підпливає
   під більший із невеликим напуском */
@media (max-width: 1023px) {
  .pizza__photo--small {
    width: 58%;
    margin-top: -3rem;
    margin-left: auto;
    position: relative;
  }
}

/* Гортання галереї: лічильник і дві круглі стрілки, як у референсі —
   попередня контурна, наступна залита акцентом. */
.gallery-nav {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.5rem;
  padding-inline: var(--pad-x);
}

@media (min-width: 1024px) {
  /* Стрілки лягають під великий кадр, праворуч. Менший кадр висить ліворуч,
     тож вони не перетинаються. */
  .gallery-nav {
    justify-content: flex-end;
    margin-top: 1.25rem;
    padding-right: var(--pad-x);
    padding-left: 0;
  }
}

.gallery-nav__count {
  margin-right: auto;
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  color: var(--text-on-dark-muted);
}

@media (min-width: 1024px) {
  .gallery-nav__count {
    margin-right: 1rem;
  }
}

.gallery-nav__btn {
  display: inline-grid;
  place-content: center;
  flex: none;
  width: 56px;
  height: 56px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-on-dark);
  border-radius: 50%;
  color: var(--text-on-dark);
  cursor: pointer;
  transition: border-color .3s var(--ease), background-color .3s var(--ease),
    color .3s var(--ease);
}

.gallery-nav__btn:hover {
  border-color: var(--rosso-red);
  color: var(--rosso-red-soft);
}

.gallery-nav__btn--next {
  background: var(--rosso-red);
  border-color: var(--rosso-red);
  color: var(--text-on-red);
}

.gallery-nav__btn--next:hover {
  background: var(--rosso-red-deep);
  border-color: var(--rosso-red-deep);
  color: var(--text-on-red);
}

/* --------------------------------------------------------------------------
   Плитки категорій меню (TZ 3.3, design.md §6.7)
   -------------------------------------------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-field);
  color: var(--text-on-dark);
  text-decoration: none;
  transition: box-shadow .3s var(--ease);
}

.tile:hover {
  box-shadow: var(--shadow-md);
}

/* height: auto обов’язковий: атрибут height="960" у розмітці — це презентаційна
   підказка, і разом із width: 100% вона робить обидва розміри визначеними,
   через що aspect-ratio просто ігнорується. */
.tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: scale .3s var(--ease);
}

.tile:hover img {
  scale: 1.03;
}

/* Підпис поверх фото на градієнті знизу — той самий теплий чорний, що й скрим hero */
.tile__caption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: .1rem;
  padding: 2.5rem .875rem .875rem;
  background: linear-gradient(
    180deg,
    rgba(var(--scrim), 0) 0%,
    rgba(var(--scrim), .55) 45%,
    rgba(var(--scrim), .88) 100%
  );
}

.tile__name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: .03em;
}

/* На двоколонковій мобільній сітці плитка вужча за 180px — «Secondi piatti»
   при кеглі --fs-h3 туди не влазить */
@media (max-width: 767px) {
  .tile__caption {
    padding: 2rem .75rem .75rem;
  }

  .tile__name {
    font-size: 1.0625rem;
  }
}

.tile__ext {
  font-size: .7em;
}

.tile__sub {
  font-size: var(--fs-caption);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}

/* --------------------------------------------------------------------------
   Секція бронювання
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--section-y);
}

.section--soft {
  background: var(--bg-soft);
}

/* --text-muted на --bg-soft дає лише 3.76:1 і не проходить AA для дрібного.
   На цьому тлі надзаголовок набираємо --rosso-red-deep — 6.75:1. */
.section--soft .eyebrow {
  color: var(--rosso-red-deep);
}

.section--dark {
  background: var(--surface-dark);
  color: var(--text-on-dark);
}

/* Червоний контур фокуса замість --rosso-red-deep: темний на темному не видно */
.section--dark :where(a, button, input, select, [tabindex]):focus-visible {
  outline-color: var(--rosso-red);
}

/* --text-muted на --surface-dark нечитабельний, тож надзаголовок і другорядний
   текст беруть світлий приглушений відтінок */
.section--dark .eyebrow {
  color: var(--text-on-dark-muted);
}

.section__head {
  display: grid;
  gap: .75rem;
  max-width: 44ch;
  margin-bottom: 2.5rem;
}

.booking {
  /* Кадр страви виходить за межі колонки — зайве ховаємо */
  overflow: hidden;
  color: var(--text-on-dark);
}

.booking__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .booking__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
    gap: clamp(2rem, 4vw, 4.5rem);
  }
}

.booking__title {
  margin-bottom: 1.25rem;
  color: var(--text-on-dark);
}

.booking__intro {
  max-width: 52ch;
  margin-bottom: 2.5rem;
  color: var(--text-on-dark-muted);
}

/* Фото без рамки: краї кадру гасяться маскою й перетікають у тло секції —
   так само, як страва «висить» у чорному на макеті. */
.booking__media img {
  width: 100%;
  height: auto;
  /* 72% ≈ край тарілки центральної піци: вона лишається непрозорою, гасне вже
     тло й сусідні піци. Хвіст короткий (до 89%), інакше сусіди зависають
     напівпрозорими й читаються як сміття, а не як фон. */
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, rgba(0, 0, 0, .38) 80%, transparent 89%);
  mask-image: radial-gradient(closest-side, #000 72%, rgba(0, 0, 0, .38) 80%, transparent 89%);
}

@media (max-width: 1023px) {
  .booking__media {
    justify-self: center;
    width: min(100%, 420px);
  }
}

/* --------------------------------------------------------------------------
   Форма бронювання — поля-рядки на темному (макет context_images/reservation.jpg)
   -------------------------------------------------------------------------- */
.booking-form {
  display: grid;
  gap: 1.75rem 2.5rem;
}

@media (min-width: 560px) {
  .booking-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.booking-form__full {
  grid-column: 1 / -1;
}

.field-group {
  display: grid;
  gap: .5rem;
  min-width: 0;
}

.field-group__label {
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

/* Поле-рядок: жодної заливки й рамки, тільки нижня лінія */
.line-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line-on-dark);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

/* Активне поле підсвічується подвоєною червоною лінією — як на макеті.
   Це додаткова підказка, а не заміна фокус-контуру: контур :focus-visible
   лишається на місці. */
.line-field:focus-within {
  border-bottom-color: var(--rosso-red);
  box-shadow: 0 1px 0 0 var(--rosso-red);
}

.line-field__input {
  flex: 1;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text-on-dark);
  font: inherit;
  font-size: var(--fs-lead);
  font-style: normal;
  line-height: 1.35;
}

.line-field__input::placeholder {
  color: rgba(255, 255, 255, .45);
}

textarea.line-field__input {
  padding-top: .35rem;
  resize: vertical;
}

.line-field__value {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-lead);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-field__hint {
  flex: none;
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
}

.line-field--static .line-field__value {
  color: var(--text-on-dark-muted);
}

.line-field--select {
  padding-right: 1.75rem;
  cursor: pointer;
}

.line-field__chevron {
  position: absolute;
  right: 0;
  bottom: .9rem;
  color: var(--text-on-dark-muted);
  pointer-events: none;
}

/* Нативний select лежить поверх прозорим — мобільний пікер і доступність
   дістаються безкоштовно, а вигляд лишається макетним. */
.line-field__native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.line-field:has(.line-field__native:focus-visible) {
  outline: 2px solid var(--rosso-red);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Степер кількості */
.line-field--stepper {
  padding-bottom: 0;
}

.stepper__value {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-lead);
  font-variant-numeric: tabular-nums;
}

.stepper__controls {
  display: flex;
  flex: none;
  gap: .25rem;
}

.stepper__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text-on-dark);
  cursor: pointer;
  transition: color .15s var(--ease);
}

.stepper__btn:hover:not([disabled]) {
  color: var(--rosso-red);
}

.stepper__btn[disabled] {
  opacity: .35;
  cursor: not-allowed;
}

/* Згода й кругла кнопка в один ряд — за макетом */
.booking-form__submit {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-top: .25rem;
}

/* Коли згода й кнопка перестали вміщатись в один рядок, space-between уже нічого
   не розсовує — кругла кнопка просто лишається біля лівого краю. */
@media (max-width: 767px) {
  .booking-form__submit {
    justify-content: center;
  }
}

.checkbox {
  display: flex;
  gap: .75rem;
  align-items: center;
  max-width: 44ch;
  padding-block: .6rem;
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
  cursor: pointer;
}

.checkbox input {
  display: grid;
  place-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  background: transparent;
  border: 1px solid var(--line-on-dark);
  border-radius: 3px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}

.checkbox input::after {
  content: "";
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--text-on-red);
  border-bottom: 2px solid var(--text-on-red);
  rotate: -45deg;
  translate: 0 -2px;
  opacity: 0;
  transition: opacity .15s var(--ease);
}

.checkbox input:checked {
  background: var(--rosso-red);
  border-color: var(--rosso-red);
}

.checkbox input:checked::after {
  opacity: 1;
}

/* Помилки: колір ніколи не єдиний носій — поруч завжди є текст */
.field-group.has-error .line-field {
  border-bottom-color: var(--rosso-red);
  box-shadow: 0 1px 0 0 var(--rosso-red);
}

.field-error {
  font-size: var(--fs-small);
  /* На темному сам --rosso-red дає лише 3.9:1 — беремо світлий відтінок */
  color: var(--rosso-red-soft);
}

.field-error:empty {
  display: none;
}

/* Екран успіху */
.booking-done {
  display: grid;
  justify-items: start;
  gap: 1rem;
  max-width: 46ch;
}

.booking-done__icon {
  color: var(--rosso-red);
}

.booking-done h3 {
  color: var(--text-on-dark);
}

.booking-done p {
  color: var(--text-on-dark-muted);
}

.booking-done a {
  color: var(--text-on-dark);
  font-weight: 600;
}

.booking-done__list {
  display: grid;
  gap: .5rem;
  width: 100%;
  margin: 0;
  padding: 1.25rem;
  background: rgba(255, 255, 255, .06);
  border-radius: var(--radius-field);
  font-size: var(--fs-small);
}

.booking-done__list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.booking-done__list dt {
  color: var(--text-on-dark-muted);
}

.booking-done__list dd {
  margin: 0;
  font-weight: 600;
}

/* Honeypot — прихований від людей, видимий для ботів */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Мобільна нижня панель
   -------------------------------------------------------------------------- */
.bottom-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 45;
  display: grid;
  /* Дві текстові кнопки ділять вільне місце, дві іконкові беруть по 44px.
     minmax(0, …) обов'язковий: голий 1fr не звужується менше за свій текст,
     і на вузькому екрані панель вилізла б за край. З ним чотири кнопки
     лишаються в одному рядку за будь-якої ширини. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
  gap: .5rem;
  padding: .6rem var(--pad-x) calc(.6rem + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--border);
  translate: 0 110%;
  transition: translate .3s var(--ease);
}

.bottom-bar[data-visible="true"] {
  translate: 0;
}

.bottom-bar .btn {
  --btn-h: 44px;
  padding-inline: .5rem;
  font-size: var(--fs-small);
}

.bottom-bar__icon {
  width: 44px;
  padding-inline: 0;
}

@media (min-width: 1024px) {
  .bottom-bar {
    display: none;
  }
}

/* Поки висить банер згоди, панель CTA піднімається рівно на його висоту:
   інакше банер накрив би «Доставку» й «Меню». Висоту міряє consent.js —
   текст переноситься по-різному залежно від ширини екрана. */
body.has-consent-bar .bottom-bar {
  inset-block-end: var(--consent-h, 0px);
}

/* --------------------------------------------------------------------------
   Банер згоди на куки
   -------------------------------------------------------------------------- */
.consent {
  position: fixed;
  /* Вище за нижню панель (45) і хедер (50): поки на питання не відповіли,
     банер лишається верхнім шаром. */
  inset: auto 0 0;
  z-index: 60;
  display: grid;
  gap: .75rem;
  padding: 1rem var(--pad-x) calc(1rem + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-small);
}

.consent__text {
  max-width: 62ch;
  line-height: 1.6;
}

.consent__text a {
  color: var(--rosso-red-deep);
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.consent__actions .btn {
  --btn-h: 44px;
  flex: 1 1 auto;
  font-size: var(--fs-small);
}

@media (min-width: 768px) {
  .consent {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
  }

  .consent__actions .btn {
    flex: none;
  }
}

/* --------------------------------------------------------------------------
   Футер
   -------------------------------------------------------------------------- */
.footer {
  padding-block: 3rem 5.5rem;
  background: var(--surface-warm);
}

@media (min-width: 1024px) {
  .footer {
    padding-bottom: 3rem;
  }
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Знак у футері вирівняний по центру своєї колонки */
.footer__logo {
  display: block;
  width: fit-content;
  margin-inline: auto;
}

.footer__logo img {
  width: 220px;
  height: auto;
}

.footer h2 {
  margin-bottom: .5rem;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.footer address {
  font-style: normal;
  font-size: var(--fs-small);
  line-height: 1.7;
}

.footer__contacts {
  display: grid;
  gap: .4rem;
}

.footer__contacts p {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
}

.footer__contacts svg {
  flex: none;
  /* Іконка 17px у рядку з line-height 1.7 — зсуваємо до оптичної середини літер */
  margin-top: .3rem;
  color: var(--rosso-red);
}

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

.footer a:hover {
  color: var(--rosso-red-deep);
  text-decoration: underline;
}

/* Текстовий рядок під контактами: те саме, що в контактах, але фразою —
   для пошуку й для гостя, який читає футер, а не сканує іконки. */
.footer__note {
  margin-top: .9rem;
  max-width: 36ch;
  font-size: var(--fs-caption);
  color: var(--text-muted);
}

.footer__links {
  display: grid;
  gap: .4rem;
  font-size: var(--fs-small);
}

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-caption);
  text-align: center;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Рух
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
