:root {
  --sea: #0b3d3a;
  --sea-2: #125a54;
  --sea-3: #e3f0ec;
  --kelp: #3f6f2f;
  --kelp-2: #5c8f3c;
  --sand: #f6f1e7;
  --sand-2: #ebe2cf;
  --text: #1d2a2a;
  --muted: #5b6b6a;
  --accent: #e0a526;
  --accent-2: #c98d12;
  --danger: #b5462f;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 61, 58, 0.12);
  --topbar-h: 64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--topbar-h);
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--sand);
  line-height: 1.65;
  font-size: 17px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--sea-2);
}

.container {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--sea);
}

h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 20px;
}

h3 {
  font-size: clamp(19px, 2.4vw, 23px);
  margin: 28px 0 12px;
}

h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

p + p {
  margin-top: 14px;
}

.muted {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: #1d1a10;
  box-shadow: 0 8px 20px rgba(224, 165, 38, 0.35);
}

.btn--primary:hover {
  background: var(--accent-2);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--white);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--small {
  padding: 10px 18px;
  font-size: 15px;
  color: var(--white);
  width: 100%;
}

.btn--phone { background: var(--sea-2); }
.btn--max { background: #6a3df0; }
.btn--tg { background: #229ed9; }
.btn--wa { background: #25a244; }

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* ---------- Topbar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 36, 34, 0.9);
  backdrop-filter: blur(8px);
  color: var(--white);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
}

.logo img {
  width: 36px;
  height: 36px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  color: #e6f2ef;
  text-decoration: none;
  font-size: 15px;
}

.nav a:hover {
  color: var(--accent);
}

.nav__cta {
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
}

.topbar__phone {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 9px;
}

.burger span {
  display: block;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero + carousel ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 920px;
  color: var(--white);
  overflow: hidden;
  background: var(--sea);
}

.carousel,
.carousel__track {
  position: absolute;
  inset: 0;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.carousel__slide.is-active {
  opacity: 1;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 30, 28, 0.88) 0%, rgba(4, 30, 28, 0.6) 45%, rgba(4, 30, 28, 0.15) 100%);
}

.carousel__caption {
  position: absolute;
  right: 24px;
  bottom: 56px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.carousel__btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.carousel__btn--prev { left: 16px; }
.carousel__btn--next { right: 16px; }

.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel__dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}

.hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--topbar-h);
  pointer-events: none;
}

.hero__content a {
  pointer-events: auto;
}

.hero__badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(92, 143, 60, 0.85);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(28px, 4.6vw, 54px);
  max-width: 760px;
  margin-bottom: 18px;
}

.hero__lead {
  max-width: 620px;
  font-size: clamp(16px, 2vw, 19px);
  color: #e3efec;
  margin-bottom: 22px;
}

.hero__price {
  font-size: clamp(18px, 2.4vw, 22px);
  margin-bottom: 26px;
}

.hero__price strong {
  font-size: 1.6em;
  color: var(--accent);
}

.hero__price span {
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--white);
}

.section--sea {
  background: linear-gradient(135deg, var(--sea) 0%, var(--sea-2) 100%);
}

.section--sea h2 {
  color: var(--white);
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 30px 0;
}

.compare__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 6px solid;
}

.compare__card h3 {
  margin-top: 0;
}

.compare__card--bad {
  border-color: var(--danger);
}

.compare__card--bad h3 {
  color: var(--danger);
}

.compare__card--good {
  border-color: var(--kelp-2);
}

.compare__card--good h3 {
  color: var(--kelp);
}

.compare__card ul {
  list-style: none;
}

.compare__card li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

.compare__card--bad li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: 700;
}

.compare__card--good li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--kelp-2);
  font-weight: 700;
}

.highlight {
  background: var(--sea-3);
  border-left: 6px solid var(--kelp-2);
  padding: 22px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 18px;
}

.imageholder {
  margin: 44px 0;
}

.imageholder img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--sand-2);
}

.imageholder figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin-top: 10px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.benefit {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.benefit:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.benefit__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--kelp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

.benefit h3 {
  margin-top: 16px;
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0 26px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table th,
.table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--sand-2);
}

.table th {
  background: var(--sea);
  color: var(--white);
}

.table tr:last-child td {
  border-bottom: 0;
}

.note {
  background: #fff6df;
  border: 1px solid #f0d58f;
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 16px;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 26px 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px 18px 74px;
  box-shadow: var(--shadow);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--kelp-2);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.recipe {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow);
}

