/* ============================================================
   SCHTERN — Оконный завод | style.css
   Цветовая палитра: красный логотипа + тёмно-синий + белый + серый
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --red:       #C8262A;
  --red-dark:  #A01E21;
  --red-light: #E8494D;
  --navy:      #1A2740;
  --navy-mid:  #243450;
  --navy-light:#2E4068;
  --steel:     #4A5A6E;
  --silver:    #8B97A8;
  --light:     #F4F6F9;
  --white:     #FFFFFF;
  --text:      #1E2A38;
  --text-muted:#5A6878;
  --border:    #D8E0EA;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(26,39,64,0.08);
  --shadow:    0 8px 32px rgba(26,39,64,0.12);
  --shadow-lg: 0 20px 60px rgba(26,39,64,0.18);

  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Golos Text', system-ui, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 { color: var(--navy); margin-bottom: 16px; }
.section-desc { color: var(--text-muted); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }
.section-header--light h2 { color: var(--white); }
.section-header--light .section-desc { color: rgba(255,255,255,0.75); }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(200,38,42,0.08);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-label--light {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(200,38,42,0.35); }
.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline-white:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }
.btn--white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  }
.btn--white:hover { background: var(--light); transform: translateY(-2px); }
.btn--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--navy:hover { background: var(--navy-light); border-color: var(--navy-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,39,64,0.35); }
.btn--sm { padding: 9px 20px; font-size: 0.875rem; }
.btn--full { width: 100%; justify-content: center; }

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26,39,64,0.97);
  backdrop-filter: blur(12px);
  transition: box-shadow var(--transition);
  height: 68px;
}
.header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.25); }

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.header__logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.header__nav {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
}
.header__nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.header__nav a:hover { color: var(--white); }
.header__nav a:hover::after { transform: scaleX(1); }

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--red);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  white-space: nowrap;
}
.header__phone:hover { background: var(--red-dark); }

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.header__burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}
.header__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26,39,64,0.90) 0%,
    rgba(26,39,64,0.70) 60%,
    rgba(26,39,64,0.40) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,38,42,0.2);
  border: 1px solid rgba(200,38,42,0.5);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
}
.hero__title {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 3.3rem); 
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero__title .accent { color: var(--red-light); }
.hero__title-sub {
  font-size: clamp(1.6rem, 4vw, 3.0rem);
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
}
.hero__subtitle {
  color: rgba(255,255,255,0.82);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 20px 28px;
  width: fit-content;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}
.hero__stat strong {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.03em;
}
.hero__stat span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  text-align: center;
  margin-top: 2px;
}
.hero__stat-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.2);
}
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
  z-index: 1;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- UTP ---------- */
.utp { background: var(--light); }
.utp__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.utp__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid transparent;
  transition: all var(--transition);
}
.utp__card:hover {
  border-top-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.utp__icon {
  width: 52px; height: 52px;
  background: rgba(200,38,42,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--red);
  margin-bottom: 18px;
}
.utp__card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 10px; }
.utp__card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* ---------- ADVANTAGES ---------- */
.advantages {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.advantages__bg-text {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 400;
  color: rgba(255,255,255,0.03);
  letter-spacing: 0.1em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}
.advantages .container { position: relative; z-index: 1; }
.advantages__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.advantages__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.advantages__item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(200,38,42,0.4);
}
.advantages__icon {
  width: 48px; height: 48px;
  min-width: 48px;
  background: var(--red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}
.advantages__text h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.advantages__text p { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.65; }
.advantages__text p small { display: block; margin-top: 8px; font-size: 0.78rem; color: rgba(255,255,255,0.4); font-style: italic; }

/* ---------- HOW IT WORKS ---------- */
.howworks { background: var(--white); }
.howworks__steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 16px;
  margin-bottom: 48px;
}
.howworks__step {
  text-align: center;
  background: var(--light);
  border-radius: var(--radius);
  padding: 32px 20px;
  position: relative;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}
.howworks__step:hover {
  border-bottom-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.howworks__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: rgba(200,38,42,0.12);
  position: absolute;
  top: 12px; right: 16px;
  line-height: 1;
}
.howworks__icon {
  width: 56px; height: 56px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  margin: 0 auto 16px;
}
.howworks__step h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.05rem; }
.howworks__step p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
.howworks__arrow {
  display: flex;
  align-items: center;
  color: var(--border);
  font-size: 1.5rem;
  padding-top: 56px;
}
.howworks__cta { text-align: center; }

/* ---------- CATALOG ---------- */
.catalog { background: var(--light); }
.catalog__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 36px;
  background: var(--white);
  padding: 4px;
  border-radius: var(--radius-sm);
  /* width: fit-content; */
  box-shadow: var(--shadow-sm);
}
.catalog__tab {
  padding: 10px 24px;
  border: none;
  background: none;
  border-radius: calc(var(--radius-sm) - 2px);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.catalog__tab.active {
  background: var(--red);
  color: var(--white);
}
.catalog__tab:hover:not(.active):not(:disabled) { background: var(--light); color: var(--navy); }

/* Некликабельные вкладки «скоро» */
.catalog__tab--soon {
  opacity: 0.45;
  cursor: not-allowed;
  position: relative;
}
.catalog__tab--soon::after {
  position: absolute;
  top: -6px;
  right: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel);
  background: var(--border);
  padding: 1px 5px;
  border-radius: 3px;
}

