/* ========== Базовые сбросы ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== Заголовки ========== */
.title {
    font-size: 34px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: #222;
}
.title--white {
    color: #fff;
}

/* ========== Кнопки ========== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(45deg, #FF8C00, #FF6A00);
    border: none;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(255, 106, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #FF6A00, #FF4500);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 106, 0, 0.5);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(255, 106, 0, 0.4);
}

.btn--outline {
    background: transparent;
    color: #FF6A00;
    border: 2px solid #FF6A00;
    box-shadow: none;
}

.btn--outline::before {
    background: #FF6A00;
}

.btn--outline:hover {
    color: #fff;
}

.btn--large {
    padding: 16px 40px;
    font-size: 16px;
}

.btn--small {
    padding: 10px 20px;
    font-size: 12px;
}

.text-center {
    text-align: center;
}

/* ========== Социальные иконки ========== */
.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-links__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(45deg, #FF8C00, #FF6A00);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 106, 0, 0.3);
}

.social-links__item:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 15px rgba(255, 106, 0, 0.5);
}

/* ========== Хедер ========== */
.header {
    background: #123e93;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.header__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo img {
    width: 80px;
    height: auto;
    display: block;
}

.header__nav {
    display: flex;
    gap: 30px;
}

.header__nav a {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.header__nav a:hover,
.header__nav a.active {
    color: #ffae10;
}

.header__burger {
    display: none;
    width: 30px;
    height: 25px;
    position: relative;
    cursor: pointer;
    z-index: 101;
}

.header__burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    position: absolute;
    left: 0;
    transition: 0.3s;
}

.header__burger span:nth-child(1) { top: 0; }
.header__burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.header__burger span:nth-child(3) { bottom: 0; }

/* Чекбокс для управления меню */
#menu-toggle {
    display: none;
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #123e93;
    z-index: 200;
    padding: 40px 20px;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

#menu-toggle:checked ~ .mobile-menu {
    left: 0;
}

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.mobile-menu__close:before,
.mobile-menu__close:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: #fff;
    top: 50%;
    left: 0;
}

.mobile-menu__close:before { transform: rotate(45deg); }
.mobile-menu__close:after { transform: rotate(-45deg); }

.mobile-menu__logo {
    text-align: center;
    margin-bottom: 30px;
}
.mobile-menu__logo img {
    width: 100px;
    height: auto;
}

.mobile-menu .header__nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
    margin: 30px 0;
    width: 100%;
}

.mobile-menu .header__nav a {
    font-size: 18px;
    text-align: left;
    padding: 5px 0;
    color: #fff;
    transition: color 0.3s;
}

.mobile-menu .header__nav a:hover {
    color: #ffae10;
}

.mobile-menu .social-links {
    margin: 20px 0;
    justify-content: center;
}

.mobile-menu .btn {
    width: 100%;
    margin-bottom: 10px;
}

/* Затемнение фона при открытом меню */
#menu-toggle:checked ~ .menu-overlay {
    display: block;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 150;
}

