/* ==========================================================================
   BBQ Gourmet — лендинг гриль-кухонь и мангальных зон
   Единая красно-гротескная тема
   ========================================================================== */

:root {
  --red: #e5232a;
  --red-dark: #c31a20;
  --red-soft: #fdeceD;
  --ink: #15171b;
  --ink-2: #2b2f36;
  --muted: #6a7078;
  --muted-2: #8b9199;
  --bg: #f6f5f3;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --line: #e7e4df;
  --line-soft: #f0eeea;
  --dark: #15171b;
  --shadow-sm: 0 1px 2px rgba(20, 22, 26, .04), 0 4px 16px rgba(20, 22, 26, .05);
  --shadow-md: 0 2px 6px rgba(20, 22, 26, .05), 0 18px 40px rgba(20, 22, 26, .08);
  --radius: 18px;
  --radius-lg: 24px;
  --radius-sm: 12px;
  --container: 1240px;
  --header-h: 86px;
}

/* --------------------------------------------------------------- base --- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.section { padding: 96px 0; }
.section--white { background: var(--bg-alt); }
.section--tight { padding-top: 72px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------ typography - */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(30px, 4vw, 46px);
  max-width: 20ch;
}

.section-title--wide { max-width: 28ch; }

.section-lead {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 17px;
}

.section-head { margin-bottom: 44px; }

.section-head--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-head--center .section-title,
.section-head--center .section-lead { max-width: 46ch; }

.accent { color: var(--red); }

.section-lead--accent { color: var(--red); font-weight: 600; max-width: 44ch; }

/* --------------------------------------------------------------- buttons - */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn:active { transform: translateY(1px); }

.btn svg { flex: none; transition: transform .18s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 22px rgba(229, 35, 42, .22);
}
.btn--primary:hover { background: var(--red-dark); }

.btn--outline {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--ink); }

.btn--ghost {
  border-color: var(--red);
  color: var(--red);
  background: transparent;
}
.btn--ghost:hover { background: var(--red); color: #fff; }

.btn--light {
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}
.btn--light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.btn--block { width: 100%; }
.btn--lg { padding: 19px 32px; font-size: 17px; }

/* ---------------------------------------------------------------- header - */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 245, 243, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(20, 22, 26, .05);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo { flex: none; }

.brand { display: block; line-height: 1; }

.brand__word {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}

.brand__flame { color: var(--red); margin-top: -3px; flex: none; }

.brand__sub {
  display: block;
  margin-top: 3px;
  padding-left: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.nav { margin-left: 10px; }

.nav__cta { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  position: relative;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color .18s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transition: right .22s ease;
}

.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { right: 0; }

.header__contacts {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
}

.header__phone-icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--card);
}

