:root {
  /* Палитра «Фудшеринг и свежесть»: --ink = глубокий хвойный (основной),
     --green = спелый томат (кнопки и скидки), --pista = фисташковый (плашки и фильтры) */
  --green: #e65c3a;
  --green-dark: #b8401f;  /* тёмный томат: мелкий текст, наведение */
  --green-soft: #fce6df;
  --orange: #e65c3a;      /* скидки и метки — тот же томат, текст белый */
  --orange-soft: #fce6df;
  --pista: #d8e6b8;       /* фисташковый: фильтры, категории, эко-плашки */
  --pista-dark: #c6d99c;
  --sand: #e9f0da;        /* светлая фисташка: баннер, демо-полоса */
  --ink: #1b3b2b;         /* глубокий хвойный */
  --olive: #2f6b45;       /* наличие / эко-бейдж */
  --olive-soft: #d8e6b8;
  --muted: #5a6b60;
  --line: #e1e8d6;
  --bg: #ecf1e3;          /* мягкая заливка: поля, плашки */
  --page: #f6f8f4;        /* фон страницы: светлая бумага */
  --radius: 18px;
  --shadow: 0 10px 30px rgba(27, 59, 43, .09);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
section { padding: 88px 0; }

h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; margin-bottom: 18px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; margin-bottom: 12px; }
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 0;
  background: var(--green); color: #fff; font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: var(--bg); color: var(--ink); }
.btn--ghost:hover { background: var(--line); }
.btn--green { background: var(--green); }
.btn--green:hover { background: var(--green-dark); }
.btn--small { padding: 10px 16px; font-size: 14px; }
.btn--white { background: #fff; color: var(--green-dark); }
.btn--white:hover { background: var(--green-soft); }
.btn:disabled { background: #b5c3c6; cursor: not-allowed; transform: none; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 251, 245, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; }
.logo__mark { display: block; width: 34px; height: 34px; flex-shrink: 0; }
.logo__accent { color: var(--green); }
.nav { display: flex; gap: 28px; }
.header__right { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--line); }
.lang button {
  padding: 6px 10px; border: 0; border-radius: 999px; background: none;
  font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; white-space: nowrap; }
.header .btn { white-space: nowrap; }
/* казахские пункты меню длиннее — прячем меню раньше */
@media (max-width: 1000px) { .nav { display: none; } }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 64px 0 88px; }
.hero__inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.badge {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: var(--orange-soft); color: var(--green-dark); font-weight: 600; font-size: 14px;
  margin-bottom: 18px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 28px; color: var(--muted); font-size: 15px; }
.hero__facts strong { display: block; color: var(--ink); font-size: 22px; }

/* Phone mockup */
.phone {
  justify-self: center; width: 300px; padding: 12px;
  border-radius: 42px; background: var(--ink);
  box-shadow: 0 30px 60px rgba(27, 59, 43, .25);
  transform: rotate(2deg);
}
.phone__screen { background: var(--bg); border-radius: 32px; padding: 20px 14px; min-height: 520px; }
.phone__top { font-weight: 700; font-size: 18px; margin: 4px 4px 14px; }
.mini {
  display: flex; gap: 12px; align-items: center;
  background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(27, 59, 43, .06);
}
.mini__emoji {
  flex-shrink: 0; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 12px; background: var(--orange-soft); font-size: 26px;
}
.mini__body { flex: 1; min-width: 0; }
.mini__title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__meta { font-size: 12px; color: var(--muted); }
.mini__price { font-weight: 700; color: var(--green-dark); font-size: 15px; white-space: nowrap; }

/* Demo */
.demo { background: #fff; border-block: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; border: 0;
  background: var(--pista); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.chip:hover { background: var(--pista-dark); }
.chip.is-active { background: var(--ink); color: #fff; }
.chip svg { width: 18px; height: 18px; flex-shrink: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.card__img {
  position: relative; height: 120px; display: grid; place-items: center; font-size: 56px;
  background: linear-gradient(135deg, var(--orange-soft), var(--green-soft));
}
.card__discount, .card__left {
  position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
}
.card__discount { left: 12px; background: var(--orange); color: #fff; }
.card__left { right: 12px; background: #fff; }
.card__body { display: flex; flex-direction: column; gap: 2px; flex: 1; padding: 16px; }
.card__place { font-weight: 700; }
.card__meta { font-size: 14px; color: var(--muted); }
.card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; }
.price { font-size: 20px; font-weight: 800; color: var(--green); white-space: nowrap; }
.price s { margin-left: 6px; font-size: 14px; font-weight: 400; color: var(--muted); }
.card.is-soldout .card__img { filter: grayscale(1); opacity: .6; }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step__num {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 12px; background: var(--green-soft); color: var(--green-dark); font-weight: 800;
}
.step p { color: var(--muted); }

/* Partners */
.partners { background: var(--green); color: #fff; }
.partners .section-head p { color: rgba(255, 255, 255, .8); }
.partners__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.benefits { list-style: none; display: grid; gap: 20px; }
.benefits li { display: flex; gap: 14px; }
.benefits .icon {
  flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: rgba(255, 255, 255, .12); font-size: 22px;
}
.benefits p { color: rgba(255, 255, 255, .8); }

/* Forms */
.form {
  display: grid; gap: 14px; padding: 28px;
  background: #fff; color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.form h3 { font-size: 22px; margin-bottom: 0; }
.form .btn { margin-top: 4px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px;
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
.field input.is-invalid { border-color: #d14b3c; background: #fdf1ef; }
.form__hint { font-size: 14px; color: var(--muted); }
.form__success { text-align: center; padding: 28px 8px; }
.form__success .big { font-size: 44px; margin-bottom: 8px; }
.form__success p { color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo-banner { font-size: 14px; background: var(--orange-soft); color: var(--green-dark); padding: 10px 12px; border-radius: 10px; }

/* Join */
.join__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* FAQ */
.faq { background: #fff; border-top: 1px solid var(--line); }
.faq__inner { max-width: 760px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 10px; }
.faq summary {
  display: flex; justify-content: space-between; gap: 12px;
  font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--green); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Dialog */
.dialog {
  margin: auto; width: min(440px, calc(100% - 32px)); padding: 0;
  border: 0; border-radius: var(--radius); background: transparent; overflow: visible;
}
.dialog::backdrop { background: rgba(27, 59, 43, .5); }
.dialog .form { box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.dialog__close {
  position: absolute; top: 10px; right: 14px; z-index: 1;
  border: 0; background: none; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
  .hero__inner, .partners__inner, .join__inner { grid-template-columns: 1fr; gap: 36px; }
  .phone { display: none; }
}
@media (max-width: 760px) {
  section { padding: 60px 0; }
  .hero { padding: 40px 0 60px; }
  .steps { grid-template-columns: 1fr; }
  .form { padding: 22px; }
}
@media (max-width: 520px) {
  .row { grid-template-columns: 1fr; }
  .logo { font-size: 18px; gap: 8px; }
  .header .btn--small { padding: 9px 12px; font-size: 13px; }
  .lang button { padding: 6px 8px; }
  .hero__actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .chip { transition: none; }
}
