:root,
[data-theme="dark"] {
  --bg: #0F0E0C;
  --card: #1A1815;
  --line: #2A2722;
  --text: #F4EFE4;
  --muted: #B9B1A2;
  --faint: #8A8273;
  --gold: #D4A945;
  --on-gold: #0F0E0C;
  --gold-text: #D4A945;
}

[data-theme="light"] {
  --bg: #FAF7F0;
  --card: #FFFFFF;
  --line: #E4DCCB;
  --text: #17140F;
  --muted: #5B5244;
  --faint: #776C5B;
  --gold: #C79A32;
  --on-gold: #17140F;
  --gold-text: #8C6416;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 19px;
  line-height: 1.55;
  transition: background-color .25s, color .25s;
}

img { max-width: 100%; height: auto; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.top { border-bottom: 1px solid var(--line); }
.top__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.logo__icon { width: 40px; height: 45px; color: var(--gold); flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-weight: 800; font-size: 22px; letter-spacing: 0.02em; }
.logo__name b { color: var(--gold); font-weight: 800; }
.logo__tag { margin-top: 5px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-text); }
.logo--big { flex-direction: column; gap: 22px; }
.logo--big .logo__icon { width: 96px; height: 108px; }
.logo--big .logo__text { align-items: center; }
.logo--big .logo__name { font-size: 46px; }
.logo--big .logo__tag { margin-top: 12px; font-size: 14px; }
.top__right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.theme {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 10px 16px;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  font: 600 16px Montserrat, system-ui, sans-serif; cursor: pointer;
}
.theme:hover { border-color: var(--gold); }
[data-theme="dark"] .theme__moon,
[data-theme="light"] .theme__sun { display: none; }

.hero { padding: 72px 0 64px; text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
h1 { margin: 0; font-weight: 800; font-size: clamp(30px, 5vw, 52px); line-height: 1.15; }
.lead { margin: 0; max-width: 620px; color: var(--muted); font-size: 21px; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}
.btn--big { font-size: 21px; padding: 18px 30px; min-width: 180px; text-align: center; }
.btn--gold { background: var(--gold); color: var(--on-gold); }
.btn--viber { background: #6F3FBF; }
.btn--tg { background: #1F6FB0; }
.btn:hover { filter: brightness(1.08); }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: 15px;
}

/* ---------- вкладки ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; padding-bottom: 12px; }
.tabs__link {
  padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 17px;
  color: var(--muted); text-decoration: none; border: 1px solid transparent;
}
.tabs__link:hover { color: var(--text); border-color: var(--line); }
.tabs__link.is-active { background: var(--gold); color: var(--on-gold); }

/* ---------- загальні блоки ---------- */
.block { padding-top: 48px; padding-bottom: 56px; }
.block h2 { font-size: 32px; margin: 0 0 24px; text-align: center; }
.page__title { font-size: clamp(30px, 4.4vw, 44px); margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.center { text-align: center; margin: 28px 0 0; }
.lead--left { margin: 8px 0 32px; text-align: left; max-width: 760px; }
.actions--left { justify-content: flex-start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.card h3 { margin: 0 0 8px; font-size: 22px; }
.card p { margin: 0; }
.note { margin: 0; font-size: 15px; color: var(--faint); }
.btn--line { border: 2px solid var(--gold); color: var(--text); }

.crops__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
}
.crops__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .crops__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .crop { padding: 16px; min-height: 88px; } .crop__name { font-size: 19px; } .crop__more { font-size: 14px; white-space: nowrap; } }
.crops__list li { display: flex; min-width: 0; }
.crop {
  width: 100%; min-width: 0; min-height: 100px; margin: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px;
  padding: 20px 22px; text-align: left; cursor: pointer;
  background: var(--card); color: var(--text);
  border: 2px solid color-mix(in srgb, var(--gold) 35%, var(--line)); border-radius: 16px;
  font-family: Montserrat, system-ui, sans-serif;
  transition: transform .15s, border-color .15s, box-shadow .15s, background-color .15s;
}
.crop__name { font-size: 21px; font-weight: 800; line-height: 1.2; }
.crop__more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--gold-text); }
.crop__more span { transition: transform .15s; }
.crop:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--card)); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.crop:hover .crop__more span { transform: translateX(4px); }
.crop:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.crop:active { transform: translateY(0); }
.prices tr.is-hl td { background: color-mix(in srgb, var(--gold) 18%, transparent); }
.prices tr.is-hl td:first-child { box-shadow: inset 4px 0 0 var(--gold); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.steps b { font-size: 21px; }
.steps span:last-child { color: var(--muted); }
.steps__n { font-size: 34px; font-weight: 800; color: var(--gold-text); line-height: 1; }

/* ---------- ціни ---------- */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; margin-top: 24px; }
.prices { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 19px; }
.prices th { text-align: left; padding: 16px 22px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--card); }
.prices td { padding: 18px 22px; border-top: 1px solid var(--line); }
.prices td:first-child { font-weight: 700; }
.prices td:nth-child(2) { color: var(--muted); }
.prices__v { font-weight: 800; color: var(--gold-text); }
.prices a { color: var(--gold-text); font-weight: 700; }
.cta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 28px; font-size: 21px; }

