/* ============================================================
   ХМЕЛЬ И ДЫМ — design tokens
   ============================================================ */
:root {
  --bg: #15100b;
  --bg-2: #1e1712;
  --bg-3: #241c15;
  --paper: #f4ead8;
  --paper-dim: #cabfa9;
  --amber: #e0872f;
  --amber-2: #f5a94f;
  --copper: #b5663a;
  --rust: #9c3b28;
  --smoke: #8c8175;
  --line: rgba(244, 234, 216, 0.14);
  --line-strong: rgba(244, 234, 216, 0.26);
  --ink: #17120d;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1240px;
  --radius-sm: 3px;
  --radius: 10px;
  --radius-lg: 22px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--paper);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; }

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--amber); color: var(--ink);
  padding: 12px 20px; z-index: 1000; font-weight: 800;
}
.skip-link:focus { left: 12px; top: 12px; }

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

.accent { color: var(--amber); }

/* ---------- Grain texture ---------- */
.grain {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.4; mix-blend-mode: overlay; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--amber); color: var(--ink);
  box-shadow: 4px 4px 0 var(--rust);
}
.btn-primary:hover { background: var(--amber-2); box-shadow: 6px 6px 0 var(--rust); }

.btn-ghost { border-color: var(--line-strong); color: var(--paper); }
.btn-ghost:hover { background: rgba(244,234,216,0.08); border-color: var(--paper); }

.btn-block { width: 100%; text-align: center; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-lede { margin-top: 18px; font-size: 1.05rem; color: var(--paper-dim); max-width: 620px; }

h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -0.01em; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(21, 16, 11, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 16px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { color: var(--amber); width: 30px; height: 30px; flex: none; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-text {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.02em; color: var(--paper);
}

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a:not(.nav-cta) {
  font-weight: 600; font-size: 0.94rem; color: var(--paper-dim);
  transition: color 0.15s ease;
}
.main-nav a:not(.nav-cta):hover { color: var(--amber-2); }

.nav-cta {
  background: var(--amber); color: var(--ink) !important;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-weight: 800 !important; font-size: 0.84rem !important;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav-cta:hover { background: var(--amber-2); transform: translateY(-2px); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--paper); display: block; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  min-height: 92vh; display: flex; align-items: center;
  padding-top: 60px; padding-bottom: 90px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 38%;
  transform: scale(1.02);
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,16,11,0.55) 0%, rgba(17,13,9,0.82) 55%, rgba(15,11,8,0.96) 100%);
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  color: var(--paper);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.hero-statement {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--paper-dim);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-facts {
  display: flex; gap: 40px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.hero-facts li { display: flex; flex-direction: column; gap: 4px; }
.hero-facts strong {
  font-family: var(--font-display); font-size: 2rem; color: var(--amber-2);
}
.hero-facts span { font-size: 0.82rem; color: var(--paper-dim); max-width: 140px; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 26px; height: 42px; border: 2px solid var(--line-strong);
  border-radius: 20px; display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span {
  width: 4px; height: 8px; border-radius: 2px; background: var(--amber-2);
  animation: scrollcue 1.8s ease infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 120px 0; background: var(--bg); }
.about-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: center;
}
.about-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.about-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 908 / 1365; }
.about-media-tag {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(21,16,11,0.78); backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  padding: 10px 16px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em;
}

.about-copy h2 { margin-bottom: 24px; }
.about-copy p { color: var(--paper-dim); margin-bottom: 18px; max-width: 560px; }
.about-signature {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.sig-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--paper); }
.sig-role { font-size: 0.84rem; color: var(--smoke); }

/* ============================================================
   BEER LINEUP
   ============================================================ */
.beer { position: relative; padding: 120px 0; background: var(--bg-2); }

.beer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.beer-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.beer-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.beer-card-featured { background: linear-gradient(155deg, rgba(224,135,47,0.14), var(--bg-3) 55%); border-color: rgba(224,135,47,0.35); }

.beer-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.beer-style { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--smoke); }
.beer-abv { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; color: var(--amber-2); white-space: nowrap; }

.beer-card h3 { font-size: 1.5rem; color: var(--paper); }
.beer-card p { color: var(--paper-dim); font-size: 0.95rem; flex-grow: 1; }
.beer-tags {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.03em;
  color: var(--copper); text-transform: uppercase;
  padding-top: 10px; border-top: 1px dashed var(--line);
}

.beer-strip {
  margin-top: 60px;
  display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: center;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; overflow: hidden;
}
.beer-strip img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 1/1; }
.beer-strip-copy h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--paper); }
.beer-strip-copy p { color: var(--paper-dim); max-width: 560px; }