.catalog__pane { display: none; }
.catalog__pane.active { display: block; }

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.catalog__grid--2 { grid-template-columns: repeat(2, 1fr); }

.catalog__card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.catalog__card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.catalog__card--featured { box-shadow: 0 0 0 2px var(--red), var(--shadow); }
.catalog__card--featured:hover { box-shadow: 0 0 0 2px var(--red), var(--shadow-lg); }

.catalog__img-wrap {
  position: relative;
  background: #f8f9fa;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.catalog__img-wrap img { max-height: 160px; object-fit: contain; }

.catalog__badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--steel);
  color: var(--white);
}
.catalog__badge--blue { background: var(--navy-mid); }
.catalog__badge--gold { background: #B8860B; }
.catalog__badge--red  { background: var(--red); }

.catalog__info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.catalog__info h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.catalog__info h3 span { color: var(--red); }
.catalog__desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; margin-bottom: 14px; }

.catalog__specs { margin-bottom: 16px; flex: 1; }
.catalog__specs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.catalog__specs li:last-child { border-bottom: none; }
.catalog__specs li span { color: var(--text-muted); }
.catalog__specs li strong { color: var(--text); font-weight: 600; }

.catalog__gallery-title {
  text-align: center;
  margin-bottom: 24px;
  padding-top: 8px;
}
.catalog__gallery-title h3 { color: var(--navy); }

/* ---------- ABOUT ---------- */
.about { background: var(--white); }
.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about__content h2 { color: var(--navy); margin-bottom: 20px; }
.about__content p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; font-size: 0.95rem; }
.about__content p strong { color: var(--navy); }

.about__counters {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.about__counter { text-align: center; flex: 1; }
.about__counter strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--red);
  letter-spacing: 0.02em;
}
.about__counter span { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; display: block; }

.about__gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.about__photo {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform var(--transition);
}
.about__photo:hover { transform: scale(1.02); }
.about__photo--large {
  grid-column: 1 / -1;
  aspect-ratio: 16/7;
}
/* .about__photo--wide {
  grid-column: 1 / -1;
  aspect-ratio: 16/6;
} */

/* ---------- REVIEWS ---------- */
.reviews { background: var(--light); }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.reviews__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid transparent;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.reviews__card:hover {
  border-left-color: var(--red);
  box-shadow: var(--shadow);
}
.reviews__stars {
  color: #F5A623;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.reviews__card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  font-style: italic;
  flex: 1;
  margin-bottom: 20px;
}
.reviews__author { display: flex; align-items: center; gap: 12px; }
.reviews__avatar {
  width: 40px; height: 40px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.reviews__author strong { display: block; font-size: 0.9rem; color: var(--navy); }
.reviews__author span { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- WHERE TO BUY ---------- */
.where { background: var(--white); }
.where__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.where__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.where__grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.where__card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
/* Акцентная карточка — красная рамка сверху */
.where__card--accent {
  border-top: 3px solid var(--red);
  background: var(--white);
}
.where__card--accent h3 {
  font-size: 0.95rem;
  line-height: 1.4;
}
.where__icon {
  width: 52px; height: 52px;
  background: var(--red);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.3rem;
  margin-bottom: 16px;
}
.where__icon--light { background: rgba(255,255,255,0.15); }
.where__card h3 {
    color: var(--red);
    margin-bottom: 12px;
    margin-bottom: 14px;
    padding: 5px 10px;
    background: rgba(200, 38, 42, 0.08);
    border-radius: var(--radius-sm);
    display: inline-block;
}
.where__note {
  font-size: 0.82rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 14px;
  padding: 5px 10px;
  background: rgba(200,38,42,0.08);
  border-radius: var(--radius-sm);
  display: inline-block;
}
.where__card address p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.where__card address p i { color: var(--red); margin-top: 2px; min-width: 14px; }
.where__card address a { color: var(--navy); font-weight: 600; }
.where__card address a:hover { color: var(--red); }
.where__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  flex-wrap: wrap;
}
.where__map-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
}
.where__map-btn:hover { background: var(--navy-mid); }

.where__card--cta {
  background: var(--navy);
  border-color: var(--navy);
}
.where__card--cta h3 { color: var(--white); background: rgb(26 39 64);}
.where__cta-text {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}
.where__free {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
  margin-top: 8px;
}

