/* SaveWave Color Scheme - Purple/Blue Theme */

/* Override original colors */
/* Пастельная гамма в тон круглому логотипу (лаванда → мягкий фиолет → пыльно-розовый) */
:root {
    --savewave-primary: #9aa6e8;
    --savewave-secondary: #ae94d4;
    --savewave-accent: #e5c0e0;
    --savewave-success: #48bb78;
    --savewave-dark: #1a202c;
    --savewave-light: #f7fafc;
    /* Единый RGB для теней и обводок (оттенок логотипа) */
    --savewave-rgb: 154, 166, 232;
}

/* Scrollbar */
::-webkit-scrollbar-thumb{
    background: linear-gradient(85.51deg, var(--savewave-primary) -25.07%, var(--savewave-secondary) 58.03%, var(--savewave-accent) 105.71%);
    border-radius: 0px;
}

/* Buttons */
.btn {
    background: linear-gradient(85.51deg, var(--savewave-primary) -25.07%, var(--savewave-secondary) 58.03%, var(--savewave-accent) 105.71%);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(var(--savewave-rgb), 0.3);
}

/* Tabs */
/* Тумблер тарифа: стили в tabs.css (слайдер + подписи) */
.tbc_btn.active {
    background: transparent;
}

.tbc_btn {
    border: none;
    color: #64748b;
}

.tbc_btn:hover:not(.active) {
    background: transparent;
}

/* Прогресс шагов: ширину задаёт savewave-animations.js — без CSS-анимации */
.loader {
    background: #e8eaf0;
    overflow: hidden;
}

.load {
    background: linear-gradient(90deg, var(--savewave-primary) 0%, var(--savewave-secondary) 55%, var(--savewave-accent) 100%);
    transition: width 0.08s linear;
    animation: none;
}

/* Accordion */
.accordion.active .question {
    color: var(--savewave-primary);
}

.accordion.active .question_svg svg {
    transform: rotate(180deg);
    stroke: var(--savewave-primary);
}

.accordion .question_svg svg {
    transition: transform 0.3s ease;
}

/* Header animations */
.header {
    animation: header-slide-down 0.5s ease-out;
}

@keyframes header-slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hero section animations */
.one_text h1 {
    animation: fade-up 0.8s ease-out 0.2s both;
}

.one_text h4 {
    animation: fade-up 0.8s ease-out 0.4s both;
}

.one_text .btn {
    animation: fade-up 0.8s ease-out 0.6s both;
}

.one_text .one_i {
    animation: fade-up 0.8s ease-out 0.8s both;
}

/* Герой img_1: скруглённый прямоугольник в тон карточкам и кнопкам */
.container > .one {
    margin-bottom: 32px;
}

@media (max-width: 990px) {
    .container > .one {
        gap: 24px;
    }
}

.container .one_img {
    flex-shrink: 0;
    width: min(680px, 100%);
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 24px 48px -12px rgba(var(--savewave-rgb), 0.28),
        0 8px 20px rgba(26, 32, 44, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.92);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.75) 0%, rgba(245, 247, 250, 0.98) 100%);
}

.container .one_img img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 0;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brand cards hover effect */
.tabs_col_img .tabs-media-tile,
.tabs_col_img2 .tabs-media-tile {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tabs_col_img .tabs-media-tile:hover,
.tabs_col_img2 .tabs-media-tile:hover {
    transform: scale(1.02);
    box-shadow: none;
}

/* Feature cards */
.three_min {
    transition: all 0.3s ease;
}

.three_min:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* FAQ accordion animation */
.accordion .answer {
    transition: max-height 0.3s ease, padding 0.3s ease;
}

/* Footer links hover */
.footer_navi_col a:hover,
.footer_block a:hover {
    color: var(--savewave-primary);
}

/* Social icons animation */
.footer_block_img_col {
    transition: all 0.3s ease;
}

.footer_block_img_col:hover {
    transform: translateY(-3px);
    filter: brightness(1.2);
}

/* Page load animation */
body {
    animation: page-fade-in 0.5s ease-out;
    background: linear-gradient(180deg, #f8f9fd 0%, #ffffff 28%, #f6f7fb 100%);
}

@keyframes page-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Pulse animation for CTA */
@keyframes savewave-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--savewave-rgb), 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--savewave-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--savewave-rgb), 0);
    }
}

