:root {
    /* Color Palette */
    --bg-dark: #0a0f1c;
    --bg-card: #111827;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-primary: #00f2ea;
    /* Cyan/Teal */
    --accent-secondary: #7c3aed;
    /* Violet */
    --accent-glow: rgba(0, 242, 234, 0.2);
    --border-color: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(to right, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow);
}

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

.btn-outline:hover {
    background: rgba(0, 242, 234, 0.1);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Footer Redesign - Premium Polish */
.footer-redesign {
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6rem 0 4rem;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Equal split for better balance */
    gap: 6rem;
    align-items: start;
}

.footer-left {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 300;
    /* Lighter weight for elegance */
    letter-spacing: -1px;
    margin-bottom: 3rem;
    display: inline-block;
    color: white;
    text-transform: uppercase;
}

.footer-menu {
    display: flex;
    flex-direction: column;
    /* Vertical list looks more corporate/clean here */
    gap: 1rem;
    margin-bottom: 4rem;
}

.footer-menu a {
    color: #888;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    width: fit-content;
}

.footer-menu a:hover {
    color: white;
    padding-left: 10px;
    /* Subtle movement on hover */
}

.footer-social {
    margin-top: auto;
}

.footer-form h3 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 15px 0;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--accent-primary);
}

.form-label {
    position: absolute;
    top: 15px;
    left: 0;
    color: #666;
    pointer-events: none;
    transition: 0.3s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.form-input:focus~.form-label,
.form-input:valid~.form-label {
    top: -10px;
    font-size: 0.7rem;
    color: var(--accent-primary);
}

/* Button matching site style */
.form-submit {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    width: auto;
    /* Don't stretch full width */
    float: right;
    /* Align right */
}

.form-submit:hover {
    background: white;
    color: black;
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Grid 2x2 */
.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Carousel CSS */
.carousel-container {
    position: relative;
    padding: 0 50px;
    /* Space for arrows */
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2rem 1rem;
    /* Padding to prevent shadow clipping */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.carousel-item {
    min-width: 300px;
    /* Minimum card width */
    flex-shrink: 0;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--accent-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0;
    }

    .carousel-arrow {
        display: none;
    }

    /* Swipe on mobile */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 15, 28, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

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

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    /* Navbar height */
    overflow: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-subtext {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 234, 0.15) 0%, rgba(124, 58, 237, 0.05) 50%, transparent 70%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Sections */
.section,
header,
footer {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto 4rem;
    font-size: 1.2rem;
}

/* Cards Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    perspective: 1000px;
    /* Enable 3D space */
}

.card {
    background: rgba(255, 255, 255, 0.03);
    /* More transparent for liquid feel */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    /* Highlight top edge */
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    /* Highlight left edge */
    padding: 2.5rem;
    border-radius: 24px;
    /* Softer corners */
    backdrop-filter: blur(16px) saturate(180%);
    /* Liquid Glass effect */
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.1s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    /* Fast transform for tilt */
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
    pointer-events: none;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    box-shadow: 0 20px 40px rgba(0, 242, 234, 0.15);
    border-color: var(--accent-primary);
}

.card h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    transform: translateZ(20px);
    /* Pop out text */
}

.card p {
    transform: translateZ(10px);
    /* Pop out text slightly less */
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.step-card {
    position: relative;
    background: rgba(17, 24, 39, 0.4);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.step-card:hover {
    transform: translateY(-10px) rotateX(5deg);
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 1rem;
    right: 2rem;
    line-height: 1;
}

.step-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

/* Guarantee Section */
.guarantee-badge {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

/* Availability Section */
.availability-card {
    text-align: center;
    border-color: var(--accent-primary);
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(0, 242, 234, 0.05));
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #10b981;
    /* Green for available */
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px #10b981;
    box-shadow: 0 0 10px #10b981;
}



/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    margin-top: 4rem;
}

/* Animation Utilities */
.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-hidden.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Footer Links */
.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-primary);
}

/* Services Section */
.service-card {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 242, 234, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(124, 58, 237, 0.1));
    border-color: var(--accent-secondary);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.15);
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-header {
    margin-bottom: 2rem;
    text-align: center;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.pricing-period {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-features {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}

.pricing-features li i {
    color: var(--accent-primary);
    margin-top: 4px;
    flex-shrink: 0;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

/* =========================================
   FIX 4.0: BOTTOM LAYOUT (Разделение)
   ========================================= */

#contact {
    /* Растягиваем секцию на весь экран */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* ГЛАВНОЕ: Прижимаем всё содержимое К НИЗУ, а не к центру */
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 10;
    /* Отступ снизу, чтобы текст не прилип к самому краю браузера */
    padding-bottom: 100px;

    /* Легкий градиент снизу, чтобы текст читался, если туда залетят точки */
    background: linear-gradient(to top, rgba(10, 15, 28, 1) 0%, rgba(10, 15, 28, 0) 40%);
}

#contact .container {
    /* УБИРАЕМ КАРТОЧКУ ПОЛНОСТЬЮ */
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;

    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Заголовок */
#contact h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
    /* Сильная тень, чтобы текст был четким без подложки */
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

/* Описание */
#contact .section-desc {
    font-size: 1.3rem;
    color: #f1f5f9;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.5;
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

/* Кнопка */
#contact .btn-primary {
    padding: 18px 50px;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.4);
    /* Красивое свечение кнопки */
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    #contact {
        padding-bottom: 60px;
        /* На телефоне отступ поменьше */
    }

    #contact h2 {
        font-size: 2.2rem;
    }
}

/* Пульсация для главной кнопки внизу */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 20px rgba(0, 242, 234, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 242, 234, 0.7), 0 0 10px rgba(255, 255, 255, 0.5);
    }

    100% {
        box-shadow: 0 0 20px rgba(0, 242, 234, 0.4);
    }
}

#contact .btn-primary {
    animation: glowPulse 3s infinite;
    /* Медленная пульсация */
    transition: transform 0.3s ease;
}

#contact .btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    /* Легкое увеличение при наведении */
}

/* Article Card Hover Effect */
.article-card .card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.article-card:hover .card {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

.article-card:hover span {
    color: var(--accent-primary);
}