/* ============================================================
   Platan Restaurant — сайт-визитка
   Дизайн-система построена на фирменном стиле platan.uz:
   кремовый фон, янтарный акцент, тёплый коричневый, Noto Serif.
   ============================================================ */

/* ---------- 1. Токены ---------- */
:root {
  /* Палитра */
  --cream:      #fff7e7;
  --cream-2:    #fbf0da;
  --cream-3:    #f3e5c9;
  --ink:        #2a1a0c;
  --brown:      #461c00;
  --brown-soft: #673838;
  --camel:      #bb9775;
  --amber:      #ffa60d;
  --night:      #1b1006;
  --night-2:    #241708;
  --sand:       #ecdcc2;

  /* Типографика */
  --ff: 'Noto Serif', 'Times New Roman', Georgia, serif;
  --fs-hero:  clamp(3.4rem, 12vw, 8.5rem);
  --fs-h2:    clamp(1.9rem, 3.6vw, 3.1rem);
  --fs-h3:    clamp(1.15rem, 1.7vw, 1.45rem);
  --fs-lead:  clamp(1.05rem, 1.45vw, 1.28rem);
  --fs-body:  clamp(0.97rem, 1.1vw, 1.06rem);
  --fs-sm:    0.875rem;
  --fs-eyebrow: 0.74rem;

  /* Раскладка */
  --wrap: 1180px;
  --gut: clamp(1.15rem, 4vw, 2.75rem);
  --sec-y: clamp(4.5rem, 9vw, 8.5rem);
  --head-h: 78px;
  --radius: 3px;

  /* Прочее */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 24px 60px -28px rgba(42, 26, 12, .45);
}

@media (max-width: 760px) { :root { --head-h: 62px; } }

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

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

body {
  margin: 0;
  font-family: var(--ff);
  font-size: var(--fs-body);
  line-height: 1.72;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

/* <picture> — лишний уровень между блоком и картинкой: он должен тянуться,
   иначе img{height:100%} не к чему прижиматься и плитка не заполняется */
.mosaic__i picture,
.dish__media picture,
.heritage__media picture { display: block; height: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.14; letter-spacing: -.012em; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--amber); color: var(--night); }

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

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 999;
  padding: .7rem 1.2rem; background: var(--amber); color: var(--night);
  font-size: var(--fs-sm); transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

.section { padding-block: var(--sec-y); }

.section--night {
  background: var(--night);
  color: var(--sand);
}

/* ---------- 3. Типографические примитивы ---------- */
.eyebrow {
  margin: 0 0 1.15rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--camel);
}
.eyebrow--amber { color: var(--amber); }

.h2 {
  font-size: var(--fs-h2);
  color: var(--brown);
  margin-bottom: 1.15rem;
}
.h2--light { color: var(--cream); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--brown-soft);
}

/* Ширина в px, а не в ch: ch считается от базового кегля, и крупный h2
   разваливался бы на 4 короткие строки при массе свободного места рядом */
.sec-head { max-width: min(100%, 620px); margin-bottom: clamp(2.4rem, 4.5vw, 3.8rem); }
.sec-head--center { max-width: 660px; margin-inline: auto; text-align: center; }
.sec-head--center .sec-head__sub,
.sec-head--center .ornament { margin-inline: auto; justify-content: center; }
.sec-head__sub { color: rgba(236, 220, 194, .72); max-width: 44ch; margin-top: .6rem; }
.section:not(.section--night) .sec-head__sub { color: var(--brown-soft); }

/* Орнамент-разделитель: марка между двумя волосяными линиями */
.ornament {
  display: flex; align-items: center; gap: 1.1rem;
  margin-top: 1.9rem;
  color: var(--camel);
}
.ornament span { height: 1px; background: currentColor; opacity: .38; flex: 1 1 0; max-width: 92px; }
.ornament svg { width: 30px; height: 23px; fill: var(--amber); flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 1.6rem;
  font-size: var(--fs-sm);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--brown);
  border-bottom: 1px solid rgba(187, 151, 117, .55);
  padding-bottom: .35rem;
  transition: color .25s, border-color .25s, gap .25s var(--ease);
}
.link-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.link-arrow:hover { color: var(--amber); border-color: var(--amber); gap: .95rem; }
.section--night .link-arrow { color: var(--sand); border-color: rgba(236, 220, 194, .35); }

