/* ==========================================================================
   СТРОЙ СКЛАД — стили лендинга
   Шрифт: Open Sans (локально, variable 300–800)
   Палитра: RAL 6026 Opal Green + жёлто-лаймовый акцент
   ========================================================================== */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   Токены
   -------------------------------------------------------------------------- */
:root {
  --green-black: #021814;
  --green-deep: #05241e;
  --green-dark: #003b32;
  --green-base: #005b4e;
  --green-bright: #007b68;
  --green-glow: #0b9c83;
  --yellow: #efff32;
  --yellow-hover: #f6ff7a;
  --white: #ffffff;
  --surface: #f3f6f4;
  --surface-2: #e7eeea;
  --text: #12221e;
  --muted: #5b6b66;
  --line: rgba(18, 34, 30, 0.1);
  --line-dark: rgba(255, 255, 255, 0.12);
  --danger: #ff8a8a;

  --font: "Open Sans", "Segoe UI", Arial, sans-serif;
  --container: 1280px;
  --gutter: 40px;
  --header-h: 76px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 10px 30px rgba(2, 24, 20, 0.06);
  --shadow-card: 0 18px 50px rgba(2, 24, 20, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --brand-gradient:
    radial-gradient(circle at 68% 42%, rgba(11, 156, 131, 0.78) 0%, rgba(0, 91, 78, 0.45) 32%, transparent 62%),
    linear-gradient(135deg, #021814 0%, #003b32 34%, #005b4e 67%, #007b68 100%);

  color-scheme: light;
}

@media (max-width: 1199px) {
  :root { --gutter: 28px; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; --header-h: 64px; }
}

/* --------------------------------------------------------------------------
   База
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@media (max-width: 767px) {
  body { font-size: 16px; }
}

body.nav-open { overflow: hidden; }
html:has(body.nav-open) { overflow: hidden; }

main {
  overflow-x: clip;
  max-width: 100%;
}

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

[hidden] { display: none !important; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
b, strong { font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--light :focus-visible,
.contacts :focus-visible { outline-color: var(--green-base); }

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.sr-only, .hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--green-black);
  font-weight: 700;
  border-radius: 999px;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

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

.link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}
.link:hover { color: var(--yellow); }

/* --------------------------------------------------------------------------
   Секции и заголовки
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding: clamp(56px, 7.5vw, 104px) 0;
  scroll-margin-top: calc(var(--header-h) - 1px);
}
.section--light { background: var(--surface); color: var(--text); }
.section--dark { background: var(--green-black); color: var(--white); }

.section__head { margin-bottom: clamp(32px, 4vw, 52px); }
.section__head--center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.section__title {
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.section__lead {
  margin-top: 14px;
  font-size: 17px;
  color: var(--muted);
}
.section--dark .section__lead { color: rgba(255, 255, 255, 0.72); }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 20px; height: 20px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }

.btn--accent {
  background: var(--yellow);
  color: var(--green-black);
  box-shadow: 0 10px 26px rgba(239, 255, 50, 0.18);
}
.btn--accent:hover {
  background: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(239, 255, 50, 0.3);
}
.btn--accent:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--dark {
  background: var(--green-black);
  color: var(--white);
}
.btn--dark:hover { background: var(--green-dark); }

.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
  background: transparent;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.header.is-scrolled {
  background: rgba(2, 24, 20, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* В открытом меню без backdrop-filter: иначе он становится containing block
   для фиксированной панели навигации и обрезает её */
.header.is-open {
  background: var(--green-black);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--white);
}
.logo__img {
  display: block;
  height: 34px;
  width: auto;
  aspect-ratio: 4.646 / 1.749;
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__list a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  padding: 6px 0;
  transition: color 0.2s;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__list a:hover,
.nav__list a.is-active { color: var(--white); }
.nav__list a:hover::after,
.nav__list a.is-active::after { transform: scaleX(1); }
.nav__extra { display: none; }

.header__tools {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.nav + .header__tools { margin-left: 0; }
.header__phone {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: color 0.2s;
}
.header__phone:hover { color: var(--yellow); }
.header__call {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  align-items: center;
  justify-content: center;
  color: var(--yellow);
}
.header__call .icon { width: 20px; height: 20px; }

.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1199px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    margin: 0;
    padding: 20px var(--gutter) 32px;
    background: var(--green-black);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s, transform 0.3s var(--ease);
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__list a {
    display: block;
    font-size: 20px;
    font-weight: 600;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav__list a::after { display: none; }
  .nav__list a.is-active { color: var(--yellow); }
  .nav__extra {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-top: 28px;
  }
  .nav__phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
  }
  .nav__phone .icon { color: var(--yellow); }
  .burger { display: flex; margin-left: auto; }
  .nav + .header__tools { margin-left: auto; }
}
@media (max-width: 767px) {
  .header__phone { display: none; }
  .header__call { display: inline-flex; }
  .header__tools { gap: 10px; }
  .logo__img { height: 26px; }
}
@media (max-width: 439px) {
  .header__cta { display: none; }
}

/* --------------------------------------------------------------------------
   Первый экран
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--brand-gradient);
  background-color: var(--green-black);
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 64px));
  padding-bottom: clamp(48px, 6vw, 80px);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
}
.hero__glow--a {
  width: 520px; height: 520px;
  right: 8%; top: 6%;
  background: radial-gradient(circle, rgba(11, 156, 131, 0.9), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}
.hero__glow--b {
  width: 320px; height: 320px;
  left: -6%; bottom: -10%;
  background: radial-gradient(circle, rgba(239, 255, 50, 0.25), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-30px, 24px, 0) scale(1.08); }
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}
.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.hero__title {
  margin-top: 16px;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__lead {
  margin-top: 20px;
  max-width: 520px;
  font-size: clamp(16px, 1.3vw, 18px);
  color: rgba(255, 255, 255, 0.82);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.perks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 40px;
}
.perk {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.perk__icon {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--yellow);
}
.perk__icon .icon { width: 22px; height: 22px; }

/* Фоновый слайдер: кадры лежат друг на друге и плавно сменяются */
.hero__media {
  position: absolute;
  inset: 0 -9vw 0 0;
  z-index: 0;
  overflow: hidden;
}
.hero__slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.hero__slide.is-active { opacity: 1; }
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.08);
  transition: transform 9s linear;
}
.hero__slide.is-active .hero__img { transform: scale(1); }

