:root {
  --x: 0;
  --y: 0;
  
  /* --- РАЗМЕРЫ --- */
  --header-height: 72px;
  --btn-height: 44px;            
  --input-height: 44px;

  /* --- КОНТЕЙНЕРЫ --- */
  --container-width-desktop: 1200px;
  --container-width-tablet: 960px;
  --container-width-mobile: 100%;

  /* --- ЦВЕТА --- */
  --color-indigo-dark: #0b0e15; 
  --color-indigo-mid: #131822;     
  --color-indigo-light: #1a2130; 
  --color-indigo-muted: #555;
  --color-accent: #C93B2B;
  --color-accent-hover: #a02e22;

  --color-text-main: #ffffff;
  --color-text-muted: #cccccc;
  --color-text-strong: #f0f0f0;

  /* --- ДЛЯ СЕКЦИЙ --- */
  --section-bg-dark: linear-gradient(135deg, var(--color-indigo-dark), var(--color-indigo-mid), var(--color-indigo-light));
  --section-bg-light: #f9fbfc;

  /* Цвета текста для светлой секции */
  --text-dark-on-light: #0b0e15;
  --text-muted-on-light: #5a6275;

  /* --- РАДИУСЫ --- */
  --radius-sm: 4px; 
  --radius-md: 8px;  
  --radius-lg: 12px;
  --radius-xl: 16px; 
  --radius-pill: 999px;

  /* --- ТЕНИ --- */
  --shadow-sm: 0 2px 8px rgba(19, 24, 34, 0.12);
  --shadow-md: 0 4px 16px rgba(19, 24, 34, 0.16);
  --shadow-lg: 0 8px 32px rgba(19, 24, 34, 0.20);

  /* --- ОТСТУПЫ --- */
  --space-xs: 8px;
  --space-sm: 16px; 
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;
  --space-big: 5em;

  --section-padding-small: 40px;
  --section-padding: 80px;       
  --section-padding-mobile: 48px;
  --section-big-padding: 160px;       

  /* --- СТИЛИ ДЛЯ КАРТОЧЕК (light) --- */
  --card-bg: #ffffff;                 
  --card-border: rgba(19, 24, 34, 0.1); 
  --card-radius: var(--radius-md);  
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); 
  --card-padding: var(--space-md); 
  --card-hover-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  
  --shrink: 0;
}

/* -----------------------------------------
   BASE
   ----------------------------------------- */
html {
  background-color: var(--color-indigo-dark); 
}

body {
  margin: 0;
  padding-top: var(--header-height, 72px);
  min-height: 100vh;
  color: var(--color-indigo-dark);
  background: var(--section-bg-dark);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
}

.wrapper {
  max-width: var(--container-width-desktop);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
  width: 100%;
  box-sizing: border-box;
  z-index: 2;
}

.container {
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
  box-sizing: border-box;
}

.section-block {
  width: 100%;
  background: var(--section-bg-dark);
  color: var(--color-text-main);
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.section-block.section-compact {
  padding-top: var(--section-padding-small);
  padding-bottom: var(--section-padding-small);
}

.section-block.section-light {
  background: var(--section-bg-light);
  color: var(--text-dark-on-light);         
}

.section-block.section-light .section-title {
  color: var(--text-dark-on-light);
}

.section-light .section-category {
    color: var(--color-indigo-muted);
}

.section-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5); /* на тёмном фоне */
  margin: 0 0 0.75rem 0;
  font-weight: 500;
}


h1, h2, h3, .section-title, .section-category {
  font-family: 'Playfair Display', sans-serif;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 var(--space-xxl);
  color: var(--color-text-main);
}

.title-part-dark {
  color: var(--color-indigo-dark); 
}

.title-part-accent {
  color: var(--color-accent);
}

.section-dark .section-title {
    font-weight: 450;
}

.card-title {
  margin: 0 0 var(--space-sm) 0;
  font-weight: 600;
  color: var(--text-dark-on-light);
  line-height: 1.3;
}

.card-description {
    margin: 0;
    color: var(--text-muted-on-light);
    flex-grow: 1;
    font-size: 0.95rem;
}

.section-dark .card-title {
    color: var(--color-text-main) !important;
    margin: 0 0 var(--space-xs) 0;
    font-weight: 500;
}

.section-dark .card-description {
    margin: 0;
    color: rgba(255, 255, 255, 0.78) !important;
}

.text-main-dark {
  color: var(--color-text-main);
}

.text-muted {
  color: var(--color-text-muted);
}

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



@media (max-width: 768px) {
    .section-block.section-light {
     padding: var(--space-md) 0 var(--space-md) 0;
    }
    

}

/* -----------------------------------------
   ОБЩИЕ СТИЛИ ДЛЯ КАРТОЧЕК-ПУНКТОВ
   ----------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: var(--space-xl) 0 0;
}

.card-item {
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-icon {
  color: var(--color-accent);
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 4px;
}

/* -----------------------------------------
   ТЁМНЫЕ КАРТОЧКИ ВНУТРИ ТЁМНОГО БЛОКА
   ----------------------------------------- */
.dark-card {
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-indigo-muted); /* почти белый, но не «режущий» */
  box-shadow: none;

  gap: var(--space-sm);
  padding: var(--card-padding);
  border-radius: var(--card-radius);
}

.dark-card:hover {
background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

/* Заголовок внутри тёмной карточки — чистый белый */
.dark-card .card-title {
  color: var(--color-text-main) !important;
  margin: 0 0 var(--space-xs) 0;
  font-weight: 500;
}

/* Описание внутри тёмной карточки — приглушённый белый (лучше читается на градиенте) */
.dark-card .card-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.78) !important;
  flex-grow: 1;
}

/* text-main-dark внутри тёмной карточки */
.dark-card .text-main-dark {
  color: var(--color-text-main) !important;
}

/* text-muted внутри тёмной карточки — ещё более приглушённый */
.dark-card .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Акцент внутри тёмной карточки — остаётся ярким */
.dark-card .text-accent {
  color: var(--color-accent) !important;
  font-weight: 700;
}

/* -----------------------------------------
   ВЕРТИКАЛЬНЫЕ КАРТОЧКИ
   ----------------------------------------- */
   
.vertical-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.vertical-card {
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  position: relative;

  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Активная карточка (от скролла) */
.vertical-card.is-active {
  box-shadow: var(--card-hover-shadow);
}

.step-number-large {
  position: absolute;
  top: 5px;
  left: -35px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 70px;
  font-weight: 700;
  color: rgba(68, 78, 102, 0.3);
  z-index: 1;
  pointer-events: none;

  transition: color 0.4s ease;
}

.step-number-large::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;

  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Активный номер — ярче, кольцо светится акцентом */
.vertical-card.is-active .step-number-large {
  color: rgba(68, 78, 102, 0.65);
}



.process-text {
  color: var(--text-muted-on-light);
  line-height: 1.5;
  margin: 0;
}

.process-title-block {
  margin: 0;
  line-height: 1.1;
}


/* --- УНИВЕРСАЛЬНАЯ КНОПКА --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-md);
  height: var(--btn-height);
  line-height: 1;
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-text-main);
  background-color: var(--color-accent);
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.btn:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  opacity: 0.85;
}

.btn.btn-sm {
  padding: 0 var(--space-sm);
  height: 36px;
  font-size: 0.9rem;
}

.btn.btn-lg {
  padding: 0 var(--space-lg);
  height: 65px;
  border-radius: var(--radius-lg);
  margin-top: var(--space-sm);
}

.btn.btn-pill {
  border-radius: var(--radius-pill);
  padding: 0 var(--space-lg);
}

.btn.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn.btn-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-text-main);
}

/* Адаптив: на планшете 2 колонки, на мобильном — 1 */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .step-number-large {
        left: -18px;
        font-size: 2rem;
        top: 3px;
  }
}

