/* --- Переменные и Цвета --- */
:root {
    /* Основные цвета */
    --primary: #6366f1;
    /* Vivid Indigo - Современный синий/фиолетовый */
    --primary-dark: #4f46e5;
    --accent: #f43f5e;
    /* Rose - Яркий акцент для кнопок */
    --text-main: #1e293b;
    /* Slate 800 */
    --text-light: #64748b;
    /* Slate 500 */
    --bg-body: #f8fafc;
    /* Slate 50 */
    --white: #ffffff;

    /* Градиенты */
    --gradient-main: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-accent: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);

    /* Эффекты */
    --shadow-soft: 0 10px 40px -10px rgba(99, 102, 241, 0.15);
    --shadow-hover: 0 20px 40px -10px rgba(99, 102, 241, 0.25);
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.8);
    --radius: 16px;

    /* Шрифты */
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Базовые настройки --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    user-select: none;
    /* Защита от копирования */
    -webkit-user-select: none;
}

h1,
h2,
h3,
.logo {
    font-family: var(--font-head);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

/* --- Декоративные фоновые пятна (Blobs) --- */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: blobMove 20s infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #e0e7ff;
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #ffe4e6;
    top: 40%;
    left: -100px;
}

@keyframes blobMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

/* --- UI Компоненты --- */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: var(--radius);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-transparent {
    color: var(--text-light);
}

.btn-transparent:hover {
    color: var(--primary);
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: 0.3s;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
}

.logo .dot {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    padding: 10px 24px;
    background: var(--text-main);
    color: white !important;
    border-radius: 30px;
}

.btn-nav:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* --- Hero --- */
.hero {
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: #e0e7ff;
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 50px;
}

.stats-row {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 30px;
}

.stat span {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat small {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Hero Image */
.hero-img-wrapper {
    position: relative;
    perspective: 1000px;
}

.img-card {
    padding: 10px;
    background: white;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: 0.5s;
    box-shadow: var(--shadow-soft);
}

.img-card:hover {
    transform: rotateY(0) rotateX(0);
}

.img-card img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.floating-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-family: var(--font-head);
    animation: float 3s ease-in-out infinite;
}

.floating-badge i {
    color: #10b981;
    font-size: 1.5rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- Sections Common --- */
.section {
    padding: 100px 0;
}

.bg-light {
    background: #f1f5f9;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* --- Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #e0e7ff;
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
}

/* --- Pricing --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.price-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    position: relative;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.price-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-soft);
    z-index: 2;
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.price-header {
    text-align: center;
    margin-bottom: 30px;
}

.price-header h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.price-header .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.price-list {
    margin-bottom: 30px;
}

.price-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.price-list li i {
    color: var(--primary);
    margin-right: 10px;
}

.price-list li.disabled {
    color: #cbd5e1;
    text-decoration: line-through;
}

.price-list li.disabled i {
    color: #cbd5e1;
}

.full-width {
    width: 100%;
}

/* --- FAQ --- */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    transition: 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-answer {
    padding: 0 25px 25px;
    color: var(--text-light);
    display: none;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s;
}

/* --- Form (Contact) --- */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    padding: 60px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.contact-text h2 {
    margin-bottom: 20px;
}

.contact-info {
    margin-top: 40px;
}

.c-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.c-item i {
    width: 40px;
    height: 40px;
    background: #e0e7ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
}

.input-group input,
.input-group textarea,
.styled-select {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: #f8fafc;
    transition: 0.3s;
    outline: none;
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
}

.input-group input:focus,
.input-group textarea:focus,
.styled-select:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-group label {
    position: absolute;
    left: 20px;
    top: 15px;
    color: var(--text-light);
    pointer-events: none;
    transition: 0.3s;
    background: transparent;
}

/* Floating Label Logic */
.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    background: white;
    padding: 0 5px;
    color: var(--primary);
}

.row-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-wrapper {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.checkbox-wrapper .link {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

/* --- Footer --- */
footer {
    background: var(--text-main);
    color: #94a3b8;
    padding: 60px 0 30px;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.footer-left .logo {
    color: white;
    margin-bottom: 10px;
    display: block;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links span {
    cursor: pointer;
    transition: 0.3s;
}

.footer-links span:hover {
    color: white;
}

.footer-legal {
    border-top: 1px solid #334155;
    padding-top: 20px;
    font-size: 0.8rem;
}

/* --- Modals & Cookie --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1900;
    display: none;
    opacity: 0;
    transition: 0.3s;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    background: white;
    padding: 40px;
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: 0.3s;
}

.modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 20px;
    background: white;
    box-shadow: var(--shadow-hover);
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 1500;
    max-width: 350px;
    display: none;
    /* JS control */
    animation: slideIn 0.5s;
}

.cookie-banner button {
    padding: 8px 16px;
    background: var(--text-main);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

@keyframes slideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Pulse Animation --- */
.pulse-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-img-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: 0.3s;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-toggle {
        display: block;
    }

    .contact-box {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .row-inputs {
        grid-template-columns: 1fr;
    }
}

/* --- Services (Stages) --- */
.step-card {
    padding: 40px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(99, 102, 241, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.step-card p {
    color: var(--text-light);
    position: relative;
    z-index: 1;
}