:root {
  --bg: #f7f3ee;
  --bg-tint: #efe8df;
  --surface: #ffffff;
  --text: #2b2622;
  --muted: #7d726b;
  --line: #e4dbd1;
  --accent: #c2607c;
  --accent-dark: #a24c66;
  --accent-soft: #f6e3e8;
  --green: #5f7a55;
  --warn: #b0452f;
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 42px); }
h3 { font-size: 26px; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.narrow-wide { max-width: 1000px; }
.center { text-align: center; }
.right { text-align: right; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.warn { color: var(--warn); }
.lead { font-size: 19px; color: var(--muted); max-width: 32em; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--accent); font-weight: 600; }
.link { color: var(--accent-dark); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ---------- кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: #fff; font: 600 14px/1 var(--sans);
  letter-spacing: .04em; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--accent-dark); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn--small { padding: 9px 16px; font-size: 13px; }
.btn--wide { width: 100%; }

/* ---------- шапка */
.header { position: sticky; top: 0; z-index: 20; background: rgba(247, 243, 238, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo__main { font: 600 32px/1 var(--serif); color: var(--accent-dark); }
.logo__sub { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .03em; }
.nav a:hover { color: var(--accent-dark); }
.cart-link { position: relative; display: flex; color: var(--text); padding: 6px; }
.cart-count {
  position: absolute; top: -2px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 9px; width: 22px; height: 1.5px; background: var(--text); content: ""; transition: transform .2s;
}
.burger span { top: 19px; }
.burger span::before { top: -7px; left: 0; }
.burger span::after { top: 7px; left: 0; }

.flashes { margin-top: 16px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; background: #e6efe1; color: #33502a; }
.flash--error { background: #f8e1dc; color: var(--warn); }

/* ---------- первый экран */
.hero { padding: 48px 0 24px; }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__img { border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }

.notice {
  margin: 24px 0; padding: 16px 20px; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent-dark); font-size: 15px;
}

/* ---------- секции */
.section { padding: 56px 0; }
.section--top { padding-top: 40px; }
.section--tint { background: var(--bg-tint); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.page-title { font-size: clamp(38px, 5vw, 56px); }

/* ---------- сетка товаров */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.card__img { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--bg-tint); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.04); }
.card--off .card__img img { filter: saturate(.55); opacity: .85; }
.card__noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 14px; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.card__title { font: 500 24px/1.15 var(--serif); text-decoration: none; }
.card__title:hover { color: var(--accent-dark); }
.card__short { font-size: 14px; color: var(--muted); }
.card__bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; }
.badge {
  position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .03em;
}
.badge--grey { background: rgba(43, 38, 34, .72); }
.price { font-weight: 600; font-size: 17px; white-space: nowrap; }
.price--big { font-size: 26px; margin: 18px 0; }
.price__unit { font-weight: 400; color: var(--muted); font-size: .8em; }
.price__old { color: var(--muted); font-weight: 400; font-size: .8em; margin-left: 6px; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 32px; }
.pill {
  padding: 9px 18px; border: 1px solid var(--accent); border-radius: 999px; text-decoration: none;
  font-size: 13px; font-weight: 500; color: var(--accent-dark); letter-spacing: .03em;
}
.pill:hover { background: var(--accent-soft); }
.pill--on { background: var(--accent); color: #fff; }
.pill--on:hover { background: var(--accent-dark); }
.empty { color: var(--muted); font-size: 18px; padding: 24px 0; }

/* ---------- сезоны и о ферме */
.seasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; }
.season__img { aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: 20px; }
.season__img img { width: 100%; height: 100%; object-fit: cover; }
.season { text-align: center; }
.season p { color: var(--muted); }
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__text p { font-size: 17px; }
.contacts-mini { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; font-weight: 600; }
.contacts-mini a { color: var(--accent-dark); text-decoration: none; }

/* ---------- товар */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-dark); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.gallery__main { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-tint); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb--on { border-color: var(--accent); }
.product__info { position: sticky; top: 96px; }
.product__info h1 { font-size: clamp(36px, 4vw, 52px); }
.product__short { color: var(--muted); font-size: 16px; }
.product__desc { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.product__delivery { margin-top: 24px; padding: 16px 18px; background: var(--bg-tint); border-radius: 10px; }
.buy { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 42px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--text); }
.qty button:disabled { opacity: .3; cursor: default; }
.qty input { width: 44px; border: 0; text-align: center; font: 600 16px var(--sans); background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--small button { width: 32px; height: 34px; font-size: 17px; }
.qty--small input { width: 32px; font-size: 15px; }
.notify { padding: 20px; background: var(--accent-soft); border-radius: var(--radius); }
.notify__form { display: flex; gap: 10px; flex-wrap: wrap; }
.notify__form input { flex: 1; min-width: 200px; }
.related-title { margin-top: 72px; }

/* ---------- формы */
input, textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); font: 16px var(--sans); color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.radios { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.radios legend { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.form .radio { flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400; }
.radio input { width: auto; accent-color: var(--accent); }

/* ---------- корзина и заказ */
.cart-row {
  display: grid; grid-template-columns: 84px 1fr auto 110px 32px; gap: 18px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cart-row--off { opacity: .6; }
.cart-row__img { width: 84px; height: 100px; border-radius: 10px; overflow: hidden; background: var(--bg-tint); }
.cart-row__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-row__title { font: 500 22px/1.15 var(--serif); text-decoration: none; }
.cart-row__sum { font-weight: 600; text-align: right; white-space: nowrap; }
.cart-row__del { border: 0; background: none; font-size: 26px; color: var(--muted); cursor: pointer; line-height: 1; }
.cart-row__del:hover { color: var(--warn); }
.cart-total { display: flex; justify-content: flex-end; gap: 24px; align-items: baseline; padding: 24px 0 4px; font-size: 18px; }
.cart-total b { font-size: 28px; }

.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.summary { background: var(--surface); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary__total { font-weight: 600; font-size: 18px; border: 0; padding-top: 14px; }

.thanks { margin-bottom: 24px; }
.order-box { background: var(--surface); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.order-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin-bottom: 20px; }
.order-meta span { display: block; font-size: 13px; }
.lines { width: 100%; border-collapse: collapse; }
.lines td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines td + td { padding-left: 16px; }
.lines .r { text-align: right; white-space: nowrap; }
.lines__total td { font-weight: 600; font-size: 18px; border: 0; }

.text { font-size: 17px; }
.contacts { display: grid; grid-template-columns: 140px 1fr; gap: 14px; font-size: 18px; }
.contacts dt { color: var(--muted); }
.contacts dd { margin: 0; }
.contacts a { color: var(--accent-dark); text-decoration: none; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50;
  max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 12px;
  background: var(--text); color: #fff; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.toast a { color: #f4b9c9; margin-left: 6px; white-space: nowrap; }

/* ---------- подвал */
.footer { margin-top: 40px; padding: 48px 0 24px; background: var(--bg-tint); }
.footer__in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--accent-dark); }
.logo--footer { margin-bottom: 14px; }
.footer__bottom { margin-top: 32px; font-size: 13px; }

/* ---------- адаптив */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .hero__in, .about, .product, .checkout { grid-template-columns: 1fr; gap: 32px; }
  .hero__img { max-width: 480px; }
  .product__info, .summary { position: static; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .header__in { gap: 12px; height: 64px; }
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .menu-open .nav { display: flex; }
  .menu-open .burger span { transform: rotate(45deg); }
  .menu-open .burger span::before { transform: translateY(7px) rotate(90deg); }
  .menu-open .burger span::after { opacity: 0; }
  .seasons { grid-template-columns: 1fr; }
  .season__img { max-width: 260px; margin: 0 auto 16px; }
  .footer__in { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .cart-row { grid-template-columns: 70px 1fr auto; grid-template-areas: "img info del" "img qty sum"; gap: 8px 14px; }
  .cart-row__img { grid-area: img; width: 70px; height: 86px; }
  .cart-row__info { grid-area: info; }
  .cart-row .qty { grid-area: qty; justify-self: start; }
  .cart-row__sum { grid-area: sum; }
  .cart-row__del { grid-area: del; align-self: start; }
  .order-meta { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; gap: 2px; }
  .contacts dd { margin-bottom: 12px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card__body { padding: 12px; }
  .card__title { font-size: 19px; }
  .card__short { font-size: 13px; }
  .card__bottom { flex-direction: column; align-items: stretch; }
  .card__bottom .btn { width: 100%; }
}
