* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Светлая тема (приглушённая) */
    --bg-gradient-1: #e8b4c8;
    --bg-gradient-2: #d99bb3;
    --bg-gradient-3: #f5d5e0;
    --blob-1: #ff8fb3;
    --blob-2: #ffb3d1;
    --blob-3: #ffc9e0;
    --blob-4: #ff7aa8;
    --text: #2a1a23;
    --text-muted: #5a4550;
    --card-bg: rgba(255, 255, 255, 0.55);
    --card-border: rgba(255, 143, 179, 0.4);
    --shadow: 0 10px 40px rgba(255, 100, 150, 0.3);
    --btn-gradient: linear-gradient(135deg, #ff6b9d, #e84393);
}

[data-theme="dark"] {
    /* Тёмная тема */
    --bg-gradient-1: #2d1b2e;
    --bg-gradient-2: #3d2441;
    --bg-gradient-3: #1a0f1f;
    --blob-1: #c44569;
    --blob-2: #e84393;
    --blob-3: #a55eea;
    --blob-4: #fd79a8;
    --text: #f5e6ec;
    --text-muted: #c9a9b8;
    --card-bg: rgba(60, 30, 50, 0.5);
    --card-border: rgba(255, 100, 150, 0.3);
    --shadow: 0 10px 40px rgba(200, 50, 100, 0.4);
    --btn-gradient: linear-gradient(135deg, #fd79a8, #e84393);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    min-height: 100vh;
    background: linear-gradient(135deg,
            var(--bg-gradient-1) 0%,
            var(--bg-gradient-2) 40%,
            var(--bg-gradient-3) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    transition: background 0.5s ease, color 0.5s ease;
}

/* Декоративные блобы — БОЛЬШЕ и ЯРЧЕ */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.7;
    z-index: -1;
    animation: float 15s ease-in-out infinite;
    transition: background 0.5s ease;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--blob-1);
    top: -150px;
    left: -150px;
}

.blob-2 {
    width: 700px;
    height: 700px;
    background: var(--blob-2);
    top: 30%;
    right: -200px;
    animation-delay: -5s;
}

.blob-3 {
    width: 500px;
    height: 500px;
    background: var(--blob-3);
    bottom: -150px;
    left: 20%;
    animation-delay: -10s;
}

.blob-4 {
    width: 450px;
    height: 450px;
    background: var(--blob-4);
    top: 50%;
    left: -100px;
    animation-delay: -7s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, -40px) scale(1.1);
    }
}

/* Кнопка переключения темы */
.theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--card-border);
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 100;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 100, 150, 0.4);
    border-color: var(--blob-1);
}

.theme-toggle:active {
    transform: scale(1.05);
}

/* Контейнер для иконок */
.theme-toggle svg {
    position: absolute;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Светлая тема — показываем солнце */
[data-theme="light"] .icon-sun,
body:not([data-theme]) .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #ff6b9d;
    filter: drop-shadow(0 0 8px rgba(255, 107, 157, 0.6));
}

[data-theme="light"] .icon-moon,
body:not([data-theme]) .icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.3);
}

/* Тёмная тема — показываем луну */
[data-theme="dark"] .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #ffd700;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

[data-theme="dark"] .icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.3);
}

/* Анимация появления */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.9s ease forwards;
}

.fade-in:nth-child(2) {
    animation-delay: 0.15s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HERO */
.hero {
    text-align: center;
    padding: 40px 0 60px;
}

.badge {
    display: inline-block;
    padding: 8px 18px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blob-1);
    margin-bottom: 24px;
}

.title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #ff6b9d, #e84393);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 36px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--btn-gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 50px rgba(232, 67, 147, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.01);
}

/* КАРУСЕЛЬ */
.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 30px;
}

.carousel-section {
    padding: 40px 0;
}

.carousel {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    aspect-ratio: 16/9;
}

.slide {
    min-width: 100%;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    color: var(--blob-1);
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    z-index: 2;
}

.carousel-btn:hover {
    background: var(--card-bg);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: -20px;
}

.carousel-btn.next {
    right: -20px;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blob-1);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    width: 24px;
    border-radius: 4px;
    opacity: 1;
}

/* FAQ */
.faq-section {
    padding: 60px 0;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(255, 100, 150, 0.2);
}

.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item .icon {
    font-size: 1.5rem;
    color: var(--blob-1);
    transition: transform 0.3s;
    font-weight: 400;
}

.faq-item[open] .icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-muted);
    animation: slideDown 0.3s ease;
}

.faq-answer a {
    color: var(--blob-1);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--blob-1);
}

.faq-answer a:hover {
    color: var(--blob-4);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 40px 0 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 600px) {
    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .theme-toggle {
        top: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }

    .theme-toggle svg {
        width: 24px;
        height: 24px;
    }

    .carousel-track {
        aspect-ratio: 16/9;
    }
}