@media (max-width: 899px) {
  .hero__media { opacity: 0.3; }
}
@media (max-width: 1199px) {
  .hero__media {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(0deg, transparent, #000 14%, #000 90%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(0deg, transparent, #000 14%, #000 90%, transparent);
    mask-composite: intersect;
  }
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(2, 24, 20, 0.62), transparent 150px),
      linear-gradient(90deg, rgba(2, 24, 20, 0.9) 0%, rgba(2, 24, 20, 0.62) 40%, rgba(2, 24, 20, 0.16) 66%, transparent 84%);
  }
}
@media (max-width: 767px) {
  .perks { gap: 14px 10px; }
  .perk {
    flex: 1 1 calc(33.333% - 10px);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
  }
  .hero__actions .btn { flex: 1 1 auto; }
}
@media (min-width: 1200px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: clamp(680px, 92vh, 860px);
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(2, 24, 20, 0.55), transparent 150px),
      linear-gradient(90deg, rgba(2, 24, 20, 0.82) 0%, rgba(2, 24, 20, 0.5) 36%, rgba(2, 24, 20, 0.08) 58%, transparent 70%);
  }
  .hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 160px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(2, 24, 20, 0.55));
  }
  .hero__inner { grid-template-columns: minmax(0, 620px); width: 100%; }
}

@media (min-width: 1440px) {
  .hero__media { inset: 0 -4vw 0 0; }
}

