/* =========================================================
   Base
   ========================================================= */
:root {
  --color-green: #60b234;
  --color-black: #000;
  --color-text: #5d5d5d;
  --color-muted: #7d7d7d;
  --color-surface: #efefef;
  --color-placeholder: #a6a6a6;
  --color-white: #fff;

  --font-base: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-digits: "Poppins", "Montserrat", Arial, sans-serif;

  --container: 1240px;
  --gutter: 20px;
  --radius: 10px;
  --section-gap: clamp(64px, 7vw, 60px);
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.45;
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-section { margin-block: var(--section-gap); }
.page-section:first-child { margin-top: 32px; }

/* ---------- Общие элементы ---------- */
.title {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-black);
}

.lead {
  margin: 20px 0 0;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.45;
  color: var(--color-text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 220px;
  min-height: 72px;
  padding: 0 28px;
  border: 2px solid var(--color-green);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-black);
  text-decoration: none;
  background: var(--color-white);
  transition: background-color .2s, color .2s;
}

.button__icon { flex-shrink: 0; transition: transform .25s; }

.button:hover { background: var(--color-green); color: var(--color-white); }
.button:hover .button__icon { transform: rotate(90deg); }

.button:focus-visible,
.products__card:focus-visible,
.products__all:focus-visible,
.gallery__viewport:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 3px;
}

/* =========================================================
   about — О производстве
   ========================================================= */
.about{
  margin-bottom: 0!important;
  padding-bottom: 0!important;
}
.page-section{
  margin-top: 0!important;
}
.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 60px;
  align-items: start;
}

.about__title { font-size: clamp(26px, 2.4vw, 38px); }

.about__text {
  max-width: 540px;
  margin-top: 26px;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.45;
  color: var(--color-muted);
}

.about__text p { margin: 0 0 1em; }
.about__text p:last-child { margin-bottom: 0; }

.about__media {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 547 / 371;
}

.about__image { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   products — Наши продукты
   ========================================================= */
.products__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 36px;
  margin-bottom: 40px;
}

.products__title {
  margin: 0;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
}

.products__all {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-green);
  text-decoration: none;
}

.products__all:hover { text-decoration: underline; }

.products__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.products__item--wide { grid-column: span 2; }

.products__card {
  position: relative;
  display: flex;
  align-items: start;
  height: 192px;
  padding: 22px 30px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  color: var(--color-white);
  text-decoration: none;
}

