/* ============================================================
   Carpe Diem — design tokens
   ============================================================ */
:root {
  /* Palette: warm, no AI cream. Ink is the deep warm brown of bread crust.
     Terracotta is the single accent. */
  --ink: #1d1208;          /* почти-чёрный с теплотой */
  --ink-soft: #5a4636;
  --ink-fade: #8a7660;
  --paper: #f4ebd9;        /* честный off-white с хромой 0.03 в охру */
  --paper-2: #e9dec7;
  --terracotta: #c0532b;   /* главный акцент */
  --terracotta-2: #9c3f1f;
  --olive: #6b6a3a;
  --line: rgba(29, 18, 8, 0.12);
  --line-strong: rgba(29, 18, 8, 0.24);

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  /* Scale */
  --max: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-pill: 999px;
  --shadow-soft: 0 14px 40px -16px rgba(29, 18, 8, 0.25);
  --shadow-deep: 0 30px 80px -20px rgba(29, 18, 8, 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
input, textarea, select {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--terracotta);
  background: #fff;
}
::selection { background: var(--terracotta); color: var(--paper); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; border-radius: var(--radius-s); z-index: 100;
}
.skip:focus { left: 8px; }

/* ============================================================
   Layout primitives
   ============================================================ */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-2);
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(46px, 8vw, 116px); }
h2 { font-size: clamp(34px, 5vw, 64px); }
h3 { font-size: 22px; line-height: 1.2; }

p { margin: 0 0 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--terracotta);
  color: var(--paper);
  box-shadow: 0 12px 24px -10px rgba(192, 83, 43, 0.5);
}
.btn-primary:hover {
  background: var(--terracotta-2);
  box-shadow: 0 18px 32px -12px rgba(192, 83, 43, 0.6);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ============================================================
   Topbar / nav
   ============================================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  transition: backdrop-filter 0.3s var(--ease), background 0.3s var(--ease);
}
.topbar.is-stuck {
  background: rgba(244, 235, 217, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
  flex: 0 0 44px;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-serif); font-size: 19px; font-weight: 500; }
.brand-loc { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }

.nav {
  display: none;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav a {
  position: relative;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 72px; left: var(--gutter); right: var(--gutter);
  z-index: 55;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-deep);
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.mobile-menu:not([hidden]) {
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: -0.02em;
}
.mobile-menu .btn { margin-top: 8px; }

@media (min-width: 880px) {
  .nav { display: inline-flex; }
  .burger { display: none; }
  .mobile-menu { display: none !important; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 96px var(--gutter) 56px;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.05);
  animation: heroIn 1.4s var(--ease) both;
}
@keyframes heroIn {
  from { transform: scale(1.18); filter: saturate(1.15) contrast(1.05); }
  to   { transform: scale(1.05); filter: saturate(0.95) contrast(1.02); }
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(29, 18, 8, 0.0) 0%, rgba(29, 18, 8, 0.15) 35%, rgba(29, 18, 8, 0.78) 100%),
    linear-gradient(90deg, rgba(29, 18, 8, 0.35) 0%, rgba(29, 18, 8, 0.0) 60%);
}

.hero-inner {
  max-width: 980px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(244, 235, 217, 0.18);
  border: 1px solid rgba(244, 235, 217, 0.32);
  color: var(--paper);
  padding: 8px 14px 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(192, 83, 43, 0.3);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(192, 83, 43, 0.3); }
  50%      { box-shadow: 0 0 0 8px rgba(192, 83, 43, 0.0); }
}