/* ---------- 4. Кнопки ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: currentColor;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .82rem 1.65rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  transition: background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease), transform .28s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.btn--lg { padding: 1.02rem 2.15rem; }

.btn--amber { --btn-bg: var(--amber); --btn-fg: #35210a; --btn-bd: var(--amber); }
.btn--amber:hover { --btn-bg: #ffb736; --btn-bd: #ffb736; }

.btn--outline { --btn-fg: var(--cream); --btn-bd: rgba(255, 247, 231, .5); }
.btn--outline:hover { --btn-bg: var(--cream); --btn-fg: var(--night); --btn-bd: var(--cream); }

.btn--ghost { --btn-fg: currentColor; --btn-bd: currentColor; padding: .62rem 1.2rem; }
.btn--ghost:hover { --btn-bg: var(--amber); --btn-fg: #35210a; --btn-bd: var(--amber); }

/* ---------- 5. Шапка ---------- */
.head {
  position: fixed; inset: 0 0 auto; z-index: 90;
  height: var(--head-h);
  color: var(--cream);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
}
.head::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(20, 12, 5, .62), rgba(20, 12, 5, 0));
  transition: opacity .35s var(--ease);
}
.head.is-stuck {
  background: rgba(255, 247, 231, .96);
  backdrop-filter: saturate(1.4) blur(10px);
  color: var(--brown);
  box-shadow: 0 1px 0 rgba(187, 151, 117, .35), 0 12px 30px -22px rgba(42, 26, 12, .5);
}
.head.is-stuck::before { opacity: 0; }

.head__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 100%; }

/* Логотип и кнопки — над оверлеем мобильного меню */
.head__logo, .head__actions { position: relative; z-index: 2; }

.head__logo { flex: none; display: block; }
.head__logo .logo { width: 100px; height: 61px; fill: currentColor; transition: width .35s var(--ease), height .35s var(--ease); }
.head.is-stuck .head__logo .logo { width: 86px; height: 53px; }
/* Знак у логотипа сложен в два яруса, поэтому в невысокой полосе ему нужен
   явный запас сверху и снизу — иначе листья упираются в край */
@media (max-width: 760px) {
  .head__logo .logo { width: 74px; height: 45px; }
  .head.is-stuck .head__logo .logo { width: 66px; height: 40px; }
}

.nav__list {
  display: flex; align-items: center; gap: clamp(1.1rem, 2.3vw, 2.2rem);
  margin: 0; padding: 0; list-style: none;
}
.nav__list a {
  position: relative;
  font-size: var(--fs-sm);
  letter-spacing: .045em;
  padding-block: .4rem;
  transition: color .25s;
}
.nav__list a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--amber);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__list a:hover::after,
.nav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__list a.is-active { color: var(--amber); }

.nav__foot { display: none; }

.head__actions { display: flex; align-items: center; gap: 1rem; flex: none; }
.head__tel {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-sm); letter-spacing: .03em;
  transition: color .25s;
}
.head__tel .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.head__tel:hover { color: var(--amber); }

/* Бургер: тап-таргет 44×44, но линии оптически выровнены по краю контейнера —
   поэтому бокс уводим в поле отрицательным margin */
.burger {
  display: none;
  width: 44px; height: 44px; padding: 0;
  margin-right: -11px;
  background: none; border: 0; cursor: pointer;
  position: relative;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.burger span {
  position: absolute; left: 11px; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
/* шаг 7px при толщине 2px — просветы 5px, иначе три линии читаются одним пятном */
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }
.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); }

