@font-face {
  font-family: 'Helvetica';
  src: url('../fonts/HelveticaRegular.woff') format('woff');
  font-weight: 400; font-style: normal;
}
@font-face {
  font-family: 'Helvetica';
  src: url('../fonts/HelveticaBold.woff') format('woff');
  font-weight: 700; font-style: normal;
}

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

:root {
  --green: #2e8e4e;
  --green-dark: #148241;
  --orange: #e8804a;
  --dark: #2f3234;
  --grey: #586065;
  --bg: #ffffff;
  --container: 1200px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  color: var(--dark);
  background: var(--bg);
  overflow-x: hidden;
  max-width: 100%;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── HEADER (not sticky) ─── */
.header {
  position: relative;
  z-index: 20;
  background: #fff;
  height: 100px;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}
.header__logo { display: flex; align-items: center; }
.header__logo img { height: 56px; width: auto; }
.header__phone {
  margin-left: auto;
  margin-right: 90px;
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}
.header__phone:hover { color: var(--green-dark); }

/* ─── FLOATING STICKY BURGER ─── */
.burger {
  position: fixed;
  top: 30px;
  right: 32px;
  z-index: 100;
  width: 54px;
  height: 54px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: background .2s;
}
.burger:hover { background: var(--green-dark); }
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .3s;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 90vh;
  min-height: 640px;
  max-height: 900px;
  overflow: hidden;
}
.hero__video-wrap { position: absolute; inset: 0; z-index: 0; }
.hero__video-wrap iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 177.78vh;
  height: 100%;
  min-width: 100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero__fallback {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: -1;
}
.hero__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.32); z-index: 1; }
.hero__title {
  position: absolute;
  left: max(40px, calc((100vw - 1200px) / 2 + 40px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #fff;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
  text-align: left;
  max-width: 680px;
  width: calc(100% - 80px);
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
/* green menu box, bottom-right */
.hero__menu {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  background: var(--green);
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 32px 56px;
}
.hero__menu a {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity .2s;
}
.hero__menu a:hover { opacity: 0.7; }

/* ─── SECTION COMMON ─── */
.section { padding: 90px 0; }
.section-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 16px;
}
.section-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--green);
}

/* ─── PRODUCTS (carousel) ─── */
.products { padding: 80px 0; position: relative; }
.products__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}
.products__arrows {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-bottom: 14px;
}
.products__arrow {
  background: none; border: none; cursor: pointer;
  color: var(--orange);
  padding: 0;
  display: flex;
  align-items: center;
  transition: opacity .2s;
}
.products__arrow:hover { opacity: 0.6; }
.products__arrow svg { display: block; }

/* cards spill past right edge — body overflow-x:hidden prevents page scroll */
.products__viewport {
  overflow: visible;
}
.products__track {
  display: flex;
  gap: 24px;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.product-card {
  flex: 0 0 320px;
  position: relative;
  height: 440px;
  overflow: hidden;
}
.product-card__img { position: absolute; inset: 0; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__icon {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.product-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.product-card__name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 22px 24px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0) 100%);
}

/* ─── ABOUT ─── */
.about { padding: 90px 0; }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}
.about__title { margin-bottom: 28px; }
.about__lead { font-size: 16px; font-weight: 500; line-height: 1.6; color: var(--grey); margin-bottom: 22px; }
.about__body { font-size: 14px; line-height: 1.9; color: var(--grey); }
.about__body p + p { margin-top: 16px; }
.about__image { align-self: stretch; min-height: 500px; }
.about__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── ECOLOGY ─── */
.ecology__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.ecology__text .section-title { margin-bottom: 26px; }
.ecology__body { font-size: 14px; line-height: 1.9; color: var(--grey); }
.ecology__body p + p { margin-top: 16px; }
.ecology__image img { width: 100%; height: 460px; object-fit: cover; }

