/* =========================================
   ПОДКЛЮЧЕНИЕ ЛОКАЛЬНЫХ ШРИФТОВ MANROPE
   ========================================= */

@font-face {
   font-family: 'Manrope';
   src: url('./fonts/Manrope-Regular.woff2') format('woff2');
   font-weight: 400;
   font-style: normal;
   font-display: swap;
}

@font-face {
   font-family: 'Manrope';
   src: url('./fonts/Manrope-Medium.woff2') format('woff2');
   font-weight: 500;
   font-style: normal;
   font-display: swap;
}

@font-face {
   font-family: 'Manrope';
   src: url('./fonts/Manrope-SemiBold.woff2') format('woff2');
   font-weight: 600;
   font-style: normal;
   font-display: swap;
}

@font-face {
   font-family: 'Manrope';
   src: url('./fonts/Manrope-Bold.woff2') format('woff2');
   font-weight: 700;
   font-style: normal;
   font-display: swap;
}

@font-face {
   font-family: 'Manrope';
   src: url('./fonts/Manrope-ExtraBold.woff2') format('woff2');
   font-weight: 800;
   font-style: normal;
   font-display: swap;
}

/* =========================================
     1. ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ
     ========================================= */
:root {
   --dark-bg: #0A0E1A;
   --dark-card: #101828;
   --light-bg: #FFFFFF;
   --light-gray: #F5F7FA;
   --gold: #C9A227;
   --gold-light: #E0B84C;
   --blue-accent: #58A6FF;
   --text-dark: #1A1A1A;
   --text-light: #FFFFFF;
   --text-muted: #A0AABF;
   --font-main: 'Manrope', 'Inter', sans-serif;
   --border-radius: 16px;
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
}

body {
   font-family: var(--font-main);
   background-color: var(--dark-bg);
   /* fallback, если картинка не загрузится */
   color: var(--text-light);
   line-height: 1.6;
   -webkit-font-smoothing: antialiased;
   overflow-x: hidden;
   position: relative;
}

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

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

/* =========================================
     2. ФИКСИРОВАННЫЙ КОСМИЧЕСКИЙ ФОН
     ========================================= */
.space-bg {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100vh;
   background: url('./images/back.png') center center / cover no-repeat;
   z-index: -10;
   pointer-events: none;
}

/* Затемняющий слой поверх космоса для читаемости */
body::before {
   content: '';
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100vh;
   background: rgba(10, 14, 26, 0.55);
   z-index: -9;
   pointer-events: none;
}

/* =========================================
     3. УТИЛИТЫ И ОБЩИЕ ЭЛЕМЕНТЫ
     ========================================= */
.container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 20px;
}

.section {
   padding: 80px 0;
   position: relative;
   z-index: 1;
}

.section--dark {
   background-color: rgba(10, 14, 26, 0.55);
   backdrop-filter: blur(2px);
   color: var(--text-light);
}

.section--light {
   background-color: rgba(255, 255, 255, 0.96);
   color: var(--text-dark);
}

h1,
h2,
h3,
h4 {
   font-weight: 800;
   line-height: 1.2;
}

h1 {
   font-size: 48px;
   margin-bottom: 20px;
   color: var(--text-light);
}

h2 {
   font-size: 36px;
   margin-bottom: 40px;
   color: var(--text-light);
}

.section--light h2 {
   color: var(--text-dark);
}

/* Кнопки */
.btn {
   display: inline-block;
   padding: 12px 24px;
   border-radius: 50px;
   font-weight: 600;
   font-size: 15px;
   cursor: pointer;
   border: none;
   transition: all 0.3s ease;
   font-family: var(--font-main);
   text-align: center;
}

.btn--gold {
   background-color: var(--gold);
   color: var(--dark-bg);
}

.btn--gold:hover {
   background-color: var(--gold-light);
   box-shadow: 0 0 15px rgba(201, 162, 39, 0.4);
}

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

.btn--outline:hover {
   background-color: var(--gold);
   color: var(--dark-bg);
}

.btn--blue {
   background-color: var(--blue-accent);
   color: var(--text-light);
   border: none;
   align-self: flex-start;
}

.btn--blue:hover {
   opacity: 0.9;
   box-shadow: 0 5px 15px rgba(88, 166, 255, 0.3);
}

.btn--blue-link {
   background: transparent;
   color: var(--blue-accent);
   padding: 0;
   font-size: 14px;
   font-weight: 700;
   margin-top: 15px;
}

.btn--blue-link:hover {
   text-decoration: underline;
}

/* Сетка */
.grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 20px;
   margin-bottom: 60px;
}

/* =========================================
     4. ШАПКА САЙТА
     ========================================= */
.header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 20px 40px;
   background: linear-gradient(180deg, rgba(10, 14, 26, 0.9) 0%, rgba(10, 14, 26, 0.2) 100%);
   backdrop-filter: blur(6px);
   position: absolute;
   width: 100%;
   z-index: 100;
   top: 0;
   left: 0;
}

.header__logo {
   display: flex;
   align-items: center;
   text-decoration: none;
   flex-shrink: 0;
}

