:root {
  --ink: #101d18;
  --ink-soft: #1a2d26;
  --muted: #5f6d66;
  --paper: #f6f1e6;
  --surface: #fffbf2;
  --line: #e4d9c4;
  --coral: #b95c2c;
  --green: #23604e;
  --blue: #2d6386;
  --gold: #d2a247;
  --shadow: 0 18px 50px rgba(16, 29, 24, 0.14);
  --shadow-soft: 0 8px 26px rgba(16, 29, 24, 0.1);
  --radius: 14px;
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3,
.brand {
  font-family: var(--font-display);
  letter-spacing: 0.005em;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr minmax(180px, 280px) auto;
  gap: 18px;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 54px);
  background: rgba(247, 242, 232, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

/* На десктопе drawer не влияет на сетку, бургер скрыт */
.header-drawer {
  display: contents;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf7;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(150deg, var(--green), var(--ink));
  border-radius: 12px;
  font-family: var(--font-body);
}

.main-nav,
.footer-links,
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.main-nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.94rem;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--ink);
}

.header-search input,
.big-search input,
.stack-form input,
.stack-form textarea,
.stack-form select,
.comment-box input,
.comment-box textarea,
.admin-row input,
.admin-row select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffdf7;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 11px 13px;
  outline: none;
}

.header-search input:focus,
.big-search input:focus,
.stack-form input:focus,
.stack-form textarea:focus,
.comment-box textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 122, 102, 0.14);
}

.header-search {
  position: relative;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  max-height: 360px;
  overflow-y: auto;
}

.search-suggest-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
}

.search-suggest-row img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}

.search-suggest-row:hover,
.search-suggest-row.is-active {
  background: rgba(210, 162, 71, 0.14);
}

.chip,
.icon-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  background: #fffdf7;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover,
.chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.icon-btn {
  width: 42px;
  padding: 0;
}

