:root {
  --wine: #721f37;
  --wine-dark: #3c101c;
  --wine-soft: #f0dde2;
  --ink: #201d1b;
  --muted: #706a64;
  --paper: #f4efe5;
  --card: #fffdf8;
  --line: #ddd3c3;
  --green: #2f684d;
  --shadow: 0 18px 60px rgba(55, 34, 24, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 4%, rgba(114, 31, 55, 0.09), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font: 16px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--wine); }
button, input, select { font: inherit; }
button, select, input[type="checkbox"] { cursor: pointer; }

.site-header {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(60, 16, 28, 0.14);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50% 50% 45% 55%;
  background: var(--wine-dark);
  color: white;
  font: 700 12px/1 Georgia, serif;
  letter-spacing: 0.04em;
  transform: rotate(-4deg);
}
.brand-mark + span { transform: translateY(-1px); }
.site-header nav { display: flex; gap: 28px; align-items: center; }
.site-header nav a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.site-header nav form { margin: 0; }
.site-header nav button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.site-header nav button:hover { color: var(--wine); }
.nav-identity { max-width: 170px; overflow: hidden; color: var(--wine-dark); font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }

main { min-height: 70vh; }
.landing-page {
  background:
    radial-gradient(circle at 80% 24%, rgba(114, 31, 55, 0.15), transparent 30rem),
    linear-gradient(135deg, #f6f0e6 0%, #f1e8dc 55%, #eadde0 100%);
}
.landing-page main { min-height: auto; }
.landing {
  position: relative;
  width: min(1320px, calc(100% - 40px));
  min-height: calc(100svh - 78px - 86px);
  margin: 0 auto;
  padding: clamp(34px, 5vh, 70px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: center;
}
.landing::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -9vw;
  bottom: 4%;
  width: 20vw;
  height: 20vw;
  border: 1px solid rgba(114, 31, 55, 0.12);
  border-radius: 50%;
}
.landing h1 {
  max-width: 850px;
  margin: 0;
  font: 600 clamp(54px, 6.2vw, 94px)/0.91 Georgia, "Times New Roman", serif;
  letter-spacing: -0.055em;
}
.landing h1 em { color: var(--wine); font-weight: 500; }
.landing-lead {
  max-width: 680px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.45;
}
.landing-points {
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.landing-points li {
  padding: 7px 11px;
  border: 1px solid rgba(114, 31, 55, 0.18);
  border-radius: 100px;
  color: var(--wine-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.03em;
}
.access-panel {
  overflow: hidden;
  border: 1px solid rgba(60, 16, 28, 0.16);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 28px 90px rgba(55, 34, 24, 0.14);
  backdrop-filter: blur(12px);
}
.beta-note {
  padding: 17px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  background: rgba(114, 31, 55, 0.05);
}
.beta-note span { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.beta-note strong { color: var(--wine); font: 600 29px/1 Georgia, serif; }
.beta-note small { grid-column: 1 / -1; margin-top: 2px; color: var(--muted); }
.access-form { padding: 25px 24px 22px; }
.access-form h2 { margin: -7px 0 21px; font: 600 29px/1 Georgia, serif; letter-spacing: -0.025em; }
.access-hint { margin: -10px 0 18px; color: var(--muted); font-size: 12px; }
.telegram-login { background: #2aabee; }
.telegram-login:hover { background: #229ed9; color: white; }
.legacy-login { border-top: 1px solid var(--line); }
.access-form label, .request-access label { display: block; }
.access-form label > span, .request-access label > span {
  display: block;
  margin: 0 0 6px 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.access-form input, .request-access input {
  width: 100%;
  height: 47px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #f8f4ed;
}
.access-form input:focus, .request-access input:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(114, 31, 55, 0.11); }
.access-form button, .request-access button, .button-link {
  width: 100%;
  min-height: 47px;
  margin-top: 12px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 10px;
  background: var(--wine);
  color: white;
  font-weight: 750;
  text-decoration: none;
}
.access-form button:hover, .request-access button:hover, .button-link:hover { background: var(--wine-dark); color: white; }
.request-access { border-top: 1px solid var(--line); }
.request-access summary {
  padding: 17px 24px;
  color: var(--wine);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  list-style-position: inside;
}
.request-access[open] summary { border-bottom: 1px solid var(--line); }
.request-access form, .request-access > .form-message { margin: 0; padding: 18px 24px 22px; }
.request-access label + label { margin-top: 11px; }
.request-access button { justify-content: center; }
.request-access form > small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; text-align: center; }
.form-message { margin: 10px 0 0; font-size: 12px; }
.form-message--error { color: #963d3d; }
.form-message--success { color: var(--green); }
.form-message strong { display: block; margin-bottom: 3px; }
.website-field { position: absolute; left: -10000px; }
.hero {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 116px) 0 clamp(50px, 7vw, 94px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: clamp(48px, 9vw, 140px);
  align-items: end;
}
.eyebrow { margin: 0 0 14px; color: var(--wine); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
.hero h1, .method-hero h1 {
  max-width: 980px;
  margin: 0;
  font: 600 clamp(48px, 7.2vw, 106px)/0.91 Georgia, "Times New Roman", serif;
  letter-spacing: -0.055em;
}
.hero h1 em { color: var(--wine); font-weight: 500; }
.lead { max-width: 730px; margin: 30px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 22px); line-height: 1.45; }
.hero-stats { margin: 0; display: grid; gap: 14px; }
.hero-stats div { padding: 20px 0; border-top: 1px solid var(--line); }
.hero-stats dt { color: var(--wine-dark); font: 600 clamp(28px, 3vw, 42px)/1 Georgia, serif; }
.hero-stats dd { margin: 7px 0 0; color: var(--muted); font-size: 13px; }

.catalog { padding: clamp(34px, 5vw, 70px) max(20px, calc((100vw - 1440px) / 2)) 80px; background: rgba(255, 253, 248, 0.64); border-top: 1px solid var(--line); }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.catalog-heading h2 { margin: 0; font: 600 clamp(30px, 4vw, 52px)/1 Georgia, serif; letter-spacing: -0.035em; }
.method-link { color: var(--wine); font-size: 14px; font-weight: 700; }

.filters {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(5, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
  padding: 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.filters label, .filter-field { min-width: 0; }
.filter-field > span, .filter-field > label, .choice-field summary > span {
  display: block;
  margin: 0 0 5px 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.filters input:not([type="checkbox"]), .filters select {
  width: 100%;
  height: 43px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  outline: none;
  background: #f5f1e9;
  color: var(--ink);
}
.filters input:focus, .filters select:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(114, 31, 55, 0.12); }
.choice-field {
  position: relative;
  min-width: 0;
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms ease;
}
.choice-field summary { list-style: none; cursor: pointer; }
.choice-field summary::-webkit-details-marker { display: none; }
.choice-field summary strong {
  position: relative;
  display: flex;
  width: 100%;
  height: 43px;
  padding: 0 32px 0 11px;
  align-items: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f5f1e9;
  color: var(--ink);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.choice-field summary strong::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}
.choice-field[open] summary strong { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(114, 31, 55, 0.12); }
.choice-field[open] summary strong::after { transform: translateY(2px) rotate(225deg); }
.choice-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 7px);
  left: 0;
  width: max(100%, 210px);
  max-height: 270px;
  padding: 7px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 18px 45px rgba(55, 34, 24, 0.16);
}
.choice-menu label {
  display: flex;
  min-height: 38px;
  padding: 7px 8px;
  align-items: center;
  gap: 9px;
  border-radius: 7px;
  cursor: pointer;
}
.choice-menu label:hover { background: #f5f1e9; }
.choice-menu input { width: 17px; height: 17px; accent-color: var(--wine); }
.choice-menu label span { color: var(--ink); font-size: 13px; }
.wine-only.is-dissolving { opacity: 0; filter: blur(6px); transform: scale(0.94); pointer-events: none; }
.wine-only[hidden] { display: none; }
.check-field { grid-column: 1 / span 2; display: flex; align-items: center; gap: 9px; min-height: 40px; padding-left: 4px; color: var(--muted); font-size: 14px; }
.check-field input { width: 18px; height: 18px; accent-color: var(--wine); }
.filter-actions {
  grid-column: -3 / -1;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 16px;
  align-items: center;
}
.filter-actions button {
  min-height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 9px;
  background: var(--wine);
  color: white;
  font-weight: 750;
}
.filter-actions button:hover { background: var(--wine-dark); }
.filter-actions button:disabled { cursor: wait; opacity: .72; }
.reset-link { align-self: center; justify-self: center; color: var(--muted); font-size: 13px; }
.search-control { position: relative; }
.search-suggestions {
  position: absolute;
  z-index: 10;
  top: calc(100% + 7px);
  left: 0;
  width: min(520px, 88vw);
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 18px 45px rgba(55, 34, 24, 0.16);
}
.search-suggestions[hidden] { display: none; }
.suggestion {
  display: grid;
  width: 100%;
  min-height: 42px;
  padding: 7px 9px;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.suggestion:hover, .suggestion.is-active { background: #f5f1e9; color: var(--wine-dark); }
.suggestion small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.search-summary { min-height: 20px; margin: -10px 2px 20px; color: var(--muted); font-size: 12px; }
.catalog.is-loading [data-results] { opacity: .5; transition: opacity 160ms ease; }

.offer-list { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.offer-card {
  display: grid;
  grid-template-columns: 112px 145px minmax(280px, 2fr) minmax(165px, 0.9fr) minmax(165px, 0.9fr);
  gap: 18px;
  min-height: 138px;
  padding: 23px 22px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}
.offer-card:last-child { border-bottom: 0; }
.offer-card:hover { background: #fbf6ed; }
.deal-cell strong { display: block; color: var(--green); font: 600 30px/1 Georgia, serif; letter-spacing: -0.03em; }
.deal-cell strong.advertised { color: var(--wine); }
.deal-cell span, .price-cell small, .condition-cell small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.price-cell strong { display: block; font-size: 20px; letter-spacing: -0.02em; }
.price-cell s { color: var(--muted); font-size: 13px; }
.foreign-reference { display: block; margin-top: 10px; color: var(--green); font-size: 11px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.foreign-reference small { margin-top: 2px; font-weight: 400; }
.eu-warning { display: inline-block; margin-top: 7px; padding: 4px 7px; border-radius: 7px; background: #f8e3e3; color: #963d3d; font-size: 10px; font-weight: 750; }
.product-cell { min-width: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.tags span { padding: 3px 7px; border-radius: 100px; background: var(--wine-soft); color: var(--wine-dark); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.product-cell h3 { margin: 0; font: 600 18px/1.28 Georgia, serif; }
.product-cell h3 a { text-decoration-thickness: 1px; text-decoration-color: rgba(114, 31, 55, 0.3); }
.product-cell p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.rating-reference { margin-top: 9px; font-size: 11px; }
.rating-reference a { color: var(--wine); font-weight: 750; text-decoration: none; }
.rating-reference small { display: block; margin-top: 2px; color: var(--muted); }
.shop-cell strong { display: block; margin-bottom: 7px; }
.shop-cell a { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.store-locations summary { color: var(--wine); font-size: 12px; font-weight: 750; cursor: pointer; }
.store-locations ul { margin: 8px 0 0; padding: 0; list-style: none; }
.store-locations li + li { margin-top: 5px; }
.store-locations small { display: block; color: var(--muted); font-size: 10px; }
.no-store-stock { color: var(--muted); font-size: 12px; }
.shop-cell .availability-source { margin-top: 8px; font-size: 11px; }
.market-offers { margin: 0 0 9px; }
.market-offers summary { color: var(--wine); font-size: 11px; font-weight: 750; cursor: pointer; }
.market-offers ul { margin: 7px 0 0; padding: 0; list-style: none; }
.market-offers li + li { margin-top: 6px; }
.market-offers li a { display: flex; justify-content: space-between; gap: 8px; color: var(--ink); text-decoration: none; }
.market-offers li a strong { margin: 0; white-space: nowrap; }
.market-offers li small { display: block; color: var(--muted); font-size: 9px; }
.condition { display: inline-block; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.condition--public { border-color: #a8c7b7; background: #eaf4ef; color: var(--green); }
.condition--quantity, .condition--bundle { border-color: #d7b98d; background: #f8edda; color: #77501e; }

.empty-state { padding: 80px 30px; text-align: center; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.empty-state strong { font: 600 28px/1.2 Georgia, serif; }
.empty-state p { color: var(--muted); }
.empty-state a { color: var(--wine); font-weight: 750; }

.method-page { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: clamp(65px, 9vw, 126px) 0 100px; }
.method-hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .6fr); gap: clamp(44px, 8vw, 110px); align-items: end; }
.method-hero h1 { max-width: 850px; }
.method-hero .lead { max-width: 760px; }
.method-principles { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.method-principles li { padding: 17px 0; display: grid; border-bottom: 1px solid var(--line); }
.method-principles strong { color: var(--wine-dark); font: 600 19px/1.1 Georgia, serif; }
.method-principles span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.method-page h2 { margin: 0; font: 600 clamp(32px, 4.4vw, 56px)/.98 Georgia, serif; letter-spacing: -.035em; }
.method-formula { margin-top: clamp(70px, 10vw, 130px); }
.method-formula-copy { max-width: 720px; margin-bottom: 28px; }
.method-formula-copy > p:last-child { max-width: 600px; color: var(--muted); font-size: 15px; }
.formula-card { padding: clamp(28px, 5vw, 58px); border-radius: 26px; background: var(--wine-dark); color: #fff8f4; box-shadow: 0 28px 80px rgba(60, 16, 28, .2); }
.formula-equation { margin: 0; display: flex; flex-wrap: wrap; gap: .25em .5em; align-items: baseline; font: 500 clamp(25px, 4.4vw, 53px)/1.15 Georgia, serif; letter-spacing: -.035em; }
.formula-equation > span:last-child { color: #f0cbd5; }
.formula-equation b { color: rgba(255, 255, 255, .48); font-weight: 400; }
.formula-equation sub, .benefit-equation sub { font-size: .5em; letter-spacing: 0; }
.formula-legend { margin: 42px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.formula-legend div { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .22); }
.formula-legend dt { color: #f0cbd5; font: 600 17px/1 Georgia, serif; }
.formula-legend dd { margin: 8px 0 0; color: rgba(255, 248, 244, .7); font-size: 12px; line-height: 1.5; }
.formula-notes { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.formula-notes article { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 253, 248, .65); }
.formula-notes span, .benefit-label { color: var(--wine); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.formula-notes h3 { margin: 28px 0 9px; font: 600 24px/1 Georgia, serif; }
.formula-notes p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.method-explainer, .method-separate { margin-top: clamp(75px, 10vw, 125px); display: grid; grid-template-columns: minmax(230px, .62fr) minmax(0, 1.38fr); gap: clamp(35px, 7vw, 90px); }
.benefit-comparison { display: grid; gap: 12px; }
.benefit-comparison article { padding: 25px 27px; border: 1px solid rgba(114, 31, 55, .24); border-radius: 17px; background: var(--card); }
.benefit-comparison article + article { border-color: var(--line); background: rgba(255, 253, 248, .45); }
.benefit-label--muted { color: var(--muted); }
.benefit-equation { margin: 23px 0 10px; color: var(--wine-dark); font: 600 clamp(19px, 2.4vw, 28px)/1.15 Georgia, serif; }
.benefit-comparison article > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.method-pipeline { margin-top: clamp(75px, 10vw, 125px); }
.method-section-heading { max-width: 760px; }
.method-section-heading > p:last-child { color: var(--muted); }
.method-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.method-grid article { min-height: 245px; padding: 27px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.method-grid article > span { color: var(--wine); font: 600 13px/1 Georgia, serif; }
.method-grid h3 { margin: 66px 0 10px; font: 600 27px/1 Georgia, serif; }
.method-grid p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.separate-grid { display: grid; gap: 14px; }
.separate-grid article { padding: 26px; border-left: 3px solid var(--wine); border-radius: 0 16px 16px 0; background: rgba(255, 253, 248, .65); }
.separate-grid h3 { margin: 0 0 10px; font: 600 25px/1 Georgia, serif; }
.separate-grid p { color: var(--muted); font-size: 14px; }
.separate-grid small { display: block; color: var(--wine-dark); font-size: 11px; font-weight: 700; }
.method-limitations { margin-top: clamp(75px, 10vw, 125px); padding: clamp(28px, 5vw, 52px); display: grid; grid-template-columns: .8fr 1.2fr; gap: 55px; border-radius: 22px; background: #e9dfd1; }
.method-limitations ul { margin: 0; padding: 0; display: grid; gap: 13px; list-style: none; }
.method-limitations li { position: relative; padding-left: 19px; color: var(--muted); font-size: 14px; }
.method-limitations li::before { content: "—"; position: absolute; left: 0; color: var(--wine); }
.source-status { margin-top: clamp(75px, 10vw, 125px); padding-top: 35px; border-top: 1px solid var(--line); }
.source-status ul { padding: 0; list-style: none; display: grid; gap: 9px; }
.source-status li { display: grid; grid-template-columns: 150px 150px 1fr; gap: 18px; padding: 15px; align-items: center; border-radius: 10px; background: rgba(255,255,255,.5); }
.source-status small, .source-status li p { color: var(--muted); font-size: 12px; }
.source-status li p { grid-column: 2 / -1; margin: -10px 0 0; }
.status { width: fit-content; padding: 4px 8px; border-radius: 100px; background: #f8e3e3; color: #963d3d; font-size: 11px; font-weight: 750; }
.status--ok { background: #e4f2ea; color: var(--green); }
.back-link { display: inline-block; margin-top: 50px; color: var(--wine); font-weight: 700; }

.admin-shell { width: min(1320px, calc(100% - 40px)); margin: 0 auto; padding: 60px 0 100px; }
.admin-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; }
.admin-heading h1 { margin: -4px 0 0; font: 600 clamp(44px, 6vw, 76px)/.95 Georgia, serif; letter-spacing: -.045em; }
.admin-heading > p { max-width: 430px; margin: 0; color: var(--muted); }
.admin-subnav { display: flex; gap: 8px; margin-top: 28px; }
.admin-subnav a { display: inline-flex; gap: 8px; align-items: center; padding: 9px 13px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); font-size: 12px; font-weight: 750; text-decoration: none; }
.admin-subnav a.active { border-color: var(--wine); background: var(--wine); color: white; }
.admin-subnav strong { display: inline-grid; min-width: 20px; height: 20px; padding: 0 5px; place-items: center; border-radius: 100px; background: #f8e3e3; color: #963d3d; font-size: 10px; }
.admin-subnav a.active strong { background: white; }
.admin-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 38px 0 18px; }
.admin-stats article { min-height: 112px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 15px; background: var(--card); }
.admin-stats strong { color: var(--wine); font: 600 34px/1 Georgia, serif; }
.admin-stats span { color: var(--muted); font-size: 11px; }
.admin-stats--parsing { grid-template-columns: repeat(5, 1fr); }
.admin-stats--matching { grid-template-columns: repeat(5, 1fr); }
.admin-stats--parsing article:last-child { grid-column: span 1; }
.admin-stats--parsing article:last-child strong { font-size: 16px; line-height: 1.15; }
.admin-stat--problem strong { color: #963d3d; }
.admin-card { margin-top: 16px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.admin-section-title { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 22px; }
.admin-section-title h2 { margin: -4px 0 0; font: 600 31px/1 Georgia, serif; }
.admin-section-title > p { max-width: 420px; margin: 0; color: var(--muted); font-size: 12px; }
.invite-form { display: grid; grid-template-columns: 2fr 150px 160px 190px; gap: 10px; align-items: end; }
.invite-form label > span, .invite-result label > span { display: block; margin: 0 0 6px 2px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.invite-form input, .invite-result input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #f8f4ed; }
.invite-form button { height: 44px; border: 0; border-radius: 9px; background: var(--wine); color: white; font-weight: 750; }
.invite-result { margin-bottom: 18px; padding: 16px; border: 1px solid #a8c7b7; border-radius: 12px; background: #eaf4ef; }
.invite-result > strong { display: block; margin-bottom: 10px; color: var(--green); }
.admin-table-wrap { margin-top: 24px; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { padding: 10px; color: var(--muted); font-size: 10px; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.admin-table td { padding: 13px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.admin-table td > strong, .admin-table td > small { display: block; }
.admin-table td > small { margin-top: 3px; color: var(--muted); }
.table-actions { display: flex; flex-wrap: wrap; gap: 5px; justify-content: end; }
.table-action { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--wine); font-size: 11px; font-weight: 700; white-space: nowrap; }
.table-action--danger { color: #963d3d; }
.status--active { background: #e4f2ea; color: var(--green); }
.status--pending { background: #f8edda; color: #77501e; }
.status--used, .status--expired, .status--revoked { background: #f8e3e3; color: #963d3d; }
.status--error { background: #f8e3e3; color: #963d3d; }
.status--completed { background: #e4f2ea; color: var(--green); }
.status--running, .status--idle { background: #f8edda; color: #77501e; }
.status--failed { background: #f8e3e3; color: #963d3d; }
.status--stale, .status--empty, .status--drop { background: #f8edda; color: #77501e; }
.formula-status dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.formula-status dl div { padding: 12px; border-radius: 10px; background: #f8f4ed; }
.formula-status dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.formula-status dd { margin: 5px 0 0; font-size: 13px; }
.formula-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.formula-fields label { display: grid; grid-template-columns: minmax(180px, 1fr) 120px; gap: 6px 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbf8f2; }
.formula-fields label > span { font-size: 13px; font-weight: 750; }
.formula-fields input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.formula-fields small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; line-height: 1.4; }
.formula-form > button { margin-top: 16px; padding: 11px 16px; border: 0; border-radius: 9px; background: var(--wine); color: white; font-weight: 750; }
.formula-form button:disabled, .formula-status button:disabled { cursor: not-allowed; opacity: .5; }
.parsing-source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.parsing-source { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbf8f2; }
.parsing-source--error { border-color: #dfb8b8; background: #fff7f7; }
.parsing-source--stale, .parsing-source--empty, .parsing-source--drop { border-color: #ddc69f; background: #fffaf1; }
.parsing-source > div:first-child { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.parsing-source dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 0; }
.parsing-source dl div { min-width: 0; }
.parsing-source dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.parsing-source dd { margin: 4px 0 0; font-size: 12px; }
.parsing-problem { margin: 15px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: #963d3d; font-size: 12px; }
.parsing-source > small { display: block; margin-top: 8px; color: var(--muted); }
.event-list { margin: 0; padding: 0; list-style: none; }
.event-list li { display: grid; grid-template-columns: 145px 190px 1fr; gap: 14px; padding: 11px 3px; border-top: 1px solid var(--line); font-size: 12px; }
.event-list time, .event-list span { color: var(--muted); }
.matching-list { display: grid; gap: 10px; }
.matching-candidate { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr) 150px; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbf8f2; }
.matching-score strong, .matching-score span, .matching-score small { display: block; }
.matching-score strong { color: var(--wine); font: 600 25px/1 Georgia, serif; }
.matching-score span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.matching-score small { margin-top: 8px; color: var(--muted); font-size: 9px; }
.matching-product { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: 10px; background: white; }
.matching-product img { width: 42px; height: 66px; object-fit: contain; border-radius: 5px; background: #f8f4ed; }
.matching-product span { color: var(--wine); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.matching-product h3 { margin: 6px 0; font: 600 17px/1.2 Georgia, serif; }
.matching-product h3 a { text-decoration-thickness: 1px; }
.matching-product p { min-height: 16px; margin: 0 0 8px; color: var(--muted); font-size: 10px; }
.matching-actions { display: grid; gap: 6px; }
.matching-actions form, .matching-actions button { width: 100%; }
.matching-actions button { padding: 7px 8px; border: 1px solid var(--wine); border-radius: 7px; background: var(--wine); color: white; font-size: 10px; font-weight: 750; }
.matching-actions .table-action { background: transparent; color: var(--wine); }
.matching-actions .table-action--danger { border-color: #dfb8b8; color: #963d3d; }
.simplewine-search details { margin-top: 18px; }
.simplewine-search summary { cursor: pointer; color: var(--wine); font-weight: 750; }
.simplewine-search .admin-table-wrap { margin-top: 12px; }
.simplewine-search details > small { display: block; margin-top: 10px; color: var(--muted); }

.site-footer { padding: 34px max(20px, calc((100vw - 1440px) / 2)); background: var(--wine-dark); color: #f6e9e9; }
.site-footer p { max-width: 900px; margin: 5px 0; font-size: 12px; opacity: .86; }

@media (max-width: 1250px) {
  .filters { grid-template-columns: repeat(4, 1fr); }
  .search-field { grid-column: span 2; }
  .check-field { grid-column: span 2; }
  .filter-actions { grid-column: span 2; }
  .offer-card { grid-template-columns: 100px 130px minmax(260px, 2fr) minmax(150px, 1fr); }
  .condition-cell { grid-column: 3 / -1; display: flex; gap: 10px; align-items: center; margin-top: -10px; }
  .condition-cell small { margin: 0; }
}

@media (max-width: 800px) {
  .site-header { width: min(100% - 28px, 720px); }
  .site-header nav { gap: 15px; }
  .site-header nav a { font-size: 12px; }
  .site-header nav button { font-size: 12px; }
  .landing { width: min(100% - 28px, 720px); min-height: auto; grid-template-columns: 1fr; gap: 34px; padding: 50px 0 60px; }
  .landing h1 { font-size: clamp(50px, 13vw, 76px); }
  .landing-lead { max-width: 620px; }
  .access-panel { width: min(100%, 470px); }
  .hero { width: min(100% - 28px, 720px); grid-template-columns: 1fr; gap: 42px; }
  .hero h1, .method-hero h1 { font-size: clamp(47px, 14vw, 76px); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-stats dt { font-size: 25px; }
  .hero-stats dd { font-size: 10px; }
  .catalog { padding-left: 14px; padding-right: 14px; }
  .catalog-heading { align-items: start; }
  .method-link { max-width: 130px; text-align: right; }
  .filters { grid-template-columns: repeat(2, 1fr); padding: 12px; border-radius: 14px; }
  .search-field { grid-column: 1 / -1; }
  .check-field { grid-column: 1 / -1; }
  .filter-actions { grid-column: 1 / -1; }
  .offer-list { border: 0; overflow: visible; border-radius: 0; background: transparent; box-shadow: none; }
  .offer-card {
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
    margin-bottom: 12px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--card);
    box-shadow: 0 9px 28px rgba(55, 34, 24, 0.06);
  }
  .deal-cell { order: 2; text-align: right; }
  .price-cell { order: 1; }
  .product-cell { order: 3; grid-column: 1 / -1; }
  .shop-cell { order: 4; }
  .condition-cell { order: 5; grid-column: auto; display: block; margin: 0; text-align: right; }
  .condition-cell small { margin-top: 7px; }
  .method-page { width: min(100% - 28px, 720px); }
  .method-hero { grid-template-columns: 1fr; gap: 38px; }
  .method-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; border-top: 0; }
  .method-principles li { border-top: 1px solid var(--line); }
  .formula-notes { grid-template-columns: 1fr; }
  .formula-notes h3 { margin-top: 20px; }
  .method-explainer, .method-separate { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid article { min-height: 190px; }
  .method-grid h3 { margin-top: 42px; }
  .method-limitations { grid-template-columns: 1fr; gap: 30px; }
  .source-status li { grid-template-columns: 1fr 1fr; }
  .source-status li small { grid-column: 1 / -1; }
  .source-status li p { grid-column: 1 / -1; margin: 0; }
  .nav-identity { display: none; }
  .admin-shell { width: min(100% - 28px, 720px); padding-top: 42px; }
  .admin-heading, .admin-section-title { display: block; }
  .admin-heading > p, .admin-section-title > p { margin-top: 12px; }
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
  .parsing-source-grid { grid-template-columns: 1fr; }
  .formula-fields { grid-template-columns: 1fr; }
  .invite-form { grid-template-columns: 1fr 1fr; }
  .invite-form label:first-of-type { grid-column: 1 / -1; }
  .event-list li { grid-template-columns: 1fr 1fr; }
  .event-list span { grid-column: 1 / -1; }
  .matching-candidate { grid-template-columns: 80px 1fr 1fr; }
  .matching-actions { grid-column: 2 / -1; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .brand > span:last-child { display: none; }
  .site-header nav { gap: 12px; }
  .landing { padding-top: 38px; }
  .landing h1 { font-size: clamp(45px, 13vw, 62px); }
  .landing-points { gap: 6px; }
  .access-panel { border-radius: 18px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats div { display: grid; grid-template-columns: 110px 1fr; align-items: baseline; }
  .method-principles { grid-template-columns: 1fr; gap: 0; }
  .formula-card { margin-left: -7px; margin-right: -7px; padding: 25px 22px; border-radius: 18px; }
  .formula-equation { display: grid; }
  .formula-legend { grid-template-columns: 1fr; margin-top: 30px; }
  .benefit-comparison article { padding: 22px 20px; }
  .catalog-heading { display: block; }
  .method-link { display: inline-block; max-width: none; margin-top: 10px; text-align: left; }
  .filters { grid-template-columns: 1fr; }
  .search-field, .check-field { grid-column: 1; }
  .filter-actions { grid-column: 1; }
  .offer-card { grid-template-columns: 1fr; }
  .deal-cell, .condition-cell { text-align: left; }
  .product-cell { grid-column: 1; }
  .condition-cell { grid-column: 1; }
  .site-header nav a[href="/about"] { display: none; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-subnav { align-items: stretch; flex-direction: column; }
  .admin-subnav a { justify-content: center; }
  .admin-card { padding: 18px 14px; }
  .formula-status dl { grid-template-columns: 1fr; }
  .formula-fields label { grid-template-columns: 1fr; }
  .formula-fields small { grid-column: 1; }
  .invite-form { grid-template-columns: 1fr; }
  .invite-form label:first-of-type { grid-column: auto; }
  .matching-candidate { grid-template-columns: 1fr; }
  .matching-actions { grid-column: 1; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