/* ============================================================
   VISIT / TAPROOM
   ============================================================ */
.visit { padding: 120px 0; background: var(--bg); }
.visit-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: center; }

.visit-lede { color: var(--paper-dim); margin-top: 20px; max-width: 540px; margin-bottom: 34px; }

.visit-details { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.visit-details li { display: flex; flex-direction: column; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.visit-details li:last-child { border-bottom: none; padding-bottom: 0; }
.visit-label { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--smoke); }
.visit-details a:hover { color: var(--amber-2); }

.visit-social { display: flex; gap: 22px; flex-wrap: wrap; }
.visit-social a {
  font-weight: 700; font-size: 0.88rem; color: var(--paper-dim);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.visit-social a:hover { color: var(--amber-2); border-color: var(--amber-2); }

.visit-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.visit-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1024/1536; }
.visit-media-tag {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(21,16,11,0.78); backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  padding: 10px 16px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700;
}

/* ============================================================
   EVENTS
   ============================================================ */
.events { position: relative; padding: 120px 0; overflow: hidden; }
.events-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.events-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,11,8,0.94) 0%, rgba(15,11,8,0.88) 50%, rgba(15,11,8,0.96) 100%);
  z-index: 1;
}
.events .wrap { position: relative; z-index: 2; }
.events-lede { color: var(--paper-dim); }

.events-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.event-card {
  background: rgba(30, 23, 18, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 26px;
  display: flex; gap: 18px; backdrop-filter: blur(4px);
}
.event-date {
  flex: none; display: flex; flex-direction: column; align-items: center;
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; color: var(--amber-2);
  line-height: 1.2;
}
.event-date strong { font-family: var(--font-display); font-size: 1.9rem; color: var(--paper); }
.event-tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--copper); }
.event-body h3 { font-size: 1.1rem; margin: 8px 0 8px; color: var(--paper); }
.event-body p { font-size: 0.9rem; color: var(--paper-dim); }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews { padding: 120px 0; background: var(--bg-2); }
.reviews-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; gap: 22px;
}
.review-card blockquote { font-size: 1.02rem; color: var(--paper); line-height: 1.55; }
.review-card figcaption { display: flex; flex-direction: column; gap: 3px; padding-top: 16px; border-top: 1px solid var(--line); }
.r-name { font-weight: 700; color: var(--paper); }
.r-title { font-size: 0.82rem; color: var(--smoke); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { position: relative; padding: 120px 0; background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.contact-statement { color: var(--paper-dim); margin-top: 20px; max-width: 480px; margin-bottom: 30px; }
.contact-media { border-radius: var(--radius-lg); overflow: hidden; max-width: 420px; }
.contact-media img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }

.contact-form-wrap {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 40px;
}
.reservation-form h3 { font-size: 1.3rem; margin-bottom: 24px; color: var(--paper); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 8px; color: var(--paper-dim); }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 14px;
  background: var(--bg); border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm); color: var(--paper);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--smoke); }
.form-field input:focus, .form-field textarea:focus { border-color: var(--amber); outline: none; }
.form-field textarea { resize: vertical; min-height: 90px; }

.form-field.has-error input, .form-field.has-error textarea { border-color: var(--rust); }
.field-error { display: block; font-size: 0.8rem; color: #ef8266; margin-top: 6px; min-height: 1em; }

.form-success {
  margin-top: 20px; padding: 16px 18px;
  background: rgba(224, 135, 47, 0.12); border: 1px solid rgba(224, 135, 47, 0.4);
  border-radius: var(--radius-sm); font-size: 0.92rem; color: var(--paper);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner p { font-size: 0.84rem; color: var(--smoke); }
.back-to-top { font-size: 0.84rem; font-weight: 700; color: var(--paper-dim); }
.back-to-top:hover { color: var(--amber-2); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .about-grid, .visit-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-media, .visit-media { order: -1; max-width: 460px; }
  .beer-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .beer-strip { grid-template-columns: 140px 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; inset: 60px 0 0 0; z-index: 190;
    background: var(--bg); border-top: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 12px 24px 24px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a:not(.nav-cta) { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .main-nav .nav-cta { margin-top: 18px; text-align: center; }
  .nav-toggle { display: flex; }

  .hero { min-height: 100vh; padding-top: 40px; }
  .hero-facts { gap: 26px; }

  .about, .beer, .visit, .events, .reviews, .contact { padding: 80px 0; }
  .beer-grid, .events-grid, .reviews-grid { grid-template-columns: 1fr; }
  .beer-strip { grid-template-columns: 1fr; }
  .beer-strip img { max-width: 200px; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 26px; }
  .contact-media { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