.lang-switch select {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf7;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn.primary {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.btn.secondary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn.ghost {
  background: transparent;
}

.btn.small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.9rem;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 5vw, 76px) clamp(16px, 5vw, 72px);
  background:
    radial-gradient(ellipse 90% 70% at 75% 20%, rgba(210, 162, 71, 0.16), transparent 60%),
    linear-gradient(165deg, #16281f 0%, var(--ink) 62%, #0b1512 100%);
  color: #f4efe2;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero p {
  color: rgba(244, 239, 226, 0.72);
}

.hero .btn.ghost,
.hero .btn.secondary {
  border-color: rgba(244, 239, 226, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #f4efe2;
}

.hero h1,
.page-hero h1,
.drink-summary h1,
.article-page h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p,
.page-hero p,
.drink-summary p,
.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 680px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 10px;
  color: var(--coral);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-image {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-image img,
.drink-media img,
.article-page > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(18, 35, 31, 0.76);
  color: #fff;
  font-weight: 800;
}

.content-band,
.bar-builder,
.community,
.article-strip,
.article-grid,
.search-results,
.narrow-band,
.admin-shell {
  padding: clamp(28px, 5vw, 68px) clamp(16px, 5vw, 72px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading > div > h2::after,
.section-heading > h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-heading h2,
.article-body h2,
.side-panel h2,
.community h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.text-link {
  color: var(--green);
  font-weight: 800;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.drink-card,
.article-teaser,
.variation-card,
.variation-item,
.side-panel,
.rating-box,
.taste-vote-box,
.comment-box,
.moderation-card,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.drink-card {
  min-height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.drink-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.media-link {
  display: block;
  position: relative;
  padding: 5px;
  border: 6px solid transparent;
  background: #fffdf7;
  box-sizing: border-box;
}

.profile-bold {
  --profile-frame: #2f6fdf;
}

.profile-soft {
  --profile-frame: #dc4b93;
}

.profile-balanced {
  --profile-frame: #8355d9;
}

.drink-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.production-ribbon {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 2;
  min-width: 118px;
  padding: 7px 12px;
  background: #080808;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.drink-card.profile-bold .media-link,
.drink-card.profile-soft .media-link,
.drink-card.profile-balanced .media-link {
  border-color: var(--profile-frame);
  border-radius: var(--radius);
  box-shadow: 0 0 0 2px #ffffff, 0 8px 18px rgba(18, 35, 31, 0.12);
}

.drink-card-body {
  padding: 16px;
}

.drink-card h3,
.article-teaser h3,
.variation-card h3,
.variation-item h3,
.moderation-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.drink-card p,
.article-teaser p,
.variation-card p,
.variation-item p,
.muted,
.notice {
  color: var(--muted);
}

.ingredient-recommendation {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.profile-chip,
.achievement-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
}

.profile-row-above-title {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}

.rating-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid rgba(215, 169, 65, 0.45);
  border-radius: 999px;
  background: rgba(215, 169, 65, 0.12);
  color: var(--ink);
  font-weight: 900;
}

.rating-jump small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.profile-chip {
  margin-top: 8px;
  background: #f0edf8;
  color: #56368f;
}

.profile-bold .profile-chip {
  background: #e9f0ff;
  color: #254d9d;
}

.profile-soft .profile-chip {
  background: #fdebf3;
  color: #9d2f62;
}

.profile-balanced .profile-chip {
  background: #f0edf8;
  color: #56368f;
}

.achievement-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 4px;
}

.achievement-chip {
  background: #fff3cf;
  color: #785711;
  border: 1px solid #ead28c;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

a.achievement-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(18, 35, 31, 0.08);
}

.achievement-iba {
  background: #eaf4ee;
  color: #245c38;
  border-color: #bcd9c5;
}

.catalog-filters {
  padding: 18px clamp(16px, 5vw, 72px);
  background: #fffdf7;
  border-bottom: 1px solid var(--line);
}

.catalog-filters form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}

.catalog-filters label {
  display: grid;
  gap: 6px;
  min-width: min(100%, 230px);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.catalog-filters select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.category-links-band,
.brand-links-band {
  padding-block: 28px;
}

.category-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.category-link-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.category-link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--gold);
}

.category-link-card strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.category-link-card span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.brand-link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-link-cloud a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green);
  font-weight: 800;
  transition: background 0.13s ease, color 0.13s ease, border-color 0.13s ease;
}

.brand-link-cloud a:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.bar-builder {
  background:
    radial-gradient(ellipse 70% 90% at 90% 100%, rgba(210, 162, 71, 0.1), transparent 55%),
    linear-gradient(165deg, #eaf2ea, #e0ecdf);
  border-block: 1px solid #cfdfd0;
}

.bar-dropzone {
  min-height: 104px;
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px dashed #8fb29b;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.65);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bar-dropzone.is-over {
  border-color: var(--green);
  background: #ffffff;
}

.selected-ingredients,
.ingredient-cloud {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ingredient-cloud {
  margin: 20px 0 26px;
  max-height: 310px;
  overflow: auto;
  padding-right: 6px;
}

.ingredient-pill,
.selected-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid #cadbcc;
  border-radius: 999px;
  background: #fffdf7;
  padding: 7px 13px 7px 7px;
  cursor: pointer;
  transition: transform 0.13s ease, box-shadow 0.13s ease, border-color 0.13s ease;
}

.ingredient-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  border-color: var(--green);
}

.ingredient-pill img,
.selected-pill img {
  border-radius: 999px;
}

.ingredient-pill[aria-pressed="true"] {
  border-color: var(--green);
  background: #e3f0e7;
}

.ingredient-pill img,
.selected-pill img,
.search-row img,
.admin-row img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: var(--radius);
}

.ingredient-group {
  border-style: dashed;
  border-color: var(--green);
  font-weight: 800;
}

.group-caret {
  font-style: normal;
  color: var(--green);
  font-size: 0.8rem;
}

.group-chooser {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 29, 24, 0.55);
}

.group-chooser-dialog {
  width: min(560px, 100%);
  max-height: 70vh;
  overflow: auto;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.group-chooser-dialog h3 {
  margin: 0 0 14px;
}

.group-chooser-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.group-chooser-options .ingredient-pill[aria-pressed="true"] {
  border-color: var(--green);
  background: #e3f0e7;
}

.suggestions-panel {
  padding-top: 6px;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.suggestion-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #fffdf7;
  border: 1px solid #d3e1d5;
  border-radius: var(--radius);
}

.suggestion-card img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: var(--radius);
}

.suggestion-card h4 {
  margin: 0 0 4px;
}

.match-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: var(--radius);
  background: #f5e8c7;
  color: #6f4d12;
  font-weight: 800;
  font-size: 0.78rem;
}

.page-hero {
  padding: clamp(34px, 6vw, 84px) clamp(16px, 5vw, 72px);
  background:
    radial-gradient(ellipse 70% 90% at 85% 10%, rgba(210, 162, 71, 0.14), transparent 55%),
    #fbf5e7;
  border-bottom: 1px solid var(--line);
}