/* --------------------------------------------------------------------------
   О компании
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.about__photo {
  align-self: start;
}
.about__photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 24%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}
.about__kicker {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.about__lead {
  margin-top: 14px;
  font-size: 17px;
  color: var(--muted);
}
.about__text > p + p { margin-top: 12px; }
.about__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(18, 34, 30, 0.04);
}
.fact__icon {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--green-base);
}
.fact__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}
.about__more {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 3px solid var(--yellow);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-size: 16px;
}
.about__more p + p { margin-top: 10px; }
.about__more strong { color: var(--text); }

@media (min-width: 1024px) {
  .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .about__photo img { aspect-ratio: 4 / 3; }
}
.about__life {
  margin-top: clamp(40px, 5vw, 72px);
  overflow-x: clip;
  overflow-clip-margin: 40px;
}
.life__title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.015em;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.life__lead {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}
.life__tabs {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  contain: inline-size;
}
.life__tabs::-webkit-scrollbar { display: none; }
.life__tabs-track {
  display: flex;
  gap: 8px;
  width: max-content;
}
.life__tab {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.life__tab:hover {
  border-color: rgba(0, 91, 78, 0.35);
  color: var(--green-base);
}
.life__n {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.life__tab[aria-selected="true"] {
  border-color: var(--green-black);
  background: var(--green-black);
  color: var(--white);
}
.life__tab[aria-selected="true"]:hover { color: var(--white); }
.life__tab[aria-selected="true"] .life__n { color: var(--yellow); }
.life__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(148px, 13.5vw, 200px);
  gap: 12px;
  margin-top: 16px;
  transition: opacity 0.28s var(--ease);
}
.life__grid.is-swap { opacity: 0; }
.life__card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
}
.life__card picture { display: block; height: 100%; }
.life__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.life__card:hover img,
.life__card:focus-visible img { transform: scale(1.045); }
.life__open {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(2, 24, 20, 0.72);
  color: var(--white);
}
.life__open .icon { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .life__open { opacity: 0; transition: opacity 0.25s; }
  .life__card:hover .life__open,
  .life__card:focus-visible .life__open { opacity: 1; }
}

@media (min-width: 1024px) {
  .life__grid--pair {
    grid-template-columns: 1.15fr 0.85fr;
    grid-auto-rows: clamp(300px, 34vw, 440px);
  }
  .life__grid--trio {
    grid-template-columns: 1.45fr 1fr;
    grid-auto-rows: clamp(168px, 16vw, 230px);
  }
  .life__grid--trio .life__card:first-child { grid-row: span 2; }
  .life__grid--quad {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: clamp(260px, 26vw, 400px);
  }
  .life__grid--six .life__card:nth-child(1),
  .life__grid--six .life__card:nth-child(2) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .life__grid--seven .life__card:nth-child(1),
  .life__grid--hero .life__card:first-child,
  .life__grid--eight .life__card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .life__grid--seven .life__card:nth-child(6),
  .life__grid--seven .life__card:nth-child(7) {
    grid-column: span 2;
    min-height: clamp(220px, 18vw, 280px);
  }
  .life__grid--eight .life__card:nth-child(3) { grid-row: span 2; }
  .life__grid--octet .life__card:nth-child(1),
  .life__grid--octet .life__card:nth-child(2) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .life__grid--octet .life__card:nth-child(7),
  .life__grid--octet .life__card:nth-child(8) {
    grid-column: span 2;
    min-height: clamp(200px, 16vw, 260px);
  }
}

@media (max-width: 767px) {
  .about__facts { gap: 10px; }
  .fact { padding: 14px 12px; gap: 10px; }
  .fact__icon { width: 36px; height: 36px; }
  .fact__icon .icon { width: 20px; height: 20px; }
  .fact__title { font-size: 13px; }
  .life__tabs {
    width: calc(100% + var(--gutter));
    max-width: calc(100% + var(--gutter));
    margin-right: calc(var(--gutter) * -1);
    padding-right: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent);
  }
}
@media (max-width: 424px) {
  .about__facts { grid-template-columns: 1fr; }
  .fact {
    flex-direction: row;
    align-items: center;
  }
  .fact__title { font-size: 15px; }
}

.life__dots {
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.life__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 999px;
  background: rgba(18, 34, 30, 0.22);
  transition: width 0.25s var(--ease), background 0.25s;
}
.life__dot.is-on {
  width: 18px;
  background: var(--green-base);
}

@media (max-width: 1023px) {
  .life__grid,
  .life__grid--pair,
  .life__grid--trio,
  .life__grid--quad,
  .life__grid--six,
  .life__grid--seven,
  .life__grid--eight,
  .life__grid--octet,
  .life__grid--hero {
    display: flex;
    grid-template-columns: none;
    grid-auto-rows: auto;
    align-items: stretch;
    gap: 12px;
    margin-right: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 6px 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }
  .life__grid::-webkit-scrollbar { display: none; }
  .life__grid .life__card {
    flex: 0 0 min(86%, 520px);
    width: min(86%, 520px);
    height: clamp(210px, 56vw, 320px);
    aspect-ratio: auto;
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .life__dots:not([hidden]) { display: flex; }
}

.lightbox {
  width: min(1080px, calc(100vw - 48px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(2, 24, 20, 0.9); }
.lightbox__figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--green-black);
}
.lightbox__img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 148px);
  object-fit: contain;
  background: var(--green-black);
}
.lightbox__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 0;
  padding: 12px 14px 14px;
  font-size: 15px;
  font-weight: 700;
}
.lightbox__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lightbox__alt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.lightbox__count {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.lightbox__close {
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  background: rgba(2, 24, 20, 0.72);
  color: var(--white);
}
.lightbox__close .icon { width: 20px; height: 20px; }
.lightbox__nav {
  top: 42%;
  width: 44px;
  height: 44px;
  background: var(--yellow);
  color: var(--green-black);
}
.lightbox__nav .icon { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--prev .icon { transform: rotate(180deg); }
.lightbox__nav--next { right: 12px; }
@media (max-width: 767px) {
  .lightbox { width: calc(100vw - 20px); }
  .lightbox__img { max-height: calc(100vh - 148px); border-radius: var(--radius); }
}

/* --------------------------------------------------------------------------
   Каталог
   -------------------------------------------------------------------------- */