.recipe p {
  font-size: 15px;
}

.list {
  padding-left: 22px;
}

.list li {
  margin-bottom: 10px;
}

/* ---------- Price ---------- */
.price-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.price-card__info {
  padding: 36px;
}

.price-card__info h3 {
  margin-top: 0;
}

.price-card__info ul {
  list-style: none;
}

.price-card__info li {
  padding: 8px 0 8px 30px;
  position: relative;
  border-bottom: 1px dashed var(--sand-2);
}

.price-card__info li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--kelp-2);
  font-weight: 800;
}

.price-card__price {
  background: var(--sand);
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}

.price-card__value {
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 800;
  color: var(--sea);
  line-height: 1;
}

.price-card__unit {
  color: var(--muted);
  font-size: 18px;
}

.price-card__delivery {
  background: var(--kelp-2);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  margin: 10px 0 18px;
}

/* ---------- Delivery ---------- */
.delivery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 28px 0 18px;
}

.delivery__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.delivery__card h3 {
  margin-top: 16px;
}

.delivery__logo {
  width: 86px;
  height: 86px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
}

.delivery__logo--ozon { background: #005bff; }
.delivery__logo--cdek { background: #1ab248; }
.delivery__logo--post { background: #0055a6; }

/* ---------- Contacts ---------- */
.contacts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.contact {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact h3 {
  margin: 14px 0 14px;
}

.contact__qr {
  width: 176px;
  height: 176px;
  padding: 8px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__qr img,
.contact__qr canvas {
  width: 160px;
  height: 160px;
}

/* ---------- Form ---------- */
.form {
  background: var(--white);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow);
  margin-top: 26px;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-weight: 600;
  font-size: 15px;
  color: var(--sea);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 13px 16px;
  border: 2px solid var(--sand-2);
  border-radius: 12px;
  background: #fcfaf6;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--kelp-2);
  box-shadow: 0 0 0 4px rgba(92, 143, 60, 0.15);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--danger);
}

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
}

.checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--kelp-2);
  flex-shrink: 0;
}

.form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.form__total {
  font-size: 20px;
}

.form__total strong {
  color: var(--sea);
  font-size: 26px;
}

.form__total span {
  display: block;
  font-size: 15px;
  color: var(--kelp);
  font-weight: 600;
}

.form__status {
  margin-top: 18px;
  font-weight: 600;
}

.form__status.is-success {
  color: var(--kelp);
  background: #ecf6e6;
  padding: 14px 18px;
  border-radius: 12px;
}

.form__status.is-error {
  color: var(--danger);
  background: #fbeae6;
  padding: 14px 18px;
  border-radius: 12px;
}

/* ---------- Footer ---------- */
.footer {
  background: #062422;
  color: #cfe0dc;
  padding: 40px 0;
  font-size: 15px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}

.footer a {
  color: var(--white);
}

.logo--footer {
  margin-bottom: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .recipes { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .burger { display: block; }
  .topbar__phone { display: none; }

  .nav {
    display: none;
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--sea);
    padding: 8px 24px 20px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
  }

  .nav.is-open { display: flex; }

  .nav a {
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav__cta {
    margin-top: 12px;
    text-align: center;
    border-bottom: 1px solid var(--accent) !important;
  }

  .benefits { grid-template-columns: repeat(2, 1fr); }
  .price-card { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }

  .hero {
    height: 92vh;
    min-height: 560px;
  }

  .carousel::after {
    background: linear-gradient(180deg, rgba(4, 30, 28, 0.55) 0%, rgba(4, 30, 28, 0.85) 100%);
  }

  .carousel__btn { display: none; }

  .carousel__caption {
    right: 50%;
    transform: translateX(50%);
    bottom: 46px;
    white-space: nowrap;
    font-size: 13px;
  }

  .hero__content {
    justify-content: flex-end;
    padding-bottom: 90px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .compare,
  .benefits,
  .recipes,
  .delivery,
  .form__grid {
    grid-template-columns: 1fr;
  }

  .form { padding: 24px 18px; }
  .price-card__info,
  .price-card__price { padding: 26px 20px; }

  .steps li { padding-left: 66px; }

  .form__footer .btn { width: 100%; }
}

@media (max-width: 480px) {
  .contacts { grid-template-columns: 1fr; }
  .logo span { font-size: 18px; }
}