/* ---------- 6. Мобильное меню ---------- */
/* Номер целиком в шапке помещается только на широких экранах — ниже остаётся иконка */
@media (max-width: 1180px) { .head__tel span { display: none; } }

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

  /* Иконка телефона тоже должна быть полноценной кнопкой под палец */
  .head__actions { gap: .1rem; }
  .head__tel { width: 44px; height: 44px; justify-content: center; gap: 0; }
  .head__tel .ico { width: 20px; height: 20px; }

  /* При открытом меню шапка сливается с оверлеем: иначе «прилипшая» кремовая
     полоса резала бы тёмное меню по верхнему краю.
     Оба класса в селекторе — чтобы гарантированно перебить .head.is-stuck */
  .head.is-stuck.is-nav-open,
  .head.is-nav-open {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    color: var(--cream);
  }
  .head.is-stuck.is-nav-open::before,
  .head.is-nav-open::before { opacity: 0; }

  .nav {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: center;
    gap: 2.5rem;
    padding: calc(var(--head-h) + 2rem) var(--gut) 3rem;
    background: var(--night);
    color: var(--cream);
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__list { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .nav__list a {
    font-size: clamp(1.6rem, 6.5vw, 2.3rem);
    letter-spacing: -.01em;
    padding-block: .32em;
  }
  .nav__list a::after { display: none; }

  .nav__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 1.35rem; }
  .nav__tel { font-size: 1.15rem; color: var(--amber); letter-spacing: .03em; }
}

/* ---------- 7. Герой ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--head-h) + 3rem) 0 6rem;
  color: var(--cream);
  background: var(--night);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 78% at 50% 46%, rgba(12, 7, 3, .12) 0%, rgba(12, 7, 3, .58) 62%, rgba(10, 6, 2, .86) 100%),
    linear-gradient(to bottom, rgba(14, 8, 3, .5) 0%, rgba(14, 8, 3, 0) 26%, rgba(14, 8, 3, .42) 100%);
}

.hero__body { text-align: center; max-width: 800px; }

.hero__mark {
  width: clamp(58px, 8vw, 88px); height: auto; aspect-ratio: 204 / 154;
  margin: 0 auto clamp(.9rem, 2vw, 1.5rem);
  fill: var(--camel);
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .5));
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.028em;
  text-shadow: 0 8px 44px rgba(0, 0, 0, .55);
}

.hero__rule {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin: 1.9rem 0 1.9rem;
  font-size: var(--fs-eyebrow);
  letter-spacing: .42em; text-transform: uppercase;
  color: var(--camel);
}
.hero__rule span { height: 1px; width: clamp(28px, 8vw, 74px); background: currentColor; opacity: .55; }

.hero__tagline {
  font-size: clamp(1.1rem, 2.15vw, 1.62rem);
  line-height: 1.5;
  color: rgba(255, 247, 231, .93);
  text-shadow: 0 4px 26px rgba(0, 0, 0, .55);
  margin-bottom: clamp(2rem, 4vw, 2.9rem);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 2.1rem; translate: -50% 0;
  width: 26px; height: 44px;
  border: 1px solid rgba(255, 247, 231, .38);
  border-radius: 14px;
  display: grid; place-items: start center;
  padding-top: 8px;
  transition: border-color .3s;
}
.hero__scroll span {
  width: 3px; height: 8px; border-radius: 2px; background: var(--amber);
  animation: scrollcue 1.9s var(--ease) infinite;
}
.hero__scroll:hover { border-color: var(--amber); }
@keyframes scrollcue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55%      { transform: translateY(15px); opacity: .15; }
}

/* Узкие экраны: строка «restaurant · samarkand» должна остаться в одну строку,
   а кнопки — одной ширины */
@media (max-width: 520px) {
  .hero__rule { gap: .6rem; font-size: .64rem; letter-spacing: .2em; }
  .hero__rule span { width: 24px; }
  .hero__cta { flex-direction: column; align-items: center; }
  .hero__cta .btn { width: 100%; max-width: 320px; }
}

/* ---------- 8. Полоса фактов ---------- */
.strip {
  background: var(--cream-2);
  border-bottom: 1px solid rgba(187, 151, 117, .28);
}
.strip__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding-block: clamp(2rem, 3.6vw, 3rem);
}
.strip__cell { text-align: center; padding-inline: 1rem; }
.strip__cell + .strip__cell { border-left: 1px solid rgba(187, 151, 117, .3); }
.strip__ico {
  width: 26px; height: 26px; margin: 0 auto .85rem;
  fill: none; stroke: var(--amber); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.strip__k {
  font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--camel); margin-bottom: .55rem;
}
.strip__v { font-size: clamp(.95rem, 1.2vw, 1.08rem); line-height: 1.5; color: var(--brown); }
.strip__v a { transition: color .25s, border-color .25s; border-bottom: 1px solid transparent; }
.strip__v a:hover { color: var(--amber); border-color: rgba(255, 166, 13, .5); }

