:root {
    --block-radius: 16px;
}

body {
    font-size: 1.0625rem;
}

/* Фиксированная bootstrap-шапка */
.site-header {
    background: #3c4ccf;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    z-index: 1030;
    transition: all 0.3s ease;
}

.site-header.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.site-header__inner {
    min-height: 68px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Отступ для контента под шапкой */
.header-spacer {
    height: 84px;
}

/* Адаптация логотипа */
.logo-wrapper {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.logo-wrapper img {
    transition: opacity 0.2s;
    vertical-align: middle;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 32px;
}

/* Кнопка «Заказать подключение» */
button.site-header__order-btn {
    font-family: inherit;
    line-height: 1.25;
    cursor: pointer;
}
.site-header__order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    color: #2a3042 !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    white-space: nowrap;
}
.site-header__order-btn:hover {
    background: #f8f9fa !important;
    color: #1a1e29 !important;
}

.site-header__actions {
    justify-content: flex-end;
}

.site-header__order-wrap {
    justify-content: flex-end;
}

/* Вход / личный кабинет: белая иконка, при наведении зелёная */
.site-header__cabinet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}
.site-header__cabinet:hover,
.site-header__cabinet:focus {
    color: #02a499 !important;
}
.site-header__cabinet i {
    font-size: 1.35rem;
    line-height: 1;
    color: inherit !important;
}

/* Тёмная тема (опционально) */
@media (prefers-color-scheme: dark) {
    .site-header {
        background: #3c4ccf;
        box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    }
    .site-header__cabinet {
        color: #fff !important;
    }
    .logo-default { display: none !important; }
    .logo-light-mode { display: inline-block !important; }
}

.site-footer {
    background: #3c4ccf;
    color: #fff;
    margin-top: 3rem;
}

.site-footer__inner {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.site-footer__brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.site-footer__brand img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 32px;
}

.site-footer__copyright {
    margin: 0;
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
}

.site-footer__nav {
    display: flex;
    justify-content: flex-end;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.site-footer__link {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.site-footer__link:hover,
.site-footer__link:focus {
    color: #fff;
    opacity: 0.8;
}

.order-modal .modal-dialog {
    max-width: 520px;
}

.order-modal .modal-content {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(17, 24, 39, 0.22);
}

.order-modal .modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 0;
    align-items: flex-start;
}

.order-modal__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(60, 76, 207, 0.08);
    color: #3c4ccf;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.order-modal .modal-title {
    margin: 0;
    color: #101828;
    font-size: 1.625rem;
    font-weight: 400;
    line-height: 1.2;
}

.order-modal__subtitle {
    margin: 0.5rem 0 0;
    color: #667085;
    font-size: 1.05rem;
    line-height: 1.6;
}

.order-modal .btn-close {
    margin: 0;
    padding: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background-color: #f2f4f7;
    opacity: 1;
    box-shadow: none;
}

.order-modal .btn-close:hover,
.order-modal .btn-close:focus {
    background-color: #e4e7ec;
}

.order-modal .modal-body {
    padding: 0 1.5rem 1.25rem;
}

.order-modal .form-label {
    margin-bottom: 0.45rem;
    color: #344054;
    font-size: 0.95rem;
    font-weight: 600;
}

.order-modal .form-control {
    min-height: 52px;
    padding: 0.85rem 1rem;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.order-modal .form-control:focus {
    border-color: #3c4ccf;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(60, 76, 207, 0.12);
}

.order-modal .modal-footer {
    padding: 0 1.5rem 1.5rem;
    border-top: 0;
}

.order-modal__submit {
    min-height: 54px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #3c4ccf 0%, #5667f2 100%);
    box-shadow: 0 14px 30px rgba(60, 76, 207, 0.28);
    font-size: 20px;
}

.order-modal__submit:hover,
.order-modal__submit:focus {
    background: linear-gradient(135deg, #3341b1 0%, #4b5ae0 100%);
}

.home-slider-wrap {
    margin-top: 2.5rem;
}

.home-slider-title {
    margin-bottom: 1rem;
    color: #101828;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
}

.home-slider {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #f7f9ff 0%, #eef2ff 100%);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.home-slider .carousel-inner {
    border-radius: 24px;
}

.home-slider__item {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 420px;
    padding: 2rem 2.25rem 4.5rem;
    background-image:
        linear-gradient(180deg, rgba(11, 18, 32, 0.14) 0%, rgba(11, 18, 32, 0.72) 100%),
        var(--slide-bg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.home-slider__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    padding: 1.5rem;
    border-radius: 24px;
    background: rgba(11, 18, 32, 0.44);
    backdrop-filter: blur(10px);
    text-align: left;
}

.home-slider__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-slider__heading {
    margin-bottom: 0.75rem;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
}

.home-slider__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.65;
}

.home-slider .carousel-indicators {
    margin-bottom: 1.25rem;
}

.home-slider .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.55);
}