.products__image {
  position: absolute;
  inset: 0;
  opacity: .5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.products__card:hover .products__image { transform: scale(1.04); }

.products__name {
  position: relative;
  font-size: clamp(16px, 1.5vw, 24px);
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

/* =========================================================
   gallery — слайдер фото производства
   ========================================================= */
.gallery { --slide-w: min(972px, 78vw); --slide-gap: 40px; }

.gallery__viewport {
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

.gallery__track {
  display: flex;
  gap: var(--slide-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
}

.gallery__track.is-animated { transition: transform .5s cubic-bezier(.25, .8, .3, 1); }

.gallery__slide {
  flex: 0 0 var(--slide-w);
  aspect-ratio: 972 / 551;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery__slide.is-active { cursor: grab; }
.gallery__viewport.is-dragging .gallery__slide { cursor: grabbing; }

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* =========================================================
   release-forms — Доступные формы выпуска
   ========================================================= */
.release-forms__list {
  display: grid;
  gap: clamp(40px, 3vw, 48px);
  margin: 70px 0 0;
  padding: 0;
  list-style: none;
}

.release-forms__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "content media";
  align-items: center;
  gap: 40px;
}

.release-forms__item--reverse { grid-template-areas: "media content"; }

.release-forms__content {
  grid-area: content;
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 50px);
}

.release-forms__number {
  flex: 0 0 auto;
  min-width: .55em;
  margin-top: -.12em;
  font-size: clamp(120px, 20vw, 340px);
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.02em;
  color: var(--color-green);
}

.release-forms__body { padding-top: 8px; max-width: 420px; }

.release-forms__name {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.release-forms__text {
  margin: 22px 0 0;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.45;
  color: var(--color-muted);
}

.release-forms__button { margin-top: 30px; }

.release-forms__media {
  grid-area: media;
  display: flex;
  justify-content: center;
}

.release-forms__image { width: 100%; max-width: 460px; }
.release-forms__media--portrait .release-forms__image { max-width: 300px; }

/* =========================================================
   stages — Этапы сотрудничества
   ========================================================= */
.stages__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 25px;
  margin: 80px 0 0;
  padding: 0;
  list-style: none;
}

.stages__item {
  position: relative;
  isolation: isolate;
  min-height: 300px;
  padding: 36px 25px 30px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-surface);
}

/* фирменный знак-водяной знак */
.stages__item::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 40px;
  left: 22px;
  width: 155px;
  height: 237px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 138 211'%3E%3Cpath fill='%23e7e7e7' d='M0 77 L0 210 L7 210 L8 209 L12 209 L13 208 L21 206 L31 201 L38 196 L48 186 L53 179 L58 169 L58 167 L61 160 L61 156 L62 155 L63 141 L62 140 L62 133 L61 132 L61 128 L60 127 L59 121 L56 116 L56 114 L54 112 L49 103 L38 92 L31 87 L16 80 L13 80 L8 78 L2 78ZM0 0 L0 11 L1 12 L2 20 L6 30 L12 39 L24 50 L27 51 L31 54 L33 54 L43 59 L55 67 L68 79 L68 80 L76 89 L79 95 L81 97 L84 103 L84 105 L87 110 L87 112 L89 116 L89 119 L90 120 L90 123 L91 124 L92 136 L93 138 L103 133 L110 128 L121 117 L126 110 L132 98 L132 96 L134 92 L134 89 L136 84 L136 76 L137 75 L136 60 L135 59 L135 55 L134 54 L134 51 L133 50 L132 45 L127 35 L118 23 L113 18 L102 10 L87 3 L84 3 L79 1 L74 1 L73 0Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.stages__number {
  display: block;
  font-family: var(--font-digits);
  font-size: 72px;
  font-weight: 300;
  line-height: 1;
  color: #262626;
}

.stages__name {
  margin: 24px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.stages__text {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
}

/* =========================================================
   seo-text
   ========================================================= */
.seo-text__content {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.5;
  color: var(--color-text);
}

.seo-text__content p { margin: 0 0 1em; }
.seo-text__content p:last-child { margin-bottom: 0; }

/* =========================================================
   benefits — Преимущества
   ========================================================= */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 35px;
  margin-top: 45px;
}

.benefits__item {
  position: relative;
  isolation: isolate;
  min-height: 292px;
  padding: 58px 40px 40px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-surface);
}

.benefits__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(145deg, #fff 0%, #d4ebc6 22%, #a9d78f 58%, var(--color-green) 100%);
  opacity: 0;
  transition: opacity .35s;
}

.benefits__item--active::before,
.benefits__item:not(.benefits__item--logo):hover::before { opacity: 1; }

.benefits__name {
  max-width: 280px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.05;
}

.benefits__text {
  max-width: 300px;
  margin: 30px 0 0;
  font-size: 13px;
  line-height: 1.4;
}

.benefits__item--logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefits__logo { width: 80%; max-width: 300px; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1200px) {
  .stages__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefits__item { padding: 44px 30px 32px; }
}

@media (max-width: 1024px) {
  .products__list { gap: 20px; }
  .products__card { height: 160px; padding: 18px 20px; }

  .release-forms__item,
  .release-forms__item--reverse { gap: 24px; }

  .benefits__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; }

  .about__inner { grid-template-columns: 1fr; }
  .about__text { max-width: none; margin-top: 16px; }

  .products__head { margin-bottom: 24px; }
  .products__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .products__item--wide { grid-column: span 1; }
  .products__card { height: 140px; padding: 16px; }

  .gallery { --slide-w: 84vw; --slide-gap: 12px; }

  .release-forms__list { margin-top: 40px; gap: 48px; }

  .release-forms__item,
  .release-forms__item--reverse {
    grid-template-columns: 1fr;
    grid-template-areas: "media" "content";
    gap: 16px;
  }

  .release-forms__image { max-width: 360px; }
  .release-forms__media--portrait .release-forms__image { max-width: 200px; }

  .stages__list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 70%);
    gap: 12px;
    margin: 40px calc(var(--gutter) * -1) 0;
    padding: 0 var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .stages__list::-webkit-scrollbar { display: none; }
  .stages__item { scroll-snap-align: start; min-height: 260px; }
}

@media (max-width: 600px) {
  .benefits__grid { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .benefits__item { min-height: 0; padding: 32px 24px; }
  .benefits__item--logo { min-height: 160px; }
}

@media (max-width: 480px) {
  .products__card { height: 120px; padding: 14px; }
  .products__name { font-size: 15px; line-height: 1.1; }

  .release-forms__number { font-size: 110px; }

  .button { min-width: 0; min-height: 56px; padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition-duration: .01ms !important; }
}
.hader__slider-btn.mr-10{
  background: var(--primary) !important;
  color: #fff!important;
}
.sertificates__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sertificates__list-item {
  width: 100%;
}

.sertificates__list-item a {
  display: block;
}

.sertificates__list-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .sertificates__list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}