/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; line-height: 1.5; color: #111; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, button { font-size: inherit; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== HEADER ========== */
.site-header { background: #fff; height: 117px; position: relative; z-index: 100; border-bottom: 1px solid #eee; overflow: visible; padding-top: 3mm; box-sizing: border-box; }
.header-mobile { display: none; background: #fff; padding: 24px 20px; border-bottom: 1px solid #eee; }
.header-mobile .menuburger { width: 28px; height: 20px; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.header-mobile .menuburger span { display: block; height: 3px; background: #111; border-radius: 2px; transition: 0.3s; }
.header-mobile .menuburger.menuburger-opened span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header-mobile .menuburger.menuburger-opened span:nth-child(2),
.header-mobile .menuburger.menuburger-opened span:nth-child(3) { opacity: 0; }
.header-mobile .menuburger.menuburger-opened span:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }

.header-main { height: 117px; overflow: visible; }
.header-container { display: flex; align-items: center; justify-content: space-between; height: 117px; padding: 0 24px; max-width: 1200px; margin: 0 auto; overflow: visible; }
.header-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo-wrapper { flex-shrink: 0; line-height: 0; }
.logo-img { height: 155px; width: auto; max-width: 320px; display: block; object-fit: contain; }
.logo-descr { font-size: 20px; color: #090909; text-transform: uppercase; letter-spacing: 0.15em; }
.header-right { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.header-phone, .header-address { display: flex; align-items: center; gap: 12px; padding-right: 24px; }
a.header-phone { text-decoration: none; color: inherit; cursor: pointer; }
a.header-phone:hover { opacity: 0.85; }
a.header-address { text-decoration: none; color: inherit; cursor: pointer; }
a.header-address:hover { opacity: 0.85; }
.header-icon-wrap { display: inline-flex; width: 34px; flex-shrink: 0; color: #398a14; }
.header-icon-wrap .icon { width: 26px; height: 26px; }
.header-text { font-size: 15px; color: #111; line-height: 1.4; }

@media (max-width: 980px) {
  .header-main { display: none; }
  .header-main.menu-visible { display: block; position: absolute; top: 0; left: 0; right: 0; background: #fff; border-bottom: 1px solid #eee; }
  .header-mobile { display: block; }
  .header-container { flex-wrap: wrap; padding: 24px 20px; height: auto; min-height: 155px; }
}

/* ========== COVER / HERO ========== */
.cover { position: relative; min-height: 500px; background-size: cover; background-position: center; background-repeat: no-repeat; }
.cover__filter { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(129,190,37,0), rgba(129,190,37,0)); pointer-events: none; }
.cover__filter--dark { background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.7)); }
.cover__inner { position: relative; z-index: 1; }
.cover__wrapper { min-height: 500px; display: flex; align-items: center; }
.cover__wrapper--contacts { min-height: 600px; align-items: center; }

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; width: 100%; max-width: 1100px; }
.hero-left { padding: 40px 0 40px 24px; max-width: 540px; }
.hero-title { margin: 0; font-size: 32px; line-height: 1.25; color: #fff; font-weight: 800; }
.hero-title strong { font-size: 82px; line-height: 70px; display: block; margin-bottom: 12px; }
.hero-subtitle { font-size: 32px; font-weight: 400; line-height: 1.35; margin: 0 0 20px; display: block; }
.hero-descr { margin: 0; font-size: 18px; line-height: 1.5; color: #f0eeeb; padding-top: 8px; }

.hero-right { display: flex; justify-content: flex-end; }
.form-block { background: #398a14; padding: 30px; border-radius: 13px; max-width: 380px; width: 100%; }
.form-title { margin: 0; font-size: 24px; color: #fff; }
.form-descr { margin: 10px 0 20px; font-size: 14px; color: #fff; }
.form .form-row { margin-bottom: 12px; }
.form input { width: 100%; padding: 14px 16px; border: none; border-radius: 8px; font-size: 16px; background: #fff; }
.form-footer { margin: 15px 0 0; font-size: 12px; color: #fff; }
.btn { display: inline-block; padding: 14px 28px; font-weight: 600; border-radius: 10px; transition: 0.2s; }
.btn-submit { color: #fff; background: #1c1c1c; width: 100%; font-size: 16px; }
.btn-submit:hover { background: #333; }

/* Honeypot (антиспам) */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-right { justify-content: center; }
  .hero-title strong { font-size: 42px; line-height: 1.2; }
  .hero-subtitle { font-size: 22px; }
}

@media (max-width: 640px) {
  .cover { min-height: 400px; }
  .cover__wrapper { min-height: 400px; }
  .hero-title strong { font-size: 32px; }
  .hero-subtitle { font-size: 18px; }
}

/* ========== SECTIONS ========== */
.section { padding: 45px 0 75px; background: #fff; }
.section-cards { padding-top: 15px; padding-bottom: 30px; }
.section-title-only { padding: 120px 0 0; }
.section-title-only .section-descr-center { font-size: 26px; color: #000; font-weight: 600; text-align: center; max-width: 600px; margin: 0 auto 75px; }
.section-services { background: #398a14; padding: 90px 0 80px; }
.section-services .section-title { margin-bottom: 40px; }
.section-services .section-descr { margin-bottom: 80px; }
.section-dark { background: #1c1c1c; padding: 105px 0 75px; }
.section-reviews { background: #398a14; padding: 105px 0 90px; }
.section-clients { padding: 120px 0 105px; }

.section-title { font-size: 46px; font-weight: 800; color: #000; text-align: center; margin: 0 0 20px; }
.section-title--light { color: #fff; }
.section-descr { font-size: 26px; color: #000; text-align: center; max-width: 560px; margin: 0 auto 40px; line-height: 1.4; }
.section-descr--light { color: #fff; }
.section-reviews .section-title { margin-bottom: 90px; }
.section-clients .section-title { margin-bottom: 40px; }
.section-clients .section-descr { margin-bottom: 105px; }

@media (max-width: 960px) {
  .section-services .section-descr { margin-bottom: 45px; }
  .section-title { font-size: 32px; margin-bottom: 20px; }
  .section-reviews .section-title { margin-bottom: 40px; }
}

/* ========== CARDS ========== */
.cards-row { display: grid; gap: 30px; }
.cards-row--3 { grid-template-columns: repeat(3, 1fr); }
.card-item { list-style: none; }
.card-content { text-align: left; }
.card-icon { margin-bottom: 15px; }
.card-title { font-size: 18px; font-weight: 600; margin: 0 0 10px; color: #000; }
.cards-row--light .card-title,
.cards-row--light .card-descr { color: #fff; }
.card-descr { font-size: 14px; line-height: 1.6; margin: 0; color: #333; }

@media (max-width: 980px) {
  .cards-row--3 { grid-template-columns: 1fr; }
}

/* ========== CAROUSEL ========== */
.section-carousel { padding: 50px 0 70px; }
.carousel { position: relative; max-width: 1400px; width: 100%; margin: 0 auto; padding: 0 24px; }
.carousel__viewport { overflow: hidden; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.carousel__track { display: flex; transition: transform 0.5s ease-out; }
.carousel__slide { flex: 0 0 100%; min-width: 0; }
.carousel__slide img { width: 100%; height: auto; max-height: 620px; object-fit: cover; display: block; vertical-align: top; aspect-ratio: 16 / 9; }
@media (max-width: 980px) {
  .section-carousel { padding: 40px 0 55px; }
  .carousel { padding: 0 20px; }
  .carousel__slide img { max-height: 480px; }
}
@media (max-width: 640px) {
  .section-carousel { padding: 28px 0 40px; }
  .carousel { padding: 0 16px; }
  .carousel__viewport { border-radius: 12px; }
  .carousel__slide img { max-height: 300px; aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  .section-carousel { padding: 20px 0 32px; }
  .carousel { padding: 0 12px; }
  .carousel__slide img { max-height: 240px; }
}

/* ========== ACCORDION ========== */
.accordion-wrap { max-width: 800px; margin: 0 auto; }
.accordion-item { margin-bottom: 2px; background: #fff; overflow: hidden; }
.accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; text-align: left; font-size: 24px; font-weight: 600; color: #161716; background: #fff; cursor: pointer; border: none; }
.accordion-icon { font-size: 28px; line-height: 1; transition: transform 0.3s; }
.accordion-item.is-open .accordion-icon { transform: rotate(45deg); }
.accordion-content { background: #fff; display: none; }
.accordion-item.is-open .accordion-content { display: block; }
.accordion-text { padding: 20px 24px; font-size: 16px; line-height: 1.7; color: #333; border-top: 1px solid #eee; }

/* ========== IMAGE + TEXT BLOCKS ========== */
.block-image-text { padding-top: 0; padding-bottom: 150px; }
.block-image-text:first-of-type { padding-bottom: 150px; }
.block-image-text:has(+ .block-image-text) { padding-bottom: 0; }
.block-image-text + .block-image-text { padding-top: 0; }
.row-image-text { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; align-items: stretch; max-width: 1000px; margin: 0 auto; border: 1px solid #d1d1d1; border-radius: 4px; overflow: hidden; }
.block-image-text--reverse .row-image-text { grid-template-columns: 1.2fr 1fr; }
.block-image-text--reverse .col-text { order: 1; }
.block-image-text--reverse .col-image { order: 2; }
.col-image { min-height: 320px; background-size: cover; background-position: center; }
.col-text { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.block-title { font-size: 22px; font-weight: 600; margin: 0 0 15px; }
.block-descr { font-size: 16px; line-height: 1.6; margin: 0; color: #333; }

/* ========== MANUFACTURERS (logocofe) ========== */
.section-manufacturers { padding: 60px 0 80px; }
.section-manufacturers .section-descr-center { margin-bottom: 50px; }
.manufacturers-logos { display: flex; flex-direction: column; gap: 32px; }
.manufacturers-row { overflow: hidden; }
.manufacturers-track { display: flex; width: max-content; }
.manufacturers-track-inner { display: flex; flex-wrap: nowrap; align-items: center; gap: 28px; flex: 0 0 auto; padding: 0 14px; }
.manufacturers-row--top .manufacturers-track { animation: manufacturers-scroll-right 90s linear infinite; }
.manufacturers-row--bottom .manufacturers-track { animation: manufacturers-scroll-left 90s linear infinite; }
@keyframes manufacturers-scroll-right {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes manufacturers-scroll-left {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.manufacturer-logo { max-width: 120px; max-height: 60px; width: auto; height: auto; object-fit: contain; opacity: 0.85; transition: opacity 0.2s; flex-shrink: 0; }
.manufacturer-logo:hover { opacity: 1; }
@media (max-width: 640px) {
  .section-manufacturers { padding: 40px 0 55px; }
  .manufacturers-logos { gap: 24px; }
  .manufacturers-track-inner { gap: 20px; padding: 0 10px; }
  .manufacturer-logo { max-width: 90px; max-height: 48px; }
  .manufacturers-row--top .manufacturers-track { animation-duration: 70s; }
  .manufacturers-row--bottom .manufacturers-track { animation-duration: 70s; }
}

@media (max-width: 768px) {
  .row-image-text,
  .block-image-text--reverse .row-image-text { grid-template-columns: 1fr; }
  .col-image { min-height: 250px; order: 0; }
  .col-text { order: 1; padding: 24px; }
}

/* ========== CLIENTS ========== */
.clients-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 36px; }
.client-badge { display: flex; align-items: center; justify-content: center; padding: 36px 48px; background: #fff; border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.06); transition: transform 0.25s ease, box-shadow 0.25s ease; min-height: 130px; }
.client-badge:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.client-logo { max-width: 260px; max-height: 100px; width: auto; height: auto; object-fit: contain; filter: grayscale(40%); opacity: 0.9; transition: filter 0.25s ease, opacity 0.25s ease; }
.client-badge:hover .client-logo { filter: grayscale(0); opacity: 1; }
@media (max-width: 640px) {
  .clients-row { gap: 24px; }
  .client-badge { padding: 24px 32px; min-height: 100px; border-radius: 16px; }
  .client-logo { max-width: 180px; max-height: 72px; }
}

/* ========== REVIEWS ========== */
.reviews-list { max-width: 800px; margin: 0 auto; }
.review-item { display: grid; grid-template-columns: 80px 1fr; gap: 20px; align-items: start; margin-bottom: 50px; }
.review-item--right { grid-template-columns: 1fr 80px; }
.review-item--right .review-bubble { order: 1; }
.review-item--right .review-avatar { order: 2; }
.review-avatar { width: 80px; height: 80px; border-radius: 50%; background-size: cover; background-position: center; flex-shrink: 0; }
.review-bubble { background: #fff; padding: 24px; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.review-name { font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.review-meta { font-size: 14px; color: #666; margin-bottom: 10px; }
.review-text { font-size: 15px; line-height: 1.6; color: #333; }

@media (max-width: 640px) {
  .review-item,
  .review-item--right { grid-template-columns: 1fr; }
  .review-avatar { margin: 0 auto; }
  .review-item--right .review-bubble { order: 1; }
  .review-item--right .review-avatar { order: 2; margin: 0 auto; }
}

/* ========== CONTACTS COVER ========== */
.cover--contacts { min-height: 600px; }
.cover--contacts .cover__wrapper { justify-content: center; align-items: center; }
.contacts-content { max-width: 728px; width: 100%; margin: 0 auto; padding: 52px 56px; background: #fff; border-radius: 16px; text-align: center; box-shadow: none; }
.contacts-title { font-size: 36px; color: #111; margin: 0 0 24px; font-weight: 700; }
.contacts-text { font-size: 18px; color: #333; line-height: 1.8; margin-bottom: 24px; }
.contacts-social { margin: 0 0 24px; }
.social-link { display: inline-flex; color: #111; }
.social-link:hover { color: #398a14; }
.social-link svg { width: 30px; height: 30px; }
.contacts-map-wrap { position: relative; display: block; width: 100%; margin-top: 24px; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; }
.contacts-map-wrap:hover .contacts-map-link-hint { opacity: 1; }
.contacts-map { width: 100%; height: 380px; border: none; display: block; pointer-events: none; }
.contacts-map-link-hint { position: absolute; bottom: 12px; right: 12px; padding: 8px 14px; background: rgba(255,255,255,0.95); border-radius: 8px; font-size: 14px; font-weight: 500; color: #398a14; box-shadow: 0 2px 8px rgba(0,0,0,0.1); opacity: 0.85; transition: opacity 0.2s; }

@media (max-width: 640px) {
  .cover--contacts { min-height: 400px; }
  .cover__wrapper--contacts { min-height: 400px; }
  .contacts-content { padding: 36px 24px; }
  .contacts-title { font-size: 28px; }
  .contacts-map { height: 280px; }
}

/* Footer */
.site-footer { padding: 24px 0; background: #1c1c1c; }
.footer-text { margin: 0; font-size: 14px; color: #888; text-align: center; }

/* Кнопка «Наверх» */
.btn-top { position: fixed; bottom: 24px; right: 24px; z-index: 100; width: 48px; height: 48px; padding: 0; border: none; border-radius: 50%; background: #398a14; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(57,138,20,0.4); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s, background 0.2s; }
.btn-top.is-visible { opacity: 1; visibility: visible; }
.btn-top:hover { background: #2d6b10; }
.btn-top svg { display: block; }