@media (max-width: 720px) {
  .strip__grid { grid-template-columns: 1fr; gap: 1.9rem; }
  .strip__cell + .strip__cell { border-left: 0; border-top: 1px solid rgba(187, 151, 117, .3); padding-top: 1.9rem; }
}

/* ---------- 9. О ресторане ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .84fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.about__text .h2 { margin-bottom: 1.4rem; }
.about__text .lead { margin-bottom: 1.35rem; }
.about__text p:not(.lead):not(.eyebrow) { color: rgba(42, 26, 12, .82); }

/* Рамка со смещением — вокруг фото */
.frame { position: relative; margin: 0; }
.frame::before {
  content: ''; position: absolute; inset: 0;
  translate: clamp(12px, 2.2vw, 26px) clamp(12px, 2.2vw, 26px);
  border: 1px solid var(--camel);
  border-radius: var(--radius);
  pointer-events: none;
}
.frame img {
  position: relative;
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  /* в одну колонку фото центрируем — иначе справа остаётся пустая половина */
  .about__media { max-width: 560px; margin-inline: auto; }
}

/* Статистика */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: clamp(2.2rem, 4vw, 3.2rem);
  border-top: 1px solid rgba(187, 151, 117, .35);
}
.stat { text-align: center; }
.stat__n {
  display: block;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1;
  font-weight: 500;
  color: var(--brown);
  letter-spacing: -.02em;
}
.stat__n i { font-style: normal; color: var(--amber); }
.stat__l {
  display: block; margin-top: .7rem;
  font-size: var(--fs-eyebrow); letter-spacing: .2em; text-transform: uppercase;
  color: var(--camel); line-height: 1.5;
}
/* «ВЕК — ЗДАНИЕ РЕСТОРАНА» в четыре колонки перестаёт помещаться раньше 620px */
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1rem; } }

/* ---------- 10. Три опоры ---------- */
.pillars {
  background: var(--cream-3);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.4rem); }
.pillar { text-align: center; }
.pillar__ico {
  width: 52px; height: 52px; margin: 0 auto 1.35rem;
  fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.pillar__t { font-size: var(--fs-h3); color: var(--brown); margin-bottom: .8rem; }
.pillar__d { color: rgba(42, 26, 12, .78); max-width: 34ch; margin-inline: auto; }
@media (max-width: 800px) { .pillars__grid { grid-template-columns: 1fr; gap: 2.8rem; } }

/* ---------- 11. Блюда ---------- */
.dishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.8rem, 3.4vw, 3rem); }

.dish__media {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 1.6rem;
  aspect-ratio: 4 / 3;
  background: var(--night-2);
}
.dish__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.dish:hover .dish__media img { transform: scale(1.05); }
.dish__media::after {
  content: ''; position: absolute; inset: 10px;
  border: 1px solid rgba(255, 247, 231, .22);
  border-radius: 2px;
  pointer-events: none;
  transition: border-color .4s var(--ease);
}
.dish:hover .dish__media::after { border-color: rgba(255, 166, 13, .6); }

.dish__t { font-size: var(--fs-h3); color: var(--cream); margin-bottom: .8rem; }
.dish__d { color: rgba(236, 220, 194, .72); font-size: .97rem; line-height: 1.68; }

.menu__note {
  margin-top: clamp(2.6rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(236, 220, 194, .17);
  text-align: center;
  font-size: var(--fs-sm);
  letter-spacing: .04em;
  color: rgba(236, 220, 194, .62);
}
.menu__note a { color: var(--amber); border-bottom: 1px solid rgba(255, 166, 13, .4); padding-bottom: 2px; }
.menu__note a:hover { border-color: var(--amber); }

@media (max-width: 800px) { .dishes { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- 12. Атмосфера ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(160px, 22vw, 265px);
  gap: clamp(.8rem, 1.5vw, 1.35rem);
}
.mosaic__i {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-3);
}
.mosaic__i img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.mosaic__i:hover img { transform: scale(1.055); }
/* 3 колонки × 2 ряда: высокий кадр слева, широкий сверху справа, два обычных под ним */
.mosaic__i--tall { grid-row: span 2; }
.mosaic__i--wide { grid-column: span 2; }

.mosaic__i figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.35rem 1.05rem;
  font-size: var(--fs-eyebrow); letter-spacing: .22em; text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(to top, rgba(16, 9, 3, .78), rgba(16, 9, 3, 0));
}