/* ========== Hero ========== */
.hero {
    margin-top: 50px;
    height: 600px;
    background-size: cover;
    background-position: center right;
    position: relative;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero .container {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__content {
    display: flex;
    gap: 50px;
    color: #fff;
}

.hero__left {
    max-width: 250px;
    text-align: center;
}

.hero__left img {
    margin: 0 auto 15px;
}

.hero__subtitle {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.hero__right {
    display: flex;
    flex-direction: column;
    align-items: center;
}



.hero__slogan {
    font-size: 28px;
    font-weight: 600;
    max-width: 365px;
    text-align: center;
    margin-bottom: 20px;
}

.hero__right .btn {
    margin: 10px 0;
}

/* ========== Цены ========== */
.pricing {
    padding: 70px 0;
}

.pricing__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.pricing__card {
    width: 200px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 15px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: 0.3s;
}

.pricing__card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: translateY(-8px);
}

.pricing__image {
    width: 120px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 15px;
}

.pricing__title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.pricing__price {
    font-size: 20px;
    font-weight: 700;
    color: #FF6A00;
    margin-bottom: 15px;
}

.pricing__btn {
    background: linear-gradient(45deg, #FF8C00, #FF6A00);
    color: #fff;
    border: none;
    padding: 8px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.pricing__btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255,106,0,0.4);
}

.btn--view-all {
    display: block;
    width: fit-content;
    margin: 0 auto;
    background: transparent;
    color: #FF6A00;
    border: 2px solid #FF6A00;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    transition: 0.3s;
}

.btn--view-all:hover {
    background: #FF6A00;
    color: #fff;
    transform: scale(1.05);
}

/* ========== Преимущества ========== */
.advantages {
    background: #f6f1f1;
    padding: 60px 0;
}

.advantages__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.advantages__card {
    width: 200px;
    background: #fff;
    border-radius: 20px;
    padding: 30px 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    cursor: default;
}

.advantages__card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.advantages__card img {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.advantages__text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.advantages__hover-text {
    display: none;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.advantages__card:hover .advantages__hover-text {
    display: block;
}

/* ========== Архив ========== */
.archive-info {
    padding: 60px 0;
}

.archive-info__text {
    max-width: 900px;
    margin: 0 auto 30px;
    text-align: center;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

/* ========== Шаги ========== */
.steps {
    background: #f6f1f1;
    padding: 60px 0;
}

.steps__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.steps__item {
    width: 180px;
    text-align: center;
    position: relative;
    padding: 25px 15px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.steps__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(255, 106, 0, 0.15);
}

.steps__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #FF8C00, #FF6A00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(255, 106, 0, 0.3);
}

.steps__text {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

/* ========== Контактная секция ========== */
.contact-section {
    margin: 40px 0;
}

.contact-section .container {
    background: linear-gradient(135deg, #37aee2, #1e7fa3);
    border-radius: 30px;
    padding: 50px 40px;
}

.contact-section__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.contact-section__image {
    flex: 1;
    max-width: 300px;
}

.contact-section__image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

.form {
    flex: 1;
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.form__label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    transition: 0.3s;
}

.form__input:focus,
.form__textarea:focus {
    border-color: #FF6A00;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,106,0,0.1);
}

.form__textarea {
    min-height: 100px;
    resize: vertical;
}

.form__agreement {
    font-size: 12px;
    color: #777;
    text-align: center;
    margin: 15px 0 0;
}

.form__agreement a {
    color: #FF6A00;
    font-weight: 500;
}

.form .btn {
    width: 100%;
    margin-top: 5px;
}

/* ========== Футер ========== */
.footer {
    background: #123e93;
    padding: 60px 0;
    color: #fff;
}

.footer__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer__brand {
    max-width: 200px;
    text-align: center;
}

.footer__brand img {
    margin: 0 auto 15px;
}

.footer__brand p {
    font-size: 13px;
    line-height: 1.5;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer__nav a {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.footer__nav a:hover {
    color: #ffae10;
}

.footer__contacts {
    text-align: center;
}

.footer__contacts-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer__contacts .social-links {
    justify-content: center;
}

.footer__contacts .btn {
    margin: 10px 0;
}

/* ========== Модальные окна ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal__container {
    background: #fff;
    border-radius: 30px;
    padding: 30px;
    max-width: 450px;
    width: 95%;
    position: relative;
    box-shadow: 0 30px 50px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.4s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.modal__close:hover {
    background: #FF6A00;
    color: #fff;
}

.modal__close i {
    font-size: 18px;
}

.modal__header {
    text-align: center;
    margin-bottom: 25px;
}

.modal__title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.modal__text {
    font-size: 16px;
    color: #666;
}

.modal__icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.btn-back {
    background: #FF6A00;
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: block;
    margin: 20px auto 0;
}

.btn-back:hover {
    background: #FF8C00;
    transform: scale(1.05);
}

/* ========== Адаптивность ========== */
@media (max-width: 1160px) {
    .header__nav,
    .header .social-links,
    .header .btn {
        display: none;
    }
    .header__burger {
        display: block;
    }
    .header__logo {
        display: none;
    }
    /* Hero на мобильных */
    .hero {
        background-image: none !important;
        background-color: #123e93;
    }
    .hero::before {
        background: rgba(0, 0, 0, 0.2);
    }
    .hero__content {
        flex-direction: column;
        align-items: center;
    }
    .pricing__grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    .advantages__grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    .steps__grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    .contact-section__wrapper {
        flex-direction: column;
        text-align: center;
    }
    .contact-section__image {
        max-width: 250px;
        margin-bottom: 0;
    }
    .contact-section__image img {
        margin-bottom: 0;
    }
}

@media (max-width: 760px) {
    .title { font-size: 28px; }
    .pricing__grid { grid-template-columns: repeat(2, 1fr); }
    .advantages__grid { grid-template-columns: repeat(2, 1fr); }
    .steps__grid { grid-template-columns: repeat(2, 1fr); }
    .contact-section .container {
        padding: 30px 20px;
    }
    .form {
        padding: 25px;
    }
    .footer__contacts .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pricing__grid { grid-template-columns: 1fr; }
    .advantages__grid { grid-template-columns: 1fr; }
    .steps__grid { grid-template-columns: 1fr; }
    .pricing__card {
        width: 100%;
        padding: 0 0 20px 0;
    }
    .pricing__image {
        width: 100%;
        height: auto;
        max-width: none;
        margin-bottom: 15px;
        border-radius: 15px 15px 0 0;
    }
    .pricing__title,
    .pricing__price,
    .pricing__btn {
        padding: 0 15px;
    }
    .advantages__card,
    .steps__item {
        width: 100%;
    }
    .hero__slogan { font-size: 22px; }
    .footer__wrapper {
        flex-direction: column;
        text-align: center;
    }
    .footer__nav {
        align-items: center;
    }
    .modal__container {
        padding: 20px;
    }
    .modal__title {
        font-size: 22px;
    }
    .modal__text {
        font-size: 14px;
    }
    .modal__icon {
        width: 70px;
        height: 70px;
    }
    .form__input,
    .form__textarea {
        padding: 12px;
    }
}
/* ========== НАСТРОЙКА ПЕРВОГО БЛОКА (ПК) ========== */
@media (min-width: 1161px) {
    .hero__content {
        justify-content: space-between;  /* распределяем пространство между блоками */
        align-items: center;             /* выравнивание по вертикали */
        max-width: 1000px;               /* ограничиваем ширину содержимого */
        margin-left: auto;
        margin-right: auto;               /* центрируем всю группу */
        width: 100%;                      /* занимаем всю ширину контейнера */
    }

    .hero__left {
        max-width: 250px;                 /* фиксируем ширину левого блока */
        margin-right: 40px;                /* отступ от правого блока */
    }

    .hero__right {
        flex: 1;                           /* разрешаем блоку расти */
        max-width: 450px;                  /* ограничиваем ширину, чтобы текст не растягивался */
        display: flex;
        flex-direction: column;
        align-items: center;               /* центрируем кнопки по горизонтали внутри правого блока */
    }

    .hero__right .btn {
        width: 100%;                        /* кнопки занимают всю ширину родителя */
        max-width: 280px;                   /* но не шире 280px */
        margin: 10px auto;                   /* центрируем и задаём вертикальные отступы */
    }
}
/* Улучшение видимости кнопки "Заказать звонок" на ПК */
@media (min-width: 1161px) {
    .hero__right .btn--outline {
        background: rgba(255, 255, 255, 0.25); /* легкая белая заливка */
        color: #ffffff !important;               /* ярко-белый текст */
        border: 2px solid #ffffff;                /* белая рамка */
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);   /* тень для читаемости */
    }
    .hero__right .btn--outline:hover {
        background: rgba(255, 255, 255, 0.4);
    }
}
/* ========== УВЕЛИЧЕНИЕ КНОПОК В ЦЕНАХ (МОБИЛЬНЫЕ) ========== */
@media (max-width: 480px) {
    .pricing__grid .pricing__btn {
        padding: 16px 24px !important;
        font-size: 18px !important;
        min-width: 200px !important;
        width: auto !important;
        margin: 0 auto;
    }
}
@media (max-width: 760px) {
    .contact-section__wrapper {
        gap: 0 !important;
    }
}
