
/* ==========================================================================
   ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ
   ========================================================================== */
:root {
    --color-accent: #f3a111;       /* Фирменный золотой */
    --bg-hero: transparent;            /* Темный фон для главных экранов */
    --bg-services: transparent;        /* Основной фон сайта */
    --bg-about: rgba(255, 255, 255, 0.015);           /* Второстепенный темный фон */
    --color-text-main: #ffffff;    /* Белый текст */
    --color-text-muted: #a0a0a0;   /* Приглушенный серый текст */
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Защита от горизонтальной прокрутки */
    background-color: #08090C;
    
}

body {
    position: relative;
    color: var(--color-text-main);
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    flex-direction: column;
    background-color: transparent;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
     background: linear-gradient(
        135deg, 
        #08090C 0%, 
        #1A202C 25%, 
        #2D374D 50%,
        #141822 75%, 
        #08090C 100%
    );
    background-size: 200% 200%;
    animation: bgGradientAnimation 10s ease infinite;
    transform: translateZ(0);
    will-change: background-position;
}

@keyframes bgGradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

main {
    flex: 1;
}

/* Ограничитель ширины контента для всех секций */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- КНОПКИ --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn--primary {
    background-color: var(--color-accent);
    color: #000;
    border: 1px solid var(--color-accent);
}

.btn--primary:hover {
    background-color: #d98f0e;
    border-color: #d98f0e;
    transform: translateY(-2px);
}

.btn--outline {
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    background-color: transparent;
}

.btn--outline:hover {
    background-color: rgba(243, 161, 17, 0.1);
    transform: translateY(-2px);
}


/* ==========================================================================
   ШАПКА (HEADER)
   ========================================================================== */