.header__phone {
  display: block;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.header__hours {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}

.header__cta { flex: none; }

.burger {
  display: none;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  position: relative;
  flex: none;
}

.burger span {
  position: absolute;
  left: 13px;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }

.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero - */

.hero { padding: 54px 0 0; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.hero__title {
  font-size: clamp(32px, 4.1vw, 52px);
  letter-spacing: -.03em;
}

.hero__text {
  margin-top: 26px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 18px;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 13;
}

.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.hero__stats {
  position: relative;
  z-index: 2;
  margin: -78px 0 0;
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero-stat {
  padding: 28px 26px 30px;
  border-right: 1px solid var(--line-soft);
}

.hero-stat:last-child { border-right: 0; }

.hero-stat__icon { color: var(--red); margin-bottom: 14px; }

.hero-stat__name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.7em;
}

.hero-stat__price {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.hero-stat__price b {
  color: var(--red);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.01em;
}

/* ------------------------------------------------------------- solutions - */

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.solution {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px 10px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.solution:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.solution__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 22px;
}

.solution__media img { width: 100%; height: 100%; object-fit: cover; }

.solution__body { padding: 0 16px; display: flex; flex-direction: column; flex: 1; }

.solution__head { display: flex; gap: 14px; align-items: flex-start; }

.solution__icon { color: var(--red); flex: none; margin-top: 2px; }

.solution__title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }

.solution__price { margin-top: 6px; color: var(--muted); font-size: 14px; }
.solution__price b { color: var(--red); font-size: 19px; font-weight: 800; }

.feature-list { margin-top: 20px; display: grid; gap: 10px; }

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
}

.feature-list svg { flex: none; margin-top: 2px; color: var(--red); }

.solution .btn { margin-top: auto; }
.solution .feature-list { margin-bottom: 24px; }

/* ------------------------------------------------------------ cta-banner - */

.cta-banner {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.cta-banner--plain { background: #f1efec; border-color: transparent; }

.cta-banner__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  flex: none;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
}

.cta-banner__text { flex: 1 1 320px; }

.cta-banner__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.cta-banner__sub { margin-top: 4px; color: var(--muted); font-size: 15px; }

.cta-banner .btn { flex: none; }

/* ----------------------------------------------------------------- about - */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 56px;
  align-items: start;
}

.about__cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about-card {
  padding: 24px 22px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease;
}

.about-card:hover { border-color: var(--red); transform: translateY(-3px); }

.about-card__icon { color: var(--red); margin-bottom: 16px; }

.about-card__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.about-card__text { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.about__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 6;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.about__media img { width: 100%; height: 100%; object-fit: cover; }

.geo {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  background: #f1efec;
  border-radius: var(--radius-lg);
  font-size: 16px;
}

.geo svg { flex: none; color: var(--red); }
.geo b { font-weight: 700; }
.geo span { color: var(--muted); }

/* ---------------------------------------------------------- price cards - */

.tariffs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tariff {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px 12px 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.tariff:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.tariff__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  margin-bottom: 22px;
}

.tariff__media img { width: 100%; height: 100%; object-fit: cover; }

.tariff__body { padding: 0 16px; display: flex; flex-direction: column; flex: 1; }

.tariff__title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.tariff__text { margin-top: 8px; color: var(--muted); font-size: 15px; }

.tariff__label {
  margin-top: 22px;
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
}

.tariff__price {
  margin-top: auto;
  padding-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.tariff__price b {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.tariff .feature-list { margin-top: 12px; margin-bottom: 24px; }

/* ---------------------------------------------------------------- slider - */

.split {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}

.split--reverse .split__media { order: -1; }

.slider { position: relative; }

.slider__viewport {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
  background: #e9e6e1;
}

.slider__track {
  display: flex;
  height: 100%;
  transition: transform .45s cubic-bezier(.4, .01, .2, 1);
}

.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

.slide.is-hidden { display: none; }

.slide img { width: 100%; height: 100%; object-fit: cover; }

.slide__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px 24px 18px;
  background: linear-gradient(to top, rgba(12, 13, 16, .82), rgba(12, 13, 16, 0));
  color: #fff;
  font-size: 14.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.slide__caption span { display: inline-flex; align-items: center; gap: 14px; }
.slide__caption span + span::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
}

.slide__badge {
  position: absolute;
  top: 18px; left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(21, 23, 27, .82);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.slider__arrow:hover { background: var(--red); border-color: var(--red); color: #fff; }
.slider__arrow--prev { left: 16px; }
.slider__arrow--next { right: 16px; }
.slider__arrow:disabled { opacity: .35; pointer-events: none; }

.slider__dots {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.slider__dot {
  width: 9px; height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d5d1cb;
  transition: background-color .2s ease, width .2s ease, border-radius .2s ease;
}

.slider__dot.is-active { background: var(--red); width: 26px; border-radius: 999px; }

.slider__meta {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
}

/* -------------------------------------------------------- feature strips - */

.mini-cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mini-card {
  display: flex;
  gap: 16px;
  padding: 24px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mini-card__icon { color: var(--red); flex: none; }
.mini-card__title { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.mini-card__text { margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.spec {
  padding: 20px 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.spec__icon { color: var(--red); margin-bottom: 12px; }
.spec__title { font-size: 15.5px; font-weight: 700; }
.spec__text { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.45; }

.tag-strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tag-strip li {
  padding: 24px 14px;
  text-align: center;
  border-right: 1px solid var(--line-soft);
  font-size: 14px;
  font-weight: 600;
}

.tag-strip li:last-child { border-right: 0; }
.tag-strip svg { color: var(--red); margin: 0 auto 12px; }

/* --------------------------------------------------------------- compose - */

.compose { position: relative; overflow: hidden; }

.compose__bg {
  position: absolute;
  inset: 0 0 0 auto;
  width: 52%;
  z-index: 0;
}

.compose__bg img { width: 100%; height: 100%; object-fit: cover; }

.compose__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(246, 245, 243, .86) 26%, rgba(246, 245, 243, 0) 68%);
}

.compose .container { position: relative; z-index: 1; }

.compose__head { max-width: 54ch; }

.compose__subtitle {
  margin-top: 16px;
  color: var(--red);
  font-size: 18px;
  font-weight: 600;
  max-width: 42ch;
}

.modules {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 940px;
}

.module {
  padding: 22px 20px 24px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
  transition: transform .2s ease, border-color .2s ease;
}

.module:hover { transform: translateY(-3px); border-color: var(--red); }

.module__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
}

.module__title { font-size: 15px; font-weight: 700; }
.module__text { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* -------------------------------------------------------------- projects - */

.projects__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filters { display: flex; flex-wrap: wrap; gap: 10px; }

.filter {
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.project-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.project-card__info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .85fr);
  gap: 28px;
  padding: 28px 30px 30px;
}

.project-card__title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }

.project-card__place {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
}

.project-card__place svg { color: var(--red); flex: none; }

.project-card__list { display: grid; gap: 12px; align-content: start; }

.project-card__list li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink-2);
}

.project-card__list svg { flex: none; color: var(--red); margin-top: 2px; }

.project-card__facts { display: grid; gap: 14px; align-content: start; }

.project-card__fact { display: flex; gap: 12px; align-items: flex-start; }
.project-card__fact svg { flex: none; color: var(--red); margin-top: 2px; }
.project-card__fact span { color: var(--muted); font-size: 14px; display: block; }
.project-card__fact b { display: block; font-size: 15.5px; font-weight: 700; color: var(--ink); }

.projects .slider__viewport { border-radius: var(--radius-lg) var(--radius-lg) 0 0; aspect-ratio: 21 / 8; box-shadow: none; }
.projects .project-card { box-shadow: var(--shadow-sm); }
.projects .slider__dots { margin-top: 0; padding: 0 0 24px; }
.projects .slider__arrow--prev { left: -18px; }
.projects .slider__arrow--next { right: -18px; }

/* ----------------------------------------------------------------- video - */

.video {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 7;
  background: #1a1c20;
}

.video img { width: 100%; height: 100%; object-fit: cover; }

.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  background: rgba(10, 11, 13, .12);
  transition: background-color .2s ease;
}

.video__play:hover { background: rgba(10, 11, 13, .3); }

.video__play i {
  display: grid;
  place-items: center;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 40px rgba(229, 35, 42, .4);
  transition: transform .2s ease;
}

.video__play:hover i { transform: scale(1.06); }

.video-topics {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.video-wrap { border-radius: var(--radius-lg); overflow: hidden; }
.video-wrap .video { border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: none; }

.video-topics li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 18px;
  border-right: 1px solid var(--line-soft);
  font-size: 15px;
  font-weight: 600;
}

.video-topics li:last-child { border-right: 0; }
.video-topics svg { color: var(--red); flex: none; }

/* --------------------------------------------------------------- process - */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  position: relative;
}

.step {
  position: relative;
  padding: 52px 24px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}

.step__num {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 18px;
  font-weight: 800;
}

.step__icon { color: var(--red); margin: 0 auto 18px; }
.step__title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.step__text { margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.steps__row { padding-top: 34px; position: relative; }

.steps::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px);
}

.step__num { z-index: 1; }

/* ------------------------------------------------------------------- faq - */

.faq { max-width: 940px; margin: 0 auto; }

.faq__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.faq__item.is-open { border-color: transparent; box-shadow: var(--shadow-md); }

.faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  text-align: left;
}

