/* ========== alimenti.in.ua — design system ========== */
:root {
  /* Palette (default: navy + gold, per reference) */
  --bg: #F6F7FB;
  --bg-soft: #EEF1F8;
  --surface: #FFFFFF;
  --surface-2: #FAFBFE;
  --ink: #0B1530;
  --ink-2: #1B2750;
  --muted: #5B6584;
  --muted-2: #8892AB;
  --line: #E4E8F2;
  --line-2: #D9DEEC;

  --primary: #0E2A5C;            /* deep navy */
  --primary-700: #0A1F46;
  --primary-500: #1E4593;
  --primary-100: #DCE6F8;
  --primary-50:  #EEF3FC;

  --accent: #D4A23A;             /* warm gold */
  --accent-soft: #F6E9C2;
  --accent-50: #FBF4DC;

  --success: #137F5C;
  --warning: #B8852C;
  --danger:  #B43A3A;

  /* Density */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(11, 21, 48, 0.04), 0 1px 0 rgba(11, 21, 48, 0.02);
  --shadow-md: 0 4px 16px -8px rgba(11, 21, 48, 0.08), 0 2px 6px -2px rgba(11, 21, 48, 0.05);
  --shadow-lg: 0 24px 48px -24px rgba(11, 21, 48, 0.18), 0 8px 24px -12px rgba(11, 21, 48, 0.10);
  --shadow-glow: 0 24px 60px -28px rgba(14, 42, 92, 0.45);

  --font-sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1240px;

  --space-1: 6px;
  --space-2: 12px;
  --space-3: 20px;
  --space-4: 28px;
  --space-5: 40px;
  --space-6: 56px;
  --space-7: 80px;
  --space-8: 112px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* Typography */
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--ink);
}
h1.h-display { font-size: clamp(40px, 4.6vw, 64px); }
h2.h-display { font-size: clamp(28px, 3vw, 42px); line-height: 1.1; }
h3.h-display { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; letter-spacing: -0.015em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-500);
  font-weight: 500;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 56ch;
}

.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 251, 0.85);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-700) 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px -8px rgba(14, 42, 92, 0.5);
  position: relative;
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0));
  pointer-events: none;
}
.brand__mark svg { width: 22px; height: 22px; color: var(--accent); }
.brand__name {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 4px;
}
.nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
}
.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.15s ease;
}
.nav a:hover { background: var(--primary-50); color: var(--primary); }
.nav a.active { color: var(--primary); }
.nav a.active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--accent);
  margin-top: 4px;
  border-radius: 2px;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.header__phone-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.header__phone-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: all 0.18s ease;
  white-space: nowrap;
  position: relative;
}
.btn--primary {
  background: linear-gradient(180deg, var(--primary-500) 0%, var(--primary) 70%, var(--primary-700) 100%);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(14, 42, 92, 0.55), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(14, 42, 92, 0.6), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn--accent {
  background: linear-gradient(180deg, #E5B850 0%, var(--accent) 100%);
  color: #1A1306;
  box-shadow: 0 8px 18px -10px rgba(212, 162, 58, 0.55), inset 0 1px 0 rgba(255,255,255,0.32);
}
.btn--accent:hover { transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.btn--white {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--line);
}
.btn--white:hover { border-color: var(--primary); }
.btn--lg { padding: 17px 26px; font-size: 16px; border-radius: 14px; }
.btn--sm { padding: 10px 16px; font-size: 13.5px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ========== Cards ========== */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.card--hover { transition: all 0.22s ease; }
.card--hover:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card--feature {
  padding: 28px;
}
.card--soft { background: var(--surface-2); }

/* ========== Section ========== */
.section {
  padding: var(--space-7) 0;
}
.section--tight { padding: var(--space-6) 0; }
.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section__head h2 { margin: 0; }
.section__head p { margin: 8px 0 0; color: var(--muted); max-width: 56ch; }

/* ========== Form controls ========== */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.field__hint {
  font-size: 12px;
  color: var(--muted);
}
.input, .select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.15s ease;
  outline: none;
}
.input:focus, .select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-50);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B6584' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.stepper {
  display: grid;
  grid-template-columns: 1fr auto auto;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  overflow: hidden;
  background: var(--surface);
}
.stepper input {
  border: none;
  outline: none;
  height: 100%;
  padding: 0 16px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
}
.stepper button {
  width: 44px;
  border-left: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 18px;
  font-weight: 500;
  transition: background 0.12s;
}
.stepper button:hover { background: var(--bg-soft); }

