/* === ОБЩИЕ И СБРОС СТИЛЕЙ === */
:root {
    --primary-blue: #0086FF;
    --text-dark: #212326;
    --text-light: rgba(0, 0, 0, 0.5);
    --background-grey: #F0F0F0;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background-grey);
    font-family: 'Inter Tight', sans-serif;
    color: var(--text-dark);
}

.logotype {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

main {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    padding: 0 20px;
}


/* === HEADER === */
header {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}


.frame-267 {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
    background: var(--white);
    border-radius: 20px;
}

.frame-265 {
    width: 40px;
    height: auto;
}

.logo-icon {
    width: 100%;
    height: auto;
}

.service-center-title {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    color: var(--primary-blue);
}

.frame-269 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 15px 20px;
    gap: 8px;
    background: var(--white);
    border-radius: 20px;
}

.frame-270, .frame-271 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.frame-270 span, .frame-271 span {
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    color: #000000;
    opacity: 0.8;
}

.frame {
    width: 24px;
    height: 24px;
}

/* === СЕКЦИИ (ОБЩИЕ СТИЛИ) === */
section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 30px;
}


/* === HERO SECTION (ГЛАВНЫЙ ЭКРАН) === */
.hero-section {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 40px;
}

.frame-294 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.frame-291 h1 {
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    color: #000000;
}

.frame-291 .primary-text {
    color: var(--primary-blue);
}

.frame-293 > p {
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-light);
    max-width: 512px;
}

.frame-292 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    background: var(--primary-blue);
    border-radius: 18px;
    border: none;
    cursor: pointer;
    color: var(--white);
    text-align: center;
}

.button-title {
    font-size: 20px;
    font-weight: 500;
    white-space: nowrap;
}

.button-subtitle {
    font-size: 16px;
    opacity: 0.7;
}

.frame-282 {
    display: flex;
    flex-direction: column;
}

.frame-282 span {
    font-size: 18px;
    color: var(--text-light);
}

.phone-link {
    font-weight: 500;
    font-size: 20px;
    text-decoration: none;
    color: var(--primary-blue);
}

.img-container {
    flex: 1;
    max-width: 548px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.layer-2-1 {
    max-width: 100%;
    height: auto;
}

/* === NAVIGATION === */
.frame-268 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
    margin: 0 auto;
    width: fit-content;
    max-width: 100%;
    background: var(--white);
    border-radius: 25px;
}

.nav-link, .nav-link-primary {
    font-size: 20px;
    line-height: 1.2;
    text-decoration: none;
    font-weight: 500;
}

.nav-link-primary {
    color: var(--primary-blue);
    font-weight: 600;
}

.nav-link {
    color: #000000;
    opacity: 0.8;
}

/* === WHY US & HOW WE WORK (КАРТОЧКИ) === */
.frame-278, .frame-279 {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 40px;
    background: var(--white);
}

.frame-278 h2, .frame-279 h2, .frame-280-reviews h2 {
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.2;
    color: #000000;
}

.frame-277 {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.frame-273, .frame-274, .frame-275, .frame-276 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    border-radius: 21px;
    flex: 1 1 280px;
}

.icon {
    font-size: 40px;
}

.frame-272 h3, .frame-272-alt h3, .frame-272-alt2 h3 {
    font-weight: 600;
    font-size: 22px;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.frame-272 p, .frame-272-alt2 p, .frame-281 p {
    font-weight: 400;
    font-size: 18px;
    line-height: 1.4;
    color: var(--text-light);
}

.frame-273 { background: linear-gradient(180deg, rgba(112, 159, 255, 0.2) 0%, rgba(112, 158, 255, 0.1) 100%), var(--white); }
.frame-274 { background: linear-gradient(180deg, rgba(164, 191, 214, 0.2) 0%, rgba(164, 191, 214, 0.1) 100%), var(--white); }
.frame-275 { background: linear-gradient(180deg, rgba(255, 88, 90, 0.2) 0%, rgba(255, 88, 91, 0.1) 100%), var(--white); }
.frame-276 { background: linear-gradient(180deg, rgba(188, 141, 77, 0.2) 0%, rgba(188, 141, 77, 0.1) 100%), var(--white); }


/* === HOW WE WORK SECTION === */
.work-step-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    border-radius: 21px;
    flex: 1 1 280px;
}

.frame-272-alt {
    flex-grow: 1;
}

/* ИСПРАВЛЕНИЕ ЗДЕСЬ */
.frame-281 {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start; /* Добавлена эта строка */
}

.frame-280 {
    display: inline-flex;
    padding: 5px 10px;
    border: 2px solid var(--primary-blue);
    border-radius: 38px;
    margin: 5px 0;
}

.frame-280 span {
    font-weight: 500;
    font-size: 20px;
    color: var(--primary-blue);
}

.button-alt {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
    background: var(--primary-blue);
    border-radius: 18px;
    border: none;
    color: var(--white);
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    margin-top: auto;
}

.frame-273-alt { background: linear-gradient(180deg, rgba(156, 156, 156, 0.2) 0%, rgba(156, 156, 156, 0.1) 100%), var(--white); }
.frame-274-alt { background: linear-gradient(180deg, rgba(112, 159, 255, 0.2) 0%, rgba(112, 158, 255, 0.1) 100%), var(--white); }
.frame-275-alt { background: linear-gradient(180deg, rgba(200, 100, 103, 0.2) 0%, rgba(255, 88, 91, 0.1) 100%), var(--white); }
.frame-276-alt { background: linear-gradient(180deg, rgba(164, 191, 214, 0.2) 0%, rgba(164, 191, 214, 0.1) 100%), var(--white); }


/* === REVIEWS SECTION === */
.frame-280-reviews {
    padding: 40px;
    background: var(--white);
    overflow: hidden;
}