.faq__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
}

.faq__q { flex: 1; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }

.faq__chev { flex: none; color: var(--red); transition: transform .25s ease; }
.faq__item.is-open .faq__chev { transform: rotate(180deg); }

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}

.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }

.faq__panel > div { overflow: hidden; }

.faq__answer {
  padding: 0 24px 24px 88px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.faq .cta-banner { margin-top: 28px; }

/* ------------------------------------------------------------------ lead - */

.lead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: 56px;
  align-items: start;
}

.lead__points { margin-top: 40px; display: grid; gap: 26px; }

.lead-point { display: flex; gap: 18px; }

.lead-point__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  flex: none;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
}

.lead-point__title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.lead-point__text { margin-top: 5px; color: var(--muted); font-size: 15px; line-height: 1.5; }

.lead__numbers {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.lead-number b {
  display: block;
  color: var(--red);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.lead-number b small { font-size: 16px; font-weight: 700; color: var(--ink); }
.lead-number span { color: var(--muted); font-size: 14.5px; }

/* ------------------------------------------------------------------ form - */

.form-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 38px 36px 34px;
  box-shadow: var(--shadow-md);
}

.form-card__title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.form-card__sub { margin-top: 10px; color: var(--muted); font-size: 15px; }

.form { margin-top: 26px; display: grid; gap: 14px; }

.field { position: relative; }

.field__icon {
  position: absolute;
  top: 18px; left: 18px;
  color: var(--muted-2);
  pointer-events: none;
}

.field input,
.field textarea {
  width: 100%;
  padding: 17px 18px 17px 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfaf9;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  transition: border-color .18s ease, background-color .18s ease;
}

.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }

