:root {
  --ink: #f8f1e8;
  --muted: #d7c2b4;
  --bg: #1d1d1f;
  --bg-soft: #262326;
  --copper: #c88768;
  --gold: #efc66b;
  --green: #536f4d;
  --cream: #fff7ea;
  --dark: #121113;
  --line: rgba(255, 247, 234, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--dark);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(200, 135, 104, 0.11), transparent 22%, transparent 78%, rgba(200, 135, 104, 0.11)),
    radial-gradient(circle at 72% 12%, rgba(239, 198, 107, 0.14), transparent 28%);
  z-index: -1;
}

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

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

.wrap {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 17, 19, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.sarmat-logo {
  position: relative;
  width: 112px;
  aspect-ratio: 760 / 460;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
  container-type: inline-size;
}

.sarmat-logo::before {
  content: "";
  position: absolute;
  inset: 7% 21%;
  background: url("/sarmat/assets/sarmlogo.png") center / contain no-repeat;
  opacity: 0.96;
}

.sarmat-logo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 64%;
  height: 10%;
  background: var(--copper);
}

.sarmat-logo-text {
  display: contents;
}

.sarmat-logo-title {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 16cqw, 112px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 3px 0 rgba(36, 35, 38, 0.92);
}

.sarmat-logo-subtitle {
  position: absolute;
  z-index: 1;
  top: 80%;
  left: 0;
  right: 0;
  color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(5px, 3.2cqw, 25px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.topbar .sarmat-logo::after,
.topbar .sarmat-logo-subtitle {
  display: none;
}

.links {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.links a,
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
}

.links a {
  color: var(--muted);
}

.links a[aria-current="page"] {
  color: var(--cream);
  border-color: var(--line);
}

.button {
  background: var(--copper);
  color: #1a1110;
  box-shadow: 0 12px 26px rgba(200, 135, 104, 0.22);
}

.button.secondary {
  background: transparent;
  color: var(--cream);
  border-color: var(--line);
  box-shadow: none;
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: center;
  padding: 54px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  color: var(--copper);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--cream);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  font-weight: 300;
}

h3 {
  margin-bottom: 8px;
  color: var(--cream);
  font-size: 22px;
  font-weight: 500;
}

.lead {
  color: var(--muted);
  max-width: 650px;
  font-size: 19px;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0 0;
}

.compact-brand-logo {
  width: min(260px, 72vw);
  background: transparent;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.25));
}

.compact-brand-logo::after,
.compact-brand-logo .sarmat-logo-subtitle {
  display: none;
}

.home-hero {
  min-height: calc(100vh - 64px);
  padding: 64px 0 72px;
  display: grid;
  align-items: start;
}

.home-brand-row {
  display: grid;
  grid-template-columns: minmax(200px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.home-brand-link {
  display: block;
  width: min(260px, 72vw);
  justify-self: start;
}

.home-brand-heading h1 {
  margin-bottom: 0;
  font-size: clamp(36px, 6.2vw, 76px);
}

.home-story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: end;
  padding-top: 34px;
}

.home-story p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.66;
}

.home-story .button {
  grid-column: 1 / -1;
  justify-self: start;
}

.menu-hero {
  padding: 54px 0 34px;
  border-bottom: 1px solid var(--line);
}

.menu-brand-row { padding-bottom: 34px; }

.menu-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  padding-top: 26px;
  text-align: center;
}

.menu-categories a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.menu-categories a:hover,
.menu-categories a:focus-visible {
  color: var(--gold);
  border-color: var(--copper);
  outline: none;
}

section[id] { scroll-margin-top: 82px; }

.hero-photo {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-logo-panel {
  display: grid;
  place-items: center;
  padding: 48px;
  background:
    linear-gradient(90deg, rgba(200, 135, 104, 0.22) 0 16px, transparent 16px calc(100% - 16px), rgba(200, 135, 104, 0.22) calc(100% - 16px)),
    linear-gradient(180deg, #252426, #1e1d20);
}

.hero-brand-link {
  display: block;
  width: min(620px, 96%);
}

.hero-logo-panel .sarmat-logo {
  width: 100%;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.36));
}

.hero-logo-panel .sarmat-logo-subtitle {
  top: 69%;
  transform: translateY(-50%);
}

.hero-logo-panel::before,
.hero-logo-panel::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  height: 1px;
  background: rgba(200, 135, 104, 0.34);
}

.hero-logo-panel::before { top: 18px; }
.hero-logo-panel::after { bottom: 18px; }