/* -----------------------------------------
   WARNING-BANNER
   ----------------------------------------- */
.warning-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--card-radius);
  background: rgba(201, 59, 43, 0.06);
  border: 1px solid rgba(201, 59, 43, 0.25);
  border-left: 4px solid var(--color-accent);
}

.warning-banner-icon {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.warning-banner-text {
  line-height: 1.5;
  color: var(--color-indigo-muted);
}

.warning-banner-text strong {
  color: var(--color-indigo-dark);
}



/* -----------------------------------------
   STICKY-БЛОК
   ----------------------------------------- */
.sticky-header-block {
  position: sticky;
  top: var(--space-xxl);
  height: fit-content;
  z-index: 10;
  padding-top: var(--space-md);
}

@media (max-width: 768px) {
  .sticky-header-block {
    position: static;
    top: auto;
    padding-top: var(--space-md, 16px);
    z-index: auto;
  }
}



/* -----------------------------------------
   PAGE-HERO
   ----------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  height: 50lv;
  display: flex;
  align-items: center;
  overflow-anchor: none;
}

/* Слой картинки */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;      /* ключевое: сохраняет пропорции, заполняет блок */
  background-position: right center; /* центр кадра остаётся в фокусе при обрезке */
  z-index: 1;
}

/* Затемнение поверх картинки */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* градиент сверху вниз, чтобы текст читался даже на светлых участках фото */
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 5%,
    rgba(0, 0, 0, 0.8) 65%,
    rgba(0, 0, 0, 0.86) 90%
  );
  z-index: 2;
}

/* Контент плавно уменьшается и тает */
.page-hero .wrapper {
  position: relative;
  z-index: 3;
  transform: translateY(calc(var(--shrink, 0) * -30%))
             scale(calc(1 - var(--shrink, 0) * 0.3));
  opacity: calc(1 - var(--shrink, 0));
  will-change: transform, opacity;
      padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}



/* -----------------------------------------
   HEADER
   ----------------------------------------- */
.site-header {
  background-color: rgba(11, 14, 21, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-text-main);

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 72px;
}

.logo img {
  display: block;
  height: 40px;
  width: auto;
}

/* Десктопное горизонтальное меню */
.menu-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-link {
  font-family: Manrope, sans-serif;
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-text-main);
  text-decoration: none;
  padding: 8px 12px;
  font-size: 0.85em; 
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.menu-link.active,
.menu-link[aria-current="page"] {
  color: var(--color-accent);
}

.menu-link:hover:not(.active) {
  color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.phone-link {
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 15px;
}

/* Гамбургер (скрыт на десктопе) */
.header-nav {
  position: relative;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.menu-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-main, #fff);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Анимация крестика */
.menu-toggle.active .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* -----------------------------------------
   МОБИЛЬНОЕ МЕНЮ — единый стиль везде
   ----------------------------------------- */
@media (max-width: 768px) {
  .header-actions,
  .phone-link {
    display: none !important;
  }

  .header-inner {
    height: 64px !important;
  }

  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  /* Гарантируем, что меню позиционируется относительно шапки */
  .header-nav {
    position: static !important; 
  }

  /* Стили контейнера меню */
  .menu-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    flex-direction: column;
    gap: 0; /* Отступы делаем через padding у ссылок, чтобы border был по всей ширине */

    background: rgba(11, 14, 21, 0.98); /* Чуть плотнее, чтобы не просвечивало */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Тонкая светлая линия сверху, отделяющая от шапки */
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    padding: 12px 0 8px; /* Небольшой отступ сверху и снизу */

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 100;
    margin: 0; /* Убираем любые внешние отступы списка */
  }

  .menu-list.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* ГЛАВНОЕ: стили пунктов меню (перебивают всё остальное) */
  .menu-link, 
  .menu-link:link, 
  .menu-link:visited {
    display: block !important;
    width: 100% !important; /* Растягиваем ссылку на всю ширину */
    padding: 16px 24px;      /* Четкие отступы: слева/справа больше, чтобы текст не прилипал */
    font-size: 18px !important; /* Фиксированный размер, игнорируем 0.85em */
    line-height: 1.2;       /* Плотный текст, без дыр */
    font-family: Manrope, sans-serif;
    font-weight: 500;
    color: var(--color-text-main, #ffffff) !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    
    /* Разделитель: полупрозрачный белый, но не слишком яркий */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); 
    
    box-sizing: border-box; /* Чтобы padding не увеличивал ширину сверх 100% */
    transition: background-color 0.2s ease;
  }

  /* Убираем разделитель у последнего пункта */
  .menu-link:last-child {
    border-bottom: none;
  }

  /* Ховер эффект (полупрозрачный серый, а не голубой) */
  .menu-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.08) !important;
  }

  /* Активный пункт (цвет акцента) */
  .menu-link.active,
  .menu-link[aria-current="page"] {
    color: var(--color-accent) !important;
    background-color: transparent !important;
  }
  
  /* УБИРАЕМ ГОЛУБОЕ СВЕЧЕНИЕ ПРИ КЛИКЕ */
  .menu-link:active,
  .menu-link:focus {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    outline: none;
    background-color: rgba(255, 255, 255, 0.05) !important; /* Легкий клик-эффект, если нужен */
  }
}



/* =========================================================
   ХЛЕБНЫЕ КРОШКИ (BREADCRUMBS)
   ========================================================= */
.breadcrumbs-section {
  margin-bottom: 0; 
    padding-bottom: 0;
    padding-top: var(--space-sm);
    font-size: 13px;
}

/* Выравнивание внутри wrapper: на всю ширину, без прилипания к краям */
.section-light .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 16px 0;       /* вертикальный отступ внутри секции */
  box-sizing: border-box;
}

/* Ссылки: тёмные, читаемые на светлом фоне */
.section-light .bread-link {
  color: var(--color-indigo-muted);
  text-decoration: none;
  white-space: nowrap;   /* чтобы слова не разрывались на две строки */
}

.section-light .bread-link:hover,
.section-light .bread-link:focus {
  color: var(--color-accent);
  outline: none;
}

/* Текущая страница: жирный, почти чёрный */
.section-light .bread-current {
  var(--color-indigo-dark);
  font-weight: 700;
}

/* Разделитель: нейтральный серый */
.section-light .breadcrumbs span[aria-hidden="true"] {
  color: #999999;
}





