/* Стиль: спортивный монохром — чёрный/белый, крупная заглавная типографика,
   один кислотный акцент. */
:root {
  --black: #111111;
  --white: #ffffff;
  --grey-50: #f5f5f5;
  --grey-200: #e5e5e5;
  --grey-500: #757575;
  --volt: #d7ff3a;
  --error: #d43f21;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

h1, h2, h3, .logo, .btn, .eyebrow, .stat-label, .nav, .verdict {
  font-family: var(--display);
  text-transform: uppercase;
}

/* --- Промо-полоса и шапка --- */
.promo {
  background: var(--grey-50);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
}

.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--grey-200);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.logo {
  font-weight: 700;
  font-size: 24px;
  font-style: italic;
  letter-spacing: -.01em;
  color: var(--black);
  text-decoration: none;
}
.logo span {
  background: var(--volt);
  padding: 0 6px;
  margin-left: 2px;
}
.nav { display: flex; gap: 28px; font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.nav a { color: var(--black); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { border-bottom-color: var(--black); }
.nav-soon { color: var(--grey-500); padding: 6px 0; cursor: default; }

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}
.hero-bg {
  position: absolute;
  right: -2vw;
  bottom: -9vw;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(180px, 34vw, 520px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, .14);
  user-select: none;
  pointer-events: none;
}
.hero-inner { position: relative; padding-top: 88px; padding-bottom: 96px; }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: .08em; margin: 0 0 16px; color: var(--volt); }
.hero h1 {
  font-size: clamp(56px, 10vw, 128px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.01em;
  margin: 0 0 24px;
}
.lead { font-size: 18px; max-width: 520px; margin: 0 0 32px; color: rgba(255, 255, 255, .8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Кнопки: «таблетка» со стрелкой --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn span { transition: transform .15s; }
.btn:hover span { transform: translateX(4px); }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--volt); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { border-color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #333; }
.btn-outline { background: transparent; color: var(--black); border-color: var(--grey-200); }
.btn-outline:hover { border-color: var(--black); }

/* --- Секции --- */
.section { padding-top: 72px; scroll-margin-top: 64px; } /* не прятать заголовок под липкой шапкой */
.nowrap { white-space: nowrap; }
.section-head { margin-bottom: 28px; }
.section h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; line-height: 1; margin: 0 0 8px; }
.hint { color: var(--grey-500); margin: 0 0 16px; font-size: 15px; }

/* --- Калькулятор: форма слева, чёрная панель результата справа --- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

.calc-form { background: var(--grey-50); padding: 32px; }
.field { margin-bottom: 20px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.field input {
  width: 100%;
  font: inherit;
  font-size: 22px;
  font-weight: 600;
  padding: 12px 14px;
  border: 1.5px solid var(--grey-200);
  border-radius: 4px;
  background: var(--white);
  color: var(--black);
  font-variant-numeric: tabular-nums;
}
.field input::placeholder { color: #c4c4c4; }
.field input:focus { outline: none; border-color: var(--black); }
.field input.derived { background: var(--volt); border-color: var(--volt); }

.field-hint { color: var(--grey-500); font-size: 13px; margin: -8px 0 16px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.presets button {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border: 1.5px solid var(--grey-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
}
.presets button:hover { border-color: var(--black); }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.error { color: var(--error); margin: 14px 0 0; font-size: 14px; font-weight: 500; }

.result { background: var(--black); color: var(--white); padding: 32px; min-height: 100%; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #333; border: 1px solid #333; }
.stat { background: var(--black); padding: 16px; }
.stat-wide { grid-column: 1 / -1; }
.stat-label { display: block; font-size: 13px; letter-spacing: .08em; color: #9e9e9e; }
.stat-value {
  display: block;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.result h3 { font-size: 18px; letter-spacing: .04em; margin: 28px 0 8px; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table td { padding: 9px 0; border-bottom: 1px solid #2a2a2a; }
.table td:last-child { text-align: right; font-weight: 700; }
.result-empty { color: #9e9e9e; margin: 20px 0 0; }
.result.is-empty h3, .result.is-empty .table { display: none; }
.result:not(.is-empty) .result-empty { display: none; }

/* --- Шуточный блок --- */
.fun { background: var(--volt); padding: 40px; }
.fun-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.fun h2 { margin: 0; }
.fun .hint { color: #3d3d3d; margin-top: 20px; }

.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-track {
  width: 56px;
  height: 32px;
  border-radius: 999px;
  background: var(--white);
  border: 2px solid var(--black);
  position: relative;
  transition: background .15s;
}
.toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--black);
  transition: transform .15s, background .15s;
}
.toggle input:checked + .toggle-track { background: var(--black); }
.toggle input:checked + .toggle-track::after { transform: translateX(24px); background: var(--volt); }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--black); outline-offset: 3px; }

.drinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.drink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  padding: 14px 16px;
}
.drink-name { font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 36px;
  height: 36px;
  font-size: 18px;
  border: none;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  cursor: pointer;
}
.stepper button:hover { background: #333; }
.stepper output { min-width: 30px; text-align: center; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }

.hangover-result { margin-top: 16px; background: var(--black); color: var(--white); padding: 20px 24px; }
.verdict { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.2; }
.h-numbers { margin: 8px 0 0; font-variant-numeric: tabular-nums; color: var(--volt); font-weight: 500; }
.h-numbers:empty { display: none; }
.disclaimer { color: #3d3d3d; font-size: 13px; margin: 16px 0 0; }

/* --- Подвал --- */
.site-footer { background: var(--black); color: #9e9e9e; margin-top: 88px; padding: 32px 0; font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo-light { color: var(--white); font-size: 20px; }
.logo-light span { color: var(--black); }

/* --- Адаптив --- */
@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .drinks { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 48px; }
  .nav { gap: 18px; font-size: 15px; }
  .hero-inner { padding-top: 56px; padding-bottom: 64px; }
  .calc-form, .result { padding: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .fun { padding: 24px 20px; }
  .stat-value { font-size: 28px; }
}