/* ---------- FAQ ---------- */
.faq { background: var(--light); }
.faq__list {
  max-width: 820px;
  margin: 0 auto;
}
.faq__item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}
.faq__question:hover { background: var(--light); }
.faq__question[aria-expanded="true"] { color: var(--red); }
.faq__icon {
  color: var(--red);
  font-size: 0.8rem;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq__question[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq__answer p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- CONTACT FORM ---------- */
.contact-form-section {
  background: var(--navy);
  padding: 80px 0;
}
.contact-form-section__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.contact-form-section__info h2 { color: var(--white); margin-bottom: 16px; }
.contact-form-section__info > p { color: rgba(255,255,255,0.7); margin-bottom: 28px; font-size: 1rem; }

.contact-form-section__perks { margin-bottom: 32px; }
.contact-form-section__perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.contact-form-section__perks li i { color: #4CAF50; font-size: 0.9rem; }

.contact-form-section__contacts { display: flex; flex-direction: column; gap: 4px; }
.contact-form-section__phone {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.contact-form-section__phone:hover { color: var(--red-light); }
.contact-form-section__free { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-left: 34px; }

/* Form */
.contact-form-section__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--red); }
.form-group input.error,
.form-group select.error { border-color: #e53e3e; }
.form-error { display: block; font-size: 0.78rem; color: #e53e3e; margin-top: 4px; min-height: 18px; }

.form-group--checkbox {
  display: flex;
  flex-direction: column;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom {
  width: 18px; height: 18px;
  min-width: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  margin-top: 1px;
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--red);
  border-color: var(--red);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  display: block;
  width: 5px; height: 9px;
  border: 2px solid white;
  border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}
.link { color: var(--red); text-decoration: underline; }

.form-note { font-size: 0.76rem; color: var(--text-muted); text-align: center; margin-top: 12px; }

.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success i { font-size: 3.5rem; color: #4CAF50; margin-bottom: 16px; }
.form-success h3 { color: var(--navy); margin-bottom: 8px; }
.form-success p { color: var(--text-muted); }

/* ---------- FINAL CTA ---------- */
.final-cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.final-cta__bg {
  position: absolute;
  inset: 0;
}
.final-cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.final-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,39,64,0.92), rgba(200,38,42,0.7));
}
.final-cta__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}
.final-cta__content h2 { margin-bottom: 16px; font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.final-cta__content p { color: rgba(255,255,255,0.8); margin-bottom: 36px; font-size: 1.05rem; }
.final-cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy); padding: 64px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand img { margin-bottom: 16px; opacity: 0.9; }
.footer__brand p { color: rgba(255,255,255,0.55); font-size: 0.88rem; line-height: 1.6; margin-bottom: 20px; }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  transition: all var(--transition);
}
.footer__socials a:hover { background: var(--red); color: var(--white); }

.footer__col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__col nav { display: flex; flex-direction: column; gap: 8px; }
.footer__col nav a { color: rgba(255,255,255,0.55); font-size: 0.88rem; transition: color var(--transition); }
.footer__col nav a:hover { color: var(--white); }

.footer__contacts address p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  margin-bottom: 12px;
  line-height: 1.5;
}
.footer__contacts address p i { color: var(--red); margin-top: 2px; min-width: 14px; }
.footer__contacts address a { color: rgba(255,255,255,0.85); }
.footer__contacts address a:hover { color: var(--white); }
.footer__contacts address small { display: block; font-size: 0.76rem; color: rgba(255,255,255,0.4); margin-top: 2px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom p { color: rgba(255,255,255,0.4); font-size: 0.82rem; }
.footer__bottom a { color: rgba(255,255,255,0.4); text-decoration: underline; }
.footer__bottom a:hover { color: var(--white); }

/* ---------- MAX WIDGET ---------- */
/* Стили виджета MAX предоставлены внешним скриптом — дополнительный CSS не нужен */

/* ---------- COOKIE ---------- */
.cookie-notice {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  border-top: 2px solid var(--red);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 1500;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-notice.visible { transform: translateY(0); }
.cookie-notice p { color: rgba(255,255,255,0.8); font-size: 0.85rem; }
.cookie-notice a { color: var(--red-light); text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .utp__grid { grid-template-columns: repeat(2, 1fr); }
  .catalog__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .where__grid--3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__phone span { display: none; }
  .header__phone { padding: 8px 12px; }
  .header__burger { display: flex; }

  /* Mobile nav open */
  .header__nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--navy);
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .header__nav.open a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
  }

  .hero__stats { flex-wrap: wrap; justify-content: center; }
  .hero__stat-divider { display: none; }
  .hero__stat { padding: 10px 20px; }

  .howworks__steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto 48px;
  }
  .howworks__arrow { display: none; }

  .advantages__grid { grid-template-columns: 1fr; }
  .about__layout { grid-template-columns: 1fr; }
  .about__gallery-grid { grid-template-columns: 1fr 1fr; }
  .about__photo--large { grid-column: 1 / -1; }

  .reviews__grid { grid-template-columns: 1fr; }
  .where__grid { grid-template-columns: 1fr; }
  .contact-form-section__layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .utp__grid { grid-template-columns: 1fr; }
  .catalog__grid { grid-template-columns: 1fr; }
  .catalog__grid--2 { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .contact-form-section__form { padding: 24px; }
  .final-cta__actions { flex-direction: column; align-items: center; }
  .cookie-notice { flex-direction: column; text-align: center; }
  .about__counters { flex-direction: column; gap: 16px; }
}
