:root {
    --bg-dark: #060b24;
    --bg-accent: #1b2364;
    --primary: #ff4f0f;
    --primary-2: #ffa000;
    --max: #00a0ff;
    --text: #ffffff;
    --muted: #d7ddff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
    background: radial-gradient(circle at 10% -20%, #f9f1ff, #eef3ff 40%, #f6f8ff);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .35;
    z-index: -1;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.hero {
    color: var(--text);
    background: linear-gradient(120deg, rgba(6, 11, 36, 0.88), rgba(27, 35, 100, 0.82)), url("img/headerSliderBack1.jpg") center/cover no-repeat;
    padding: 30px 0 34px;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .45;
    pointer-events: none;
}

.hero::before {
    background: #4fc3f7;
    top: -120px;
    left: -120px;
    animation: glowMove 10s ease-in-out infinite;
}

.hero::after {
    background: #ff8a65;
    right: -100px;
    bottom: -170px;
    animation: glowMove 12s ease-in-out infinite reverse;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero__content {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    align-items: center;
}

.glass {
    background: linear-gradient(150deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
}

.logo {
    width: 130px;
    height: auto;
}

.hero__topline {
    font-weight: 700;
    color: #ffd166;
}

h1 {
    margin: 8px 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
}

.hero__desc {
    font-size: 18px;
    color: var(--muted);
}

.hero__list {
    margin: 18px 0 0;
    padding-left: 18px;
    color: #d6ffe8;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    padding: 13px 18px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .16);
}

.btn--call {
    background: linear-gradient(45deg, var(--primary), var(--primary-2));
    color: #fff;
}

.btn--max {
    background: #fff;
    color: #111;
}

.btn--max img {
    width: 22px;
    height: 22px;
}

.btn--accent {
    width: 100%;
    background: linear-gradient(45deg, #00c853, #64dd17);
    color: #fff;
}

.btn--ghost {
    background: rgba(18, 29, 90, .1);
    color: #1b2364;
    border: 1px solid rgba(27, 35, 100, .25);
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 16px 32px rgba(24, 36, 125, .14);
}

.lead-form h2 {
    margin-top: 0;
}

.lead-form input,
.lead-form textarea,
.lead-form select {
    width: 100%;
    margin: 8px 0 10px;
    padding: 12px;
    border: 1px solid #cbd4ff;
    border-radius: 10px;
    font-size: 15px;
}

.lead-form textarea {
    min-height: 90px;
    resize: vertical;
}

.policy-note {
    font-size: 12px;
    color: #666;
    margin: 10px 0 0;
}

.services,
.quiz,
.cta {
    padding: 46px 0;
}

.advantages {
    margin-top: 0;
    padding: 14px 0 28px;
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.adv-card {
    background: linear-gradient(135deg, #ff6f00, #ff1744);
    color: #fff;
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(255, 23, 68, .2);
}

.adv-card strong {
    display: block;
    font-size: 28px;
    margin-bottom: 4px;
}

.adv-card span {
    opacity: .95;
}

.services h2,
.quiz h2,
.cta h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 3vw, 38px);
}

.service-slider {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    touch-action: pan-y;
}

.service-slide {
    display: none;
    grid-template-columns: 95px 1fr;
    gap: 16px;
    align-items: start;
    animation: fadeIn .35s ease;
}

.service-slide.is-active {
    display: grid;
}

.service-slide img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-top: 4px;
}

.service-slide h3 {
    margin: 0 0 8px;
    font-size: 26px;
    color: #1b2364;
}

.service-slide p {
    margin: 0 0 10px;
    line-height: 1.52;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: rgba(10, 15, 44, .86);
    color: #fff;
    cursor: pointer;
}

.slider-nav--prev { left: 10px; }
.slider-nav--next { right: 10px; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #b7c4ff;
    border: 0;
    cursor: pointer;
}

.slider-dot.is-active {
    background: #304ffe;
}

.services__cta {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quiz {
    background: linear-gradient(145deg, #141e60, #7f53ac 55%, #ff6f61);
}

.quiz__wrap {
    max-width: 720px;
    margin: 0 auto;
}

.quiz .card {
    background: linear-gradient(155deg, rgba(255, 255, 255, .98), rgba(248, 250, 255, .96));
}

.quiz__wrap h2,
.quiz__wrap p {
    color: #fff;
}

.quiz-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .25);
    margin-bottom: 18px;
}

.quiz-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(45deg, #ff4f0f, #ffd54f);
    transition: width .25s ease;
}

.quiz-step {
    display: none;
    animation: fadeIn .3s ease;
}

.quiz-step.is-active {
    display: block;
}

.quiz-step h3 {
    margin: 0 0 12px;
    color: #1b2364;
}

.choice-grid {
    display: grid;
    gap: 8px;
}

.choice-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-item span {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d6dcff;
    background: #fff;
    cursor: pointer;
    transition: all .22s ease;
}

.choice-item span:hover {
    border-color: #4c6fff;
    transform: translateY(-1px);
}

.choice-item input:checked + span {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(45deg, #304ffe, #26c6da);
}

.location-chips {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 4px;
    margin: 0 0 8px;
    width: 100%;
}

.location-chip {
    flex: 1 1 0;
    min-width: 0;
    padding: 5px 2px;
    border: 1px solid #c5cef5;
    border-radius: 8px;
    background: #f4f6ff;
    color: #1b2364;
    font-size: clamp(9px, 2.5vw, 12px);
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

.location-chip:hover {
    border-color: #4c6fff;
    background: #e8ecff;
    transform: translateY(-1px);
}

.location-chip:active {
    transform: translateY(0);
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    margin: 8px 0 12px;
}

.checkbox input {
    width: 16px;
    margin-top: 3px;
}

.cta {
    color: #fff;
    background: linear-gradient(120deg, #5e35b1, #1e88e5);
}

.cta__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.footer {
    background: var(--bg-dark);
    color: #b8c4ff;
    padding: 18px 0 120px;
    text-align: center;
}

.footer a,
.link-btn {
    color: #fff;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.link-btn--dark {
    color: #1b2364;
}

.sticky-cta {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: min(720px, calc(100% - 22px));
    background: rgba(6, 11, 36, .95);
    color: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    z-index: 26;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .15);
}

.sticky-cta p {
    margin: 0;
    font-size: 14px;
    text-align: center;
}

.sticky-cta__call {
    min-width: 210px;
    margin: 0 auto;
}

.floating-actions {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 82px;
    display: flex;
    gap: 10px;
    z-index: 31;
}

.floating-max,
.floating-phone {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 1.4s infinite;
}

.floating-max {
    background: #fff;
}

.floating-phone {
    background: #00c853;
    animation-delay: .2s;
}

.floating-max img {
    width: 30px;
    height: 30px;
}

.floating-phone img {
    width: 30px;
    height: 30px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glowMove {
    0% { transform: translate(0, 0) scale(1); opacity: .42; }
    50% { transform: translate(24px, 18px) scale(1.08); opacity: .58; }
    100% { transform: translate(0, 0) scale(1); opacity: .42; }
}

.popup {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: none;
}

.popup.is-open {
    display: block;
}

.popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
}

.popup__dialog {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 8vh auto;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: min(94%, 700px);
    max-height: 84vh;
    overflow-y: auto;
}

.popup__close {
    position: absolute;
    right: 8px;
    top: 4px;
    border: 0;
    background: none;
    font-size: 26px;
    cursor: pointer;
}

@media (max-width: 980px) {
    .hero__content {
        grid-template-columns: 1fr;
    }

    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-slider {
        min-height: 390px;
    }
}

@media (max-width: 740px) {
    .service-slide {
        grid-template-columns: 1fr;
    }

    .service-slide img {
        margin: 0 auto;
    }

    .cta__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .advantages__grid {
        grid-template-columns: 1fr;
    }

    .sticky-cta {
        padding-right: 120px;
    }

    .sticky-cta p {
        font-size: 12px;
    }

    .sticky-cta {
        bottom: 10px;
        min-height: 66px;
        gap: 6px;
    }

    .sticky-cta__call {
        min-width: 168px;
        padding: 8px 12px;
        line-height: 1.1;
        flex-direction: column;
        gap: 2px;
        text-align: center;
        align-items: center;
        justify-content: center;
        white-space: normal;
    }

    .sticky-cta__call span {
        display: block;
        width: 100%;
        text-align: center;
    }

    .floating-actions {
        left: auto;
        right: auto;
        transform: none;
        width: 100%;
        bottom: 84px;
        pointer-events: none;
    }

    .floating-max,
    .floating-phone {
        position: fixed;
        pointer-events: auto;
        width: 64px;
        height: 64px;
    }

    .floating-max {
        left: 16px;
    }

    .floating-phone {
        right: 16px;
    }

    .floating-max img,
    .floating-phone img {
        width: 32px;
        height: 32px;
    }
}

.not-found-note {
    padding: 10px 0 6px;
}

.not-found-note__text {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff8e1, #ffe0b2);
    border: 1px solid #ffcc80;
    font-size: 15px;
    line-height: 1.45;
}

.not-found-note__text a {
    color: #1565c0;
    font-weight: 700;
}

.seo-404 {
    padding: 22px 0 36px;
    background: linear-gradient(180deg, #fafbff 0%, #fff 40%);
}

.seo-404__inner {
    max-width: 820px;
}

.seo-404 p {
    margin: 0 0 14px;
    line-height: 1.65;
    font-size: 16px;
}

.seo-404__h2 {
    margin: 22px 0 10px;
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: #1b2364;
    line-height: 1.35;
}

.seo-404__list {
    margin: 0 0 14px;
    padding-left: 1.25rem;
    line-height: 1.65;
}