/* -----------------------------------------
   LANDING_HOME
   ----------------------------------------- */
/* -----------------------------------------
   HERO-VIDEO
   ----------------------------------------- */
.hero-section {
  position: relative;
  width: 100%;
  height: 60vh;        
  overflow: hidden;
}

.hero-video__player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: left;
  color: var(--color-text-main);
  box-sizing: border-box; 
}

.hero-title {
  margin-top: 0;         
  margin-bottom: var(--space-xl);
  font-size: clamp(1.7rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 500;
}

.hero-subtitle {
  font-size:  clamp(1rem, 1.6rem, 1.3rem);
  line-height: 1.5;
  color: #ffffff; 
  margin-bottom: var(--space-lg);
  opacity: 0.95;
}
.hero-title, .hero-subtitle {
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-cta-group {
  display: grid;
  grid-template-columns: repeat(2, max-content); /* две колонки по содержимому */
  gap: 16px;                                    /* отступ между кнопками */
  justify-items: start;                         /* прижать влево (или center, если нужно по центру) */
}

.hero-cta-group .btn {
  flex: 1 1 50%;           /* каждая кнопка стремится занять 50% */
}

.benefit-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #ffffff; /* цвет кружка (белый) */
  border-radius: 50%;         /* делает из квадрата круг */
  margin-right: 8px;         /* отступ от текста */
  vertical-align: middle;    /* чтобы кружок стоял ровно по центру строки */
  flex-shrink: 0;            /* чтобы кружок не сплющивался на мобильных */
}

.hero-benefits-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-benefit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(4px);
}

.icon-small {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

@media (max-width: 600px) {
  .hero-section {
      height: 100%;
  }
    .hero-section {
    background: url('/assets/images/background/hero-poster.png') center / cover no-repeat;
    /* высота на мобильном — по контенту, но с минимумом */
    min-height: 480px;
    display: flex;
    align-items: center;   /* контент по вертикали по центру */
  }
  .hero-video__player {
      display: none;
  }
  .hero-benefits-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-benefit-item {
    justify-content: center;
  }
  
    .hero-cta-group .btn {
    flex: 1 1 100%;         /* на мобильном — 100% ширины */
  }
}


/* -----------------------------------------
   АДАПТИВ: МОБИЛЬНЫЕ ЭКРАНЫ
   ----------------------------------------- */
@media (max-width: 768px) {
  .main-menu .menu-list {
    gap: var(--space-sm);
  }

  .phone-link, .btn {
    font-size: 14px;
    padding: 0 var(--space-sm);
    height: 32px;
  }

  .section-block {

  }
  
  .hero-content {
    padding: 0;
  }

  .wrapper, .container {
    max-width: var(--container-width-mobile);
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }
  
    .hero-cta-group {
    grid-template-columns: 1fr;                 /* одна колонка */
    justify-items: stretch;                     /* растянуть на всю ширину */
  }
}

/* -----------------------------------------
   карточки ПОЧЕМУ МЫ
   ----------------------------------------- */

.why-choose-us-block {
  position: relative;
  margin-top: -150px;
  padding-top: 80px;
  padding-bottom: var(--space-xl);
  z-index: 2;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--color-indigo-dark) 20%,
var(--color-indigo-dark) 80%,
    var(--color-indigo-dark)
  );
}

.why-choose-us-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px; 
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--color-indigo-dark) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  position: relative;
  z-index: 3;
}

.fact-item {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  top: -80px;
}

.fact-num {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-sm);
  position: relative;

  text-shadow: 0 0 12px rgba(var(--color-accent-rgb), 0.4); 
}

.fact-item p {
  color: #e0e0e0;
  font-size: 1.1rem;
  line-height: 1.45;
  margin: 0;
}

/* -----------------------------------------
   АДАПТИВ: МОБИЛЬНЫЕ ЭКРАНЫ
   ----------------------------------------- */
@media (max-width: 1024px) {
  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .facts-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .fact-item {
      top: 0;
  }

  .section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
  }

  .fact-num {
    font-size: 2rem;
  }
}

/* -----------------------------------------
   СЕКЦИЯ: ПОЧЕМУ ЭТО ВАЖНО
   ----------------------------------------- */