.header__logo-img {
   height: 70px;
   /* Высота логотипа */
   width: auto;
   /* Пропорции сохраняются */
   display: block;
   transition: transform 0.3s ease;
}

.header__logo:hover .header__logo-img {
   transform: scale(1.05);
}

.header__nav {
   display: flex;
   gap: 10px;
}

.header__nav a {
   color: var(--text-light);
   margin: 0 15px;
   font-weight: 500;
   font-size: 14px;
   transition: color 0.3s;
}

.header__nav a:hover {
   color: var(--gold-light);
}

.header__contact {
   display: flex;
   align-items: center;
   gap: 15px;
}

.header__contact a {
   color: var(--text-light);
   font-weight: 600;
   font-size: 16px;
   transition: color 0.3s;
}

.header__contact a:hover {
   color: var(--gold-light);
}

/* =========================================
   5. HERO-СЕКЦИЯ
   ========================================= */
.hero {
   padding: 180px 0 100px;
   position: relative;
   min-height: 100vh;
   display: flex;
   align-items: center;
   z-index: 1;
}

/* Затемняющий градиент поверх космоса для читаемости */
.hero::after {
   content: '';
   position: absolute;
   inset: 0;
   background: linear-gradient(90deg, rgba(10, 14, 26, 0.85) 0%, rgba(10, 14, 26, 0.4) 100%);
   z-index: 1;
   pointer-events: none;
}

/* Двухколоночный layout */
.hero__inner {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 60px;
   position: relative;
   z-index: 2;
   width: 100%;
}

/* Левая колонка — текст */
.hero__content {
   flex: 1;
   max-width: 560px;
}

.hero__subtitle {
   color: var(--text-muted);
   font-size: 18px;
   margin-bottom: 30px;
}

.hero__actions {
   display: flex;
   gap: 15px;
   flex-wrap: wrap;
}

/* Правая колонка — картинка + бейдж */
.hero__visual {
   flex: 1;
   max-width: 560px;
   position: relative;
}

.hero__img {
   width: 100%;
   height: auto;
   border-radius: 24px;
   box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
   border: 1px solid rgba(255, 255, 255, 0.08);
   display: block;
}

/* Бейдж скидки — теперь поверх картинки в правом нижнем углу */
.hero__discount {
   position: absolute;
   bottom: 15px;
   right: 35px;
   background: rgba(10, 14, 26, 0.95);
   border: 2px solid var(--gold);
   border-radius: 50%;
   width: 150px;
   height: 150px;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   text-align: center;
   color: var(--gold);
   font-weight: 700;
   font-size: 14px;
   line-height: 1.3;
   box-shadow: 0 0 30px rgba(201, 162, 39, 0.5);

   z-index: 5;
   animation: breathe 4s ease-in-out infinite,
      glow 4s ease-in-out infinite;
}

.hero__discount strong {
   font-size: 28px;
   display: block;
   line-height: 1.3;
   margin: 2px 0;
}

/* Плавное «дыхание» — масштаб */
@keyframes breathe {

   0%,
   100% {
      transform: scale(1);
   }

   50% {
      transform: scale(1.06);
   }
}

/* Мягкое свечение вокруг бейджа */
@keyframes glow {

   0%,
   100% {
      box-shadow: 0 0 20px rgba(201, 162, 39, 0.3),
         0 0 40px rgba(201, 162, 39, 0.1);
   }

   50% {
      box-shadow: 0 0 30px rgba(201, 162, 39, 0.6),
         0 0 60px rgba(201, 162, 39, 0.25);
   }
}

/* =========================================
     6. КАРТОЧКИ
     ========================================= */
.card {
   background-color: rgba(16, 24, 40, 0.85);
   backdrop-filter: blur(8px);
   border-radius: var(--border-radius);
   padding: 30px;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   border: 1px solid rgba(255, 255, 255, 0.08);
}