.home-slider .carousel-indicators .active {
    background-color: #fff;
}

.home-slider .carousel-control-prev,
.home-slider .carousel-control-next {
    top: auto;
    bottom: 1rem;
    width: 44px;
    height: 44px;
    margin: 0 1.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    opacity: 1;
}

.home-slider .carousel-control-prev {
    left: auto;
    right: 4.5rem;
}

.home-slider .carousel-control-next {
    right: 0;
}

.home-slider .carousel-control-prev-icon,
.home-slider .carousel-control-next-icon {
    width: 1rem;
    height: 1rem;
    filter: invert(26%) sepia(25%) saturate(4387%) hue-rotate(226deg) brightness(93%) contrast(88%);
}

.maintenance-box .mdi {
    font-size: 4rem !important;
    color: #02a499;
}

.home-wrapper blockquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid #3c4ccf;
    border-radius: 10px;
    background: #02a499;
    color: #ffffff;
    font-size: 1.125rem;
    line-height: 1.7;
    font-style: italic;
    text-align: left;
}

.home-wrapper blockquote p:last-child {
    margin-bottom: 0;
}

.home-wrapper blockquote cite {
    display: block;
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 600;
}

.card,
.site-header__order-btn,
.home-slider,
.home-slider .carousel-inner,
.home-slider__content,
.faq-section .accordion-item,
.order-modal .modal-content,
.order-modal .form-control,
.order-modal__submit,
.home-wrapper blockquote {
    border-radius: var(--block-radius) !important;
}

.faq-section {
    margin-top: 2.5rem;
}

.faq-section__title {
    margin-bottom: 1.25rem;
    color: #101828;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
}

.faq-section .accordion-item {
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.faq-section .accordion-button {
    font-weight: 600;
    font-size: 18px;
    background-color: #02a499;
    color: #ffffff;
}

.faq-section .accordion-button:not(.collapsed) {
    color: #ffffff;
    background-color: #02a499;
}

.faq-section .accordion-button::after {
    filter: brightness(0) invert(1);
}

.faq-section .accordion-body {
    background-color: #ffffff;
    color: #2a3042;
}

/* Адаптив для мобильных */
@media (max-width: 576px) {
    .site-header__inner {
        min-height: 0;
        padding-top: 0.5rem;
        padding-bottom: 0.75rem;
    }
    .header-spacer {
        height: 118px;
    }
    .logo-wrapper img {
        max-height: 24px;
    }
    .site-header__order-wrap {
        width: 100%;
        justify-content: stretch;
    }
    .site-header__order-btn {
        width: 100%;
        font-size: 0.9rem;
        padding: 0.55rem 0.9rem;
        white-space: normal;
    }
    .site-header__cabinet {
        padding: 8px 8px;
    }
    .site-header__cabinet i {
        font-size: 1.2rem;
    }
    .site-footer {
        margin-top: 2rem;
    }
    .site-footer__brand img {
        max-height: 26px;
    }
    .site-footer__nav {
        justify-content: flex-start;
        gap: 0.75rem;
    }
    .order-modal .modal-header,
    .order-modal .modal-body,
    .order-modal .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .order-modal .modal-title {
        font-size: 1.35rem;
    }
    .order-modal__subtitle {
        font-size: 0.95rem;
    }
    .home-slider-wrap {
        margin-top: 2rem;
    }
    .home-slider-title {
        font-size: 1.4rem;
    }
    .home-slider__item {
        padding: 1.5rem 1rem 4.75rem;
        min-height: 320px;
    }
    .home-slider__content {
        padding: 1rem;
        border-radius: 18px;
    }
    .home-slider__heading {
        font-size: 1.45rem;
    }
    .home-slider__text {
        font-size: 1rem;
    }
    .home-slider .carousel-control-prev,
    .home-slider .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 0.75rem;
    }
    .home-slider .carousel-control-prev {
        right: 3.75rem;
    }
    .faq-section__title {
        font-size: 1.4rem;
    }
}
