/* ============================================================
   RS TEAM — Fresh Produce Import & Export
   Design system inspired by classic produce-trader layouts
   ============================================================ */

:root {
  --green: #8dc63f;
  --green-hi: #a5d76a;
  --green-dark: #7ab32e;
  --green-deep: #3c6b1e;
  --forest: #31510e;
  --forest-deep: #27420b;
  --ink: #22301a;
  --muted: #66735a;
  --paper: #ffffff;
  --mist: #f4f7ee;
  --line: #e4ead6;
  --shadow: 0 10px 30px rgba(49, 81, 14, 0.10);
  --radius: 14px;
  --header-h: 118px;
  --header-h-small: 74px;
  --font-head: "Poppins", "Segoe UI", Verdana, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Verdana, sans-serif;
  --font-serif: "Bitter", Georgia, serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--green-deep); text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--green); color: #fff; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.22; }

.t-accent { color: var(--green); }
.t-serif { font-family: var(--font-serif); }

.section { padding: 72px 0; }
.section--mist { background: var(--mist); }

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 700;
  margin-bottom: 26px;
  text-wrap: balance;
}

.lead { font-size: 1.06rem; color: var(--ink); }
.lead + .lead { margin-top: 14px; }
.lead strong { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 30px;
  border-radius: 999px;
  border: 2px solid var(--green);
  background: var(--green);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.2s, color 0.25s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--green-deep); }
.btn--ghost:hover { background: var(--green); color: #fff; }
.btn--white { background: transparent; border-color: #fff; color: #fff; }
.btn--white:hover { background: #fff; border-color: #fff; color: var(--green-deep); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  transition: box-shadow 0.3s;
}
.ribbon {
  height: 8px;
  background: linear-gradient(90deg, #3c6b1e 0%, #8dc63f 30%, #a5d76a 50%, #8dc63f 70%, #3c6b1e 100%);
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(34, 48, 26, 0.12); }

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
  padding: 14px 0 10px;
  transition: min-height 0.25s;
}
.header.is-scrolled .header__inner { min-height: var(--header-h-small); padding: 8px 0 6px; }

.header__logo img { height: 86px; width: auto; transition: height 0.25s; }
.header.is-scrolled .header__logo img { height: 58px; }

.header__right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.header__contacts { display: flex; gap: 26px; font-weight: 700; font-size: 0.98rem; }
.header__contacts a { color: var(--ink); transition: color 0.2s; }
.header__contacts a:hover { color: var(--green-dark); }

/* ---- Nav ---- */
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 10px 18px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link .caret { transition: transform 0.25s; }
.nav__item:hover .caret, .nav__link[aria-expanded="true"] .caret { transform: rotate(180deg); }

/* dropdown */
.nav__item { position: relative; }
.nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 2px 26px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  min-width: 340px;
}
.nav__item:hover > .nav__dropdown,
.nav__item:focus-within > .nav__dropdown,
.nav__dropdown.is-open {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav__dropdown a {
  padding: 9px 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
  transition: background 0.18s, color 0.18s, padding-left 0.18s;
}
.nav__dropdown a:hover { background: var(--mist); color: var(--green-deep); padding-left: 14px; }

/* language switch */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green-deep);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.lang:hover { border-color: var(--green); background: var(--mist); }
.lang svg { width: 17px; height: 17px; }

/* hamburger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.burger span { width: 26px; height: 3px; border-radius: 3px; background: var(--green-deep); 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 (home)
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(480px, 76vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero__collage > div {
  background-size: cover;
  background-position: center;
  animation: heroZoom 18s ease-in-out infinite alternate;
}
.hero__collage > div:nth-child(2) { animation-delay: 1.2s; }
.hero__collage > div:nth-child(3) { animation-delay: 2.4s; }
.hero__collage > div:nth-child(4) { animation-delay: 3.6s; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 48, 15, 0.82) 0%, rgba(31, 48, 15, 0.45) 34%, rgba(31, 48, 15, 0.05) 62%),
    linear-gradient(0deg, rgba(31, 48, 15, 0.25), rgba(31, 48, 15, 0) 40%);
}
.hero__ring {
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 560px;
  height: 560px;
  opacity: 0.9;
  pointer-events: none;
}
.hero__leafmark {
  position: absolute;
  left: -120px;
  bottom: -160px;
  width: 420px;
  opacity: 0.14;
  pointer-events: none;
}

.hero__content { position: relative; z-index: 2; color: #fff; padding: 90px 0; }
.hero__content h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.2vw, 3.7rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.12;
}
.hero__content h1 strong { display: block; font-weight: 700; letter-spacing: 0.06em; }
.hero__content p {
  margin-top: 22px;
  max-width: 470px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 300;
  line-height: 1.5;
  text-wrap: balance;
}
.hero__actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__content h1, .hero__content p, .hero__actions {
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero__content p { animation-delay: 0.15s; }
.hero__actions { animation-delay: 0.3s; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* white wave under header over hero */
.hero .wave,
.page-hero .wave {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1;
  pointer-events: none;
}
.hero .wave { height: 46px; }
.page-hero .wave { height: 40px; }
.wave svg { width: 100%; height: 100%; display: block; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  min-height: clamp(280px, 38vh, 400px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero__collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.page-hero__collage > div { background-size: cover; background-position: center; }
.page-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31, 48, 15, 0.78) 0%, rgba(31, 48, 15, 0.38) 45%, rgba(31, 48, 15, 0.12) 100%);
}
.page-hero .hero__ring { opacity: 0.55; }
.page-hero__content { position: relative; z-index: 2; padding: 70px 0 42px; }
.page-hero__title {
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.breadcrumb {
  padding: 18px 0 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
}
.breadcrumb a { color: var(--ink); }
.breadcrumb a:hover { color: var(--green-deep); }
.breadcrumb .sep { color: var(--ink); margin: 0 8px; }
.breadcrumb .current { color: var(--green-deep); }

/* ============================================================
   ABOUT section (home)
   ============================================================ */
.about { position: relative; overflow: hidden; }
.about__deco {
  position: absolute;
  right: -170px;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  opacity: 0.5;
  pointer-events: none;
}
.about__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 640px);
  gap: 40px;
}
.about .btn { margin-top: 28px; }