.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }

.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--red);
  background: #fff;
}

.field.has-error input,
.field.has-error textarea { border-color: var(--red); background: #fef7f7; }

.field__error {
  display: none;
  margin-top: 6px;
  padding-left: 4px;
  color: var(--red);
  font-size: 13px;
}

.field.has-error .field__error { display: block; }

.form__note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form__note svg { flex: none; margin-top: 2px; }
.form__note a { text-decoration: underline; text-underline-offset: 2px; }
.form__note a:hover { color: var(--red); }

.form__success {
  display: none;
  padding: 26px 24px;
  background: #f2faf4;
  border: 1px solid #cdeacf;
  border-radius: var(--radius);
  text-align: center;
}

.form__success svg { color: #2f9e52; margin: 0 auto 12px; }
.form__success b { display: block; font-size: 18px; font-weight: 700; }
.form__success span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }

.form-card.is-sent .form,
.form-card.is-sent .form-card__sub { display: none; }
.form-card.is-sent .form__success { display: block; }

/* ----------------------------------------------------------------- modal - */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open { display: flex; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 16, 19, .55);
  backdrop-filter: blur(3px);
  animation: fade .2s ease;
}

.modal__dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  animation: pop .24s cubic-bezier(.2, .8, .3, 1);
}

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  transition: background-color .18s ease, color .18s ease;
}

.modal__close:hover { background: var(--red); border-color: var(--red); color: #fff; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------------------------------------------------------------- footer - */

.footer {
  background: var(--dark);
  color: #fff;
  padding: 72px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 48px;
}

.footer__logo .brand__word { font-size: 34px; color: #fff; }
.footer__logo .brand__sub { color: rgba(255, 255, 255, .55); font-size: 12px; }

.footer__about {
  margin-top: 22px;
  max-width: 34ch;
  color: rgba(255, 255, 255, .6);
  font-size: 15px;
  line-height: 1.6;
}

.socials { margin-top: 26px; display: flex; gap: 12px; }

.socials a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-sm);
  color: #fff;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.socials a:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }

.footer__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 20px;
}

.footer__list { display: grid; gap: 14px; }

.footer__list a {
  color: rgba(255, 255, 255, .86);
  font-size: 15px;
  transition: color .18s ease;
}

.footer__list a:hover { color: var(--red); }

.footer__contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 32px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-contact { display: flex; gap: 14px; }
.footer-contact svg { flex: none; color: var(--red); margin-top: 2px; }

.footer-contact__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}

.footer-contact__value { margin-top: 8px; font-size: 15.5px; line-height: 1.5; }
.footer-contact__value a { display: block; transition: color .18s ease; }
.footer-contact__value a:hover { color: var(--red); }
.footer-contact__note { margin-top: 6px; color: rgba(255, 255, 255, .5); font-size: 13px; }

.footer__bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, .45);
  font-size: 14px;
}