/* ─── INFO ─── */
.info__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.info__text .section-title { margin-bottom: 26px; }
.info__body { font-size: 14px; line-height: 1.9; color: var(--grey); margin-bottom: 36px; }
.info__image img { width: 100%; height: 480px; object-fit: cover; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 34px;
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: #000; }
.btn__arrow { display: inline-flex; }

/* ─── CONTACT ─── */
.contact { padding: 90px 0; }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: flex-start; }
.contact__title { font-size: 56px; font-weight: 700; line-height: 1.1; color: var(--green); }
.form { display: flex; flex-direction: column; gap: 22px; }
.form__field { display: flex; flex-direction: column; }
.form__label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--dark); margin-bottom: 8px; text-transform: uppercase;
}
.form__input {
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--dark);
  outline: none;
  background: #fff;
  transition: border-color .2s;
}
.form__input::placeholder { color: #b0b0b0; }
.form__input:focus { border-color: var(--green); }
.form__error {
  border: 1px solid #d9d9d9; border-radius: 2px; overflow: hidden;
}
/* intl-tel-input integration */
.form__field .iti { width: 100%; }
.form__field .iti__tel-input,
.form__field input.form__input.iti__tel-input {
  width: 100%;
}
.iti--inline-dropdown .iti__dropdown-content { border-radius: 4px; }
.form__msg {
  font-size: 14px; padding: 12px 16px; border-radius: 2px; display: none;
}
.form__msg--ok { display: block; background: #e6f4ea; color: var(--green-dark); }
.form__msg--err { display: block; background: #fdeaea; color: #b20000; }
.form .btn { align-self: flex-start; margin-top: 6px; }

/* ─── FOOTER ─── */
.footer { background: var(--green); color: #fff; padding: 70px 0 0; }
.footer__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: 60px; }
.footer__col-title { font-size: 24px; font-weight: 700; margin-bottom: 28px; }
.footer__links { display: flex; flex-direction: column; gap: 14px; }
.footer__links a { font-size: 15px; color: rgba(255,255,255,0.92); transition: opacity .2s; }
.footer__links a:hover { opacity: 0.65; }
.footer__address { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.92); margin-bottom: 24px; }
.footer__contact { display: flex; align-items: center; gap: 12px; font-size: 16px; margin-bottom: 16px; }
.footer__contact-icon { width: 26px; height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.footer__contact-icon svg { width: 100%; height: 100%; }
.footer__socials { display: flex; gap: 14px; margin-top: 26px; }
.footer__social {
  width: 40px; height: 40px; background: var(--dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.footer__social:hover { background: #000; }
.footer__social svg { width: 18px; height: 18px; fill: #fff; }
.footer__bottom { background: #141414; text-align: center; padding: 18px; font-size: 13px; color: #888; }

/* ─── FLOATING CONTACT WIDGET ─── */
.fab {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 90;
}
.fab__toggle {
  width: 56px; height: 56px;
  background: #1a8fe3;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform .2s, background .2s;
}
.fab__toggle:hover { background: #1379c4; }
.fab__toggle svg { width: 26px; height: 26px; fill: #fff; }
.fab__toggle .fab__icon-close { display: none; }
.fab.open .fab__toggle .fab__icon-open { display: none; }
.fab.open .fab__toggle .fab__icon-close { display: block; }
.fab.open .fab__toggle { background: #fff; }
.fab.open .fab__toggle svg { fill: #2f3234; }

.fab__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  padding: 24px 28px 28px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.fab.open .fab__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.fab__title { text-align: center; font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 22px; }
.fab__links { display: flex; justify-content: center; gap: 26px; }
.fab__link { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fab__link-icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.fab__link:hover .fab__link-icon { transform: scale(1.08); }
.fab__link-icon svg { width: 26px; height: 26px; fill: #fff; }
.fab__link-icon--wa { background: #25d366; }
.fab__link-icon--mail { background: #1a8fe3; }
.fab__link-icon--phone { background: #0c5273; }
.fab__link-label { font-size: 13px; color: var(--grey); }

/* ─── MOBILE NAV — right slide-in panel ─── */
.mobile-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 100vw);
  background: var(--green);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  padding: 40px 48px;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }

/* backdrop */
.mobile-nav__backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 199;
}
.mobile-nav__backdrop.open { display: block; }

/* top: logo + close */
.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}
.mobile-nav__logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.mobile-nav__close {
  width: 40px; height: 40px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}
.mobile-nav__close::before, .mobile-nav__close::after {
  content: ''; position: absolute; top: 50%; left: 4px;
  width: 32px; height: 2px; background: #fff; border-radius: 2px;
}
.mobile-nav__close::before { transform: translateY(-50%) rotate(45deg); }
.mobile-nav__close::after  { transform: translateY(-50%) rotate(-45deg); }

/* nav links */
.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.mobile-nav__links a {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 8px 0;
  transition: opacity .2s;
}
.mobile-nav__links a:hover { opacity: 0.7; }

/* bottom: socials + lang */
.mobile-nav__bottom {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-nav__socials {
  display: flex;
  gap: 16px;
}
.mobile-nav__socials a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  transition: border-color .2s;
}
.mobile-nav__socials a:hover { border-color: #fff; }
.mobile-nav__socials svg { width: 16px; height: 16px; fill: #fff; }
.mobile-nav__langs {
  display: flex;
  gap: 12px;
}
.mobile-nav__langs a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 0;
  transition: color .2s;
  border-bottom: 2px solid transparent;
}
.mobile-nav__langs a.active,
.mobile-nav__langs a:hover { color: #fff; border-color: #fff; }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .header__phone { font-size: 20px; margin-right: 80px; }
  .hero__title { font-size: 38px; left: 40px; max-width: 560px; }
  .hero__menu { gap: 24px; padding: 20px 24px; }
  .hero__menu a { font-size: 14px; }
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__image { min-height: 320px; }
  .ecology__inner, .info__inner, .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  /* ── HERO: заголовок по центру поверх фона ── */
  .hero { height: 80vh; min-height: 420px; }
  .hero__title {
    font-size: 28px;
    left: 20px;
    max-width: calc(100% - 40px);
    width: auto;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  /* hero-меню дублирует бургер — на мобиле скрываем (навигация в бургере) */
  .hero__menu { display: none; }

  .section { padding: 56px 0; }
  .products { padding: 48px 0; }
  .about { padding: 48px 0; }
  .contact { padding: 56px 0; }
  .section-title, .contact__title { font-size: 30px; }

  /* ── CAROUSEL: нативный свайп, карточки на весь экран ── */
  .products__head { padding: 0 4px; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
  .products__arrows { width: 100%; padding-bottom: 0; }
  .products__viewport { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .products__viewport::-webkit-scrollbar { display: none; }
  .products__viewport { scrollbar-width: none; }
  .products__track { transform: none !important; gap: 0; padding: 0; }
  .product-card { flex: 0 0 100vw; height: 420px; scroll-snap-align: start; }

  .footer__inner { grid-template-columns: 1fr; }

  /* floating elements: shrink + tighten so they don't crowd content */
  .burger { width: 46px; height: 46px; top: 20px; right: 16px; }
  .header { height: auto; }
  .header__inner { height: auto; flex-direction: column; gap: 8px; padding: 16px 0; }
  .header__phone { font-size: 20px; margin: 0; }
  .header__logo img { height: 44px; }
  .fab { right: 16px; bottom: 16px; }
  .fab__toggle { width: 50px; height: 50px; }
  .fab__panel { min-width: min(280px, calc(100vw - 32px)); right: 0; }
  .footer__bottom { padding-bottom: 80px; }
}

@media (max-width: 380px) {
  .header__phone { font-size: 18px; }
  .header__logo img { height: 40px; }
  .hero__title { font-size: 26px; }
}