.quote {
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  max-width: min(100%, 700px);
  text-align: center;
}
.quote p {
  font-size: clamp(1.2rem, 2.4vw, 1.85rem);
  line-height: 1.5;
  font-style: italic;
  color: var(--brown-soft);
  letter-spacing: -.01em;
}

/* 2 колонки: авторасстановка оставила бы дыру справа от высокого кадра
   (широкий требует обе колонки и не встаёт рядом), поэтому раскладываем вручную:
   ряд 1 — широкий во всю ширину, ряды 2–3 — высокий слева, два обычных справа. */
@media (max-width: 800px) {
  .mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: max(150px, 30vw) max(128px, 26vw) max(128px, 26vw);
  }
  .mosaic__i--wide          { grid-area: 1 / 1 / 2 / 3; }
  .mosaic__i--tall          { grid-area: 2 / 1 / 4 / 2; }
  .mosaic__i:nth-child(3)   { grid-area: 2 / 2 / 3 / 3; }
  .mosaic__i:nth-child(4)   { grid-area: 3 / 2 / 4 / 3; }
  .mosaic__i figcaption { padding: 1.8rem .9rem .8rem; letter-spacing: .16em; }
}

@media (max-width: 420px) {
  .mosaic__i figcaption { padding: 1.5rem .7rem .65rem; font-size: .66rem; letter-spacing: .1em; }
}

/* ---------- 13. Наследие ---------- */
.heritage {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--night-2);
  color: var(--sand);
}
.heritage__media { position: relative; min-height: clamp(360px, 52vw, 660px); }
.heritage__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.heritage__text {
  display: flex; align-items: center;
  padding: clamp(3.2rem, 7vw, 6.5rem) clamp(1.6rem, 5vw, 5rem);
}
.heritage__inner { max-width: 48ch; }
.heritage__inner p { color: rgba(236, 220, 194, .78); }
.heritage__inner .h2 { margin-bottom: 1.5rem; }

@media (max-width: 900px) {
  .heritage { grid-template-columns: 1fr; }
  .heritage__media { min-height: 62vw; max-height: 480px; }
}

/* ---------- 14. Награда ---------- */
.award { background: var(--cream-2); }
.award__grid {
  display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.award__media { margin: 0; }
.award__media img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.award__text p { color: rgba(42, 26, 12, .82); }

.award__list { list-style: none; margin: 0 0 1.7rem; padding: 0; }
.award__list li {
  display: flex; align-items: baseline; gap: .95rem;
  padding: .85rem 0;
  border-top: 1px solid rgba(187, 151, 117, .38);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--brown);
  letter-spacing: .02em;
}
.award__list li:last-child { border-bottom: 1px solid rgba(187, 151, 117, .38); }
.award__list span {
  flex: none; min-width: 2.6em;
  font-size: .8em; font-weight: 700; letter-spacing: .13em;
  color: var(--amber);
}
.award__cta { font-style: italic; color: var(--brown-soft) !important; }

@media (max-width: 900px) {
  .award__grid { grid-template-columns: 1fr; }
  .award__media { max-width: 400px; }
}

/* ---------- 15. Бронирование ---------- */
.booking__wrap { max-width: 860px; margin-inline: auto; }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1.5rem;
}
.field { display: flex; flex-direction: column; gap: .55rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: var(--fs-eyebrow);
  letter-spacing: .19em; text-transform: uppercase;
  color: var(--camel);
}
.field .opt { text-transform: none; letter-spacing: .04em; opacity: .7; }

.field input,
.field textarea {
  width: 100%;
  padding: .88rem 1rem;
  background: rgba(255, 247, 231, .05);
  border: 1px solid rgba(236, 220, 194, .26);
  border-radius: var(--radius);
  color: var(--cream);
  font-size: 1rem;
  transition: border-color .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(236, 220, 194, .38); }