.card:hover {
   transform: translateY(-5px);
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card__title {
   font-size: 20px;
   font-weight: 700;
   margin-bottom: 15px;
   color: var(--text-light);
}

.card__text {
   color: var(--text-muted);
   font-size: 14px;
   line-height: 1.5;
}

.card__icon {
   width: 50px;
   height: 50px;
   margin-bottom: 20px;
   background: linear-gradient(135deg, var(--gold-light), var(--gold));
   border-radius: 12px;
   display: flex;
   justify-content: center;
   align-items: center;
   font-size: 24px;
   color: var(--dark-bg);
}

.card--light {
   background-color: var(--light-bg);
   color: var(--text-dark);
   border: 1px solid #E5E7EB;
}

.card--light:hover {
   box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.card--light .card__title {
   color: var(--text-dark);
   font-size: 18px;
   margin-bottom: 10px;
}

.card--light .card__text {
   color: #666;
   font-size: 14px;
}

.card--light .card__img {
   width: 100%;
   height: 180px;
   object-fit: cover;
   border-radius: 12px;
   margin-bottom: 20px;
}

/* =========================================
     7. ПОРТФОЛИО
     ========================================= */
.grid--portfolio {
   grid-template-columns: repeat(3, 1fr);
   gap: 20px;
}

.portfolio-card {
   position: relative;
   border-radius: var(--border-radius);
   overflow: hidden;
   display: block;
   aspect-ratio: 16 / 9;
   background-color: var(--dark-card);
}

.portfolio-card img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 0.5s ease;
}

.portfolio-card:hover img {
   transform: scale(1.1);
}

.portfolio-card span {
   position: absolute;
   bottom: 20px;
   left: 20px;
   background-color: rgba(10, 14, 26, 0.7);
   backdrop-filter: blur(5px);
   color: var(--text-light);
   padding: 8px 16px;
   border-radius: 30px;
   font-weight: 600;
   font-size: 14px;
   z-index: 2;
   letter-spacing: 0.5px;
}

/* =========================================
     8. SPLIT-BLOCK
     ========================================= */
.split-block {
   display: flex;
   gap: 30px;
   align-items: stretch;
}

.split-block__item {
   flex: 1;
   background-color: var(--light-gray);
   border: 1px solid #E5E7EB;
   border-radius: var(--border-radius);
   padding: 40px;
   display: flex;
   flex-direction: column;
   justify-content: center;
   transition: transform 0.3s ease;
}

.split-block__item:hover {
   transform: translateY(-5px);
   box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.split-block__item h3 {
   font-size: 24px;
   color: var(--text-dark);
   margin-bottom: 15px;
}

.split-block__item p {
   color: #555;
   margin-bottom: 25px;
   line-height: 1.6;
}

/* =========================================
     9. ШАГИ
     ========================================= */
.grid--steps {
   grid-template-columns: repeat(6, 1fr);
   gap: 20px;
}

.step {
   background-color: rgba(16, 24, 40, 0.85);
   backdrop-filter: blur(8px);
   border-radius: var(--border-radius);
   padding: 24px;
   text-align: center;
   border: 1px solid rgba(255, 255, 255, 0.08);
   transition: transform 0.3s ease;
}

.step:hover {
   transform: translateY(-5px);
}

.step__number {
   display: inline-flex;
   justify-content: center;
   align-items: center;
   width: 40px;
   height: 40px;
   border-radius: 50%;
   background-color: var(--gold);
   color: var(--dark-bg);
   font-weight: 800;
   font-size: 18px;
   margin-bottom: 15px;
}

.step h4 {
   font-size: 14px;
   font-weight: 600;
   color: var(--text-light);
   margin-bottom: 10px;
   text-transform: uppercase;
   letter-spacing: 1px;
}

.step p {
   font-size: 13px;
   color: var(--text-muted);
   line-height: 1.5;
}

/* =========================================
     10. ОТЗЫВЫ
     ========================================= */
.grid--reviews {
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 20px;
}

.review-card {
   background-color: var(--light-gray);
   border: 1px solid #E5E7EB;
   border-radius: var(--border-radius);
   padding: 30px;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
}

.review-card p {
   font-size: 16px;
   font-style: italic;
   color: var(--text-dark);
   margin-bottom: 20px;
   line-height: 1.6;
}

.review-author {
   display: flex;
   flex-direction: column;
   gap: 5px;
}

.review-author strong {
   font-size: 18px;
   color: var(--text-dark);
}

.review-author span {
   font-size: 14px;
   color: #888;
}

/* =========================================
     11. CTA-СЕКЦИЯ
     ========================================= */
.cta-section {
   background: linear-gradient(135deg, rgba(16, 24, 40, 0.9) 0%, rgba(10, 14, 26, 0.9) 100%);
   backdrop-filter: blur(8px);
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   border-bottom: 1px solid rgba(255, 255, 255, 0.1);
   padding: 60px 0;
   text-align: center;
   position: relative;
   z-index: 1;
}

.cta-section h3 {
   font-size: 32px;
   margin-bottom: 15px;
   color: var(--text-light);
}

.cta-section p {
   color: var(--text-muted);
   margin-bottom: 30px;
   font-size: 18px;
}

/* =========================================
     12. ФУТЕР
     ========================================= */
.footer__logo {
   display: flex;
   align-items: center;
   text-decoration: none;
   flex-shrink: 0;
}

.footer__logo-img {
   height: 80px;
   /* Чуть больше, чем в шапке */
   width: auto;
   display: block;
   opacity: 0.95;
   transition: opacity 0.3s ease;
}

.footer__logo:hover .footer__logo-img {
   opacity: 1;
}

.footer {
   background-color: rgba(10, 14, 26, 0.85);
   backdrop-filter: blur(8px);
   padding: 60px 0 20px;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   position: relative;
   z-index: 1;
}

.footer__top {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 40px;
   flex-wrap: wrap;
   gap: 20px;
}

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

.footer__nav a {
   color: var(--text-muted);
   margin: 0 10px;
   font-size: 14px;
   transition: color 0.3s;
}

.footer__nav a:hover {
   color: var(--gold-light);
}

.footer__bottom {
   text-align: center;
   color: var(--text-muted);
   font-size: 12px;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   padding-top: 20px;
}

/* =========================================
     13. ПЛАВАЮЩАЯ КНОПКА
     ========================================= */
.fixed-cta {
   position: fixed;
   bottom: 20px;
   right: 20px;
   z-index: 1000;
   box-shadow: 0 5px 15px rgba(201, 162, 39, 0.4);
}

/* =========================================
     14. АДАПТИВНОСТЬ
     ========================================= */
@media (max-width: 1100px) {
   .grid--steps {
      grid-template-columns: repeat(3, 1fr);
   }
}

@media (max-width: 992px) {
   .header {
      padding: 15px 20px;
   }

   .header__nav,
   .header__contact a {
      display: none;
   }

   h1 {
      font-size: 36px;
   }

   h2 {
      font-size: 28px;
   }

   .hero {
      padding: 140px 0 60px;
      min-height: auto;
   }

   .hero__inner {
      flex-direction: column;
      gap: 40px;
      text-align: center;
   }

   .hero__content {
      max-width: 100%;
   }

   .hero__actions {
      justify-content: center;
   }

   .hero__visual {
      max-width: 100%;
      width: 100%;
   }

   .hero__discount {
      width: 110px;
      height: 110px;
      font-size: 12px;
      bottom: -20px;
      right: -10px;
   }

   .hero__discount strong {
      font-size: 20px;
   }



   .grid--portfolio {
      grid-template-columns: repeat(3, 1fr);
   }
}

/* =========================================
   АНИМАЦИИ ПОЯВЛЕНИЯ
   ========================================= */

/* Изначально элементы невидимы */
.fade-in-right,
.fade-in-up {
   opacity: 0;
   will-change: opacity, transform;
}

/* Появление справа (для картинки в Hero) */
.fade-in-right {
   transform: translateX(60px);
   animation: fadeInRight 1s ease-out forwards;
}

/* Появление снизу (для бейджа скидки) */
.fade-in-up {
   transform: translateY(30px);
   animation: fadeInUp 1s ease-out forwards;
}

/* Задержки */
.delay-1 {
   animation-delay: 0.4s;
}

.delay-2 {
   animation-delay: 0.7s;
}

.delay-3 {
   animation-delay: 1s;
}

/* Ключевые кадры */
@keyframes fadeInRight {
   to {
      opacity: 1;
      transform: translateX(0);
   }
}

@keyframes fadeInUp {
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

/* Элементы до появления */
.reveal {
   opacity: 0;
   transform: translateY(40px);
   transition: opacity 0.8s ease-out, transform 0.8s ease-out;
   will-change: opacity, transform;
}

/* Когда элемент попадает в зону видимости */
.reveal.is-visible {
   opacity: 1;
   transform: translateY(0);
}

/* Задержки для «каскадного» появления внутри сетки */
.reveal.delay-1 {
   transition-delay: 0.1s;
}

.reveal.delay-2 {
   transition-delay: 0.2s;
}

.reveal.delay-3 {
   transition-delay: 0.3s;
}

.reveal.delay-4 {
   transition-delay: 0.4s;
}

.reveal.delay-5 {
   transition-delay: 0.5s;
}

.reveal.delay-6 {
   transition-delay: 0.6s;
}

/* Каскад внутри Hero-текста */
.hero__content h1 {
   opacity: 0;
   transform: translateY(30px);
   animation: fadeInUp 0.9s ease-out 0.1s forwards;
}

.hero__content .hero__subtitle {
   opacity: 0;
   transform: translateY(30px);
   animation: fadeInUp 0.9s ease-out 0.3s forwards;
}

.hero__content .hero__actions {
   opacity: 0;
   transform: translateY(30px);
   animation: fadeInUp 0.9s ease-out 0.5s forwards;
}

/* =========================================
   АНИМАЦИЯ ВЫЕЗДА СЛЕВА И СПРАВА
   ========================================= */

/* Элементы, выезжающие слева */
.reveal-left {
   opacity: 0;
   transform: translateX(-80px);
   transition: opacity 1s ease-out, transform 1s ease-out;
   will-change: opacity, transform;
}

.reveal-left.is-visible {
   opacity: 1;
   transform: translateX(0);
}

/* Элементы, выезжающие справа */
.reveal-right {
   opacity: 0;
   transform: translateX(80px);
   transition: opacity 1s ease-out, transform 1s ease-out;
   will-change: opacity, transform;
}

.reveal-right.is-visible {
   opacity: 1;
   transform: translateX(0);
}

/* Каскадные задержки для сеток (создают эффект «волны») */
.reveal-left.delay-1,
.reveal-right.delay-1 {
   transition-delay: 0.1s;
}

.reveal-left.delay-2,
.reveal-right.delay-2 {
   transition-delay: 0.2s;
}

.reveal-left.delay-3,
.reveal-right.delay-3 {
   transition-delay: 0.3s;
}

.reveal-left.delay-4,
.reveal-right.delay-4 {
   transition-delay: 0.4s;
}

.reveal-left.delay-5,
.reveal-right.delay-5 {
   transition-delay: 0.5s;
}

.reveal-left.delay-6,
.reveal-right.delay-6 {
   transition-delay: 0.6s;
}

/* =========================================
   15. БУРГЕР И МОБИЛЬНОЕ МЕНЮ
   ========================================= */

/* Кнопка-бургер — скрыта на десктопе */
.burger {
   display: none;
   flex-direction: column;
   justify-content: space-between;
   width: 32px;
   height: 24px;
   background: transparent;
   border: none;
   cursor: pointer;
   padding: 0;
   z-index: 101;
}

.burger span {
   display: block;
   width: 100%;
   height: 3px;
   background-color: var(--gold);
   border-radius: 3px;
   transition: all 0.3s ease;
}

/* Мобильное меню */
.mobile-menu {
   position: fixed;
   top: 0;
   right: 0;
   width: 320px;
   max-width: 85%;
   height: 100vh;
   background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-card) 100%);
   z-index: 9999;
   transform: translateX(110%);
   transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
   box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
   border-left: 1px solid rgba(201, 162, 39, 0.2);
}

.mobile-menu.is-open {
   transform: translateX(0);
}

.mobile-menu__inner {
   display: flex;
   flex-direction: column;
   padding: 80px 30px 40px;
   height: 100%;
   position: relative;
}

.mobile-menu__close {
   position: absolute;
   top: 20px;
   right: 20px;
   background: transparent;
   border: none;
   color: var(--gold);
   font-size: 36px;
   cursor: pointer;
   line-height: 1;
   transition: transform 0.3s ease;
}

.mobile-menu__close:hover {
   transform: rotate(90deg);
}

.mobile-menu__nav {
   display: flex;
   flex-direction: column;
   gap: 20px;
   margin-bottom: auto;
}

.mobile-menu__nav a {
   color: var(--text-light);
   font-size: 20px;
   font-weight: 600;
   padding: 12px 0;
   border-bottom: 1px solid rgba(255, 255, 255, 0.08);
   transition: color 0.3s, padding-left 0.3s;
}

.mobile-menu__nav a:hover {
   color: var(--gold);
   padding-left: 10px;
}

.mobile-menu__contact {
   display: flex;
   flex-direction: column;
   gap: 15px;
   padding-top: 20px;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu__phone {
   color: var(--text-light);
   font-size: 18px;
   font-weight: 700;
   text-align: center;
}

.mobile-menu__overlay {
   position: fixed;
   inset: 0;
   background: rgba(0, 0, 0, 0.7);
   backdrop-filter: blur(4px);
   z-index: 9998;
   opacity: 0;
   visibility: hidden;
   transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu__overlay.is-open {
   opacity: 1;
   visibility: visible;
}

/* Блокировка скролла при открытом меню */
body.no-scroll {
   overflow: hidden;
}

/* Показываем бургер на мобильных */
@media (max-width: 992px) {
   .burger {
      display: flex;
   }
}

/* =========================================
  16. МОДАЛЬНОЕ ОКНО ЗАЯВКИ
  ========================================= */
.modal {
   position: fixed;
   inset: 0;
   z-index: 10000;
   display: flex;
   justify-content: center;
   align-items: center;
   padding: 20px;
   opacity: 0;
   visibility: hidden;
   transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open {
   opacity: 1;
   visibility: visible;
}

.modal__overlay {
   position: absolute;
   inset: 0;
   background: rgba(0, 0, 0, 0.8);
   backdrop-filter: blur(6px);
}

.modal__window {
   position: relative;
   width: 100%;
   max-width: 480px;
   background: linear-gradient(160deg, var(--dark-card) 0%, var(--dark-bg) 100%);
   border: 1px solid rgba(201, 162, 39, 0.3);
   border-radius: 20px;
   padding: 40px;
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
   transform: translateY(30px) scale(0.95);
   transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.is-open .modal__window {
   transform: translateY(0) scale(1);
}

.modal__close {
   position: absolute;
   top: 15px;
   right: 20px;
   background: transparent;
   border: none;
   color: var(--gold);
   font-size: 34px;
   cursor: pointer;
   line-height: 1;
   transition: transform 0.3s ease;
}

.modal__close:hover {
   transform: rotate(90deg);
}

.modal__title {
   font-size: 26px;
   color: var(--text-light);
   margin-bottom: 8px;
}

.modal__subtitle {
   color: var(--text-muted);
   font-size: 14px;
   margin-bottom: 25px;
}

.modal__form {
   display: flex;
   flex-direction: column;
   gap: 18px;
}

.form-group {
   display: flex;
   flex-direction: column;
   gap: 6px;
}

.form-group label {
   color: var(--text-muted);
   font-size: 13px;
   font-weight: 600;
}

.form-group input,
.form-group textarea {
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid rgba(255, 255, 255, 0.15);
   border-radius: 10px;
   padding: 12px 16px;
   color: var(--text-light);
   font-size: 15px;
   font-family: var(--font-main);
   transition: border-color 0.3s, background 0.3s;
   resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
   color: rgba(160, 170, 191, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
   outline: none;
   border-color: var(--gold);
   background: rgba(255, 255, 255, 0.08);
}

.form-group input.is-error,
.form-group textarea.is-error {
   border-color: #ff5555;
   background: rgba(255, 85, 85, 0.08);
}

.form-checkbox {
   display: flex;
   align-items: flex-start;
   gap: 10px;
   color: var(--text-muted);
   font-size: 12px;
   line-height: 1.5;
   cursor: pointer;
}

.form-checkbox input {
   margin-top: 3px;
   accent-color: var(--gold);
   flex-shrink: 0;
}

.form-checkbox a {
   color: var(--gold-light);
   text-decoration: underline;
}

.modal__submit {
   width: 100%;
   padding: 14px;
   font-size: 16px;
   margin-top: 5px;
}

.form-status {
   text-align: center;
   font-size: 14px;
   margin: 0;
   min-height: 20px;
}

.form-status.success {
   color: #4CAF50;
}

.form-status.error {
   color: #ff5555;
}

/* =========================================
  17. ПЛАВАЮЩИЕ КНОПКИ (WHATSAPP + ЗАЯВКА)
  ========================================= */
.floating-buttons {
   position: fixed;
   bottom: 25px;
   right: 25px;
   display: flex;
   flex-direction: column;
   gap: 15px;
   z-index: 1000;
}

.floating-btn {
   width: 60px;
   height: 60px;
   border-radius: 50%;
   display: flex;
   justify-content: center;
   align-items: center;
   cursor: pointer;
   border: none;
   color: #fff;
   box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   position: relative;
}

.floating-btn:hover {
   transform: translateY(-4px) scale(1.05);
}

.floating-btn--max {
   background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
   color: var(--dark-bg);
}

.floating-btn--max:hover {
   box-shadow: 0 10px 30px rgba(201, 162, 39, 0.5);
}

.floating-btn--order {
   background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
   color: var(--dark-bg);
   animation: breathe-btn 3s ease-in-out infinite;
}

.floating-btn--order:hover {
   box-shadow: 0 10px 30px rgba(201, 162, 39, 0.5);
}

@keyframes breathe-btn {

   0%,
   100% {
      box-shadow: 0 8px 25px rgba(201, 162, 39, 0.3);
   }

   50% {
      box-shadow: 0 8px 35px rgba(201, 162, 39, 0.7);
   }
}

/* Адаптив для плавающих кнопок */
@media (max-width: 768px) {
   .floating-buttons {
      bottom: 15px;
      right: 15px;
      gap: 12px;
   }

   .floating-btn {
      width: 52px;
      height: 52px;
   }

   .floating-btn svg {
      width: 22px;
      height: 22px;
   }

   .modal__window {
      padding: 30px 22px;
   }

   .modal__title {
      font-size: 22px;
   }
}

/* =========================================
   18. СЕКЦИЯ С КАРУСЕЛЬЮ
   ========================================= */

/* Заголовок секции + кнопки навигации */
.section-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 40px;
   flex-wrap: wrap;
   gap: 20px;
}

.section-header h2 {
   margin-bottom: 0;
}

/* Кнопки-стрелки */
.carousel-nav {
   display: flex;
   gap: 10px;
}

.carousel-nav__btn {
   width: 48px;
   height: 48px;
   border-radius: 50%;
   border: 1px solid rgba(255, 255, 255, 0.15);
   background: rgba(16, 24, 40, 0.7);
   color: var(--text-light);
   display: flex;
   justify-content: center;
   align-items: center;
   cursor: pointer;
   transition: all 0.3s ease;
   backdrop-filter: blur(6px);
}

.carousel-nav__btn:hover {
   background: var(--gold);
   border-color: var(--gold);
   color: var(--dark-bg);
   transform: scale(1.05);
}

.carousel-nav__btn:active {
   transform: scale(0.95);
}

/* Сама карусель */
.swiper {
   padding-bottom: 60px !important;
}

.swiper-slide {
   height: auto;
   /* Чтобы карточки были одинаковой высоты */
   display: flex;
}

.swiper-slide>* {
   width: 100%;
   /* Растягиваем карточку на всю ширину слайда */
}

/* Пагинация (точки) */
.swiper-pagination {
   bottom: 0 !important;
}

.swiper-pagination-bullet {
   background-color: var(--text-muted);
   opacity: 0.5;
   width: 8px;
   height: 8px;
   transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
   background-color: var(--gold);
   opacity: 1;
   width: 24px;
   border-radius: 4px;
}

/* Адаптив для навигации */
@media (max-width: 768px) {
   .section-header {
      flex-direction: column;
      align-items: flex-start;
   }

   .carousel-nav {
      display: none;
      /* На мобильных — свайп пальцем, стрелки не нужны */
   }
}

/* --- Стили для карточек отзывов в карусели --- */
.review-card__stars {
   color: var(--gold);
   font-size: 18px;
   letter-spacing: 2px;
   margin-bottom: 15px;
}

/* =========================================
   19. ГЛОБАЛЬНАЯ АДАПТИВНОСТЬ
   ========================================= */

/* Защита от горизонтального скролла */
html,
body {
   overflow-x: hidden;
   max-width: 100%;
   position: relative;
}

/* Правильное масштабирование медиа */
img,
video,
iframe,
svg {
   max-width: 100%;
   height: auto;
}

/* Запрет зума на input в iOS (шрифт должен быть ≥16px) */
input,
textarea,
select {
   font-size: 16px;
}

/* Убираем подсветку тапов на iOS */
* {
   -webkit-tap-highlight-color: transparent;
}

/* Улучшенное поведение скролла */
* {
   -webkit-overflow-scrolling: touch;
}

/* Кнопки — минимальный размер для удобного тапа */
.btn,
.carousel-nav__btn,
.burger,
.floating-btn,
.filter-btn {
   min-height: 44px;
   min-width: 44px;
}


/* =========================================
  19.1. ПЛАНШЕТЫ (≤ 992px)
  ========================================= */
@media (max-width: 992px) {

   /* --- Шапка --- */
   .header {
      padding: 12px 20px;
   }

   .header__logo-img {
      height: 50px;
   }

   .header__nav {
      display: none;
   }

   .header__contact {
      display: none;
   }

   .burger {
      display: flex;
   }

   /* --- Hero --- */
   .hero {
      padding: 120px 0 60px;
      min-height: auto;
   }

   .hero__inner {
      flex-direction: column;
      gap: 40px;
      text-align: center;
   }

   .hero__content {
      max-width: 100%;
   }

   .hero__actions {
      justify-content: center;
   }

   .hero__visual {
      max-width: 100%;
      width: 100%;
   }

   .hero__img {
      border-radius: 16px;
   }

   .hero__discount {
      width: 110px;
      height: 110px;
      font-size: 12px;
      bottom: -20px;
      right: 10px;
   }

   .hero__discount strong {
      font-size: 20px;
   }

   /* --- Заголовки --- */
   h1 {
      font-size: 36px;
   }

   h2 {
      font-size: 28px;
   }

   /* --- Портфолио --- */
   .portfolio-grid,
   .grid--portfolio {
      grid-template-columns: repeat(2, 1fr);
   }

   /* --- Шаги --- */
   .grid--steps {
      grid-template-columns: repeat(3, 1fr);
   }

   /* --- Contacts --- */
   .contacts-layout {
      grid-template-columns: 1fr;
      gap: 30px;
   }

   .map-wrapper iframe {
      height: 400px;
   }

   /* --- Футер --- */
   .footer__top {
      flex-direction: column;
      text-align: center;
      gap: 25px;
   }

   .footer__nav {
      justify-content: center;
   }

   .footer__logo-img {
      height: 60px;
   }
}


/* =========================================
  19.2. СМАРТФОНЫ (≤ 768px)
  ========================================= */
@media (max-width: 768px) {

   /* --- Общие отступы --- */
   .container {
      padding: 0 16px;
   }

   .section {
      padding: 50px 0;
   }

   /* --- Шапка --- */
   .header {
      padding: 10px 16px;
   }

   .header__logo-img {
      height: 40px;
   }

   /* --- Hero --- */
   .hero {
      padding: 100px 0 50px;
   }

   .hero h1 {
      font-size: 28px;
      line-height: 1.2;
   }

   .hero__subtitle {
      font-size: 16px;
      margin-bottom: 20px;
   }

   .hero__actions {
      flex-direction: column;
      width: 100%;
   }

   .hero__actions .btn {
      width: 100%;
   }

   /* --- Заголовки --- */
   h1 {
      font-size: 26px;
   }

   h2 {
      font-size: 22px;
      margin-bottom: 25px;
   }

   h3 {
      font-size: 18px;
   }

   h4 {
      font-size: 14px;
   }

   /* --- Карточки --- */
   .card {
      padding: 20px;
   }

   .card--light .card__img {
      height: 160px;
   }

   /* --- Сетки в одну колонку --- */
   .grid,
   .grid--portfolio,
   .grid--steps,
   .grid--reviews,
   .reviews-grid,
   .portfolio-grid {
      grid-template-columns: 1fr;
      gap: 16px;
      margin-bottom: 40px;
   }

   /* --- Split-block --- */
   .split-block {
      flex-direction: column;
      gap: 16px;
   }

   .split-block__item {
      padding: 25px;
   }

   .split-block__item h3 {
      font-size: 20px;
   }

   /* --- Карусели (Swiper) --- */
   .section-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
   }

   .carousel-nav {
      display: none;
   }

   .swiper {
      padding-bottom: 50px !important;
   }

   /* --- Таблица цен --- */
   .price-table {
      font-size: 13px;
      border-spacing: 0 8px;
   }

   .price-table th {
      padding: 10px 8px;
      font-size: 11px;
      letter-spacing: 0.5px;
   }

   .price-table td {
      padding: 14px 10px;
      font-size: 13px;
   }

   .price-table td:last-child {
      font-size: 15px;
   }

   /* --- Портфолио --- */
   .portfolio-filters {
      gap: 6px;
      margin-bottom: 25px;
   }

   .filter-btn {
      padding: 8px 14px;
      font-size: 13px;
      min-height: 40px;
   }

   .portfolio-item {
      aspect-ratio: 4 / 3;
   }

   /* --- Отзывы --- */
   .review-card {
      padding: 22px;
   }

   .review-full {
      padding: 22px;
   }

   .review-full__avatar {
      width: 42px;
      height: 42px;
      font-size: 16px;
   }

   .review-full__info strong {
      font-size: 15px;
   }

   /* --- Contacts --- */
   .map-wrapper iframe {
      height: 320px;
   }

   .contact-block {
      padding: 20px;
   }

   .contact-block__value {
      font-size: 16px;
   }

   /* --- CTA-секция --- */
   .cta-section {
      padding: 40px 0;
   }

   .cta-section h3 {
      font-size: 22px;
   }

   .cta-section p {
      font-size: 15px;
   }

   .page-cta h3 {
      font-size: 22px;
   }

   /* --- Модальное окно --- */
   .modal__window {
      padding: 30px 22px;
      max-width: 100%;
      border-radius: 16px;
   }

   .modal__title {
      font-size: 22px;
   }

   .modal__subtitle {
      font-size: 13px;
   }

   /* --- Футер --- */
   .footer {
      padding: 40px 0 20px;
   }

   .footer__logo-img {
      height: 50px;
   }

   .footer__nav {
      gap: 5px;
   }

   .footer__nav a {
      font-size: 13px;
      margin: 0 6px;
   }

   /* --- Плавающие кнопки --- */
   .floating-buttons {
      bottom: 15px;
      right: 15px;
      gap: 10px;
   }

   .floating-btn {
      width: 52px;
      height: 52px;
   }

   .floating-btn svg {
      width: 22px;
      height: 22px;
   }

   /* --- Хлебные крошки --- */
   .breadcrumbs {
      padding: 90px 0 15px;
      font-size: 13px;
   }

   /* --- Page Hero --- */
   .page-hero {
      padding: 20px 0 40px;
   }

   .page-hero__title {
      font-size: 26px;
   }

   .page-hero__subtitle {
      font-size: 15px;
   }
}


/* =========================================
  19.3. МАЛЕНЬКИЕ ТЕЛЕФОНЫ (≤ 480px)
  ========================================= */
@media (max-width: 480px) {

   .container {
      padding: 0 14px;
   }

   .header__logo-img {
      height: 36px;
   }

   .hero h1 {
      font-size: 24px;
   }

   h1 {
      font-size: 22px;
   }

   h2 {
      font-size: 20px;
   }

   .card {
      padding: 18px;
   }

   .btn {
      padding: 12px 20px;
      font-size: 14px;
   }

   /* --- Бейдж скидки можно уменьшить --- */
   .hero__discount {
      width: 90px;
      height: 90px;
      font-size: 11px;
      bottom: -15px;
      right: 10px;
   }

   .hero__discount strong {
      font-size: 18px;
   }

   /* --- Скрываем некоторые декоративные элементы --- */
   .section-header h2 {
      font-size: 20px;
   }

   /* --- Плавающие кнопки компактнее --- */
   .floating-buttons {
      bottom: 12px;
      right: 12px;
      gap: 8px;
   }

   .floating-btn {
      width: 48px;
      height: 48px;
   }

   .floating-btn svg {
      width: 20px;
      height: 20px;
   }

   /* --- Модальное окно ещё компактнее --- */
   .modal {
      padding: 12px;
   }

   .modal__window {
      padding: 25px 18px;
   }

   .modal__title {
      font-size: 20px;
   }

   /* --- Мобильное меню --- */
   .mobile-menu {
      width: 100%;
      max-width: 100%;
   }

   .mobile-menu__inner {
      padding: 70px 20px 30px;
   }

   .mobile-menu__nav a {
      font-size: 18px;
   }
}


/* =========================================
  19.4. ЛАНДШАФТ НА ТЕЛЕФОНЕ
  ========================================= */
@media (max-height: 500px) and (orientation: landscape) {

   .hero {
      min-height: auto;
      padding: 80px 0 40px;
   }

   .mobile-menu__inner {
      padding: 50px 20px 20px;
   }

   .mobile-menu__nav {
      gap: 10px;
   }

   .mobile-menu__nav a {
      font-size: 16px;
      padding: 8px 0;
   }
}


/* =========================================
  19.5. БОЛЬШИЕ ЭКРАНЫ (≥ 1400px)
  ========================================= */
@media (min-width: 1400px) {
   .container {
      max-width: 1320px;
   }

   h1 {
      font-size: 56px;
   }

   h2 {
      font-size: 40px;
   }
}


/* =========================================
  19.6. RETINA-ЭКРАНЫ
  ========================================= */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
   /* Иконки и логотип должны быть в 2x для чёткости */
   /* Это просто рекомендация — файлы должны быть соответствующего размера */
}