.benefits-section {
    background: linear-gradient(180deg, var(--color-indigo-dark), var(--color-indigo-mid), var(--color-indigo-light));
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0 0;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding-top: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Убираем последний бордер */
.benefit-item:last-child {
  border-bottom: none;
}

.benefit-icon {
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  object-fit: contain;
  display: block;
}

.benefit-content {
  min-width: 0; /* чтобы текст корректно переносился в flex */
}

.benefit-title {
  margin: 0 0 0.375rem 0;
}

.benefit-description {
  margin: 0;
  color: var(--text-muted-on-light, rgba(255,255,255,0.7));
  line-height: 1.5;
}

@media (max-width: 600px) {
  .why-choose-us-block {
    display: none;
  }
}





/* -----------------------------------------
   СЕКЦИЯ: НАШИ УСЛУГИ / ЦЕНЫ НА ПОЛИРОВКУ
   ----------------------------------------- */
.service-prices {
  display: flex;
  flex-direction: column;
  gap: 12px; 
  align-items: stretch;
}


/* Верхняя часть: инфо слева, цена справа */
.service-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

/* Цена справа, не сжимается */
.service-main .service-price {
  white-space: nowrap;
  font-family: Manrope, sans-serif;
  font-weight: 700;
}


/* Нижняя часть: линия сверху, покрытие и доплата справа */
.service-extras {
  padding-top: 12px;
  border-top: 1px solid var(--card-border, #e6e8ec);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-add-on,
.price-extra {
  display: flex;
  justify-content: flex-end;       /* прижимаем допы к правому краю */
  align-items: baseline;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--color-text-secondary, #5a5f6d);
}

.price-add-value,
.price-extra-value {
  font-weight: 600;
}

.price-extra-value {
  color: var(--color-accent, #C93B2B);
}

/* Разделитель */
.price-divider {
  height: 1px;
  background-color: var(--color-border, #e0e0e0);
  margin: 6px 0;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Было: две колонки — из-за этого допы уходили вправо */
.service-row {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 1fr;      /* одна колонка: main сверху, extras снизу */
  align-items: stretch;
  gap: var(--space-sm, 12px);
  transition: box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;              /* важно для абсолютной иконки */
}

.service-row:hover {
    box-shadow: var(--card-hover-shadow);
}

/* Иконка: позиционируется от левого края карточки */
.service-icon {
  position: absolute;
  left: 0;
  top: 50%;
  width: 80px;
  height: 80px;
  object-fit: contain;
  pointer-events: none;

  /* По умолчанию — наполовину спрятана за левым краем */
  transform: translate(-50%, -50%);

  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Активная карточка — машина выезжает целиком */
.service-row.is-active .service-icon {
  transform: translate(0, -50%);
}

.service-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prices-layout .service-price {
    color: var(--text-dark-on-light);
}

.service-row.is-active .service-price {
    color: var(--color-accent);
}
.service-row.is-active .card-title {
    color: var(--color-accent);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  
  /* ГЛАВНОЕ: колонка + 100% высоты */
  display: flex;
  flex-direction: column;
  height: 100%;
  
  text-decoration: none;       
  color: inherit;
  
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--card-border-hover, var(--card-border));
}


/* Блок с картинкой */
.service-img-block {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  position: relative;
    transition: transform 0.5s ease; /* чуть дольше — движение выглядит «дороже» */
}

.service-img-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img-block img {
  transform: scale(1.07); 
}


.service-img-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 14, 21, 0) 60%, rgba(11, 14, 21, 0.25));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover .service-img-block::after {
  opacity: 1;
}

.service-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-arrow {
  color: var(--color-indigo-light);
  font-weight: bold;
  font-size: 1.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-arrow {
  transform: translateX(6px);
  color: var(--color-accent);
}

/* Блок контента (заголовок + описание) — РАСТЯГИВАЕМ */
.service-content {
  padding: var(--space-md);
  flex: 1;                     /* <-- это прижимает футер вниз */
  display: flex;
  flex-direction: column;
}

/* Футер (цена + стрелка) — прижимаем авто-отступом */
.service-footer {
  margin-top: auto;            /* <-- страховка: если flex:1 вдруг не сработает */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}

.service-arrow {
  color: var(--color-indigo-light);
  font-weight: bold;
  font-size: 1.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-arrow {
  transform: translateX(6px);
  color: var(--color-accent);
}


/* -----------------------------------------
   АДАПТИВ: МОБИЛЬНЫЕ ЭКРАНЫ
   ----------------------------------------- */
@media (max-width: 768px) {
  .section-block.section-light .service-row {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  }
  
  .not-to-polish-card .cards-grid {
      padding: 0;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    padding: var(--space-md);
  }

  .service-price {
    text-align: left;
    margin-top: var(--space-sm);
    font-size: 18px;
  }

  .section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: var(--space-md);
  }
}




/* -----------------------------------------
   СЕКЦИЯ: КАЛЬКУЛЯТОР
   ----------------------------------------- */
.calc-card {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.calc-result {
  text-align: center;
  border-left: 1px solid var(--card-border);
  padding-left: var(--space-xl);
}

.calc-label {
  display: block;
  color: var(--text-muted-on-light);
  margin-bottom: var(--space-xs);
}

.calc-price {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-accent);

  transition: opacity 0.25s ease, transform 0.25s ease;
}

.calc-price.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.calc-note {
  color: var(--text-muted-on-light);
  font-size: 0.9rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .calc-card {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .calc-card .btn.btn-lg {
      width: 100%;
      padding: 0;
  }
  
  .calc-result {
    border-left: none;
    border-top: 1px solid var(--card-border);
    padding-left: 0;
    padding-top: var(--space-lg);
  }
}

.form-checkbox-group {
  margin-top: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: Golos Text, sans-serif;
  font-size: 0.95rem;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  clip: rect(0 0 0 0);
  margin: -1px;
}

.checkbox-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  background: transparent;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.checkbox-input:checked + .checkbox-icon {
  background-color: #0B0E15;
  border-color: #0B0E15;
}

.checkbox-input:checked + .checkbox-icon::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='16' height='16'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


/* -----------------------------------------
   СЕКЦИЯ: КАК МЫ РАБОТАЕМ
   ----------------------------------------- */

.how-work-grid {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: var(--space-xl);
  align-items: start; /* важно: колонки не растягиваются друг под друга */
}

.section-with-bg {
  position: relative;
  overflow: clip; /* чтобы ничего не вылезало за края */
}

.section-with-bg::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -120px;    /* запас сверху */
  bottom: -120px; /* запас снизу — вместо inset: 0 */
  z-index: 0;
  pointer-events: none;

  background-image:
    linear-gradient(rgba(11, 14, 21, 0.4), rgba(11, 14, 21, 0.4)),
    url('/assets/images/hero/glass.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* объединяем отражение и параллакс в один transform */
  transform: scaleX(-1) translateY(var(--parallax-y, 0px));
}


.section-with-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background: linear-gradient(
    to left,                        
    rgba(11, 14, 21, 1) 0%,         
    rgba(11, 14, 21, 0.95) 25%,
    rgba(11, 14, 21, 0.8) 55%,
    rgba(11, 14, 21, 0) 90%         
  );
}

.section-with-bg {
  background-image: none;
}

.section-with-bg .wrapper {
  position: relative;
  z-index: 2;
}

.steps-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  position: relative;
  z-index: 2;
}

.step {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: var(--space-xl);
  width: 100%;
  position: relative;
}

.step-icon-box {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: var(--space-sm);

  transition: box-shadow 0.4s ease;
}

.step-icon-box img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: brightness(1.15);

  transition: transform 0.4s ease;
}

.step-num {
  position: absolute;
  top: -20px;
  right: 2px;
  color: var(--color-accent);
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
  z-index: 3;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}

/* ─── Линия между шагами и точка ─── */
.steps-container .step::after {
  content: "";
  position: absolute;
  left: 55px;
  top: 100%;
  width: 1px;
  height: var(--space-xl);
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateX(-50%);
  z-index: 0;
}

.steps-container .step::before {
  content: "";
  position: absolute;
  left: 55px;
  top: calc(100% + var(--space-xl) / 2);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: box-shadow 0.4s ease;
}

.steps-container .step:last-child::after,
.steps-container .step:last-child::before {
  display: none;
}

/* ─── СОСТОЯНИЕ АКТИВНОГО ШАГА (от скролла, не от мыши) ─── */
.step.is-active .step-icon-box {
  box-shadow: 0 0 24px rgba(201, 59, 43, 0.35);
  animation: icon-pulse 1.6s ease-in-out infinite;
}

.step.is-active .step-icon-box img {
  transform: scale(1.15);
}

.step.is-active .step-num {
  opacity: 0.7;
}

.steps-container .step.is-active::before {
  box-shadow: 0 0 8px rgba(201, 59, 43, 0.8);
}

@keyframes icon-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(201, 59, 43, 0.25); }
  50%      { box-shadow: 0 0 32px rgba(201, 59, 43, 0.45); }
}


/* -----------------------------------------
   АДАПТИВ: МОБИЛЬНЫЕ ЭКРАНЫ
   ----------------------------------------- */
@media (max-width: 768px) {
  .how-work-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .steps-container {
    gap: var(--space-sm);
  }

  .step {
    grid-template-columns: 0.2fr 1fr;
    gap: var(--space-md);
    align-items: start;
  }

  .step-icon-box {
    width: 44px;
    height: 44px;
    padding: 5px;
  }

  .step-icon-box img {
    width: 28px;
    height: 28px;
  }

  .step-num {
    top: -4px;
    right: -16px;
    width: 28px;
    height: 28px;
    font-size: 24px;
    opacity: 0.7;
  }

  /* Линия на мобильном — от центра иконки вниз */
  .step:not(.last-step)::after {
    display: none;
  }
  
  .steps-container .step::before {
      display: none;
  }
}



/* -----------------------------------------
   СЕКЦИЯ: ОТЗЫВЫ 
   ----------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: var(--space-xl);
  align-items: stretch; 
  width: 100%;
}

/* -----------------------------------------
   ЛЕВАЯ КОЛОНКА: ОТЗЫВЫ
   ----------------------------------------- */

.reviews-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 610px;
}

