/* ===== SmartMoo — ООО «Гроувел» ===== */
:root {
  --green-900: #12361f;
  --green-800: #1d5a35;
  --green-700: #24703f;
  --green-500: #4fa863;
  --green-300: #8fd36f;
  --green-100: #e8f3e3;
  --cream: #f5f8f1;
  --ink: #1b2a21;
  --muted: #5b6b60;
  --line: #dde6d8;
  --white: #fff;
  --danger: #c0392b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(18, 54, 31, .08);
  --header-h: 72px;
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--green-900); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  font: 600 16px/1.2 var(--font-head); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--green-300); outline-offset: 2px; }
.btn--primary { background: var(--green-700); color: var(--white); box-shadow: 0 6px 18px rgba(36, 112, 63, .3); }
.btn--primary:hover { background: var(--green-800); }
.btn--light { background: rgba(255, 255, 255, .92); color: var(--green-800); }
.btn--light:hover { background: var(--white); }
.btn--sm { padding: 10px 20px; font-size: 15px; }
.btn--lg { padding: 18px 36px; font-size: 18px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ===== Шапка ===== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(0, 0, 0, .05); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font: 800 20px/1 var(--font-head); letter-spacing: .08em; color: var(--green-800); }
.logo__sub { font: 600 11.5px/1.3 var(--font-body); color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font: 600 15px/1 var(--font-head); color: var(--ink); text-decoration: none; position: relative; padding: 6px 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green-500);
  transform: scaleX(0); transition: transform .2s;
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--green-900); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Первый экран ===== */
.hero {
  position: relative; min-height: min(100vh, 960px); min-height: min(100svh, 960px);
  padding: calc(var(--header-h) + 48px) 0 64px;
  display: flex; align-items: center; color: var(--white); overflow: hidden; isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 36, 20, .82) 0%, rgba(10, 36, 20, .55) 45%, rgba(10, 36, 20, .15) 100%),
    url("../img/hero-pasture.jpg") center 60% / cover no-repeat;
}
.hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 40px; }
.hero__kicker {
  display: inline-block; margin-bottom: 20px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  font: 600 14px/1.3 var(--font-head); letter-spacing: .02em;
}
.hero__title { font-size: clamp(56px, 9vw, 112px); font-weight: 800; color: var(--white); margin-bottom: .1em; letter-spacing: -.02em; }
.hero__title span { color: var(--green-300); }
.hero__subtitle { font: 700 clamp(20px, 2.6vw, 30px)/1.25 var(--font-head); margin-bottom: 12px; max-width: 560px; }
.hero__text { font-size: 18px; opacity: .9; margin-bottom: 32px; max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__product { position: relative; justify-self: center; max-width: 380px; width: 100%; }
.hero__product img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); animation: float 6s ease-in-out infinite; }
.hero__badge {
  position: absolute; right: 0; top: 18%;
  background: var(--white); color: var(--green-800); border-radius: 14px; padding: 10px 16px;
  font: 800 18px/1.15 var(--font-head); box-shadow: var(--shadow); text-align: center;
}
.hero__badge small { font: 600 12px/1 var(--font-body); color: var(--muted); }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero__product img { animation: none; } }

/* ===== Секции ===== */
.section { padding: 96px 0; }
.section--tint { background: var(--cream); }
.section--dark { background: var(--green-900); color: #e6efe2; }
.section--dark .section__title { color: var(--white); }
.section--dark .section__eyebrow { color: var(--green-300); }
.section__eyebrow { font: 700 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: .14em; color: var(--green-500); margin-bottom: 14px; }
.section__title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 20px; }
.section__lead { font-size: 19px; color: inherit; max-width: 760px; }
.section:not(.section--dark) .section__lead { color: #34463a; }
.subhead { font-size: 22px; margin: 48px 0 20px; }
.note { margin-top: 24px; font-size: 15px; color: var(--muted); max-width: 760px; }

/* карточки состава */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: transform .2s;
}
.card:hover { transform: translateY(-3px); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; margin-bottom: 18px; }
.card__icon svg { width: 28px; height: 28px; }
.card__title { font-size: 19px; margin-bottom: 10px; }
.card__list { font-weight: 600; color: var(--green-800); font-size: 15.5px; }
.card__text { color: var(--muted); font-size: 15.5px; margin: 0; }