h1 {
  color: var(--paper);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.hero-line { display: block; }
.hero-amp {
  display: inline-block;
  color: var(--terracotta);
  font-style: italic;
  font-weight: 300;
  margin: 0 0.05em;
  transform: translateY(-0.08em);
}

.hero-deck {
  font-size: clamp(16px, 1.6vw, 20px);
  max-width: 52ch;
  margin-top: 22px;
  color: rgba(244, 235, 217, 0.92);
  line-height: 1.5;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin-top: 30px;
  max-width: 640px;
  font-size: 13px;
  color: rgba(244, 235, 217, 0.85);
}
.hero-meta b {
  display: block;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 2px;
  opacity: 0.7;
}
.hero-meta span { font-size: 15px; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-cta .btn-ghost {
  color: var(--paper);
  border-color: rgba(244, 235, 217, 0.5);
}
.hero-cta .btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.hero-scroller {
  position: absolute;
  bottom: 24px;
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 235, 217, 0.7);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero-arrow {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(244, 235, 217, 0.7), transparent);
  animation: arrow 2.4s ease-in-out infinite;
}
@keyframes arrow {
  0%   { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50%  { transform: scaleY(1);   transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.4); transform-origin: bottom; opacity: 0.4; }
}

@media (min-width: 880px) {
  .hero-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { padding: 120px var(--gutter) 72px; }
}

/* ============================================================
   Strip (quote)
   ============================================================ */
.strip {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(40px, 6vw, 72px) var(--gutter);
  text-align: center;
}
.strip p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.3;
  max-width: 30ch;
  margin: 0 auto 14px;
  letter-spacing: -0.01em;
}
.strip span {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* ============================================================
   About
   ============================================================ */
.about {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.about-head h2 { max-width: 18ch; }
.about-text {
  display: grid;
  gap: 16px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 60ch;
}
.about-text p { line-height: 1.6; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 20px;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.about-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-stats dt {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--terracotta);
}
.about-stats dd {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

@media (min-width: 880px) {
  .about-grid {
    grid-template-columns: 1fr 1.2fr;
    grid-template-areas: "head text" "stats text";
    column-gap: 60px;
    row-gap: 48px;
  }
  .about-head { grid-area: head; }
  .about-text { grid-area: text; }
  .about-stats { grid-area: stats; grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Dishes (photo strip)
   ============================================================ */
.dishes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 240px;
  gap: 6px;
  padding: 0 6px;
}
.dish {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
}
.dish img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.95) contrast(1.02);
}
.dish:hover img { transform: scale(1.05); filter: saturate(1.1) contrast(1.05); }
.dish figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dish figcaption span {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 500;
}
.dish figcaption b {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.dish figcaption em {
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  opacity: 0.85;
}
.dish::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.dish-1 { grid-column: span 2; grid-row: span 2; }
.dish-2 { grid-column: span 1; }
.dish-3 { grid-column: span 1; }
.dish-4 { grid-column: span 1; }
.dish-5 { grid-column: span 1; }

@media (min-width: 880px) {
  .dishes {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 260px;
    padding: 0 var(--gutter);
    gap: 8px;
    max-width: calc(var(--max) + var(--gutter) * 2);
    margin: 0 auto;
  }
  .dish-1 { grid-column: span 3; grid-row: span 2; }
  .dish-2 { grid-column: span 3; }
  .dish-3 { grid-column: span 3; }
  .dish-4 { grid-column: span 2; }
  .dish-5 { grid-column: span 2; }
}

/* ============================================================
   Menu
   ============================================================ */
.menu {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.menu-head {
  max-width: 700px;
  margin-bottom: 48px;
}
.menu-head p {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 56ch;
  margin-top: 16px;
}

.menu-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.menu-tabs button {
  position: relative;
  background: transparent;
  border: 0;
  padding: 14px 18px 16px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-fade);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}
.menu-tabs button[aria-selected="true"] { color: var(--ink); }
.menu-tabs button::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.menu-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.menu-tabs button:hover { color: var(--ink); }

.menu-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.menu-panel li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease);
}
.menu-panel li:hover { padding-left: 8px; }
.menu-panel li > span:first-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-panel li b {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.menu-panel li em {
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--ink-soft);
}
.menu-panel li > span:last-child {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  white-space: nowrap;
}

.menu-subhead {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--terracotta-2);
  margin: 36px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.menu-panel > .menu-subhead:first-child { margin-top: 0; }

/* ============================================================
   Reserve
   ============================================================ */
.reserve {
  background: var(--paper-2);
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}
.reserve-card {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.reserve-text h2 { max-width: 16ch; margin-top: 0; }
.reserve-text p {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 50ch;
  margin-top: 18px;
}

.reserve-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.reserve-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.reserve-form .full { grid-column: 1 / -1; }
.reserve-form button {
  grid-column: 1 / -1;
  margin-top: 4px;
  min-height: 52px;
}
.reserve-note {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding: 12px 14px;
  background: var(--terracotta);
  color: var(--paper);
  border-radius: var(--radius-s);
  font-size: 14px;
  text-align: center;
  letter-spacing: 0;
  text-transform: none;
}

@media (min-width: 880px) {
  .reserve-card { grid-template-columns: 1fr 1.1fr; gap: 80px; }
}

/* ============================================================
   Events
   ============================================================ */
.events {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.events-head h2 { max-width: 16ch; }
.events-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.events-list li {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease);
}
.events-list li:hover { padding-left: 12px; }
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 10px 0;
  border-right: 1px solid var(--line);
  padding-right: 24px;
  font-family: var(--font-serif);
}
.event-date b { font-size: 36px; font-weight: 500; line-height: 1; color: var(--terracotta); }
.event-date i {
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
  margin-top: 4px;
  font-family: var(--font-sans);
}
.events-list h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.events-list p { color: var(--ink-soft); margin: 0; max-width: 50ch; }

@media (min-width: 880px) {
  .events-grid { grid-template-columns: 1fr 1.4fr; gap: 60px; }
}

/* ============================================================
   Contacts
   ============================================================ */
.contacts {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 10vw, 140px) var(--gutter) 0;
}
.contacts-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.contacts-grid h2 { color: var(--paper); }
.contacts-grid > div:first-child p {
  color: rgba(244, 235, 217, 0.7);
  max-width: 50ch;
  font-size: 17px;
  margin-top: 18px;
}
.contacts .eyebrow { color: var(--terracotta); }

.contacts-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0;
}
.contacts-list dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  margin-bottom: 6px;
}
.contacts-list dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.4;
}
.contacts-list a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.contacts-list a:hover { border-bottom-color: var(--terracotta); }

.map {
  margin: clamp(40px, 6vw, 72px) calc(-1 * var(--gutter)) 0;
  height: 360px;
  background: var(--paper-2);
  border-top: 1px solid rgba(244, 235, 217, 0.1);
}
.map iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(0.4) contrast(1.1) brightness(0.85);
}

@media (min-width: 880px) {
  .contacts-grid { grid-template-columns: 1fr 1.2fr; gap: 80px; }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: rgba(244, 235, 217, 0.7);
  padding: 40px var(--gutter) 28px;
  font-size: 13px;
  border-top: 1px solid rgba(244, 235, 217, 0.08);
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}
.footer-grid > div { display: flex; flex-direction: column; gap: 6px; }
.footer-grid b {
  display: block;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--paper);
  font-weight: 500;
  margin-bottom: 4px;
}
.footer-grid a {
  transition: color 0.2s var(--ease);
}
.footer-grid a:hover { color: var(--terracotta); }
.footer-grid p { margin: 0; line-height: 1.5; }
.footer-grid > div:first-child p { font-size: 13px; }

.footer-bottom {
  max-width: var(--max);
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 235, 217, 0.08);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 235, 217, 0.4);
}

@media (min-width: 880px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-media img { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