.reviews-scroll-area {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

/* Обертка карточек */
.reviews-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.reviews-scroll-area::-webkit-scrollbar {
  width: 6px;
}
.reviews-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}
.reviews-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.review-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  min-height: 180px; 
  width: 100%;       
  box-sizing: border-box;
}

.review-text {
  color: var(--color-text-main);
  line-height: 1.6;
  font-size: 1rem;
  margin: 1.5em 0 0 0;
}

.review-author {
  display: flex;
  justify-content: space-between; 
  align-items: baseline;      
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: var(--space-sm);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.author-name, .review-date {
  color: var(--color-text-muted);
}

.review-date {
  white-space: nowrap;           
  flex-shrink: 0;  
}

/* -----------------------------------------
   ПРАВАЯ КОЛОНКА: ФОРМА
   ----------------------------------------- */
.form-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.form-col .card-white {
  flex: 1;              
  display: flex;
  flex-direction: column;
}

.card-white {
  background: #ffffff;
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  color: var(--text-dark-on-light);
  display: flex;
  flex-direction: column;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.feedback-form h3 {
    margin-top: 0;
    margin-bottom: 0;
}

.form-label {
  color: #333;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-top: 10px;
}

.form-input,
.form-textarea {
  width: 100%;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  color: #1a1a1a;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(201, 59, 43, 0.12);
}

.form-textarea {
  resize: none;
  min-height: 140px;
  max-height: 300px;
}

.form-legal-text {
  margin: var(--space-sm) 0 var(--space-sm);
  font-size: 0.85rem;
  line-height: 1.4;
  color: #555;
  flex-grow: 1; 
}

.policy-link {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.policy-link:hover {
  color: var(--color-accent-hover, #d63b24);
}

.feedback-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feedback-form .btn.btn-lg {
  height: 65px;
  width: 100%;
  margin-top: 0;
}

/* Адаптив */
@media (max-width: 1024px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: flex-start;
  }
  .reviews-col,
  .form-col {
    width: 100%;
  }

  .reviews-scroll-area {
    max-height: 500px;
    overflow-y: auto;
  }
}

/* -----------------------------------------
   АДАПТИВ: МОБИЛЬНЫЕ
   ----------------------------------------- */

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .form-col {
    width: 100%;
  }
  .card-white {
    height: auto;
    padding: var(--space-md);
  }
  .reviews-scroll-area {
    max-height: none;
    height: auto;
    overflow-y: auto;
  }
}




/* -----------------------------------------
   СЕКЦИЯ: ПРИМЕРЫ РАБОТ И РЕЗУЛЬТАТЫ
   ----------------------------------------- */

.works-section .wrapper {
  position: relative;
  z-index: 2;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.work-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  box-shadow: var(--card-hover-shadow);
}

/* Увеличиваем весь блок сравнения целиком */
.work-card:hover .comparison-wrapper {
  transform: scale(1.08);
  transform-origin: center center;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.section-block.section-light .work-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  color: #1a1a1a;
}

.section-block.section-light .work-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}


/* -----------------------------------------
   СЛАЙДЕР «ДО / ПОСЛЕ»
   ----------------------------------------- */
.comparison-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;

  /* плавность живёт здесь — работает и при наведении, и при уходе */
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.work-card:hover .comparison-wrapper {
  transform: scale(1.08);
}

.img-before,
.img-after {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;         /* обрезает сдвинутую картинку «после» */
}

.img-before img,
.img-after img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;     /* клики уходят на сам слайдер */
}

/* Картинка «после» шире контейнера — сдвигается скриптом */

.img-after img {
  position: absolute;
  top: 0;
  left: 0;        /* важно — без left картинка может смещаться при пересчёте */
  width: 100%;    /* важно — жёсткая привязка к ширине контейнера */
  height: 100%;
  object-fit: cover;
  transform: translateX(var(--x, 0px));
}

/* Ручка-ползунок */
.slider-handle {
  position: absolute;
  top: 0;
  left: var(--pos, 50%);
  width: 3px;
  height: 100%;
  background: var(--color-text-main);
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 3;
  box-shadow: 0 0 10px rgba(201, 59, 43, 0.45); /* лёгкое свечение в цвет акцента */
}

/* Круг с «ушками» по центру ручки */
.slider-handle::before {
  content: ""; /* убираем текст ‹-› — теперь это чистый графический элемент */
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  
  /* Белый круг + акцентная рамка */
  background: var(--color-text-main);
  border: 3px solid var(--color-accent); /* красная рамка под твой акцент */
  
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* чуть усилим тень для объёма */
  transform: translate(-50%, -50%);
  z-index: 2; /* чтобы рамка не пряталась за фоном */
}


/* Метки «До» / «После» */
.label-before,
.label-after {
  position: absolute;
  bottom: 30px;
  padding: 10px 18px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.15s ease;  
}

.label-before { left: 40px; }
.label-after  { right: 40px; }

/* -----------------------------------------
   АДАПТИВ
   ----------------------------------------- */
@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .works-grid {
    grid-template-columns: 1fr;
  }

  .works-intro {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
  }

  .comparison-wrapper {
    aspect-ratio: 3 / 2;   /* на мобильном кадр чуть ниже */
  }
}



.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.why-item h3 {
  font-size: 1.25rem;
  color: var(--text-main);
  margin: 0 0 0.75rem 0;
}

.why-item p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 600px) {
  .why-us-grid {
    grid-template-columns: 1fr;
  }
}


/* -----------------------------------------
   ТАБЫ
   ----------------------------------------- */
.tabs-control {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* адаптивно: минимум 160px, иначе 1fr */
  gap: 12px;
  margin-bottom: 20px;
}

.tab-btn {
  background: transparent;
  border: 1px solid #e0e0e0;
  padding: 8px 16px;
  cursor: pointer;
  font-family: Manrope, sans-serif;
  font-weight: 500;
  color: #333;
  border-radius: 6px;
  transition: all 0.2s;
}

.tab-btn:hover {
  border-color: #000;
  color: #000;
}

.tab-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.tabs-content {
  position: relative;
}

.tab-pane {
  display: none; /* скрываем все по умолчанию */
  animation: fadeInUp 0.4s ease-out;
}

.tab-pane.active {
  display: block; /* показываем активную вкладку */
}

/* Размер иконки-картинки */
.tab-btn img {
    width: 70px;
    height: 40px;
  object-fit: contain;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

/* Обычная иконка: чёрно-серая */
.tab-btn img {
  filter: brightness(0.55); /* делаем чуть темнее/нейтральнее */
}

/* Активный таб — тоже белая */
.tab-btn.active img {
  filter: brightness(0) invert(1);
  opacity: 1;
}


@media (max-width: 768px) {
  .tabs-control {
    grid-template-columns: 1fr;  /* одна колонка — табы друг под другом */
    gap: 10px;                   /* можно чуть компактнее */
  }
}

/* -----------------------------------------
   СЕКЦИЯ: КОНТАКТЫ
   ----------------------------------------- */
.contacts-section {
  background: linear-gradient(
    45deg,
    var(--color-indigo-dark),
    var(--color-indigo-mid),
    var(--color-indigo-light)
  );
}

.contacts-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: var(--space-xl);
  align-items: stretch; 
  width: 100%;
}