.page-hero.compact {
  min-height: 280px;
  display: grid;
  align-content: center;
}

.page-hero.split {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 380px);
  gap: 36px;
  align-items: center;
}

.page-hero.split img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.drink-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(24px, 5vw, 72px);
  background:
    radial-gradient(ellipse 80% 60% at 25% 30%, rgba(210, 162, 71, 0.12), transparent 60%),
    linear-gradient(160deg, #182b23 0%, var(--ink) 70%);
  color: #f4efe2;
}

.drink-detail .eyebrow {
  color: var(--gold);
}

.drink-detail .eyebrow a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(210, 162, 71, 0.5);
}

.drink-detail .drink-summary p {
  color: rgba(244, 239, 226, 0.74);
}

.drink-detail .metric-row span,
.drink-detail .story-step {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(244, 239, 226, 0.22);
  color: #f4efe2;
}

.drink-detail .story-step.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.drink-detail .rating-jump {
  background: rgba(210, 162, 71, 0.16);
  border-color: rgba(210, 162, 71, 0.5);
  color: #f4efe2;
}

.drink-detail .rating-jump small {
  color: rgba(244, 239, 226, 0.6);
}

.drink-detail .production-alert {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(244, 239, 226, 0.25);
}

.drink-detail .production-alert p {
  color: rgba(244, 239, 226, 0.7);
}

.drink-media {
  position: relative;
  min-height: 560px;
  border: 4px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.drink-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-ribbon {
  right: 0;
  bottom: 0;
  min-width: 172px;
  padding: 10px 16px;
  font-size: 0.82rem;
}

.drink-detail.profile-bold .drink-media,
.drink-detail.profile-soft .drink-media,
.drink-detail.profile-balanced .drink-media {
  border-color: var(--profile-frame);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), var(--shadow);
}

.metric-row,
.story-steps,
.recipe-facts,
.stat-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.metric-row span,
.story-step,
.recipe-facts div {
  padding: 9px 12px;
  border-radius: var(--radius);
  background: #fffdf7;
  border: 1px solid var(--line);
  font-weight: 800;
}

.story-step.active {
  background: var(--ink);
  color: #fff;
}

.production-alert {
  margin: 18px 0;
  padding: 14px 16px;
  background: #fff4ef;
  border: 1px solid #e5b9a7;
  border-radius: var(--radius);
}

.production-alert.muted {
  background: #fffdf7;
  border-color: var(--line);
}

.production-alert strong {
  display: block;
  margin-bottom: 5px;
}

.production-alert p {
  margin: 0;
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  padding: clamp(28px, 5vw, 68px) clamp(16px, 5vw, 72px);
}

.article-body {
  max-width: 860px;
}

.article-body p,
.article-body li,
.article-page .article-body {
  font-size: 1.04rem;
}

.tech-card {
  margin: 0 0 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.tech-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--ink);
  color: #fff;
}

.tech-card-head h2 {
  margin: 0;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tech-card-head span {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  font-size: 0.9rem;
}

.tech-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.tech-specs > div {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.tech-specs dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tech-specs dd {
  margin: 3px 0 0;
  font-weight: 800;
}

.tech-link {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: rgba(35, 96, 78, 0.35);
  text-underline-offset: 3px;
}

.tech-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 14px 18px 6px;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tech-subhead small {
  color: var(--muted);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.tech-ingredients {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 6px;
}

.tech-ingredients td {
  padding: 9px 18px;
  border-bottom: 1px dashed var(--line);
  vertical-align: top;
}

.tech-ingredients tr:last-child td {
  border-bottom: 1px solid var(--line);
}

.tech-ingredients a {
  color: var(--green);
  font-weight: 800;
}

.tech-amount {
  text-align: right;
  white-space: nowrap;
  font-weight: 800;
}

.tech-optional {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 700;
}

.tech-steps {
  margin: 6px 0 0;
  padding: 0 18px 18px 18px;
  list-style: none;
  counter-reset: tech-step;
}

.tech-steps li {
  position: relative;
  counter-increment: tech-step;
  padding: 9px 0 9px 44px;
  border-bottom: 1px dashed var(--line);
}

.tech-steps li:last-child {
  border-bottom: none;
}

.tech-steps li::before {
  content: counter(tech-step);
  position: absolute;
  left: 0;
  top: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}

.ingredient-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--line);
}

.ingredient-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.ingredient-list a {
  color: var(--green);
  font-weight: 800;
}

.side-panel {
  padding: 18px;
  align-self: start;
}

.taste-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}