/* Choice chips (pill segmented) */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.15s ease;
  cursor: pointer;
}
.chip:hover { border-color: var(--primary-500); }
.chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

/* Choice cards (large radio) */
.choice-list {
  display: grid;
  gap: 10px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.choice:hover { border-color: var(--primary-500); background: var(--primary-50); }
.choice.active {
  border-color: var(--primary);
  background: var(--primary-50);
  box-shadow: 0 0 0 4px rgba(14,42,92,0.06);
}
.choice__radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s ease;
}
.choice.active .choice__radio { border-color: var(--primary); }
.choice.active .choice__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--primary);
}
.choice__title { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.choice__sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* Slider */
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: var(--line);
  outline: none;
}
.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--primary) var(--p, 50%), var(--line) var(--p, 50%));
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  box-shadow: 0 4px 10px -2px rgba(14,42,92,0.3);
  cursor: pointer;
  margin-top: -8px;
}
.range::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  cursor: pointer;
}

/* ========== Trust strip ========== */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.trust-strip__item {
  background: var(--surface);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trust-strip__num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.trust-strip__num small { font-size: 18px; color: var(--accent); font-weight: 600; }
.trust-strip__label { font-size: 13px; color: var(--muted); }

/* ========== Misc ========== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.tag--accent { background: var(--accent-50); color: #7A5A18; }
.tag--primary { background: var(--primary-50); color: var(--primary); }
.tag--success { background: #DEF3EA; color: var(--success); }
.tag--neutral { background: var(--bg-soft); color: var(--ink-2); }

.dot {
  width: 6px; height: 6px; border-radius: 50%; display: inline-block;
}

/* Image placeholder (striped) */
.img-placeholder {
  background-color: var(--bg-soft);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(14,42,92,0.04) 0,
    rgba(14,42,92,0.04) 1px,
    transparent 1px,
    transparent 12px
  );
  border: 1px dashed var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #C5CDE0;
  padding: 80px 0 32px;
  margin-top: 80px;
}
.site-footer h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0 0 16px;
}
.site-footer a { color: #A5AEC6; font-size: 14px; line-height: 2.1; }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 56px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #6E7796;
}

/* Floating CTA (mobile) */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 16px 32px -10px rgba(14,42,92,0.5);
  font-weight: 600;
  font-size: 14px;
}
.fab:hover { transform: translateY(-2px); }

/* utilities */
.flex { display: flex; }
.center { display: grid; place-items: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 20px; }
.mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 28px; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

/* Density modes */
[data-density="compact"] { --space-7: 56px; --space-6: 40px; --space-5: 28px; }
[data-density="spacious"] { --space-7: 112px; --space-6: 80px; --space-5: 56px; }

@media (max-width: 980px) {
  .nav { display: none; }
  .header__phone-text { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; gap: 8px; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
}

/* ===== Document preview (PHP version additions) ===== */
.document-paper {
  background: #fff; border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
  font-family: "Times New Roman", Times, serif;
  font-size: 13.5px; line-height: 1.7; color: #111;
  padding: 56px 64px;
}
.document-paper p { margin: 0 0 12px; }
.doc-header { text-align: right; margin-bottom: 16px; }
.doc-title { text-align: center; font-size: 16px; letter-spacing: 0.02em; margin: 24px 0 8px; }
.doc-subtitle { text-align: center; font-style: italic; margin-bottom: 16px; }
.doc-centered { text-align: center; font-weight: 700; margin: 16px 0 8px; }
.doc-body { text-align: justify; margin: 0 0 12px; }
.doc-list-head { margin: 16px 0 4px; font-weight: 700; }
.doc-list { margin: 0 0 16px 20px; padding: 0; }
.doc-list li { margin-bottom: 6px; }
.doc-sign { margin-top: 40px; }
.paywall-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 220px; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 70%); pointer-events: none; }
.paywall-card {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 22px 24px; width: min(420px, calc(100% - 64px));
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  font-family: var(--font-sans);
}

/* Spinner */
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