/* ============================================================
   SPLIT (image + text)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 54px;
  align-items: center;
}
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split__media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 3px solid var(--green-hi);
  border-radius: var(--radius);
  z-index: -1;
}
.split__body .section-title { margin-bottom: 18px; }

/* ============================================================
   PRODUCTS SLIDER (home)
   ============================================================ */
.slider { position: relative; }
.slider__viewport { overflow: hidden; padding: 8px 4px 10px; }
.slider__track {
  display: flex;
  gap: 24px;
  transition: transform 0.55s cubic-bezier(0.33, 1, 0.4, 1);
}
.slider__slide { flex: 0 0 calc((100% - 72px) / 4); }

.p-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(49, 81, 14, 0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.p-card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.p-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.p-card:hover .p-card__img img { transform: scale(1.06); }
.p-card__body { padding: 20px 18px 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.p-card__title { font-size: 1.22rem; font-weight: 700; }
.p-card .btn { margin-top: auto; align-self: center; padding: 9px 24px; font-size: 0.85rem; }

.slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
}
.slider__arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: #fff;
  color: var(--green-deep);
  font-size: 1.15rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.slider__arrow:hover { background: var(--green); color: #fff; }
.slider__arrow[disabled] { opacity: 0.35; cursor: default; }
.slider__arrow[disabled]:hover { background: #fff; color: var(--green-deep); }
.slider__dots { display: flex; gap: 9px; }
.slider__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 0;
  background: #cbd7b4;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.slider__dot.is-active { background: var(--green); transform: scale(1.25); }

/* ============================================================
   PRODUCTS GRID (products page)
   ============================================================ */
.p-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.variety { padding: 58px 0; }
.variety + .variety { border-top: 1px solid var(--line); }
.variety__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: start;
}
.variety__title { color: var(--green-deep); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; margin-bottom: 26px; }

.gallery { position: relative; }
.gallery__frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.gallery__frame img { width: 100%; height: 100%; object-fit: cover; display: none; }
.gallery__frame img.is-active { display: block; animation: fade 0.5s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-deep);
  font-size: 1.05rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.gallery__arrow:hover { background: var(--green); color: #fff; }
.gallery__arrow[disabled] { opacity: 0.3; cursor: default; }
.gallery__arrow[disabled]:hover { background: rgba(255,255,255,0.92); color: var(--green-deep); }
.gallery__arrow--prev { left: 14px; }
.gallery__arrow--next { right: 14px; }

.calendar__title { font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 700; margin-bottom: 20px; }
.calendar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.calendar li {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 9px 4px;
  border-radius: 4px;
  background: #c9cdbd;
  color: #fff;
}
.calendar li.is-on { background: var(--green); }
.calendar__legend { display: flex; gap: 28px; margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.calendar__legend span { display: inline-flex; align-items: center; gap: 8px; }
.calendar__legend i { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }
.calendar__legend .on { background: var(--green); }
.calendar__legend .off { background: #c9cdbd; }
.variety__text { margin-top: 26px; }
.variety__text p + p { margin-top: 13px; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 64px;
}
.pager a {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.pager a:hover { color: var(--green-dark); }

/* ============================================================
   QUOTE block (company page)
   ============================================================ */
.quote { padding: 72px 0; }
.quote__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.quote__figure { position: relative; width: min(420px, 82%); margin-inline: auto; }
.quote__figure::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--mist);
  transform: translate(-22px, 22px);
  z-index: -1;
}
.quote__figure img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.quote__body { position: relative; }
.quote__mark {
  font-family: var(--font-serif);
  font-size: 4.6rem;
  line-height: 0.6;
  color: var(--green);
  display: block;
  margin-bottom: 20px;
}
.quote__statement {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.35;
}
.quote__text { margin-top: 24px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 54px;
  padding-bottom: 76px;
}
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 36px 40px;
  box-shadow: 0 4px 18px rgba(49, 81, 14, 0.06);
}
.form-card__title {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 700;
  margin: -60px 0 22px;
  background: #fff;
  padding: 0 16px;
}
.form-intro { color: var(--muted); margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 26px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field label .req { color: #c0392b; }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid #cfd6c2;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.22);
}
.field.has-error input, .field.has-error textarea { border-color: #c0392b; }
.error-msg { color: #c0392b; font-size: 0.82rem; display: none; }
.field.has-error .error-msg, .consent.has-error .error-msg { display: block; }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 0.92rem; margin: 6px 0 24px; }
.consent input { margin-top: 4px; accent-color: var(--green); width: 16px; height: 16px; }
.consent a { font-weight: 700; }

.gdpr {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.82rem;
  margin-bottom: 26px;
}
.gdpr__caption {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  font-weight: 600;
}
.gdpr table { width: 100%; border-collapse: collapse; }
.gdpr th, .gdpr td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.gdpr th { width: 130px; color: var(--muted); font-weight: 600; background: var(--mist); }
.gdpr tr:last-child th, .gdpr tr:last-child td { border-bottom: 0; }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.form-status.is-ok { display: block; background: #e8f5d3; color: var(--green-deep); border: 1px solid #bfe39a; }
.form-status.is-err { display: block; background: #fdeaea; color: #a93226; border: 1px solid #f3c1bd; }

/* sidebar */
.sidebar { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: 10px; }
.sidebar img { height: 120px; width: auto; margin-bottom: 18px; }
.sidebar h3 { font-size: 1.15rem; margin-bottom: 4px; }
.sidebar p { color: var(--ink); }
.sidebar .find { font-weight: 700; margin-top: 16px; }
.sidebar__contacts { margin-top: 14px; display: grid; gap: 8px; }
.sidebar__contacts a, .sidebar__contacts span {
  color: var(--green);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}
.sidebar__contacts a:hover { color: var(--green-dark); }

/* map */
.map-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(49,81,14,.06); }
.map-card iframe { display: block; width: 100%; height: 460px; border: 0; }

/* ============================================================
   CTA banner (pre-footer)
   ============================================================ */
.cta {
  position: relative;
  padding: 84px 0 130px;
  text-align: center;
  background: linear-gradient(180deg, #f7faf1 0%, var(--mist) 100%);
  overflow: hidden;
}
.cta__leaf { width: 74px; height: 74px; margin: 0 auto 20px; }
.cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.cta p { max-width: 640px; margin: 16px auto 0; color: var(--muted); font-size: 1.04rem; }
.cta .btn { margin-top: 30px; position: relative; z-index: 2; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  background: var(--forest);
  color: #e7efdb;
  overflow: hidden;
}
.footer--mist-top { --curve-bg: var(--mist); }
.footer a { color: #e7efdb; }

/* curved green sweep + leaf decorations above the footer */
.footer__curve { line-height: 0; }
.footer__curve svg { display: block; width: 100%; height: auto; }
.curve__bg { fill: var(--curve-bg, #ffffff); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 0.7fr 1.6fr;
  gap: 48px;
  padding: 40px 0 46px;
}
.footer__brand { display: flex; align-items: center; gap: 56px; }
.footer__emblem { height: 172px; width: auto; flex: 0 0 auto; }
.footer__addr { font-size: 0.96rem; line-height: 1.9; }
.footer__addr strong { color: #fff; font-family: var(--font-head); }
.footer__addr a:hover { color: var(--green-hi); }
.footer__menu { display: grid; gap: 10px; align-content: start; font-size: 0.96rem; }
.footer__menu a:hover { color: var(--green-hi); }
.footer__menu .is-active {
  background: var(--green);
  color: #fff;
  padding: 3px 14px;
  border-radius: 999px;
  display: inline-block;
  width: fit-content;
  font-weight: 700;
}
.footer__products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 30px;
  align-content: start;
  align-items: start;
  font-size: 0.95rem;
}
.footer__products a { display: inline-block; }
.footer__products a:not(.footer__products-title) { padding-left: 14px; }
.footer__products a:hover { color: var(--green-hi); }

.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  align-items: center;
  font-size: 0.88rem;
}
.footer__legal a { margin-right: 8px; }
.footer__legal a:hover { color: var(--green-hi); }
.footer__legal .sep { margin-right: 8px; opacity: 0.6; }
.footer__legal button {
  background: none;
  border: 0;
  color: #e7efdb;
  font: inherit;
  cursor: pointer;
}
.footer__legal button:hover { color: var(--green-hi); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookies {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: min(340px, calc(100vw - 44px));
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22);
  padding: 20px;
  font-size: 0.88rem;
  display: none;
}
.cookies.is-visible { display: block; animation: rise 0.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cookies .btn { width: 100%; margin-top: 14px; padding: 9px; }
.cookies__more { display: block; text-align: center; margin-top: 10px; text-decoration: underline; color: var(--green-dark); }

/* ============================================================
   LEGAL PAGE
   ============================================================ */
.legal h2 { margin: 34px 0 12px; font-size: 1.3rem; color: var(--green-deep); }
.legal p, .legal li { color: var(--ink); margin-bottom: 10px; max-width: 860px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__collage > div { animation: none; }
  .hero__content h1, .hero__content p, .hero__actions { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .slider__slide { flex-basis: calc((100% - 48px) / 3); }
  .p-grid { grid-template-columns: repeat(2, 1fr); }
  .variety__grid, .quote__grid { grid-template-columns: 1fr; gap: 36px; }
  .quote__figure { width: min(360px, 70%); }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .sidebar { padding-top: 0; }
}

@media (max-width: 880px) {
  :root { --header-h: 86px; --header-h-small: 66px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__emblem { height: 132px; }
  .footer__products { grid-column: 1 / -1; }
  .header__logo img { height: 64px; }
  .header.is-scrolled .header__logo img { height: 52px; }
  .header__contacts { display: none; }
  .header__inner { grid-template-columns: auto auto; justify-content: space-between; }
  .header__right { align-items: flex-end; }

  .burger { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(340px, 86vw);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 92px 26px 40px;
    box-shadow: -18px 0 50px rgba(0, 0, 0, 0.18);
    transform: translateX(105%);
    transition: transform 0.32s ease;
    overflow-y: auto;
    z-index: 150;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { width: 100%; justify-content: space-between; font-size: 1rem; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: hidden;
    display: none;
    grid-template-columns: 1fr;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 4px 0 10px 14px;
  }
  /* the desktop :hover/:focus-within rules outrank plain .is-open, so the
     open state must be re-asserted with matching specificity — after a tap
     the button keeps :hover and :focus-within on touch devices */
  .nav__item:hover > .nav__dropdown,
  .nav__item:focus-within > .nav__dropdown { visibility: hidden; opacity: 1; transform: none; }
  .nav__dropdown.is-open,
  .nav__item:hover > .nav__dropdown.is-open,
  .nav__item:focus-within > .nav__dropdown.is-open { display: grid; visibility: visible; opacity: 1; transform: none; }
  .lang { margin: 18px 0 0; justify-content: center; }
  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(20, 30, 10, 0.45);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s;
    z-index: 90; /* below the sticky header (100): the drawer lives inside the header's stacking context, so 140 trapped it above the open menu */
  }
  .nav-backdrop.is-visible { opacity: 1; visibility: visible; }

  .split { grid-template-columns: 1fr; gap: 40px; }
  .about__deco { opacity: 0.25; }
  .hero__collage { grid-template-columns: repeat(2, 1fr); }
  .hero__collage > div:nth-child(n+3) { display: none; }
  .page-hero__collage { grid-template-columns: repeat(2, 1fr); }
  .page-hero__collage > div:nth-child(n+3) { display: none; }
  .slider__slide { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 560px) {
  .section { padding: 54px 0; }
  .hero { min-height: 520px; }
  .hero__content { padding: 70px 0; }
  .p-grid, .form-row { grid-template-columns: 1fr; }
  .slider__slide { flex-basis: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; padding: 46px 0 36px; }
  .calendar { grid-template-columns: repeat(4, 1fr); }
  .form-card { padding: 28px 22px 32px; }
  .form-card__title { margin-top: -54px; }
  .cookies { right: 14px; bottom: 14px; }
}
