/* ===== Базовые настройки. Фирменные цвета поменяйте в переменных ===== */
:root {
  --color-primary: #62a83d;   /* основной фирменный */
  --color-accent:  #60a43c;   /* акцентный (кнопки) */
  --color-dark:    #1b2a1d;
  --color-black:   #000;  
  --color-light:   #f4f7f4;
  --color-text:    #222;
  --font: "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--color-text); line-height: 1.6; }
img { max-width: 100%; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
section { padding: 70px 0; }
h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 30px; text-align: center; color: var(--color-primary); }
h3 { font-size: clamp(20px, 3vw, 26px); margin: 30px 0 16px; }

/* ===== Кнопки ===== */
.btn {
  display: inline-block; padding: 14px 32px; border: none; border-radius: 8px;
  font-size: 17px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.btn--accent  { background: var(--color-accent); color: #fff; }
.btn--outline { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }

/* ===== 1.1 Hero ===== */
.hero {
  position: relative; height: 100vh; height: 100dvh;
  background: url("../img/hero.jpg") center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.hero__content { position: relative; color: #fff; padding: 20px; max-width: 800px; }
.hero__content h1 { font-size: clamp(40px, 8vw, 72px); letter-spacing: 2px; margin-bottom: 16px; text-shadow: 3px 3px 5px #62a83d, 0 0 2em #62a83d;}
.hero__sub { font-size: clamp(16px, 2.5vw, 22px); margin-bottom: 6px; text-shadow: 2px 2px 3px #62a83d, 0 0 2em #62a83d; }
.hero__features {
  list-style: none; margin: 24px 0 32px; font-size: clamp(15px, 2vw, 20px); font-weight: 600; text-shadow: 2px 2px 3px #62a83d, 0 0 2em #62a83d; 
}
.hero__features li { padding: 4px 0; }
.hero__features li::before { content: "✔ "; color: var(--color-accent); }
.hero__scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 26px; text-decoration: none; animation: bounce 1.6s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 10px); }
}

/* ===== 1.2 Вступление ===== */
.intro { background: var(--color-light); text-align: center; }
.intro p { max-width: 760px; margin: 0 auto 14px; font-size: clamp(17px, 2.2vw, 21px); }
.intro__accent { color: var(--color-primary); font-weight: 700; }

/* ===== 1.3 Преимущества ===== */
.advantages__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.adv-card {
  background: #fff; border-radius: 12px; padding: 28px 22px; text-align: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.08); transition: transform .2s;
}
.adv-card:hover { transform: translateY(-6px); }
.adv-card img { width: 100px; height: 100px; margin: 0 auto 16px; object-fit: contain; }
.adv-card h3 { margin: 0 0 10px; font-size: 19px; color: var(--color-primary); }
.adv-card p { font-size: 15px; }
@media (max-width: 900px) { .advantages__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .advantages__grid { grid-template-columns: 1fr; } }

/* ===== 1.4 Универсальность ===== */
.universal { background: var(--color-black); color: #fff}
.universal__row { display: flex; align-items: center; gap: 40px; }
.universal__img, .universal__text { flex: 1; }
.universal__text h2 { text-align: left;  }
@media (max-width: 768px) {
  .universal__row { flex-direction: column; }
  .universal__text h2 { text-align: center; }
}





/* ===== 1.5 Видео ===== */
.video__wrap {
  position: relative; padding-bottom: 56.25%; height: 0; border-radius: 12px; overflow: hidden;
}
.video__wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 40px;
}
.video__grid iframe {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}  
  
/* ===== 2.1 ===== */
.pick { text-align: center; }
.pick p { max-width: 760px; margin: 0 auto; font-size: 18px; }

/* ===== 2.2–2.4 Галереи ===== */
.gallery { background: var(--color-light); }
.gallery h3 { text-align: center; color: var(--color-primary); text-transform: uppercase; }
.gallery__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 40px;
}
.gallery__grid img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.gallery__grid img:hover { transform: scale(1.04); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
@media (max-width: 768px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Лайтбокс ===== */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 1000;
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox__close {
  position: absolute; top: 16px; right: 24px; font-size: 42px; color: #fff;
  background: none; border: none; cursor: pointer;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 36px; color: #fff; background: rgba(255,255,255,.12);
  border: none; border-radius: 50%; width: 56px; height: 56px; cursor: pointer;
}
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

/* ===== 2.5 Карусель ===== */
.carousel { position: relative; display: flex; align-items: center; gap: 10px; }
.carousel__track {
  display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track img {
  flex: 0 0 calc((100% - 28px) / 3);
  aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px;
}
@media (max-width: 768px) { .carousel__track img { flex: 0 0 calc((100% - 14px) / 2); } }
@media (max-width: 480px) { .carousel__track img { flex: 0 0 100%; } }
.carousel__btn {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--color-primary); color: #fff; font-size: 20px; cursor: pointer;
}

/* ===== Блок 3. Действие ===== */
.action { background: var(--color-dark); color: #fff; }
.action h2 { color: #fff; }
.action__choice {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px;
}
.action .btn--outline { color: #fff; border-color: var(--color-accent); }

.form {
  max-width: 760px; margin: 0 auto; background: #fff; color: var(--color-text);
  border-radius: 14px; padding: 34px 30px;
}
.form--hidden { display: none; }
.form h3 { margin-top: 0; color: var(--color-primary); }

.form fieldset { border: none; margin-bottom: 22px; }
.form legend { font-weight: 700; margin-bottom: 10px; font-size: 17px; }

.opt { display: inline-flex; align-items: center; margin: 4px 12px 4px 0; cursor: pointer; }
.opt input[type=radio], .opt input[type=checkbox] { margin-right: 6px; accent-color: var(--color-primary); }
.opt span { user-select: none; }

.blocks { display: flex; flex-direction: column; gap: 6px; }
.opt--block { justify-content: flex-start; }
.opt__qty {
  width: 58px; margin-left: 12px; padding: 4px 6px;
  border: 1px solid #ccc; border-radius: 6px; text-align: center;
}
.opt__qty:disabled { opacity: .4; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.form__row input {
  padding: 12px 14px; border: 1px solid #ccc; border-radius: 8px; font-size: 16px; width: 100%;
}
.form__row input:invalid:not(:placeholder-shown) { border-color: #d33; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.form__agree { display: block; font-size: 14px; margin-bottom: 18px; cursor: pointer; }
.form__agree a { color: var(--color-primary); }

.form__success { display: none; color: var(--color-primary); font-weight: 700; margin-top: 16px; }
.form__error   { display: none; color: #d33; font-weight: 600; margin-top: 16px; }

/* ===== Блок 4. Компания ===== */
.company { background: var(--color-light); padding-top: 70px; }
.company__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 50px;
}
.company h2 { text-align: left; font-size: 24px; }
.company__contacts a { color: var(--color-primary); font-size: 18px; text-decoration: none; }
@media (max-width: 700px) { .company__grid { grid-template-columns: 1fr; } }

.company__map iframe { width: 100%; height: 380px; border: 0; display: block; }
.company__copy { background: var(--color-dark); color: #aaa; text-align: center; padding: 18px; font-size: 14px; }