:root {
  --ink: #13261c;
  --grove: #1f4d38;
  --leaf: #3d7a55;
  --mist: #dfe8e2;
  --milk: #f3f6f4;
  --straw: #d4a84b;
  --lake: #3a6a78;
  --wood: #5a4634;
  --line: rgba(19, 38, 28, 0.12);
  --shadow: 0 24px 60px rgba(19, 38, 28, 0.18);
  --radius: 18px;
  --font-display: "Unbounded", "Segoe UI", sans-serif;
  --font-body: "Golos Text", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(61, 122, 85, 0.16), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(58, 106, 120, 0.12), transparent 55%),
    linear-gradient(180deg, #eef3ef 0%, var(--milk) 40%, #e8eee9 100%);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.65rem;
  background:
    url('/assets/img/sodvora-bot-logo.jpg') center/cover no-repeat,
    linear-gradient(145deg, var(--leaf), var(--grove));
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand-mark::after {
  content: none;
}

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.95rem;
}

.nav a {
  opacity: 0.86;
}

.nav a:hover {
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--straw);
  color: var(--ink);
}

.btn-primary:hover {
  background: #e0b759;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.btn-dark {
  background: var(--grove);
  color: #fff;
}

.btn-line {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.hero {
  position: relative;
  min-height: auto;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(19, 38, 28, 0.82) 0%, rgba(19, 38, 28, 0.55) 42%, rgba(19, 38, 28, 0.28) 72%, rgba(19, 38, 28, 0.18) 100%),
    url("/assets/img/hero-village.jpg") center/cover no-repeat;
  transform: scale(1.02);
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1%, -0.6%, 0); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 6.2rem 0 2.6rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 0 0 0.75rem;
  max-width: 12ch;
  animation: rise 0.9s ease both;
  text-shadow: 0 8px 28px rgba(19, 38, 28, 0.35);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  max-width: 18ch;
  animation: rise 0.9s ease 0.08s both;
}

.hero p {
  margin: 0 0 1.6rem;
  max-width: 36ch;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  animation: rise 0.9s ease 0.16s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s ease 0.24s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.section {
  padding: 5rem 0;
}

.section-head {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 2.2rem;
  max-width: 42rem;
}

.eyebrow {
  color: var(--lake);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  color: rgba(19, 38, 28, 0.72);
  font-size: 1.05rem;
}

.infographic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

.infographic::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 2.4rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--leaf), var(--straw), var(--lake), transparent);
  opacity: 0.45;
}

.step {
  position: relative;
  padding: 1.3rem 1rem 1.2rem;
  text-align: center;
}

.step-num {
  width: 3.1rem;
  height: 3.1rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid var(--grove);
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: rgba(19, 38, 28, 0.7);
  font-size: 0.95rem;
}

.roles {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.role {
  padding: 1.6rem;
  border-radius: var(--radius);
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.role::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.role:hover::before {
  transform: scale(1.06);
}

.role::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(19, 38, 28, 0.15), rgba(19, 38, 28, 0.82));
}

.role-buyer::before {
  background-image: url("https://images.unsplash.com/photo-1488459716781-31db52582fe9?auto=format&fit=crop&w=1200&q=80");
}

.role-farm::before {
  background-image: url("https://images.unsplash.com/photo-1464226184884-fa280b87c399?auto=format&fit=crop&w=1200&q=80");
}

.role-pro::before {
  background-image: url("https://images.unsplash.com/photo-1581578731548-c64695cc6952?auto=format&fit=crop&w=1200&q=80");
}

.role span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.role h3 {
  margin: 0.35rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.role p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.scheme {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.scheme-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.scheme svg {
  width: 100%;
  height: auto;
}

.yards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.yard-banner {
  position: relative;
  display: grid;
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  box-shadow: 0 18px 40px rgba(19, 38, 28, 0.14);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.yard-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(19, 38, 28, 0.2);
}

.yard-banner-media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: transform 0.45s ease;
  z-index: -2;
}

.yard-banner:hover .yard-banner-media {
  transform: scale(1.08);
}

.yard-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 38, 28, 0.12) 10%, rgba(19, 38, 28, 0.78) 100%);
  z-index: -1;
}