/* ---------- де машина ---------- */
.track { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; align-items: flex-start; }
.track__form { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.track__result { flex: 2 1 420px; display: flex; flex-direction: column; gap: 14px; }
.track__eta { font-size: 32px; font-weight: 800; color: var(--gold-text); }
.track__map { width: 100%; height: auto; display: block; }
.map__bg { fill: var(--bg); }
.map__road { stroke: var(--line); }
.map__done { stroke: var(--gold); }
.map__car { fill: var(--gold); stroke: var(--text); stroke-width: 3; }
.map__field { fill: var(--text); }
.map__label { fill: var(--muted); font: 600 14px Montserrat, sans-serif; }

/* ---------- форми ---------- */
label { font-size: 15px; font-weight: 600; color: var(--muted); }
input {
  font: 500 19px Montserrat, system-ui, sans-serif; padding: 15px 16px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 12px; width: 100%;
}
input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
button.btn { border: 0; cursor: pointer; font-family: Montserrat, system-ui, sans-serif; }

/* ---------- про нас ---------- */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.photo { margin-top: 20px; min-height: 260px; border: 2px dashed var(--line); border-radius: 18px; display: flex; align-items: center; justify-content: center; color: var(--faint); text-align: center; padding: 20px; }

/* ---------- контакти ---------- */
.contacts { display: flex; flex-wrap: wrap; gap: 32px; }
.contacts > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.contacts__phone { font-size: 30px; font-weight: 800; color: var(--text); text-decoration: none; }
.form { flex: 1 1 400px; display: flex; flex-direction: column; gap: 10px; }
.form h2 { text-align: left; font-size: 26px; margin: 0 0 6px; }
.form .btn { margin-top: 8px; }

[hidden] { display: none !important; }

/* ---------- варіанти поставки ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 8px; }
.block .h2-left { text-align: left; margin-bottom: 28px; }
.delivery { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.delivery__opts { flex: 3 1 480px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.opt { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.opt h3 { margin: 0; font-size: 22px; }
.opt p { margin: 0; }
.opt__icon { width: 48px; height: 48px; color: var(--gold-text); }
.more { margin-top: auto; padding-top: 6px; color: var(--gold-text); font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
.delivery__art { flex: 2 1 320px; width: 100%; height: auto; display: block; border-radius: 22px; }
.art__sky { fill: var(--card); }
.art__sun { fill: var(--gold); opacity: .55; }
.art__field { fill: var(--gold); opacity: .85; }
.art__row { fill: none; stroke: var(--on-gold); stroke-opacity: .25; stroke-width: 3; }
.art__body, .art__cab { fill: var(--text); }
.art__glass { fill: var(--card); }
.art__grain { fill: var(--gold); }
.art__wheel { fill: var(--text); stroke: var(--card); stroke-width: 5; }
.art__text { fill: var(--gold); font: 800 22px Montserrat, sans-serif; letter-spacing: .04em; }

/* ---------- прийомки ---------- */
.points { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.points__text { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.points__text .h2-left { margin-bottom: 0; }
.points__text p { margin: 0; }
.points__list { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.points__list li { display: flex; gap: 14px; align-items: flex-start; }
.pin { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.points__map { flex: 2 1 460px; min-height: 380px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card); display: flex; align-items: center; justify-content: center; color: var(--faint); z-index: 0; }
.points__map.leaflet-container { display: block; }
.pin-icon span {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: #D4A945; color: #0F0E0C; font: 800 16px Montserrat, sans-serif;
  border: 3px solid #0F0E0C; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-sizing: border-box;
}
.pin-icon b { transform: rotate(45deg); line-height: 1; }
.leaflet-popup-content { font: 500 15px Montserrat, sans-serif; }