.contact-form-wrapper {
  display: flex;
}

.contact-form-wrapper .card-white {
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-form-wrap {
  position: relative;
}

.contact-form-holder[hidden],
.contact-form-success[hidden] {
  display: none !important;
}

.contact-form-success {
  text-align: center;
  padding: 32px 24px;
  background: #f4faf4;
  border: 1px solid #cfe8cf;
  border-radius: 12px;
  color: #2e7d32;
  font-size: 18px;
  font-weight: 600;
}

.contact-form-error:empty {
  display: none;
}

.contact-form-error {
  margin-top: 12px;
  color: #c62828;
  font-size: 14px;
}


.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.info-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Иконка контакта: фиксированный размер, центрирование */
.contact-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  flex-shrink: 0; /* чтобы иконка не сжималась */
}

/* Блок с текстом (чтобы strong и ссылка были ровно друг под другом) */
.info-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-item strong {
    font-weight: 450;
}

.info-item span,
.info-item a {
  color: var(--color-text-muted);
}

.phone-link-text,
.email-link-text {
  text-decoration: none;
  color: var(--color-text-main);
  transition: color 0.3s ease;
}

.phone-link-text:hover,
.email-link-text:hover {
  color: var(--color-accent);
}

.map-block {
  position: relative;
  margin-top: var(--space-sm);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-height: 360px;
}

.map-block::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none; 
  background: radial-gradient(
    circle at center,
    rgba(11, 14, 21, 0.2) 0%,
    rgba(8, 10, 16, 0.6) 60%,
    rgba(4, 6, 10, 0.85) 100%
  );
}

.map-block iframe {
  position: relative;
  z-index: 0; /* карта под градиентом */
  width: 100%;
  height: 400px;
  display: block;
  border-radius: var(--radius-xl); /* скругление у самой карты, чтобы не резалось overflow */
}

.contact-form .btn.btn-lg {
  width: 100%;
  margin-top: 0; /* переопределяем большой отступ от .btn.btn-lg */
}

/* --- Кнопка «Прикрепить файл»: лёгкая, светло-серая --- */
.file-attach {
  display: inline-flex;
  align-self: flex-start;
  margin-top: var(--space-xs);
  cursor: pointer;
}

/* Прячем нативный input */
.file-attach__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.file-attach__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6b7280;
  background-color: #f1f3f5;
  border: 1px solid #e3e6ea;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.file-attach:hover .file-attach__btn {
  background-color: #e9ecef;
  color: #495057;
}

/* -----------------------------------------
   ФОРМА ОБРАТНОЙ СВЯЗИ — СТАТУС УСПЕХА
   ----------------------------------------- */
.form-holder {
  position: relative;
  width: 100%;
}

.form-holder > .contact-form {
  position: relative;
  z-index: 1;
}

.form-status.is-success {
  position: absolute;
  inset: 0;
  z-index: 20;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 32px 24px;
  border-radius: var(--radius-md);

  background-color: rgba(11, 14, 21, 0.92); /* тёмный полупрозрачный фон */
  border: 1px solid rgba(201, 59, 43, 0.25);

  color: var(--color-text-main, #ffffff);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.form-status.is-success.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* -----------------------------------------
   АДАПТИВ
   ----------------------------------------- */
@media (max-width: 768px) {
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .contact-form-wrapper .card-white {
    height: auto;
  }

  .map-block iframe {
    height: 300px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}



/* -----------------------------------------
   FOOTER
   ----------------------------------------- */
.footer-section {
  background: var(--color-indigo-dark);
  color: var(--color-text-main);
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  /* три колонки: левая (копирайт), центр (соцсети), правая (политика) */
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

/* Выравнивание содержимого внутри колонок */
.footer-col--copyright {
  text-align: left;
}
.footer-col--social {
  text-align: center;
}
.footer-col--legal {
  text-align: right;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-title {
  margin: 0 0 var(--space-sm);
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffffff;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 59, 43, 0.25);
}

.social-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.footer-copyright {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.privacy-link a {
  color: var(--color-text-muted);       /* серый цвет, как у остального текста футера */
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.privacy-link a:hover {
  color: var(--color-accent);           /* при наведении — акцентный цвет */
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;   
    gap: var(--space-md);         
    text-align: center;      
  }
  
  .footer-grid > * {
  text-align: center;           /* текст по центру внутри колонки */
}
}


/* -----------------------------------------    /* -----------------------------------------    /* -----------------------------------------
   +++++++++   ПОЛИРОВКА СТЕКЛА  +++++++++++       +++++++++++  ПОЛИРОВКА ФАР  +++++++++++++       +++++++++   ПОЛИРОВКА КУЗОВА  +++++++++++
   -----------------------------------------       -----------------------------------------       ----------------------------------------- */


.hero-stats {
  background: none;
}

/* Стили для карточек в page-hero — БЕЗ наезда */
.hero-facts-block {
  margin-top: var(--space-big);          
}

.hero-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  position: static;         
}

.hero-fact-item {
    background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.04) 60%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18), /* блик сверху, как у стекла */
    0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);

  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-md);
  text-align: center;
  position: static;       
  top: auto;               
  overflow: hidden;

}

.hero-fact-item .fact-num {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-sm);
  position: relative;
  text-shadow: 0 0 12px rgba(var(--color-accent-rgb), 0.4);
}

.hero-fact-item p {
  color: #e0e0e0;
  font-family: Golos Text, sans-serif;
  font-size: 1.1rem;
  line-height: 1.45;
  margin: 0;
}


/* -----------------------------------------
   ЦЕНЫ
   ----------------------------------------- */

.section-prices {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

/* Колонка с ценами: список + примечание */
.prices-left-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl, 16px);
  min-width: 0;
}

/* Важное примечание под ценами */
.price-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--card-radius, 12px);
  background: rgba(201, 59, 43, 0.06);          /* лёгкий акцентный фон */
  border: 1px solid rgba(201, 59, 43, 0.25);    /* акцентная рамка */
  border-left: 4px solid var(--color-accent, #C93B2B);
}

.price-note-icon {
  flex-shrink: 0;
  color: var(--color-accent, #C93B2B);
  margin-top: 2px;
}

.price-note-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-secondary, #5a5f6d);
}

.price-note-text strong {
  color: var(--color-text, #1a1a1a);
}


.prices-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  align-items: stretch;
  margin-top: var(--space-lg, 32px);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.price-explanation-dark {
  position: sticky;
  top: 20px;
  background: var(--color-indigo-dark, #0b0e15);
  border-radius: var(--card-radius, 12px);
  padding: 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 18px;

  box-shadow:
    0 0 40px rgba(201, 59, 43, 0.12),
    0 10px 40px rgba(0, 0, 0, 0.3);
}

.price-explanation-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    380px circle at 80% 10%,
    rgba(201, 59, 43, 0.22),
    rgba(201, 59, 43, 0.07) 40%,
    transparent 70%
  );
}