.commerce-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 24px;
}

.commerce-list a {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
}

.commerce-list span {
  color: var(--muted);
  font-size: 0.88rem;
}

.fact-list,
.brand-facts {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
}

.fact-list div,
.brand-facts div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.fact-list dt,
.brand-facts dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.fact-list dd,
.brand-facts dd {
  margin: 0;
  font-weight: 800;
}

.fact-list a,
.brand-facts a,
.source-list a {
  color: var(--green);
}

.source-mark {
  margin-left: 4px;
  font-size: 0.82rem;
  text-decoration: none;
}

.vintage-table {
  display: grid;
  gap: 8px;
  margin: -6px 0 24px;
  padding: 12px;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.vintage-table div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  font-weight: 800;
}

.vintage-table p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.source-list {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.source-list a,
.source-list .source-item {
  display: grid;
  gap: 2px;
  padding: 10px;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.source-list a {
  text-decoration: none;
}

.source-list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.brand-hero {
  grid-template-columns: auto minmax(0, 760px);
  gap: 24px;
  align-items: center;
}

.brand-logo {
  max-width: 148px;
  max-height: 148px;
  object-fit: contain;
  padding: 14px;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

meter {
  width: 100%;
  height: 14px;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.media-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.media-item img,
.media-item video,
.media-item iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 0;
}

.variation-grid,
.variation-list,
.article-strip,
.article-grid,
.community {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.article-teaser,
.variation-card,
.rating-box,
.taste-vote-box,
.comment-box,
.moderation-card,
.stat-card {
  padding: 22px;
}

.rating-box,
.taste-vote-box,
.comment-box {
  box-shadow: var(--shadow-soft);
}

.variation-card img {
  width: calc(100% + 44px);
  max-width: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: -22px -22px 14px;
  display: block;
}

.variation-list {
  grid-template-columns: 1fr;
}

.variation-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px;
}

.variation-item img {
  width: 84px;
  height: 84px;
  border-radius: var(--radius);
  object-fit: cover;
}

.variation-item h3,
.variation-item p {
  margin: 0 0 4px;
}

.variation-rating-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.variation-rating-form select {
  width: 72px;
}

.article-teaser {
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.article-teaser:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.article-teaser span {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(210, 162, 71, 0.16);
  color: #8a6516;
  font-weight: 800;
  font-size: 0.76rem;
}

.article-page .lead {
  font-size: 1.2rem;
  line-height: 1.6;
}

.article-body p {
  line-height: 1.7;
}

.star-input {
  display: flex;
  gap: 5px;
  margin: 10px 0;
}

.star-input input {
  position: absolute;
  opacity: 0;
}

.star-input span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 1.25rem;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.star-input label:hover span {
  transform: scale(1.08);
  border-color: var(--gold);
  background: rgba(210, 162, 71, 0.12);
}

.star-input input:checked + span,
.star-input label.is-lit span {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.comment-box form,
.taste-vote-form,
.stack-form {
  display: grid;
  gap: 12px;
}

.taste-vote-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.84rem;
}

.taste-vote-form input[type="range"] {
  width: 100%;
}

.taste-component-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 130px 70px;
  gap: 8px;
}

.taste-community-summary {
  display: grid;
  gap: 10px;
  margin: 10px 0 16px;
}

.taste-meter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.taste-meter i {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green) var(--score), rgba(47, 122, 102, 0.14) var(--score));
}

.taste-components-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.taste-components-cloud span,
.expert-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf7;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
}

.expert-badge {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  text-transform: lowercase;
}

.comments-list article {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.article-page {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) 16px;
}

.article-page > img {
  max-height: 520px;
  border-radius: var(--radius);
  margin: 26px 0;
}

.big-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 760px;
  margin-top: 20px;
}

.big-search input {
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 1.05rem;
  box-shadow: var(--shadow-soft);
}

.search-row {
  border-radius: var(--radius);
  padding: 14px;
  transition: background 0.13s ease;
}

.search-row:hover {
  background: var(--surface);
}

.search-row img {
  border-radius: 12px;
}

.search-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.search-row img {
  width: 86px;
  height: 86px;
}