.catalog {
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(11, 156, 131, 0.22), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(0, 91, 78, 0.35), transparent 60%),
    var(--green-black);
}
.catalog__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--green-deep);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.cat:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 255, 50, 0.55);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.cat__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.cat__slides {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.cat__slides::-webkit-scrollbar { display: none; }
.cat__slide {
  position: relative;
  flex: 0 0 86%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.cat__slide picture { display: block; height: 100%; }
.cat__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
/* Заглушка, пока клиент не прислал живое фото направления */
.cat__slide--soon {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 30%, rgba(11, 156, 131, 0.45), transparent 60%),
    linear-gradient(160deg, #0b3d34, #021814);
}
.cat__soon {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
.cat__soon .icon {
  width: 36px;
  height: 36px;
  stroke-width: 1.5;
  color: rgba(239, 255, 50, 0.85);
}
.cat__badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(2, 24, 20, 0.72);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.cat__dots {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.cat__dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.cat__dots span.is-on { background: var(--yellow); }
.cat__body {
  position: relative;
  display: block;
  flex: 1;
  padding: 14px 52px 16px 16px;
  background: linear-gradient(180deg, rgba(5, 36, 30, 0.6), var(--green-deep));
}
.cat__title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
}
.cat__desc {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
}
.cat__go {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--green-black);
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.cat__go .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.cat:hover .cat__go { transform: translateY(-50%) translateX(3px); background: var(--yellow-hover); }

.catalog__banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: clamp(28px, 4vw, 48px);
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 40px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 10% 50%, rgba(239, 255, 50, 0.12), transparent 40%),
    linear-gradient(90deg, rgba(0, 91, 78, 0.65), rgba(0, 59, 50, 0.65));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.catalog__banner-title {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.25;
}
.catalog__banner-text {
  margin-top: 4px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 480px) {
  .catalog__grid { gap: 16px; }
}
@media (min-width: 768px) {
  .catalog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .cat__body { padding: 18px 60px 20px 20px; }
  .cat__title { font-size: 17px; }
  .cat__go { right: 16px; width: 38px; height: 38px; }
  .cat__slides {
    display: grid;
    gap: 0;
    overflow: hidden;
    scroll-snap-type: none;
  }
  .cat__slide {
    grid-area: 1 / 1;
    flex: none;
    width: auto;
    min-width: 0;
  }
  .cat__slide--live { opacity: 0; transition: opacity 0.45s var(--ease); }
  .cat:hover .cat__slide--live,
  .cat:focus-visible .cat__slide--live { opacity: 1; }
  .cat__slide img { transition: transform 0.7s var(--ease); }
  .cat:hover .cat__slide img { transform: scale(1.06); }
  .cat__badge { opacity: 0; transition: opacity 0.35s var(--ease); }
  .cat:hover .cat__badge,
  .cat:focus-visible .cat__badge { opacity: 1; }
  .cat__dots { display: none; }
}
@media (min-width: 768px) and (hover: none) {
  .cat__slide--stock { opacity: 0; }
  .cat__slide--live,
  .cat__badge { opacity: 1; }
  /* Нет живого фото — на планшете оставляем превью, а не заглушку */
  .cat__slides:has(.cat__slide--soon) .cat__slide--stock { opacity: 1; }
  .cat__slide--soon,
  .cat__slide--soon .cat__badge { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cat__slide--live,
  .cat__badge,
  .life__card img { transition: none; }
  .life__card:hover img,
  .life__card:focus-visible img { transform: none; }
  .cat__slides { scroll-behavior: auto; }
}
@media (min-width: 1100px) {
  .catalog__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .cat:hover { transform: none; box-shadow: none; }
}
@media (max-width: 767px) {
  .catalog__banner .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Почему выбирают нас
   -------------------------------------------------------------------------- */
.why__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.why-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(18, 34, 30, 0.05);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.why-card__icon {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--green-base);
  margin-bottom: 6px;
}
.why-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}
.why-card p {
  font-size: 15px;
  color: var(--muted);
}
.why__side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.why-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--brand-gradient);
  color: var(--white);
  box-shadow: var(--shadow-card);
}
.why-cta__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.why-cta p { color: rgba(255, 255, 255, 0.8); font-size: 15.5px; }
.why-cta .btn { align-self: flex-start; margin-top: auto; }
.why-photo {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.why-photo picture, .why-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}
.why-photo__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 72px 20px 20px;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(2, 24, 20, 0.9));
}
.why-photo__overlay p { font-weight: 700; font-size: 16px; line-height: 1.3; }