.price-explanation-dark > * {
  position: relative;
  z-index: 1;
}

.price-explanation-dark .factors-list {
  max-width: none;      /* снимаем ограничение ширины 760px */
  margin-top: 0;        /* отступ уже даёт gap родителя */
  gap: 15px;
}

.price-explanation-dark .factor-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: var(--space-sm);
  gap: 12px;
}

.price-explanation-dark .factor-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-accent, #C93B2B);
  box-shadow: none;
  transform: none;      
}

.price-explanation-dark .factor-number {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(201, 59, 43, 0.25);
  color: var(--color-accent, #C93B2B);
  font-size: 0.95rem;
}

.price-explanation-dark .factor-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.explanation-title {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 0;
}


/* -----------------------------------------
   ОТ ЧЕГО ЗАВИСИТ СТОИМОСТЬ ПОЛИРОВКИ
   ----------------------------------------- */
.factors-list {
  list-style: none;
  padding: 0;
  margin: var(--space-lg, 32px) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px; /* список не должен растягиваться на всю ширину */
}

.factor-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #e6e8ec);
  border-radius: var(--card-radius, 12px);
  padding: 16px 22px;
  transition: box-shadow .3s ease, transform .3s ease;
}

.factor-item:hover {
  box-shadow: var(--card-hover-shadow, 0 8px 24px rgba(0, 0, 0, 0.08));
  transform: translateX(4px);
}

.factor-number {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(201, 59, 43, 0.12);
  color: var(--color-accent, #C93B2B);
  font-family: var(--font-head, Manrope), sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.factor-title {
  display: block;
  color: var(--color-text-main, #1a1d23);
  margin-bottom: 3px;
}

.factor-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text-secondary, #5a5f6d);
  margin: 0;
}

@media (max-width: 768px) {
  .factor-item {
    padding: 14px 16px;
    gap: 14px;
  }
}



/* -----------------------------------------
   ЧТО ВХОДИТ В СТОИМОСТЬ ПОЛИРОВКИ
   ----------------------------------------- */
.price-includes {
  margin-top: 32px;
}

.price-includes-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr; /* тексту чуть больше места */
  gap: var(--space-xl);
  align-items: center;              /* картинка по центру высоты */
}

.price-includes-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.price-includes-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.price-includes-image-wrap:hover .price-includes-img {
  transform: scale(1.05);
}

.price-includes-image-wrap::before {
  content: "";
  position: absolute;
  top: -12px;
  right: -12px;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-xl);
  border: 2px solid rgba(201, 59, 43, 0.25);
  z-index: -1;
}

.price-includes-title {
  font-size: 3.5rem;
  color: var(--color-text, #1a1a1a);
  margin: 0 0 16px 0;
}

.price-includes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.price-includes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.price-includes-item {
  display: flex;
  align-items: flex-start;       /* ← важно: точка и текст по верхнему краю */
  gap: 12px;                     /* расстояние между точкой и текстом */
  padding: 16px 20px;            /* внутренние отступы карточки */
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #e6e9ed);
  border-radius: var(--card-radius, 12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Точка: фиксированный размер, цвет, без паддингов */
.price-includes-dot {
  flex-shrink: 0;               /* чтобы точку не сплющило */
  width: 10px;                  /* чуть крупнее, чтобы лучше читалась */
  height: 10px;
  background-color: var(--color-accent, #C93B2B);
  border-radius: 50%;
  margin-top: 4px;              /* небольшой сдвиг вниз, чтобы точка была по центру первой строки */
  align-self: start;             /* принудительно прижимаем к верху */
}

.price-includes-content {
  min-width: 0;                 /* чтобы контент не ломал сетку на узких экранах */
}

.price-includes-content .card-title {
  display: block;
  font-family: Manrope, sans-serif;
  font-weight: 600;
  color: var(--color-text, #1a1a1a);
  margin: 0 0 4px 0;            /* убираем лишние отступы, чтобы точка стояла ровно */
}

.price-includes-content p {
  margin: 0;                    /* обнуляем, чтобы не было двойного отступа */
  font-family: Golos Text, sans-serif;
  font-size: 0.925rem;
  line-height: 1.5;
  color: var(--color-text-secondary, #5a5f6d);
}



/* Адаптив: на узких экранах всё остаётся читаемым */
@media (max-width: 600px) {
  .prices-layout {
    grid-template-columns: 1fr;  
    gap: var(--space-md);
  }
  
  .prices-layout .card-description {
      display: none;
  }
  
  .price-includes-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }

  .price-includes-dot {
    margin-top: 2px;
    width: 8px;
    height: 8px;
  }
  
    .price-includes-grid {
    grid-template-columns: 1fr;
  }

  /* На мобильном картинку лучше ставить ПЕРЕД списком или после — как удобнее */
  .price-includes-image-wrap {
    order: -1; /* убери эту строку, если картинка должна быть после списка */
  }
}





/* -----------------------------------------
   КАК МЫ ПОЛИРУЕМ ШАГИ
   ----------------------------------------- */
.process-two-col-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

/* -----------------------------------------
   АДАПТИВ
   ----------------------------------------- */
@media (max-width: 768px) {
  .process-two-col-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}



/* -----------------------------------------
   КОГДА СТОИТ ДЕЛАТЬ ПОЛИРОВКУ 
   ----------------------------------------- */
.when-to-polish {
/* Фон секции — наследуется от body или остаётся белым по умолчанию */
color: #1a1a1a;
}

.when-to-polish .section-title {
color: var(--color-accent);
}

.polish-check-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: stretch; /* колонки одной высоты */
  margin-top: var(--space-lg, 32px);
}

.polish-check-image {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow, 0 10px 30px rgba(0, 0, 0, 0.08));
  max-height: 520px; /* подкрути это значение под себя */
}

.polish-check-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;   
  object-position: left; 
}

.polish-check-list {
  display: grid;
  gap: 12px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #e6e8ec);
  border-radius: var(--card-radius, 12px);
  padding: 14px 18px;
  transition: box-shadow .3s ease, transform .3s ease;
}

.check-item .benefit-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 8px;          
  border-radius: 50%;

  background-color: var(--color-accent, #2f6fed);
  color: transparent;       
}

.check-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-accent);
  background: rgba(68, 78, 102, 0.3);
}

.check-text {
  color: var(--color-indigo-dark);
}

.image-caption-box {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  background: rgba(11, 14, 21, 0.5);
  padding: 12px 18px;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-head, Manrope), sans-serif;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 600;
  text-align: left;
}

.image-caption-box {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 0.6s ease forwards 0.4s; /* задержка, чтобы сначала картинка, потом подпись */
}

@media (max-width: 768px) {
  .polish-check-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .polish-check-image {
    margin-left: 0;
    border-radius: var(--card-radius, 16px);
    max-height: none;
    min-height: 260px;
  }

  .polish-check-image img {
    aspect-ratio: 16 / 10;
  }
}


