/* Лендинг «Свежая зелень» — Figma greenery 7842:1953 */

body.path-ferma {
  --bg: #323232;
  --bg-card: #3F403F;
  --bg-footer: #252525;
  --accent: #B3CE7D;
  --white: #fff;
  --black-text: #3C3C3B;
  --container: 1146px;
  --pad: 48px;
  --gap-section: 96px;
  --f-head: Merriweather, serif;
  --f-merit: Merriweather, serif;
  --f-body: 'Cera Pro', sans-serif;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.ferma {
  display: flex;
  flex-direction: column;
  gap: var(--gap-section);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  padding-bottom: var(--gap-section);
}

.ferma .cl {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.ferma .t-white { color: var(--white); font-family: inherit; font-weight: inherit; }
.ferma .t-accent { color: var(--accent); font-family: inherit; font-weight: inherit; }

.ferma h1,
.ferma h2,
.ferma .h2,
.ferma h3 {
  font-family: var(--f-head);
  font-weight: 400;
  margin: 0;
}
.ferma h1 *,
.ferma h2 *,
.ferma .h2 *,
.ferma h3 * {
  font-family: inherit;
}
.ferma .h2 {
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.ferma .h2--center { text-align: center; }

.ferma .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 43px;
  border-radius: 54px;
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 32px;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  border: 1px solid transparent;
  transition: 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.ferma .btn--fill { background: var(--accent); color: var(--black-text); }
.ferma .btn--fill:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.ferma .btn-arrow { font-size: 1.1em; }

/* ═══ HERO ═══ */
.ferma-hero {
  position: relative;
  min-height: 837px;
  overflow: hidden;
}
.ferma-hero__bg {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 686px;
}
.ferma-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ferma-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(50, 50, 50, 0) 79%, rgba(50, 50, 50, 0.5) 87%, rgba(50, 50, 50, 0.7) 91%, rgba(50, 50, 50, 0.85) 94%, rgba(50, 50, 50, 0.93) 97%, #323232 100%),
    linear-gradient(180deg, rgba(50, 50, 50, 0) 0%, rgba(50, 50, 50, 0.5) 37%, rgba(50, 50, 50, 0.7) 56%, rgba(50, 50, 50, 0.85) 73%, rgba(50, 50, 50, 0.93) 86%, #323232 100%);
  pointer-events: none;
}
.ferma-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 360px;
  padding-bottom: 0;
}
.ferma-hero__main {
  display: flex;
  align-items: flex-end;
  gap: 32px;
}
.ferma-hero__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.ferma-hero__title {
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.ferma-hero__lead {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  max-width: 640px;
}
.ferma-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}
.ferma-hero__link {
  font-size: 16px;
  line-height: 29px;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--white);
}
.ferma-hero__link:hover { color: var(--accent); }

.ferma-hero__stats {
  flex: 0 0 425px;
  max-width: 425px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.ferma-stat {
  width: 200px;
  padding: 24px;
  border-radius: 32px;
  background: rgba(179, 206, 125, 0.2);
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
}
.ferma-stat__v {
  font-family: var(--f-body);
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  color: var(--accent);
}
.ferma-stat__l {
  font-size: 10px;
  line-height: 14px;
  text-transform: uppercase;
  color: var(--white);
}

/* ═══ SPLIT ═══ */
.ferma-split__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.ferma-split__photo {
  flex: 0 0 558px;
  max-width: 558px;
  height: 482px;
  border-radius: 32px;
  overflow: hidden;
}
.ferma-split__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ferma-split__card {
  flex: 0 0 558px;
  max-width: 558px;
  min-height: 482px;
  padding: 32px 48px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  box-sizing: border-box;
}
.ferma-split__card p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}

/* ═══ FARM ═══ */
.ferma-farm {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.ferma-farm__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.ferma-farm__head .h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 55px; }
.ferma-farm__lead {
  margin: 0;
  max-width: 1146px;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}
.ferma-farm__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ferma-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.ferma-feature p {
  margin: 0;
  color: var(--accent);
  font-size: 16px;
  line-height: 24px;
}

.ferma-photos__viewport { overflow: hidden; }
.ferma-photos__track {
  display: flex;
  gap: 30px;
  transition: transform 0.35s ease;
}
.ferma-photos__item {
  position: relative;
  flex: 0 0 558px;
  width: 558px;
  height: 440px;
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
}
.ferma-photos__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ferma-photos__label {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 31px;
  background: var(--accent);
  color: var(--black-text);
  font-size: 16px;
  line-height: 24px;
}
.ferma-photos__nav,
.ferma-products__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}
.ferma-arrow {
  width: 57px;
  height: 57px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  cursor: pointer;
}
.ferma-arrow:hover { background: rgba(255, 255, 255, 0.1); }
.ferma-dots { display: flex; gap: 16px; align-items: center; }
.ferma-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.ferma-dot.is-active { background: var(--accent); }

.ferma-split + .ferma-products {
  margin-top: -48px;
}

/* ═══ PRODUCTS ═══ */
.ferma-products__row {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}
.ferma-products__intro {
  flex: 0 0 558px;
  max-width: 558px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  text-align: left;
}
.ferma-products__intro p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}
.ferma-plus {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 462px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ferma-plus li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  color: var(--accent);
  font-size: 16px;
  line-height: 24px;
}