.search-row span {
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 28px;
  padding: clamp(36px, 6vw, 64px) clamp(16px, 5vw, 72px);
  background:
    radial-gradient(ellipse 60% 80% at 15% 0%, rgba(210, 162, 71, 0.1), transparent 55%),
    linear-gradient(170deg, var(--ink-soft), #0b1512);
  color: #fff;
}

.site-footer strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a:hover {
  color: var(--gold);
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(18, 35, 31, 0.78);
  padding: 18px;
}

.age-dialog {
  max-width: 520px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.age-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
}

.admin-nav {
  display: grid;
  gap: 8px;
  align-self: start;
}

.admin-nav strong {
  font-size: 1.05rem;
}

.admin-nav span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-nav a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-panel {
  min-width: 0;
}

.admin-toolbar,
.admin-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-toolbar input,
.admin-toolbar select {
  min-width: 180px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.stat-card strong {
  display: block;
  font-size: 2rem;
}

a.stat-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.stat-card:hover {
  border-color: var(--accent, #2e6e5a);
}

.admin-nav strong .chip {
  margin-left: 8px;
  font-size: 0.75rem;
}

.admin-table {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: 42px minmax(170px, 1fr) 90px 130px auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-row.wide {
  grid-template-columns: 160px 120px 100px minmax(160px, 1fr) minmax(160px, 1fr) auto;
}

.admin-row.commerce-row {
  grid-template-columns: 150px 120px 100px minmax(160px, 1fr) minmax(170px, 1fr) 110px auto;
}

.admin-row.admin-user-row {
  grid-template-columns: minmax(240px, 1fr) 140px 140px auto;
}

.admin-row.community-row {
  grid-template-columns: minmax(240px, 1fr) 100px 110px 110px;
}

.admin-row strong span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 2px;
}

.admin-edit-form {
  display: grid;
  gap: 18px;
}

.admin-edit-form section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-edit-form h2 {
  margin: 0;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.admin-edit-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-edit-form input,
.admin-edit-form select,
.admin-edit-form textarea,
.admin-toolbar input,
.admin-toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  background: #fffdf7;
  color: var(--ink);
}

.admin-edit-form textarea {
  resize: vertical;
}

.notice {
  padding: 12px 14px;
  background: #eef5ef;
  border: 1px solid #d3e1d5;
  border-radius: var(--radius);
}

.notice.error {
  background: #fff0ed;
  border-color: #ecc5bd;
  color: #8a2f20;
}

[hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 14px;
  }

  .menu-toggle {
    display: flex;
  }

  /* Скрытая панель: одна компактная строка хедера, меню по бургеру */
  .header-drawer {
    display: none;
  }

  .header-drawer.open {
    display: grid;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    gap: 14px;
    padding: 16px 14px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .header-drawer.open .main-nav {
    display: grid;
    gap: 4px;
  }

  .header-drawer.open .main-nav a {
    padding: 11px 12px;
    border-radius: 12px;
    font-size: 1.02rem;
    color: var(--ink);
  }

  .header-drawer.open .main-nav a:active {
    background: var(--surface);
  }

  .header-drawer.open .header-search input {
    font-size: 1rem;
  }

  .header-drawer.open .header-actions {
    gap: 10px;
  }

  .hero,
  .drink-detail,
  .two-column,
  .page-hero.split,
  .brand-hero,
  .site-footer,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-image,
  .drink-media {
    min-height: 320px;
  }

  .drink-detail {
    padding: 18px 14px 26px;
  }

  .tech-specs {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .two-column {
    gap: 18px;
  }

  .side-panel {
    width: 100%;
  }

  .admin-row,
  .admin-row.wide,
  .admin-row.admin-user-row,
  .admin-row.community-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 8px;
    padding: 8px 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero h1,
  .page-hero h1,
  .drink-summary h1,
  .article-page h1 {
    font-size: 2.25rem;
  }

  .card-grid,
  .suggestions-grid,
  .variation-grid,
  .article-strip,
  .article-grid,
  .community {
    grid-template-columns: 1fr;
  }

  .big-search {
    grid-template-columns: 1fr;
  }

  .taste-component-row {
    grid-template-columns: 1fr;
  }

  .ingredient-cloud {
    max-height: 260px;
  }

}

.footer-legal{grid-column:1/-1;width:100%;flex-basis:100%;max-width:960px;margin-top:16px;padding-top:16px;border-top:1px solid rgba(255,255,255,.15);font-size:13px;line-height:1.5;opacity:.85}
.footer-legal p{margin:0 0 8px}
.footer-legal strong{font:inherit;font-weight:700}