.ticks { display: grid; gap: 10px; }
.ticks li {
  position: relative;
  padding-left: 32px;
  font-size: 15.5px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23021814' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-8.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

@media (min-width: 560px) {
  .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .why__side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .why__layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .why__grid { gap: 20px; }
  .why__side { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr 1fr; }
  .why-photo { min-height: 0; }
}

/* --------------------------------------------------------------------------
   Клиенты
   -------------------------------------------------------------------------- */
.clients {
  background:
    radial-gradient(800px 400px at 50% 100%, rgba(0, 91, 78, 0.45), transparent 65%),
    var(--green-black);
}
.clients__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  max-width: 940px;
  margin: 0 auto;
}
.client {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.25s, border-color 0.25s;
}
.client:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(239, 255, 50, 0.4); }
.client__icon {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(239, 255, 50, 0.45);
  color: var(--yellow);
  flex-shrink: 0;
}
.client__title { font-size: 17px; font-weight: 600; }

.marquee {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 100%;
  margin-top: clamp(32px, 4vw, 48px);
  overflow: clip;
  contain: inline-size;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  justify-self: start;
  min-width: 0;
  width: max-content;
  gap: 16px;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 24px 32px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes marquee {
  to { transform: translateX(calc(-50% - 8px)); }
}

@media (min-width: 480px) {
  .clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .client { padding: 14px 16px; gap: 12px; }
  .client__icon { width: 40px; height: 40px; }
  .client__title { font-size: 14.5px; }
  .tile { min-width: 160px; padding: 18px 22px; font-size: 12.5px; }
}

/* --------------------------------------------------------------------------
   Отзывы
   -------------------------------------------------------------------------- */
.rating-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin-top: 18px;
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-size: 14.5px;
  color: var(--muted);
  transition: border-color 0.2s, transform 0.25s var(--ease);
}
.rating:hover { border-color: var(--green-base); transform: translateY(-2px); }
.rating__stars { display: inline-flex; gap: 2px; color: #f0b400; }
.rating__stars .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.rating__text strong { color: var(--text); font-size: 15.5px; }
.rating__where-short { display: none; }
.rating__arrow { width: 18px; height: 18px; color: var(--green-base); flex-shrink: 0; }
@media (max-width: 767px) {
  .rating-row { flex-wrap: nowrap; gap: 8px; margin-top: 14px; }
  .rating {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    font-size: 13px;
    box-shadow: none;
  }
  .rating__where-full,
  .rating__more,
  .rating__arrow { display: none; }
  .rating__where-short { display: inline; }
  .rating__stars { gap: 1px; }
  .rating__stars .icon { width: 11px; height: 11px; }
  .rating__text { white-space: nowrap; }
  .rating__text strong { font-size: 13px; }
}

.slider { position: relative; min-width: 0; max-width: 100%; }
.slider__viewport { overflow: clip; max-width: 100%; margin: 0 -4px; }
.slider__track {
  display: flex;
  gap: 20px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 4px 16px;
  scroll-padding-inline: 4px;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track:focus-visible { outline-offset: -2px; border-radius: var(--radius-lg); }
.review {
  position: relative;
  isolation: isolate;
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(18, 34, 30, 0.05);
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}
.review::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, #003b32, #005b4e);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.review:hover,
.review:focus-within {
  color: var(--white);
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 2px 10px rgba(0, 59, 50, 0.22);
}
.review:hover::before,
.review:focus-within::before { opacity: 1; }
.review__head { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 12px; }
.review__head > div { min-width: 0; flex: 1; }
.review__avatar {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--green-base);
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
  /* transition: background-color 0.55s, color 0.55s; */
}
/* .review:hover .review__avatar, */
/* .review:focus-within .review__avatar { background: rgba(255, 255, 255, 0.12); color: var(--yellow); } */
.review__name { font-size: 16px; font-weight: 700; line-height: 1.2; }
.review__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 6px;
}
.review__source {
  display: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 91, 78, 0.1);
  color: var(--green-base);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.review__product {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  transition: color 0.45s var(--ease);
}
.review__date { font-size: 12px; line-height: 1.3; color: var(--muted); transition: color 0.45s var(--ease); }
.review:hover .review__source,
.review:focus-within .review__source {
  background: rgba(239, 255, 50, 0.16);
  color: var(--yellow);
}
.review:hover .review__product,
.review:focus-within .review__product { color: var(--white); }
.review:hover .review__date,
.review:focus-within .review__date { color: rgba(255, 255, 255, 0.62); }
.review__stars {
  display: flex;
  gap: 2px;
  margin-top: 2px;
  margin-left: auto;
  color: #f0b400;
  transition: color 0.45s var(--ease);
}
.review:hover .review__stars,
.review:focus-within .review__stars { color: var(--yellow); }
.review__stars .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.review__text { position: relative; z-index: 1; font-size: 15.5px; line-height: 1.6; color: var(--text); transition: color 0.45s var(--ease); }
.review:hover .review__text,
.review:focus-within .review__text { color: rgba(255, 255, 255, 0.92); }
.review__quote {
  position: absolute;
  z-index: 1;
  right: 22px; bottom: 18px;
  width: 30px; height: 30px;
  fill: currentColor;
  stroke: none;
  opacity: 0.12;
}
.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.slider__btn:hover { background: var(--green-base); color: var(--white); }
.slider__btn:disabled { opacity: 0.35; cursor: default; }
.slider__btn:disabled:hover { background: var(--white); color: var(--text); }
.slider__btn--prev { left: 0; }
.slider__btn--prev .icon { transform: rotate(180deg); }
.slider__btn--next { right: 0; }
.slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.slider__dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(18, 34, 30, 0.2);
  transition: width 0.3s var(--ease), background-color 0.2s;
}
.slider__dot.is-active { width: 26px; background: var(--green-base); }