.package {
  margin-top: 40px; display: flex; align-items: center; gap: 28px;
  background: linear-gradient(120deg, var(--green-100), #f6fbf2); border-radius: var(--radius); padding: 24px 32px;
}
.package__img { width: 96px; height: auto; flex: none; }
.package__title { font-size: 20px; margin-bottom: 6px; }
.package p { margin: 0; }

/* применение */
.usage { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.usage__item { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.usage__num { font: 800 14px/1 var(--font-head); color: var(--green-500); letter-spacing: .1em; }
.usage__item h3 { font-size: 20px; margin: 12px 0 8px; }
.usage__item p { margin: 0; color: #34463a; }
.storage { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.storage li {
  background: var(--white); border-radius: var(--radius); padding: 24px 20px; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.storage strong { font: 800 26px/1.1 var(--font-head); color: var(--green-800); }
.storage span { color: var(--muted); font-size: 15px; line-height: 1.4; }

/* исследования */
.research { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.highlight {
  margin-top: 28px; padding: 22px 26px; border-left: 4px solid var(--green-500);
  background: var(--green-100); border-radius: 0 var(--radius) var(--radius) 0; display: flex; flex-direction: column; gap: 4px;
}
.highlight strong { font: 800 20px/1.2 var(--font-head); color: var(--green-800); }
.highlight span { color: #34463a; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline__item:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.timeline__item { position: relative; padding: 0 0 26px 52px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--line);
}
.timeline__item.is-done::before {
  background: var(--green-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  border-color: var(--green-700);
}
.timeline__item h3 { font-size: 18px; margin-bottom: 4px; padding-top: 3px; }
.timeline__item p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* о компании */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.about__facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about__facts li { border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 14px; display: flex; flex-direction: column; }
.about__facts strong { font: 700 13px/1.4 var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--green-300); }

/* сотрудничество */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 56px; border-radius: 28px; color: #e6efe2;
  background:
    radial-gradient(circle at 90% 10%, rgba(143, 211, 111, .25), transparent 45%),
    linear-gradient(135deg, var(--green-800), var(--green-900));
}
.cta .section__title { color: var(--white); }
.cta .section__eyebrow { color: var(--green-300); }
.cta__text { max-width: 640px; }
.cta__text p:last-child { margin: 0; font-size: 18px; }
.cta .btn--primary { background: var(--green-300); color: var(--green-900); flex: none; }
.cta .btn--primary:hover { background: #a6e08a; }

/* контакты */
.contacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact {
  background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s;
}
a.contact:hover { border-color: var(--green-500); transform: translateY(-2px); }
.contact__label { font-size: 14px; color: var(--muted); }
.contact__value { font: 700 18px/1.35 var(--font-head); color: var(--green-900); overflow-wrap: anywhere; }
.contact__value--sm { font-size: 16px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .2s; }
.faq__item[open] { border-color: var(--green-500); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 22px 60px 22px 26px; position: relative;
  font: 700 18px/1.35 var(--font-head); color: var(--green-900);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2.5px solid var(--green-700); border-bottom: 2.5px solid var(--green-700); transform: rotate(45deg); transition: transform .2s, margin .2s;
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq__item summary:focus-visible { outline: 3px solid var(--green-300); outline-offset: -3px; border-radius: var(--radius); }
.faq__item p { padding: 0 26px 22px; margin: 0; color: #34463a; }

/* поддержка */
.support { padding: 56px 0; border-top: 1px solid var(--line); background: var(--cream); }
.support__inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.support__text { margin: 0; color: #34463a; font-size: 16px; max-width: 560px; }
.support__logos { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.support__logo {
  display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 20px; height: 96px; text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
.support__logo:hover { border-color: var(--green-500); box-shadow: var(--shadow); }
.support__logo img { height: 66px; width: auto; }
.support__logo--platform img { height: 56px; }
.support__logo--platform span { font: 600 12.5px/1.3 var(--font-head); color: #5b2a86; max-width: 190px; }

.footer { background: var(--green-900); color: rgba(255, 255, 255, .75); padding: 22px 0; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--white); text-decoration: none; }

/* ===== Модальная форма ===== */
.modal {
  width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3); color: var(--ink);
}
.modal::backdrop { background: rgba(10, 30, 18, .6); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal__close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--cream); color: var(--green-900); font-size: 26px; line-height: 1; cursor: pointer;
}
.modal__close:hover { background: var(--green-100); }
.modal__body { padding: 36px; }
.modal__title { font-size: 26px; padding-right: 40px; }
.modal__hint { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.modal-contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.modal-contacts a, .modal-contacts div {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fbfdfa; color: inherit; text-decoration: none; transition: border-color .2s, background .2s;
}
.modal-contacts a:hover, .modal-contacts a:focus-visible { border-color: var(--green-500); background: var(--white); outline: none; }
.modal-contacts__label { font-size: 13.5px; color: var(--muted); }
.modal-contacts__value { font: 700 19px/1.3 var(--font-head); color: var(--green-900); overflow-wrap: anywhere; }
.modal__req { margin: 20px 0 0; font-size: 13.5px; color: var(--muted); }

/* ===== Адаптив ===== */
@media (max-width: 1024px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .storage { grid-template-columns: 1fr 1fr; }
  .contacts { grid-template-columns: 1fr 1fr; }
  .research { grid-template-columns: 1fr; gap: 40px; }
  .support__inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 8px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(0, 0, 0, .08);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 18px; }

  .hero { padding-top: calc(var(--header-h) + 32px); min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; text-align: left; gap: 24px; }
  .hero__bg { background:
    linear-gradient(180deg, rgba(10, 36, 20, .78) 0%, rgba(10, 36, 20, .6) 60%, rgba(10, 36, 20, .4) 100%),
    url("../img/hero-pasture.jpg") 30% 60% / cover no-repeat; }
  .hero__product { max-width: 240px; }
  .hero__badge { font-size: 15px; padding: 8px 12px; right: -10px; }

  .section { padding: 64px 0; }
  .about { grid-template-columns: 1fr; gap: 8px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .logo__name { font-size: 18px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .cards, .usage, .contacts { grid-template-columns: 1fr; }
  .storage { grid-template-columns: 1fr 1fr; gap: 12px; }
  .storage li { padding: 18px 16px; }
  .storage strong { font-size: 21px; }
  .package { flex-direction: column; align-items: flex-start; padding: 24px; }
  .about__facts { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; }
  .support__logos { flex-direction: column; align-items: stretch; }
  .support__logo { justify-content: center; }
  .modal__body { padding: 28px 20px; }
  .faq__item summary { font-size: 16.5px; padding: 18px 52px 18px 20px; }
  .faq__item p { padding: 0 20px 18px; }
}
