body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 64px 0;
}

h1,
h2,
h3 {
    margin: 0 0 18px;
}

.hero {
    padding: 0;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg);
    border: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero h1 {
    font-size: 3rem;
    letter-spacing: 0.2px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--subtext);
}

.btn {
    background: transparent;
    color: var(--text);
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-weight: 600;
    transition: background 0.25s, color 0.25s, box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}

.btn:hover {
    border-color: var(--accent);
    background: rgba(76, 139, 245, 0.08);
    box-shadow: 0 0 0 3px var(--ring);
}

.btn.filled {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn.filled:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 0 0 3px var(--ring);
}

.btn.small {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
}

.features .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.feature-card {
    background-color: var(--card-2);
    padding: 22px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.feature-card img {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    object-fit: contain;
}

.how-it-works .process-grid {
    display: flex;
    gap: 18px;
    padding: 28px 0;
    flex-wrap: wrap;
}

.how-it-works .process-step {
    flex: 1 1 280px;
    background-color: var(--card-2);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.how-it-works .process-step:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.how-it-works .step-number {
    background-color: var(--accent);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin: 0 auto 10px;
    font-weight: 700;
}

.benefits ul {
    list-style: none;
    padding: 0;
}

.benefits li {
    margin-bottom: 14px;
    padding-left: 30px;
    position: relative;
    color: var(--text);
}

.benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.05rem;
    top: 0;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    user-select: none;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
    overflow-anchor: none;
}

.testimonial-wrapper {
    display: flex;
    gap: 0;
    transition: transform 0.5s ease;
    touch-action: pan-y;
    overflow-anchor: none;
}

.slide {
    flex: 0 0 100%;
    display: flex;
    gap: 18px;
    justify-content: center;
    padding: 18px;
}

.testimonial-card {
    position: relative;
    flex: 1 1 0;
    max-width: 100%;
    min-width: 0;
    background: var(--card-2);
    border-radius: 16px;
    padding: 70px 20px 30px;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.testimonial-author {
    position: absolute;
    top: 18px;
    left: 18px;
    font-weight: 700;
    color: var(--text);
}

.testimonial-rating {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.3rem;
    color: #FFD700;
    letter-spacing: 2px;
}

.testimonial-content {
    line-height: 1.5;
    color: var(--subtext);
}

.feedback-btn {
    display: block;
    margin: 16px auto 24px;
    text-align: center;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 14px;
    font-size: 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.feedback-btn:hover {
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 0 3px var(--ring);
}

.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    margin-bottom: 24px;
}

.plan-card {
    background: var(--card-2);
    border-radius: 16px;
    padding: 26px;
    color: var(--text);
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.plan-card.highlight {
    border-color: var(--accent);
    background: var(--card);
    position: relative;
}

.plan-card.highlight::after {
    content: "Популярный";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.plan-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: #ffffff;
}

.plan-card p {
    font-size: 15px;
    color: var(--subtext);
    margin-bottom: 10px;
}

.plan-card .description {
    font-size: 14px;
    color: var(--text);
    line-height: 1.55;
}

.scroll-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background-color: var(--accent);
    color: #ffffff;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--border);
}

.scroll-to-top:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
}

.scroll-to-top i {
    font-size: 1.35rem;
}

@media (max-width: 900px) {
    .slide {
        gap: 14px;
    }
    .testimonial-card {
        flex: 0 0 50%;
    }
}

@media (max-width: 500px) {
    .slide {
        gap: 10px;
    }
    .testimonial-card {
        flex: 0 0 100%;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 330px) {
    body {
        font-size: 13px;
    }
    .container {
        padding: 0 10px;
    }
    .hero {
        padding: 60px 0 40px;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .btn {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 265px) {
    body {
        font-size: 12px;
    }
    .container {
        padding: 0 8px;
    }
    .hero {
        padding: 50px 0 35px;
    }
    .hero h1 {
        font-size: 1.25rem;
    }
    .btn {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}