@media (min-width: 640px) {
  .review { flex-basis: calc((100% - 20px) / 2); }
}
@media (min-width: 1024px) {
  .slider { padding: 0 64px; }
  .review { flex-basis: calc((100% - 40px) / 3); }
}
@media (max-width: 1023px) {
  .slider { padding-bottom: 56px; }
  .slider__btn {
    top: auto;
    bottom: 0;
    transform: none;
    width: 42px; height: 42px;
  }
  .slider__dots {
    position: absolute;
    left: 56px; right: 56px;
    bottom: 17px;
    margin: 0;
  }
}

/* --------------------------------------------------------------------------
   Форма заявки
   -------------------------------------------------------------------------- */
.lead {
  overflow: hidden;
  background: var(--brand-gradient);
  background-color: var(--green-black);
}
.lead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../assets/img/form-bg-900.jpg");
  background-image: image-set(url("../assets/img/form-bg-900.webp") type("image/webp"), url("../assets/img/form-bg-900.jpg") type("image/jpeg"));
  background-repeat: no-repeat;
  background-position: center 115%;
  background-size: 110% auto;
  opacity: 0.4;
  mix-blend-mode: screen;
}
.lead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 24, 20, 0.5), transparent 30%, transparent 70%, rgba(2, 24, 20, 0.5));
}
.lead__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}
.lead__copy .section__title { font-size: clamp(26px, 3vw, 38px); text-wrap: balance; }
.lead__text {
  margin-top: 16px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
}
.lead__copy .ticks { margin-top: 26px; }