.btn.pulse {
    animation: savewave-pulse 2s infinite;
}

/* Акцентные подписи в карточках подписки и FAQ */
.tabs_col_body span,
.tabs_col_block_text span,
.accordion .content_answer span {
    color: var(--savewave-primary);
    font-weight: 600;
}

/* Responsive animations */
@media (max-width: 768px) {
    @keyframes mobile-slide-up {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .tabs_col_block,
    .three_min,
    .accordion {
        animation: mobile-slide-up 0.5s ease-out both;
    }
    
    .tabs_col_block:nth-child(1) { animation-delay: 0.1s; }
    .tabs_col_block:nth-child(2) { animation-delay: 0.2s; }
    .three_min:nth-child(1) { animation-delay: 0.1s; }
    .three_min:nth-child(2) { animation-delay: 0.2s; }
    .accordion:nth-child(1) { animation-delay: 0.1s; }
    .accordion:nth-child(2) { animation-delay: 0.2s; }
    .accordion:nth-child(3) { animation-delay: 0.3s; }
    .accordion:nth-child(4) { animation-delay: 0.4s; }
    .accordion:nth-child(5) { animation-delay: 0.5s; }
    .accordion:nth-child(6) { animation-delay: 0.6s; }
    .accordion:nth-child(7) { animation-delay: 0.7s; }
}

/* ========== Единый «тумблер-стиль»: фон, карточки, секции ========== */

html {
    scroll-behavior: smooth;
}

/* Шапка */
.header {
    border-bottom: 1px solid rgba(var(--savewave-rgb), 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 249, 253, 0.92) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0 0 20px 20px;
    padding: 12px 0 18px;
    margin-top: 32px !important;
    box-shadow: 0 4px 24px rgba(var(--savewave-rgb), 0.06);
}

.burger img {
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.burger:hover img {
    opacity: 1;
}

/* Герой */
.one_text h1 {
    letter-spacing: -0.03em;
    color: #1e293b;
}

.one_text h4 {
    color: #64748b;
    max-width: 520px;
    line-height: 1.45;
}

.one {
    padding-bottom: 16px;
}

.one_text .btn {
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(var(--savewave-rgb), 0.35);
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.one_text .btn:hover {
    animation: none;
    box-shadow: 0 8px 28px rgba(var(--savewave-rgb), 0.45);
}

.one_i {
    margin-top: 22px !important;
    padding: 12px 18px 12px 14px;
    display: inline-flex !important;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    width: fit-content !important;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    box-sizing: border-box;
    background: linear-gradient(165deg, #eef1fc 0%, #e8ecf9 100%);
    border: 1px solid rgba(var(--savewave-rgb), 0.14);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 4px 16px rgba(var(--savewave-rgb), 0.08);
}

@media (max-width: 990px) {
    .one_text .one_i {
        align-self: center;
    }
}

.one_i img {
    flex-shrink: 0;
}

.one_i h5 {
    margin: 0;
    color: #475569 !important;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
}

/* Десктоп: герой — колонки ближе к центру; подпись с иконкой в одну строку; высота картинки ограничена */
@media (min-width: 991px) {
    .container > .one {
        align-items: flex-start;
        justify-content: center;
        gap: 28px;
        column-gap: 28px;
    }

    .one_text .one_i,
    .one_i {
        width: fit-content !important;
        max-width: 100% !important;
        box-sizing: border-box;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
    }

    .one_i h5 {
        white-space: nowrap;
    }

    .container .one_img {
        margin-top: 0;
        width: fit-content;
        max-width: min(520px, 45vw);
        align-self: flex-start;
    }

    .container .one_img img {
        width: auto;
        max-width: 100%;
        max-height: min(360px, calc(100vh - 280px));
        height: auto;
    }
}

/* Блок подписок */
.bg_grey:not(.footer-band) {
    border: 1px solid rgba(var(--savewave-rgb), 0.1);
    box-shadow:
        0 4px 32px rgba(var(--savewave-rgb), 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.two h2 {
    letter-spacing: -0.02em;
}

/* Карточки в табах */
.tabs_col_block {
    border: 1px solid rgba(var(--savewave-rgb), 0.1);
    box-shadow: 0 8px 32px rgba(var(--savewave-rgb), 0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tabs_col_block:hover {
    box-shadow: 0 12px 40px rgba(var(--savewave-rgb), 0.12);
    transform: translateY(-2px);
}

.tabs_col_block_all {
    border: 1px solid rgba(var(--savewave-rgb), 0.1);
    box-shadow: 0 8px 32px rgba(var(--savewave-rgb), 0.08);
}

/* Блок «Как это работает» */
.three_max {
    border: 1px solid rgba(var(--savewave-rgb), 0.1);
    box-shadow: 0 8px 32px rgba(var(--savewave-rgb), 0.08);
}

.three_min {
    border: 1px solid rgba(var(--savewave-rgb), 0.08);
    box-shadow: 0 6px 24px rgba(var(--savewave-rgb), 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.three_min:hover {
    box-shadow: 0 10px 32px rgba(var(--savewave-rgb), 0.12);
}

/* Заголовки секций */
.sw-section-head {
    text-align: center;
    margin-bottom: 28px;
    padding: 8px 16px 0;
}

.sw-section-head__eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 10px;
}

.sw-section-head__title {
    font-size: clamp(1.35rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1e293b;
    margin: 0;
    line-height: 1.25;
}

.sw-section-head--faq {
    margin-bottom: 12px;
}

/* FAQ — карточки-аккордеоны */
#faq {
    padding-top: 24px;
    padding-bottom: 16px;
}

#faq .accordion {
    margin-top: 0;
    margin-bottom: 12px;
    padding: 4px 8px 4px 20px;
    background: #fff;
    border: 1px solid rgba(var(--savewave-rgb), 0.12);
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(var(--savewave-rgb), 0.05);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#faq .accordion:hover {
    border-color: rgba(var(--savewave-rgb), 0.22);
    box-shadow: 0 6px 24px rgba(var(--savewave-rgb), 0.1);
}

#faq .accordion.active {
    border-color: rgba(var(--savewave-rgb), 0.28);
    box-shadow: 0 8px 28px rgba(var(--savewave-rgb), 0.12);
}

#faq .question {
    border-bottom: none;
    padding: 16px 12px 16px 0;
    align-items: flex-start;
    gap: 12px;
}

#faq .question h3 {
    z-index: 1;
    font-weight: 600;
    color: #334155;
    line-height: 1.35;
}

#faq .accordion.active .question h3 {
    color: var(--savewave-primary);
}

#faq .question_svg {
    z-index: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

#faq .question svg path {
    stroke: #64748b;
    transition: stroke 0.2s ease;
}

#faq .accordion.active .question svg path {
    stroke: var(--savewave-primary);
}

#faq .answer {
    border-radius: 0 0 12px 12px;
}

#faq .accordion.active .answer {
    border-bottom: none;
    margin-bottom: 0;
}

#faq .content_answer p {
    line-height: 1.55;
    padding: 0 0 18px;
    color: #64748b;
}

/* Картинка перед футером */
.img_bg {
    padding: 24px 0 8px;
}

.img_bg img {
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(var(--savewave-rgb), 0.12);
}

/* Футер */
.footer-band-wrap {
    margin-top: 48px;
}

.footer-band {
    border-radius: 28px 28px 0 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border: 1px solid rgba(var(--savewave-rgb), 0.08);
    border-bottom: none;
    box-shadow: 0 -8px 40px rgba(var(--savewave-rgb), 0.06);
}

.footer_navi {
    padding-top: 8px;
    border-bottom: 1px solid rgba(var(--savewave-rgb), 0.1);
}

@media (max-width: 550px) {
    .header {
        border-radius: 0 0 16px 16px;
        padding: 10px 0 14px;
    }

    /* Плашка с иконкой в хиро — тоже по центру */
    .one_i {
        justify-content: center !important;
    }

    .one_i h5 {
        text-align: center;
    }

    .one_i h5 {
        font-size: 13px;
    }

    #faq .accordion {
        padding-left: 16px;
        border-radius: 16px;
    }
}