.field input:hover,
.field textarea:hover { border-color: rgba(236, 220, 194, .45); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(255, 247, 231, .09);
}
.field input:user-invalid { border-color: #d9603f; }
/* Календарь/часы в тёмной теме */
.field input[type="date"],
.field input[type="time"] { color-scheme: dark; }

/* Степпер количества гостей */
.stepper {
  display: grid; grid-template-columns: 52px 1fr 52px;
  border: 1px solid rgba(236, 220, 194, .26);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s;
}
.stepper:focus-within { border-color: var(--amber); }
.stepper__b {
  background: rgba(255, 247, 231, .05);
  border: 0; cursor: pointer;
  font-size: 1.35rem; line-height: 1;
  color: var(--amber);
  transition: background .22s;
}
.stepper__b:hover { background: rgba(255, 166, 13, .16); }
.stepper input {
  border: 0; border-radius: 0; text-align: center;
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { background: transparent; }

.form__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.3rem 1.8rem;
  margin-top: .8rem;
}
.form__hint {
  flex: 1 1 260px;
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: rgba(236, 220, 194, .6);
}
.form__hint a { color: var(--amber); }
.form__hint a:hover { text-decoration: underline; }

.form__error {
  margin: 0;
  padding: .8rem 1rem;
  border-left: 2px solid #d9603f;
  background: rgba(217, 96, 63, .1);
  color: #f0a68e;
  font-size: var(--fs-sm);
}

@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }
}

/* ---------- 16. Контакты ---------- */
.contacts { background: var(--cream); }

.contacts__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.8rem, 5vw, 4rem);
}
.contacts__k {
  font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--camel); margin-bottom: .9rem;
}
.contacts__v { font-size: clamp(1rem, 1.3vw, 1.13rem); line-height: 1.6; color: var(--brown); }
.contacts__v a { transition: color .25s; }
.contacts__v a:hover { color: var(--amber); }
.contacts__col .link-arrow { margin-top: 1.1rem; }

.socials { display: flex; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.socials a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(187, 151, 117, .5);
  border-radius: 50%;
  color: var(--brown);
  transition: background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease), transform .28s var(--ease);
}
.socials svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.socials a:hover {
  background: var(--amber); border-color: var(--amber); color: #35210a;
  transform: translateY(-3px);
}

.contacts__photo { margin: 0; overflow: hidden; border-radius: var(--radius); }
.contacts__photo img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; object-position: center 42%; }
@media (max-width: 620px) { .contacts__photo img { aspect-ratio: 16 / 9; } }

/* «Написать в WhatsApp» перестаёт помещаться в колонку уже около 1000px */
@media (max-width: 1024px) { .contacts__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .contacts__grid { grid-template-columns: 1fr; text-align: center; } .socials { justify-content: center; } }

/* ---------- 17. Подвал ---------- */
.foot {
  background: var(--night);
  color: rgba(236, 220, 194, .62);
  padding-block: clamp(2.6rem, 5vw, 3.8rem);
  text-align: center;
}
.foot__inner { display: grid; justify-items: center; gap: 1.35rem; }
.foot__logo .logo { width: 132px; height: 81px; fill: var(--camel); transition: fill .3s; }
.foot__logo:hover .logo { fill: var(--amber); }
.foot__addr { font-size: var(--fs-sm); line-height: 1.75; letter-spacing: .04em; margin: 0; }
.foot__addr a { color: var(--sand); border-bottom: 1px solid rgba(236, 220, 194, .3); }
.foot__addr a:hover { color: var(--amber); border-color: var(--amber); }
.foot__copy {
  margin: 0; padding-top: 1.2rem;
  border-top: 1px solid rgba(236, 220, 194, .14);
  width: min(100%, 420px);
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(236, 220, 194, .4);
}

/* ---------- 18. Появление при скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .09s; }
.reveal:nth-child(3) { transition-delay: .18s; }
.reveal:nth-child(4) { transition-delay: .27s; }

/* Без JS — показываем всё сразу */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 19. Уважение к настройкам движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 20. Печать ---------- */
@media print {
  .head, .hero__scroll, .burger, .booking, .hero__cta { display: none !important; }
  body { background: #fff; color: #000; }
  .section--night, .heritage, .foot { background: #fff !important; color: #000 !important; }
  .h2--light, .dish__t { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .75em; }
}