.form-card {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-xl);
  background: rgba(2, 24, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.form__fields { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field__label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}
.field__label b { color: var(--yellow); margin-left: 2px; }
.field__input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field__input::placeholder { color: rgba(255, 255, 255, 0.4); }
.field__input:hover { border-color: rgba(255, 255, 255, 0.28); }
.field__input:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(239, 255, 50, 0.18);
}
.field__input--area { min-height: 96px; resize: vertical; }
.select { position: relative; display: block; }
.select::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select select { padding-right: 42px; cursor: pointer; }
.select select option { color: var(--text); background: var(--white); }
.field__hint { font-size: 12.5px; color: rgba(255, 255, 255, 0.5); }
.field__error {
  display: none;
  font-size: 12.5px;
  color: var(--danger);
}
.field.is-invalid .field__input { border-color: var(--danger); }
.field.is-invalid .field__error,
.field__error.is-visible { display: block; }

.field--file { gap: 8px; }
.file__input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
}
.file__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  max-width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1.5px dashed rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.file__label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file__label .icon { width: 20px; height: 20px; color: var(--yellow); }
.file__label:hover { border-color: var(--yellow); background: rgba(255, 255, 255, 0.05); }
.file__input:focus-visible + .file__label { outline: 2px solid var(--yellow); outline-offset: 3px; }
.file__label.has-file { border-style: solid; border-color: rgba(239, 255, 50, 0.6); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}
.check input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
}
.check__box {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: var(--green-black);
  transition: background-color 0.2s, border-color 0.2s;
}
.check__box .icon { width: 14px; height: 14px; stroke-width: 3; opacity: 0; transition: opacity 0.15s; }
.check input:checked + .check__box { background: var(--yellow); border-color: var(--yellow); }
.check input:checked + .check__box .icon { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--yellow); outline-offset: 3px; }
.check.is-invalid .check__box { border-color: var(--danger); }
.check .link { text-decoration-color: rgba(255, 255, 255, 0.35); }

.form__error {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 90, 90, 0.14);
  border: 1px solid rgba(255, 120, 120, 0.4);
  color: #ffd0d0;
  font-size: 14px;
}
.form__submit { width: 100%; }
.form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 8px 12px;
  text-align: center;
}
.form__success-icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--green-black);
  margin-bottom: 8px;
}
.form__success-icon .icon { width: 30px; height: 30px; stroke-width: 2.6; }
.form__success-title { font-size: 22px; font-weight: 700; }
.form__success p { color: rgba(255, 255, 255, 0.78); }
.form__success .btn { margin-top: 12px; }

@media (min-width: 560px) {
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lead__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; }
  .lead::before {
    background-position: 112% 50%;
    background-size: auto 125%;
    opacity: 0.5;
  }
}

/* --------------------------------------------------------------------------
   Контакты и карта
   -------------------------------------------------------------------------- */
.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.contact-list { margin-top: 24px; }
.contact-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { padding-top: 0; }
.contact-list__icon {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--green-base);
}
.contact-list__k {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-list__v {
  display: block;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.4;
}
.contact-list__note {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
}
.contact-list__link { transition: color 0.2s; }
.contact-list__link:hover { color: var(--green-bright); }
.contacts__messengers {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 26px;
}
.contacts__messengers-label { font-size: 14px; color: var(--muted); margin-right: 4px; }
.msg-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--green-base);
  transition: background-color 0.2s, color 0.2s, transform 0.25s var(--ease);
}
.msg-btn:hover { background: var(--green-base); color: var(--white); transform: translateY(-2px); }