.frame-289-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.frame-290 {
    display: flex;
    gap: 8px;
}

.frame-288, .frame-289 {
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    border: 2.4px solid var(--primary-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s;
}


.frame-288:hover, .frame-289:hover {
    opacity: 1;
}

.arrow-dimmed {
    opacity: 0.4;
    pointer-events: none; /* Делает стрелку некликабельной, когда она неактивна */
}

.frame-287 {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
    margin-bottom: -20px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.frame-287::-webkit-scrollbar {
    display: none;
}


.modal-form button[disabled] {
    background-color: #a0a0a0; /* Серый фон */
    opacity: 0.7;
    cursor: not-allowed; /* Курсор "запрещено" */
}

.modal-form button[disabled]:hover {
    background-color: #a0a0a0;
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px 20px;
    border-radius: 21px;
    background: linear-gradient(180deg, rgba(127, 204, 255, 0.2) 0%, rgba(127, 204, 255, 0.1) 100%), var(--white);
    flex-shrink: 0;
    width: 100%;
    max-width: 580px;
}

.frame-286 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.frame-284-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.frame-284-user span {
    font-weight: 500;
    font-size: 20px;
    color: var(--text-light);
}

.frame-285-stars {
    display: flex;
    gap: 2px;
}

.review-card p {
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    color: #000000;
}

.modal {
    display: none; /* По умолчанию окно скрыто */
    position: fixed; /* Фиксированное позиционирование */
    z-index: 1000; /* Поверх всего остального контента */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Прокрутка, если контент не помещается */
    background-color: rgba(0, 0, 0, 0.6); /* Полупрозрачный фон */
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex; /* Показываем окно при добавлении класса .show */
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modal-appear 0.3s ease-out;
}

@keyframes modal-appear {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
    color: #000;
}

.modal-content h2 {
    margin-bottom: 10px;
    font-size: 28px;
    color: var(--text-dark);
}

.modal-content p {
    margin-bottom: 25px;
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.5;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-form input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Inter Tight', sans-serif;
}

.modal-form input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 5px rgba(0, 134, 255, 0.5);
}

.modal-form button {
    padding: 18px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-form button:hover {
    background-color: #006fdb;
}


/* ======================================= */
/* === СТИЛИ ДЛЯ КАСТОМНОГО УВЕДОМЛЕНИЯ === */
/* ======================================= */

/* ======================================= */
/* === СТИЛИ ДЛЯ КАСТОМНОГО УВЕДОМЛЕНИЯ === */
/* ======================================= */

.notification {
    position: fixed; /* Фиксируем относительно окна браузера */
    top: 20px;       /* Отступ сверху */
    left: 50%;       /* Центрируем по горизонтали */
    transform: translate(-50%, -100px); /* Смещаем за пределы экрана вверх */
    
    background-color: #fff;
    color: var(--text-dark);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    
    display: flex;
    align-items: center;
    gap: 15px;
    
    z-index: 2000; /* Поверх всех остальных элементов */
    
    opacity: 0; /* Изначально полностью прозрачное */
    pointer-events: none; /* Не перехватывает клики в скрытом состоянии */
    
    /* Плавный переход для анимации */
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

/* Класс, который мы будем добавлять через JS для показа уведомления */
.notification.show {
    opacity: 1;
    transform: translate(-50%, 0); /* Возвращаем на место */
    pointer-events: auto; /* Разрешаем взаимодействие */
}

.notification p {
    margin: 0;
    font-weight: 500;
}

/* === НОВЫЕ ПРАВИЛА ДЛЯ ИКОНОК === */

/* 1. Скрываем обе иконки по умолчанию */
.notification-icon {
    display: none;
    flex-shrink: 0; /* Иконка не будет сжиматься */
    width: 24px;
    height: 24px;
}

/* 2. Когда у уведомления есть класс .success, показываем галочку */
.notification.success .icon-success {
    display: block;
}

/* 3. Когда у уведомления есть класс .error, показываем крестик */
.notification.error .icon-error {
    display: block;
}

/* Стили для рамки и фона при ошибке */
.notification.error {
    background-color: #fef2f2;
    border-color: #fca5a5;
}

/* =================================== */
/* === МЕДИА-ЗАПРОСЫ ДЛЯ АДАПТИВНОСТИ === */
/* =================================== */

/* --- Планшеты (до 1024px) --- */
@media (max-width: 1024px) {
    .logotype, main {
        gap: 30px;
    }
    
    header {
        padding: 0 30px;
    }

    main {
         padding: 0 30px;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .frame-294 {
        align-items: center;
    }

    .frame-293 > p {
        max-width: 100%;
    }

    .frame-292 {
        justify-content: center;
    }
    
    .frame-278, .frame-279, .frame-280-reviews {
        padding: 30px;
    }
}

/* --- Мобильные устройства (до 768px) --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 20px;
    }
    
    main {
         padding: 0 20px;
    }

    .service-center-title {
        font-size: 18px;
    }

    .frame-269 {
        align-items: center;
    }

    .img-container {
        max-width: 350px;
    }

    .frame-268 {
        gap: 15px;
        padding: 15px 20px;
    }
    
    .nav-link, .nav-link-primary {
        font-size: 18px;
    }

    .frame-277 {
       flex-direction: column;
    }

    .frame-290 {
        display: none;
    }

    .review-card {
        width: 85vw;
    }
}

/* --- Маленькие мобильные устройства (до 480px) --- */
@media (max-width: 480px) {
    .frame-292 {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .button {
        width: 100%;
    }
    .frame-282 {
        align-items: center;
    }
    .frame-278, .frame-279, .frame-280-reviews {
        padding: 20px;
    }
    .review-card {
        width: 90vw;
    }
}