.ferma-products__slider {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.ferma-products__viewport {
  position: relative;
  overflow: hidden;
}
.ferma-products__track {
  display: flex;
  gap: 32px;
  transition: transform 0.35s ease;
}
.ferma-product {
  position: relative;
  flex: 0 0 400px;
  width: 400px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg-card);
}
.ferma-product::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ferma-product.is-next::after,
.ferma-product.is-dim::after {
  opacity: 1;
  background: linear-gradient(to left, rgba(50, 50, 50, 1) 0%, rgba(50, 50, 50, 0) 76%);
}
.ferma-product.is-next,
.ferma-product.is-dim {
  filter: brightness(0.85);
}
.ferma-product.is-next .ferma-product__img,
.ferma-product.is-dim .ferma-product__img {
  opacity: 0.5;
}
.ferma-product__img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.ferma-product__body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ferma-product__title {
  font-size: 24px;
  line-height: 1.2;
}
.ferma-product__lead {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}
.ferma-product__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ferma-product__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  line-height: 24px;
}

/* ═══ BENTO ═══ */
.ferma-approach { display: flex; flex-direction: column; }
.ferma-approach__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
  text-align: center;
}
.ferma-approach__head p {
  margin: 0;
  max-width: 1146px;
  font-size: 16px;
  line-height: 24px;
}
.ferma-bento {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 30px;
}
.ferma-bento__photo,
.ferma-bento__card {
  min-height: 338px;
  border-radius: 32px;
  overflow: hidden;
}
.ferma-bento__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ferma-bento__card {
  background: var(--bg-card);
  padding: 32px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25px;
}
.ferma-bento__card h3 {
  font-size: 32px;
  line-height: 1.15;
}
.ferma-bento__card p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}
.ferma-bento__photo--1,
.ferma-bento__card--3 { grid-column: span 5; }
.ferma-bento__card--1,
.ferma-bento__photo--3 { grid-column: span 3; }
.ferma-bento__card--2,
.ferma-bento__photo--2,
.ferma-bento__card--4,
.ferma-bento__photo--4 { grid-column: span 4; }

/* ═══ CTA — Figma: форма слева ═══ */
.ferma .section.cta { margin-bottom: 0; }
.ferma .cta-block {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 1144px;
  margin-inline: auto;
  border-radius: 8px;
  overflow: hidden;
}
.ferma .cta-block__media {
  flex: 1 1 487px;
  min-height: 520px;
  background-size: cover;
  background-position: center;
}
.ferma .cta-block__panel {
  flex: 0 0 657px;
  max-width: 657px;
  background: var(--accent);
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  box-sizing: border-box;
}
.ferma .cta__title,
.ferma .cta__title-row {
  font-family: var(--f-merit);
  font-weight: 400;
  color: #252525;
  margin: 0;
}
.ferma .cta__title-row {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 50px;
}
.ferma .cta__sub {
  font-size: 16px;
  line-height: 24px;
  color: #252525;
  margin: 0;
  max-width: 28em;
}
.ferma .cta__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  margin-top: 8px;
}
.ferma .cta__fields {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 24px;
}
.ferma .cta__field {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.3);
  box-sizing: border-box;
}
.ferma .cta__field input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: var(--black-text);
  outline: none;
}
.ferma .cta__actions {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.ferma .cta__btn {
  background: #3c3c3b;
  color: var(--accent);
  width: 100%;
}
.ferma .cta__btn:hover { background: #252525; color: var(--accent); }
.ferma .cta__agree {
  display: inline-flex;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}
.ferma .cta__agree input { position: absolute; opacity: 0; width: 0; height: 0; }
.ferma .cta__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid #1d1d1d;
  border-radius: 4px;
  box-sizing: border-box;
  position: relative;
}
.ferma .cta__agree input:checked + .cta__check { background: #1d1d1d; }
.ferma .cta__agree input:checked + .cta__check::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.ferma .cta__agree-text {
  font-size: 13px;
  font-weight: 300;
  line-height: 18px;
  color: #252525;
}
.ferma .cta__agree-text a { color: inherit; text-decoration: underline; }

@media (max-width: 1023px) {
  .ferma .cl { padding-inline: 24px; }
  .ferma-hero__main,
  .ferma-split__row,
  .ferma-products__row,
  .ferma .cta-block {
    flex-direction: column;
  }
  .ferma-split__row--reverse { flex-direction: column-reverse; }
  .ferma-hero__stats,
  .ferma-split__photo,
  .ferma-split__card,
  .ferma-products__intro,
  .ferma .cta-block__panel {
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
  }
  .ferma-split__photo,
  .ferma-split__card { height: auto; min-height: 0; }
  .ferma-split__photo { aspect-ratio: 558 / 440; }
  .ferma-farm__features { grid-template-columns: repeat(2, 1fr); }
  .ferma-bento { grid-template-columns: 1fr; }
  .ferma-bento__photo,
  .ferma-bento__card {
    grid-column: 1 / -1 !important;
    min-height: 260px;
  }
  .ferma-photos__item {
    flex-basis: 100%;
    width: 100%;
    height: 280px;
  }
  .ferma-product { flex-basis: 100%; width: 100%; }
}

@media (max-width: 768px) {
  .ferma { gap: 64px; }
  .ferma-hero { min-height: 0; }
  .ferma-hero__content { padding-top: 180px; }
  .ferma-hero__stats { justify-content: center; }
  .ferma-stat { width: calc(50% - 8px); }
  .ferma-farm__features { grid-template-columns: 1fr; }
  .ferma-hero__title { font-size: 32px; }
  .ferma-bento__card { padding: 28px 24px; }
  .ferma-bento__card h3 { font-size: 24px; }
  .ferma .cta-block__media { min-height: 280px; }
  .ferma .cta-block__panel { padding: 40px 24px; }
}