.header {
    background-color: rgba(15, 16, 21, 0.75); 
    backdrop-filter: blur(12px);               
    -webkit-backdrop-filter: blur(12px);       
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header__phone-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.header__phone {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.header__phone:hover {
    color:var(--color-accent);/* Фирменный оранжевый */
}

/* --- ЛОГОТИП --- */
.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 5px 0;
    flex-shrink: 0; /* Не дает флексу сжимать логотип */
}

.logo__img {
    height: 65px;
    width: auto;
    max-width: 200px;
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    transition: transform 0.4s ease;
}

.logo__text {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.text-clean {
    color: #ffffff;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.9),
        0 0 18px rgba(255, 215, 0, 0.6);
    transition: all 0.4s ease;
}

.text-dirty {
    color: #777777;
    filter: blur(1.3px); 
    opacity: 0.65;
    transition: all 0.4s ease;
}

.logo:hover .text-dirty,
.logo:active .text-dirty {
    filter: blur(0px);
    color: #ffffff;
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.logo:hover .logo__img,
.logo:active .logo__img {
    transform: scale(1.05) rotate(-2deg);
}

/* --- НАВИГАЦИЯ --- */
.nav__list {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav__link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav__link:hover, .nav__link.active {
    color: var(--color-accent);
}

/* --- БУРГЕР --- */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    position: relative;
    z-index: 1002;
}

.burger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ==========================================================================
   ПОДВАЛ (FOOTER)
   ========================================================================== */
.footer {
    background-color: rgba(15, 16, 21, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 50px 0 20px 0;
    margin-top: auto;
}

.footer__grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.footer__col {
    flex: 1;
    min-width: 250px;
}

.footer__title {
    color: var(--color-accent);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer__contacts-list, .footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.footer__contacts-list li, .footer__links li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.footer__contacts-list a, .footer__links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__contacts-list a:hover, .footer__links a:hover {
    color: #fff;
}

.footer__socials {
    display: flex;
    gap: 15px;
}

.footer__socials a {
    transition: transform 0.3s ease;
}

.footer__socials a:hover {
    transform: translateY(-3px);
}

.footer__bottom {
    font-size: 11px;
    text-align: center;
    padding-top: 30px;
    color: var(--color-text-muted);
}


/* ==========================================================================
   СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ (INDEX.HTML)
   ========================================================================== */
.hero {
    background-color: transparent;
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(circle, rgba(243, 161, 17, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.services {
    background-color: var(--bg-services);
    padding: 80px 0;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);              
    backdrop-filter: blur(10px);                         
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);         
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-accent);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4),
                0 0 15px rgba(243, 161, 17, 0.2);
}

.service-card__icon {
    width: 50px;
    height: 50px;
    background-color: rgba(243, 161, 17, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.service-card__text {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.about {
    background-color: var(--bg-about);
    padding: 80px 0;
    text-align: center;
}

.about__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.about__text {
    font-size: 16px;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}


/* ==========================================================================
   СТИЛИ ДЛЯ СТРАНИЦЫ УСЛУГ (SERVICES.HTML)
   ========================================================================== */
.services-hero {
    background-color: var(--bg-hero);
    padding: 140px 0 40px;
    text-align: center;
}

.services-hero__title {
    font-size: 38px;
    color: var(--color-accent);
    font-weight: 700;
}

.service-price-block {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.service-price-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.price-label {
    font-size: 22px;
    font-weight: 500;
    color: var(--color-accent);
}

.price-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-accent);
}

.price-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
  
}

.detailed-service {
    background-color: var(--bg-services);
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.detailed-service:nth-of-type(even) {
    background-color: var(--bg-about);
}

.detailed-service__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

/* Защита от растягивания колонок сетки */
.detailed-service__grid > * {
    min-width: 0;
}

.detailed-service--reverse .detailed-service__grid {
    grid-template-columns: 0.9fr 1.1fr;
}
.detailed-service--reverse .detailed-service__info {
    grid-column: 2;
}
.detailed-service--reverse .detailed-service__media {
    grid-column: 1;
    grid-row: 1;
}

.detailed-service__info h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.detailed-service__description {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.detailed-service__info h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
}

.advantages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
}

.advantages-list li {
    position: relative;
    padding-left: 28px;
    font-size: 14px;
    color: var(--color-text-main);
    line-height: 1.4;
}

.advantages-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 6px;
    height: 11px;
    border: solid var(--color-accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.detailed-service__media {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.video-placeholder {
    width: 100%;
    height: 240px;
    background-color: #222;
    border: 1px solid #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 16px;
}

/* СЛАЙДЕР ДО/ПОСЛЕ */
.ba-slider {
    position: relative;
    width: 100%;
    height: 240px;
    background-color: #222;
    overflow: hidden;

    touch-action: none;
}

.ba-slider__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-slider__img--before {
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba-slider__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 10px;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 2;

    background: linear-gradient(
        90deg, 
        rgba(243, 161, 17, 0) 0%,          
        rgba(243, 161, 17, 0.2) 30%,       
        #f3a111 50%,                      
        rgba(243, 161, 17, 0.2) 70%,      
        rgba(243, 161, 17, 0) 100%          
    );
    filter: drop-shadow(0 0 3px rgba(243, 161, 17, 0.4));
}

.ba-slider__handle {
    position: absolute;
    top: 50%;
    left: var(--pos);
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 
                0 0 15px rgba(243, 161, 17, 0.25);
    isolation: isolate;
}

.ba-slider__handle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 16, 24, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    box-sizing: border-box;
    z-index: 1;
}

.ba-slider__handle svg {
    position: relative;
    z-index: 2;
    width: 24px;  /* Ровно 24px — совпадает с viewBox="0 0 24 24" без искажений */
    height: 24px;
    display: block;
}

.ba-slider__range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 4;
    -webkit-appearance: none;
    appearance: none;
    touch-action: none;
}

.cta-block {
    background-color: rgba(16, 17, 22, 0.74);
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 80px 0;
    text-align: center;
}

.cta-block h2 {
    font-size: 32px;
    color: var(--color-accent);
    margin-bottom: 10px;
    font-weight: 700;
}

.cta-block p {
    font-size: 16px;
    color: #fff;
    margin-bottom: 30px;
}


/* ==========================================================================
   СТИЛИ ДЛЯ СТРАНИЦЫ КОНТАКТОВ (CONTACTS.HTML)
   ========================================================================== */
.contacts-hero {
    background-color: var(--bg-hero);
    padding: 140px 0 40px;
    text-align: center;
}

.contacts-hero__title {
    font-size: 42px;
    color: var(--color-accent);
    font-weight: 700;
    letter-spacing: 1px;
}

.find-us {
    background-color: var(--bg-services);
    padding: 60px 0 80px;
}

.find-us__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.find-us__grid > * {
    min-width: 0;
}

.map-wrapper {
    width: 100%;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--color-accent) !important;
    border: 1px solid rgba(0, 229, 255, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8),
                0 0 25px rgba(0, 229, 255, 0.12);
}

.google-map {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(100%) invert(92%) contrast(135%) brightness(88%); 
    transition: filter 0.4s ease;
}

.map-wrapper:hover .google-map {
    filter: grayscale(100%) invert(90%) contrast(140%) brightness(95%);
}

.contact-info-block h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 700;
}

.info-cards-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a.info-card:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.info-card__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.2);
    transition: transform 0.3s ease;
}

.info-card:hover .info-card__icon {
    transform: scale(1.08);
}

.info-card__icon img,
.info-card__icon svg {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.info-card__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-card__text strong {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card__value {
    font-size: 17px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
}

a.info-card:hover .info-card__value {
    color: var(--color-accent);
}

.questions {
    background-color: var(--bg-services);
    padding: 0 0 100px 0;
}

.questions__box {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--color-accent);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.questions__box h2 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
}

.questions__box p {
    font-size: 15px;
    color: var(--color-text-main);
    line-height: 1.6;
    margin-bottom: 12px;
}

.questions__box p:last-child {
    margin-bottom: 0;
}

.highlight {
    color: var(--color-accent);
    font-weight: 600;
}


/* ==========================================================================
   СТИЛИ ДЛЯ СТРАНИЦЫ ОШИБКИ (404.HTML)
   ========================================================================== */
.error-page {
    background-color: var(--bg-services);
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-page__container {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.error-page__code {
    font-size: 160px;
    font-weight: 700;
    color: #514438; 
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -2px;
}

.error-page__icon {
    width: 68px;
    height: 68px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.error-page__icon img {
    width: 26px;
    height: 26px;
    display: block;
}

.error-page__title {
    font-size: 30px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
}

.error-page__text {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 35px;
}

.error-page__actions {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    width: 100%;
    justify-content: center;
}


/* ==========================================================================
   ВСЕ МЕДИА-ЗАПРОСЫ (АДАПТИВНОСТЬ) - СГРУППИРОВАНЫ ВНИЗУ
   ========================================================================== */

/* 1. Планшеты (до 992px) */
@media (max-width: 992px) {
    .detailed-service__grid, 
    .detailed-service--reverse .detailed-service__grid,
    .find-us__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .detailed-service--reverse .detailed-service__info,
    .detailed-service--reverse .detailed-service__media {
        grid-column: auto;
        grid-row: auto;
    }
    
    .contact-info-block { order: 1; }
    .map-wrapper { order: 2; height: 350px; }

    .services-hero__title, .contacts-hero__title {
        font-size: 32px;
    }
}

/* 2. Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .header {
        padding: 8px 0;
    }

    .logo {
        gap: 8px;
    }

    .logo__img {
        height: 45px;
    }

    .logo__text {
        font-size: 20px; /* Теперь гарантированно работает! */
    }

    .text-dirty {
        filter: blur(0.9px);
    }

    .burger {
        display: flex;
    }
    
    .hero__title {
        font-size: 30px;
    }
    
    .footer__grid {
        flex-direction: column;
        gap: 30px;
    }

    /* Мобильное Выпадающее Меню */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(20, 20, 20, 0.95);
        backdrop-filter: blur(15px);
        border-left: 1px solid var(--color-accent);
        transition: right 0.3s ease;
        z-index: 1001;
        padding: 80px 0 0 0;

        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav ul {
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .nav li {
        width: 80%;
    }

    .nav a {
        display: block;
        width: 100%;
        padding: 14px 20px;
        text-align: center;
        box-sizing: border-box;
        border-radius: 8px;
        background-color: rgba(255, 255, 255, 0.05);
        color: #fff;
        text-decoration: none;
        transition: background-color 0.2s ease;
    }

    .nav a:hover,
    .nav a:active {
    background-color: rgba(255, 255, 255, 0.15);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav__link {
        display: block;
        padding: 15px 25px;
        font-size: 16px;
        border-bottom: 1px solid #2a2a2a;
    }
    
    .nav__link:hover, .nav__link.active {
        background-color: rgba(243, 161, 17, 0.1);
    }
    
    /* Затеняющий оверлей */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

/* 3. Маленькие смартфоны (до 576px) */
@media (max-width: 576px) {
    .detailed-service { padding: 50px 0; }
    .detailed-service__info h2, .contact-info-block h2, .error-page__title { font-size: 22px; }
    .cta-block h2, .questions__box h2 { font-size: 24px; }
    .ba-slider { height: 200px; }
    .error-page__code { font-size: 110px; }
    .error-page__actions { flex-direction: column; gap: 12px; }
}