:root {
  --paper: #f6f1e6;
  --paper-strong: #efe6d6;
  --ink: #1c241c;
  --muted: #5e655e;
  --green: #1c3a2a;
  --green-btn: #24543c;
  --gold: #b08d4a;
  --gold-soft: #e4d2a8;
  --card: #fbf7f0;
  --line: rgba(28, 36, 28, 0.14);
  --shell: min(1180px, calc(100vw - 40px));
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(224, 210, 168, 0.45), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: 0.01em; line-height: 0.95; margin: 0; }
h1 { font-size: clamp(56px, 9vw, 108px); text-transform: uppercase; }
h2 { font-size: clamp(36px, 5vw, 64px); text-transform: uppercase; }
h3 { font-size: 28px; text-transform: uppercase; line-height: 1.05; }
p { margin: 0; }
.shell { width: var(--shell); margin: 0 auto; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-btn);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
em { font-style: italic; font-weight: 500; }

.button, .button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--green);
  background: var(--green-btn);
  color: #f6f1e6;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.button:hover { transform: translateY(-1px); background: var(--green); }
.button-ghost { background: transparent; color: var(--green); }
.button-ghost:hover { background: rgba(36, 84, 60, 0.08); }
.button[disabled] { opacity: 0.55; cursor: wait; }
[hidden] { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 0 10px;
  background: linear-gradient(var(--paper) 70%, rgba(246, 241, 230, 0));
}
#catalog, #delivery, #review, #contacts { scroll-margin-top: 110px; }
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 8px 12px 8px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: rgba(246, 241, 230, 0.92);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.nav { display: flex; gap: 16px; margin-left: 8px; }
.nav a { text-decoration: none; font-size: 14px; }
.header-contacts { display: flex; gap: 8px; margin-left: auto; }
.contact-link {
  text-decoration: none;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.contact-link:hover { border-color: var(--line); background: white; }
.cart-button { position: relative; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: end; padding: 54px 0 28px; }
.hero-lead { max-width: 460px; margin-top: 18px; font-size: 20px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-mark { justify-self: end; width: min(320px, 100%); }
.hero-mark img { width: 100%; border-radius: 50%; box-shadow: 0 24px 60px rgba(28, 58, 42, 0.12); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 22px; }
.filters button, .volume {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.filters button.is-on, .volume.is-on { background: var(--green); color: var(--paper); border-color: var(--green); }

.catalog-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-top: 28px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.card-photo {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, #fff, var(--paper-strong));
  display: grid;
  place-items: center;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo img.card-logo { width: 46%; height: auto; object-fit: contain; }
.card-kicker { color: var(--gold); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.card p { color: var(--muted); }
.card-buy { margin-top: auto; display: grid; gap: 10px; }
.volumes { display: flex; gap: 6px; }
.volume-single { font-size: 14px; color: var(--muted); }
.price { font-family: var(--display); font-size: 32px; }

.band { margin-top: 72px; }
.story, .delivery-grid, .faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.story img, .review {
  border-radius: 28px;
  border: 1px solid var(--line);
}
.story img { width: 100%; height: 420px; object-fit: cover; }
.points { display: grid; gap: 14px; margin-top: 18px; }
.points div { padding-top: 12px; border-top: 1px solid var(--line); }
.points strong { display: block; font-family: var(--display); letter-spacing: 0.04em; text-transform: uppercase; }

.delivery-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.delivery-grid article, .faq-grid article, .review {
  background: rgba(255, 252, 247, 0.7);
  padding: 22px;
}
.delivery-grid h3, .faq-grid h3 { font-size: 26px; margin-bottom: 8px; }
.review { max-width: 760px; }
.review q { display: block; font-size: 22px; line-height: 1.4; }
.review footer { margin-top: 14px; color: var(--muted); }

.final {
  margin: 72px auto;
  padding: 36px;
  border-radius: 32px;
  background: var(--green);
  color: var(--paper);
}
.final .eyebrow { color: var(--gold-soft); }
.final .button { background: var(--paper); color: var(--green); border-color: var(--paper); }
.final-contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.final .contact-link { border-color: rgba(246, 241, 230, 0.3); }

.site-footer { padding: 10px 0 36px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--ink); }

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 36, 28, 0.35);
  z-index: 30;
}
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 31;
  width: min(420px, 100%);
  height: 100%;
  padding: 22px;
  background: var(--paper);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-head, .cart-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cart-lines { overflow: auto; display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cart-line span { display: block; color: var(--muted); font-size: 13px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: white; cursor: pointer; }
.icon-button { border: 0; background: transparent; cursor: pointer; font-size: 22px; }

.checkout { padding: 36px 0 64px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; }
.form, .summary {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 252, 247, 0.75);
}
label { display: grid; gap: 6px; font-size: 14px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
}
.note { color: var(--muted); font-size: 14px; }
.error { color: #8d2b2b; }
.check { display: flex; gap: 8px; align-items: flex-start; }
.check input { width: auto; margin-top: 4px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; }

.legal { padding: 48px 0 72px; max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 18px; }
.legal h2 { font-size: 28px; margin: 26px 0 8px; text-transform: none; font-family: var(--body); letter-spacing: 0; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 18px; }
.legal-nav { margin-top: 28px; color: var(--muted); }
.result { min-height: 70vh; display: grid; align-content: center; gap: 14px; }
.result-ok { color: var(--green); }
.result-wait { color: var(--ink); }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .nav, .header-contacts { display: none; }
  .hero, .story, .delivery-grid, .faq-grid, .checkout, .grid { grid-template-columns: 1fr; }
  .hero-mark { justify-self: start; width: 180px; }
  .story img { height: 240px; }
  h1 { font-size: 58px; }
}