.footer__legal { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; transition: color .18s ease; }
.footer__legal a:hover { color: #fff; }

/* -------------------------------------------------------------- reveal --- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .slider__track { transition: none; }
}

/* ------------------------------------------------------------ responsive - */

@media (max-width: 1180px) {
  .nav__list { gap: 22px; }
  .header__inner { gap: 18px; }
  .header__phone { font-size: 17px; }
}

@media (max-width: 1080px) {
  :root { --header-h: 76px; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    bottom: 0;
    margin: 0;
    padding: 22px 24px 40px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    transform: translateX(-100%);
    transition: transform .28s ease;
    overflow-y: auto;
    z-index: 70;
  }

  .nav.is-open { transform: none; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }

  .nav__link {
    padding: 16px 4px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
  }

  .nav__link::after { display: none; }

  .nav__cta { margin-top: 26px; }
  .nav__cta .btn { padding: 17px 24px; }

  .burger { display: block; order: 3; }
  .nav__cta { display: block; }
  .header__contacts { margin-left: auto; }
  .header__cta { display: none; }

  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__media { aspect-ratio: 16 / 11; }
  .hero__stats { margin: -60px auto 0; }

  .about__grid, .split, .lead__grid { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
  .about__media { position: static; aspect-ratio: 16 / 10; }

  .compose__bg { width: 100%; opacity: .2; }
  .compose__bg::after { background: linear-gradient(90deg, var(--bg) 20%, rgba(246, 245, 243, .7) 100%); }
  .modules { max-width: none; }

  .project-card__info { grid-template-columns: 1fr 1fr; }
  .project-card__facts { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); display: grid; }

  .projects .slider__arrow--prev { left: 12px; }
  .projects .slider__arrow--next { right: 12px; }
  .projects .slider__viewport { aspect-ratio: 16 / 8; }
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }

  .solutions__grid, .tariffs, .mini-cards, .about__cards, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tag-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tag-strip li:nth-child(3n) { border-right: 0; }
  .tag-strip li:nth-child(-n+3) { border-bottom: 1px solid var(--line-soft); }
  .hero__stats { grid-template-columns: 1fr; }
  .hero-stat { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .hero-stat__name { min-height: 0; }
  .video-topics { grid-template-columns: 1fr; }
  .video-topics li { border-right: 0; border-bottom: 1px solid var(--line-soft); justify-content: flex-start; }
  .video-topics li:last-child { border-bottom: 0; }
  .video { aspect-ratio: 16 / 9; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__contacts { grid-template-columns: 1fr 1fr; gap: 26px; }
  .steps__row { padding-top: 34px; position: relative; }

.steps::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px);
}

.step__num { z-index: 1; }
  .step { padding-top: 46px; }
}

@media (max-width: 680px) {
  :root { --radius-lg: 18px; --radius: 14px; }

  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero { padding-top: 34px; }

  .section-title { font-size: 27px; }
  .hero__title { font-size: 31px; }
  .hero__text { font-size: 16px; margin-top: 18px; }
  .hero__actions { margin-top: 26px; }
  .hero__actions .btn { width: 100%; }
  .hero__media { aspect-ratio: 4 / 3; }
  .hero__stats { margin-top: -40px; }

  .solutions__grid, .tariffs, .mini-cards, .about__cards, .steps,
  .modules, .spec-grid, .lead__numbers { grid-template-columns: 1fr; }

  .tag-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tag-strip li { border-bottom: 1px solid var(--line-soft); }
  .tag-strip li:nth-child(2n) { border-right: 0; }

  .cta-banner { padding: 22px 20px; gap: 18px; }
  .cta-banner .btn { width: 100%; }
  .cta-banner__icon { width: 48px; height: 48px; }

  .projects__top { margin-bottom: 26px; }
  .filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .filter { white-space: nowrap; }

  .projects .slider__viewport { aspect-ratio: 4 / 3; }
  .project-card__info { grid-template-columns: 1fr; gap: 22px; padding: 24px 20px; }
  .project-card__facts { grid-template-columns: 1fr 1fr; }
  .project-card__title { font-size: 20px; }

  .slider__arrow { width: 40px; height: 40px; }
  .slider__arrow--prev, .projects .slider__arrow--prev { left: 10px; }
  .slider__arrow--next, .projects .slider__arrow--next { right: 10px; }

  .slide__caption { font-size: 13px; padding: 34px 16px 14px; }
  .slide__badge { top: 12px; left: 12px; padding: 7px 12px; font-size: 11px; }

  .form-card { padding: 26px 20px 24px; }
  .form-card__title { font-size: 22px; }
  .faq__btn { padding: 18px 18px; gap: 14px; }
  .faq__q { font-size: 15.5px; }
  .faq__icon { width: 40px; height: 40px; }
  .faq__answer { padding: 0 18px 20px 18px; font-size: 15px; }

  .geo { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }

  .footer { padding-top: 52px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .footer__contacts { grid-template-columns: 1fr; padding: 28px 0; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__legal { gap: 16px; }

  .header__contacts > span { display: none; }
  .header__phone-icon { width: 44px; height: 44px; }
  .brand__word { font-size: 24px; }
  .brand__sub { font-size: 9.5px; letter-spacing: .3em; }
}