.yard-banner-body {
  display: grid;
  gap: 0.35rem;
  align-content: end;
  padding: 1.15rem 1.2rem 1.25rem;
}

.yard-banner-meta {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.88;
}

.yard-banner strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.yard-banner-cta {
  font-size: 0.92rem;
  opacity: 0.92;
}

.yard-banner.is-near {
  outline: 2px solid var(--straw);
  outline-offset: 2px;
}

.yard-banner.is-live .yard-banner-cta {
  color: #f6e7b8;
}

.consent-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
  background: rgba(243, 246, 244, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 -16px 40px rgba(19, 38, 28, 0.12);
}

.consent-banner-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 1rem;
  align-items: end;
}

.consent-banner-copy strong {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 0.35rem;
}

.consent-banner-copy p {
  margin: 0 0 0.75rem;
  color: rgba(19, 38, 28, 0.78);
}

.consent-banner-copy a {
  text-decoration: underline;
}

.consent-checks {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.consent-checks label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.consent-banner-actions {
  display: grid;
  gap: 0.55rem;
  justify-items: stretch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.region-stub {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.region-stub-media {
  min-height: 280px;
  background-size: cover;
  background-position: center;
}

.region-stub-body {
  padding: 1.6rem 1.7rem;
  display: grid;
  align-content: center;
  gap: 0.7rem;
}

.region-stub-body h1 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

.region-stub-body p {
  margin: 0;
  color: rgba(19, 38, 28, 0.74);
}

.settlement {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}

.settlement-copy,
.settlement-card {
  border-radius: 28px;
  padding: 2rem;
}

.settlement-copy {
  background:
    linear-gradient(145deg, rgba(31, 77, 56, 0.94), rgba(58, 106, 120, 0.9)),
    url("https://images.unsplash.com/photo-1444858291040-58f756a3bdd6?auto=format&fit=crop&w=1400&q=80") center/cover;
  color: #fff;
}

.settlement-copy h2 {
  margin: 0.4rem 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.settlement-card {
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  align-content: start;
}

.plain-grid,
.trades,
.features {
  display: grid;
  gap: 1rem;
}

.plain-grid {
  grid-template-columns: repeat(3, 1fr);
}

.plain,
.trade,
.features article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.35rem 1.4rem;
}

.plain h3,
.trade h3,
.features article h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.plain p,
.trade p {
  margin: 0;
  color: rgba(19, 38, 28, 0.72);
}

.trades {
  grid-template-columns: repeat(3, 1fr);
}

.features {
  grid-template-columns: repeat(3, 1fr);
}

.features ul {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(19, 38, 28, 0.75);
}

.features li + li {
  margin-top: 0.35rem;
}

.diff-list {
  display: grid;
  gap: 0.9rem;
}

.diff-list div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  display: grid;
  gap: 0.35rem;
}

.diff-list strong {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.diff-list span {
  color: rgba(19, 38, 28, 0.72);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--mist);
  font-size: 0.88rem;
  font-weight: 600;
}

.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: rgba(19, 38, 28, 0.7);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 1100px) {
  .yards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .infographic,
  .roles,
  .scheme,
  .settlement,
  .plain-grid,
  .trades,
  .features,
  .consent-banner-inner,
  .region-stub {
    grid-template-columns: 1fr;
  }

  .yards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .infographic::before {
    display: none;
  }

  .nav .hide-sm {
    display: none;
  }

  .hero-content {
    padding: 5.4rem 0 2rem;
  }
}

@media (max-width: 560px) {
  .yards-grid {
    grid-template-columns: 1fr;
  }
}