.map-card {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #e2ebe5;
  box-shadow: var(--shadow-card);
  isolation: isolate;
}
.map-card__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.map-card__canvas iframe,
.map-card__canvas > ymaps,
.map-card__canvas > div {
  width: 100%;
  height: 100%;
}
.map-card__canvas iframe { border: 0; display: block; }
.map-card__poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)),
    repeating-linear-gradient(0deg, transparent 0 58px, rgba(0, 91, 78, 0.14) 58px 60px),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(0, 91, 78, 0.14) 58px 60px),
    linear-gradient(115deg, transparent 44%, #ffffff 44% 52%, transparent 52%),
    linear-gradient(20deg, transparent 58%, #ffffff 58% 64%, transparent 64%),
    radial-gradient(circle at 20% 25%, rgba(0, 123, 104, 0.18), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(0, 123, 104, 0.16), transparent 30%),
    #dfe9e2;
  transition: opacity 0.4s, visibility 0.4s;
}
.map-card.is-loaded .map-card__poster {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.map-card__pin {
  width: 52px;
  filter: drop-shadow(0 10px 14px rgba(2, 24, 20, 0.35));
  animation: bob 3s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.map-card__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  color: var(--muted);
}
.map-card__label strong { font-size: 16px; color: var(--text); }
.map-card__find {
  position: absolute;
  right: 16px; bottom: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: var(--green-black);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(2, 24, 20, 0.3);
  transition: background-color 0.2s;
}
.map-card__find .icon { width: 18px; height: 18px; color: var(--yellow); }
.map-card__find:hover { background: var(--green-dark); }

@media (min-width: 1024px) {
  .contacts__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; }
  .map-card { min-height: 520px; height: 100%; }
}
@media (max-width: 767px) {
  .map-card { min-height: 360px; }
  .contacts__info .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Подвал
   -------------------------------------------------------------------------- */
.footer {
  background: var(--green-black);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(48px, 6vw, 72px) 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}
.footer__blurb {
  margin-top: 18px;
  max-width: 320px;
  font-size: 15px;
  line-height: 1.6;
}
.footer__label {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.footer__col ul { display: grid; gap: 10px; font-size: 15px; }
.footer__col a { transition: color 0.2s; }
.footer__col a:hover { color: var(--yellow); }
.footer__contacts li:first-child a { font-weight: 700; font-size: 17px; color: var(--white); }
.footer__socials { display: flex; gap: 10px; margin-top: 18px; }
.footer__socials a {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.footer__socials a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--green-black); }
.footer__socials .icon { width: 20px; height: 20px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer__legal { max-width: 760px; }
.footer__docs { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__docs .link { text-decoration-color: rgba(255, 255, 255, 0.25); }

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.4fr 0.9fr 1fr 1.1fr; gap: 32px; }
}

/* --------------------------------------------------------------------------
   Модальные документы
   -------------------------------------------------------------------------- */
.doc {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(680px, calc(100vw - 32px));
  width: 100%;
  margin: auto;
}
.doc::backdrop {
  background: rgba(2, 24, 20, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.doc__card {
  position: relative;
  padding: 36px 32px 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.doc__card h2 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 16px;
  padding-right: 40px;
}
.doc__card p { margin-top: 12px; font-size: 15.5px; color: #35443f; }
.doc__card a { color: var(--green-base); text-decoration: underline; text-underline-offset: 3px; }
.doc__note { font-size: 13px !important; color: var(--muted) !important; }
.doc__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 24px;
  line-height: 1;
  color: var(--text);
  transition: background-color 0.2s;
}
.doc__close:hover { background: var(--yellow); }
@media (max-width: 767px) {
  .doc__card { padding: 28px 20px 24px; }
}

/* --------------------------------------------------------------------------
   Появление при прокрутке
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .marquee.reveal { transform: none; }

@media (max-width: 767px) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Уважение к настройке reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .map-card__pin, .hero__glow { animation: none; }
  .hero__slide { transition: none; }
  .hero__img { transform: none; transition: none; }
}