.band {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.band.light {
  color: #2a2320;
  background: var(--cream);
}

.band.light h2,
.band.light h3 { color: #201a18; }

.band.light .lead,
.band.light .muted { color: #6f5d52; }

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.feature,
.menu-card,
.step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 234, 0.055);
  padding: 18px;
}

.band.light .feature,
.band.light .menu-card,
.band.light .step {
  border-color: rgba(32, 26, 24, 0.14);
  background: #fffaf1;
}

.feature b,
.price { color: var(--gold); }

.band.light .feature b,
.band.light .price { color: #9c583d; }

.muted {
  color: var(--muted);
  line-height: 1.55;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.menu-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 18px;
  align-items: start;
}

.menu-card--feature {
  display: block;
  padding: 0;
  overflow: hidden;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.menu-card--feature:hover,
.menu-card--feature:focus-visible {
  transform: translateY(-4px);
  border-color: var(--copper);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
  outline: none;
}

.menu-card-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center;
}

.menu-card-content {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.menu-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
}

.menu-card-title {
  color: var(--cream);
  font-size: 22px;
  font-weight: 500;
}

.product-dialog {
  width: min(900px, calc(100% - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  padding: 0;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid rgba(239, 198, 107, 0.44);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-dialog::backdrop {
  background: rgba(8, 8, 9, 0.78);
  backdrop-filter: blur(5px);
}

.product-dialog-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.product-dialog-image {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.product-dialog-copy {
  padding: 42px 38px 32px;
}

.product-dialog-copy h2 {
  font-size: clamp(36px, 5vw, 58px);
}

.product-lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.product-facts {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}

.product-facts div {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.product-facts dt { color: var(--copper); }
.product-facts dd { margin: 0; color: var(--cream); }

.photo-credit {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.photo-credit a { text-decoration: underline; }

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #1a1110;
  background: var(--copper);
  border: 1px solid rgba(255, 247, 234, 0.45);
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-card p {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.price {
  white-space: nowrap;
  font-size: 18px;
  font-weight: 800;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  margin-bottom: 26px;
}

.section-head .lead {
  max-width: 520px;
  margin-bottom: 0;
}

.menu-note {
  margin-top: 22px;
  padding: 18px;
  border-left: 3px solid var(--copper);
  color: var(--muted);
  background: rgba(255, 247, 234, 0.045);
}

.page-hero {
  padding: 70px 0 50px;
  border-bottom: 1px solid var(--line);
}

.page-hero .lead { margin-bottom: 0; }

.menu-intro {
  padding: 42px 0 30px;
  border-bottom: 1px solid var(--line);
}

.menu-intro-inner {
  display: grid;
  justify-items: center;
  text-align: center;
}

.menu-intro-logo {
  width: min(260px, 72vw);
  margin-bottom: 18px;
  background: transparent;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.25));
}

.menu-intro .sarmat-logo::after,
.menu-intro .sarmat-logo-subtitle {
  display: none;
}

.menu-intro .sarmat-logo-title {
  top: 50%;
}

.menu-intro h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.menu-intro .lead {
  margin-bottom: 0;
  font-size: 16px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-num {
  color: var(--copper);
  font-size: 15px;
  font-weight: 900;
}

.footer {
  padding: 36px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 840px) {
  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    padding: 8px 0;
  }

  .links {
    justify-content: center;
  }

  .links a,
  .button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .split,
  .menu-grid,
  .two-col,
  .steps,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .hero-photo,
  .hero-logo-panel {
    min-height: 340px;
  }

  .hero-logo-panel { padding: 30px; }

  .band { padding: 54px 0; }

  .product-dialog-grid { grid-template-columns: 1fr; }

  .product-dialog-image {
    min-height: 260px;
    height: 34vh;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 24px, 1120px);
  }

  .topbar { position: static; }

  .nav {
    min-height: 54px;
  }

  .links { gap: 2px; }

  .links a,
  .button {
    min-height: 34px;
    padding: 0 7px;
    font-size: 12px;
  }

  .menu-card {
    grid-template-columns: 1fr;
  }

  .price { font-size: 17px; }

  .hero {
    padding: 34px 0 30px;
  }

  .hero-photo,
  .hero-logo-panel {
    min-height: 255px;
  }

  .hero-logo-panel { padding: 18px; }

  .hero-logo-panel::before,
  .hero-logo-panel::after {
    left: 12px;
    right: 12px;
  }

  .menu-intro {
    padding: 30px 0 24px;
  }

  .menu-intro-logo.sarmat-logo {
    width: min(230px, 76vw);
    margin-bottom: 14px;
  }

  .menu-intro .lead {
    font-size: 15px;
    line-height: 1.45;
  }

  .band { padding: 44px 0; }

  .menu-card-image { height: 190px; }

  .product-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }

  .product-dialog-image { height: 210px; }

  .product-dialog-copy { padding: 30px 22px 24px; }

  .product-facts div { grid-template-columns: 78px 1fr; }

  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 620px) {
  .home-hero {
    min-height: auto;
    padding: 38px 0 46px;
  }

  .home-brand-row,
  .home-story {
    grid-template-columns: 1fr;
  }

  .home-brand-row {
    gap: 22px;
    padding-bottom: 28px;
  }

  .home-brand-link,
  .compact-brand-logo {
    width: min(180px, 58vw);
  }

  .home-brand-heading h1 { font-size: 34px; }

  .home-story {
    gap: 16px;
    padding-top: 26px;
  }

  .home-story p { font-size: 16px; }

  .menu-hero { padding: 38px 0 28px; }

  .menu-brand-row { padding-bottom: 28px; }

  .menu-categories {
    gap: 10px 16px;
    padding-top: 20px;
  }

  .menu-categories a { font-size: 14px; }
}

@media (max-width: 520px) {
  h2 { font-size: 28px; }

  h3 { font-size: 20px; }

  .product-dialog-copy h2 { font-size: 34px; }
}