/* -----------------------------------------
   КОГДА ПОЛИРОВКА НЕ ПОМОЖЕТ
   ----------------------------------------- */
.not-to-polish-wrapper {
/* Сама секция остаётся светлой */
color: #1a1a1a;
}

.not-to-polish-wrapper .section-title {
color: var(--color-indigo-dark); 
}

.not-to-polish-card {
background: var(--section-bg-dark);
color: #e0e0e0;
padding: var(--section-vertical-small-padding) var(--space-md);
border-radius: var(--radius-md, 12px);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.not-to-polish-card .cards-grid {
  padding: var(--space-lg);
}

/* Модификатор: сетка на 2 колонки */
.restrictions-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.final-note, .cta-wrapper {
  text-align: center;
  margin-top: var(--space-md);
  line-height: 1.5;
}


.restrictions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.stop-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius, 12px);
  padding: 20px 22px;
  transition: background .3s ease, border-color .3s ease;
}

.stop-number {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(201, 59, 43, 0.12);
  color: var(--color-accent, #C93B2B);
  font-family: var(--font-head, Manrope), sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

/* ── Текст пункта ── */
.stop-title {
  display: block;
  font-family: var(--font-head, Manrope), sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 4px;
}

.stop-text {
  font-family: var(--font-body, "Golos Text"), sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.final-note {
  margin-top: 28px;
  padding: 20px 24px;
  background: rgba(68, 78, 102, 0.08);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--card-radius, 12px) var(--card-radius, 12px) 0;
  color: var(--color-indigo-dark);
}

.final-note strong {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .stop-number {
      display: none;
  }
  .restrictions-grid {
    grid-template-columns: 1fr;
  }
  
  .restrictions-grid--two {
  grid-template-columns: 1fr;
}
}


/* -----------------------------------------
   ВОПРОС - ОТВЕТ 
   ----------------------------------------- */
.faq-list {
  margin: 0 auto;
}

.faq-card {
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  /* Плавность для тени и лёгкого подъёма */
  transition: box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s ease;
}

.faq-card:not(:first-child) {
  margin-top: var(--space-sm);
}

/* Открытая карточка чуть «всплывает» */
.faq-card[open] {
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.faq-question {
  display: flex;
  justify-content: space-between;      /* вопрос слева, плюс справа */
  align-items: center;               /* вот это центрирует по вертикали */
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  user-select: none;
  color: var(--text-dark-on-light);
  font-weight: 500;
  line-height: 1.4;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: rgba(255,255,255,0.6);
}

.question-text {
  flex: 1;
  margin-right: var(--space-sm);
}

/* Круг с плюсом */
.toggle-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--color-indigo-muted);
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}

.toggle-icon {
  width: 28px;
  height: 28px;
  display: block;
  fill: currentColor;
  /* Поворот анимируем отдельно — так вращение максимально плавное */
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
}

.faq-card[open] .toggle-icon {
  transform: rotate(45deg);
}

/* При наведении: круг чуть увеличивается */
.faq-question:hover .toggle-wrapper {
  background-color: #e5e7eb;
  color: var(--color-indigo-mid);
}

/* В открытом состоянии: красный круг + свечение */
.faq-card[open] .toggle-wrapper {
  background-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(201, 59, 43, 0.4);
}

.faq-answer {
  padding: 0 var(--space-lg);
  color: var(--text-muted-on-light);
  line-height: 1.6;
  overflow: hidden;
  opacity: 0;
  transition:
    height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
  box-sizing: border-box;
}

.faq-card[open] .faq-answer {
  opacity: 1;
}

.faq-answer__inner {
  padding-bottom: 20px;   /* вот тут отступ живёт СТАТИЧНО, не анимируется */
}


@media (max-width: 768px) {
.faq-question {
    padding: var(--space-sm);
}
}




/* -----------------------------------------
   +++++++ MAINTENANCE PAGE: ОБЁРТКА +++++++
   ----------------------------------------- */
.maintenance-dark-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;              /* если нужно центрировать по вертикали на весь экран */
  padding: var(--space-xl) 0;     /* отступы сверху/снизу */
  box-sizing: border-box;
}

.maintenance-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;            /* дочерние элементы по центру */
}

.maintenance-icon-box {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-xl) auto 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.maintenance-image {
  animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.05); opacity: 0.85; }
}


.maintenance-image {
  width: 84px;
  height: auto;
  object-fit: contain;
  display: block;
  z-index: 2;
}

.maintenance-title {
    margin-top: var(--space-xxl);
    margin-bottom: var(--space-lg);
  color: var(--color-text-main);
  font-size: clamp(2.2rem, 5vw, 3rem);
  text-align: center;
    text-transform: uppercase; /* все буквы — строчные */
  letter-spacing: 0.05em; 
}

.maintenance-title .accent {
  color: var(--color-accent); 
}

.maintenance-divider {
  width: 100px;
  height: 2px;
  margin: var(--space-md) auto var(--space-lg);
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-accent-hover)
  );
}

.maintenance-description {
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto var(--space-lg);
  line-height: 1.5;
  text-align: center;
}

.maintenance-note {
  margin-top: var(--space-xl);
  color: var(--color-text-muted);
  font-size: 0.95rem;
  text-align: center;
}

.maintenance-note a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 59, 43, 0.4);
  transition: color .2s, border-color .2s;
}

.maintenance-note a:hover {
  color: var(--color-accent-hover);
  border-bottom-color: var(--color-accent-hover);
}




/* -----------------------------------------
   АДАПТИВ
   ----------------------------------------- */
@media (max-width: 768px) {
  .maintenance-icon-box {
    width: 100px;
    height: 100px;
  }
  .maintenance-image {
    width: 70px;
  }
}





/* -----------------------------------------
   КНОПКА НАВЕРХ
   ----------------------------------------- */
#scroll-top-btn {
  position: fixed;
  bottom: 74px;
  right: 20px;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: rgba(11, 14, 21, 0.92);
  color: var(--color-text-main, #fff);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1100;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s,
              background-color 0.3s, border-color 0.3s;
}

#scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scroll-top-btn:hover {
  transform: translateY(-2px);
  background: var(--color-accent, #c93b2b);
  border-color: transparent;
}

@media (max-width: 768px) {
  #scroll-top-btn {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
    border-radius: 50%; 
  }
}



/* -----------------------------------------
   ЛОАДЕР
   ----------------------------------------- */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0B0E15; /* тот же цвет, что и у html */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.page-loader.active {
  opacity: 1;
  visibility: visible;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-accent, #C93B2B);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* -----------------------------------------
   COOKIE-BANNER — плашка в левом нижнем углу
   ----------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: auto;

  width: min(400px, calc(100vw - 32px));

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;

  padding: 16px 20px;
  background: rgba(11, 14, 21, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  z-index: 9999;

  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--color-accent, #f5a623);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-actions .btn {
  white-space: nowrap;
}

.cookie-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-close:hover {
  opacity: 1;
}

@media (max-width: 576px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    left: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 14px;
    gap: 10px;
  }
  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
