@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

:root {
    /* Основные светлые цвета */
    --primary-light: #ffffff;
    --primary-background: #fafbfc;
    --primary-soft: #f8fffe;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;

    /* Зеленые акценты */
    --accent-green: #38c96a;
    --accent-green-light: #4ecb71;
    --accent-green-dark: #2db85e;
    --accent-green-subtle: #e6f7ed;

    /* Дополнительные акценты */
    --secondary-accent: #e2575c;
    --warning-accent: #f6ad55;
    --info-accent: #4299e1;

    /* Градиенты */
    --gradient-light-green: linear-gradient(135deg, #ffffff 0%, #f0fdf4 50%, #e6f7ed 100%);
    --gradient-soft-green: linear-gradient(135deg, #fafbfc 0%, #f8fffe 50%, #f0fdf4 100%);
    --gradient-accent: linear-gradient(135deg, #38c96a 0%, #4ecb71 100%);
    --gradient-hero: linear-gradient(135deg, #ffffff 0%, #f8fffe 30%, #f0fdf4 70%, #e6f7ed 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,255,254,0.9) 50%, rgba(240,253,244,0.85) 100%);

    /* Тени */
    --shadow-light: 0 2px 8px rgba(56, 201, 106, 0.06);
    --shadow-medium: 0 4px 16px rgba(56, 201, 106, 0.1);
    --shadow-strong: 0 8px 32px rgba(56, 201, 106, 0.15);
    --shadow-glass: 0 8px 32px rgba(56, 201, 106, 0.12);
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--gradient-light-green);
    color: var(--text-primary);
    line-height: 1.6;
}

.gradient-text {
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 20px rgba(56, 201, 106, 0.2);
}

.tooltip {
    position: fixed;
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.95);
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tooltip.show {
    opacity: 1;
}

.company-info {
    font-size: 0.875rem;
    color: #94A3B8;
    line-height: 1.6;
}

.company-info-group {
    margin-bottom: 1rem;
}

.company-info-label {
    color: #CBD5E1;
    font-weight: 500;
}

.section-gradient-blue {
    background: var(--gradient-soft-green);
    position: relative;
    overflow: hidden;
}

.section-gradient-blue::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, var(--primary-light), transparent);
    pointer-events: none;
    z-index: 1;
}

.section-gradient-purple {
    background: var(--gradient-hero);
}

.section-gradient-dark {
    background: var(--gradient-light-green);
}

.bg-primary-dark {
    background: var(--primary-light);
}

.bg-primary-medium {
    background: var(--primary-soft);
}

.bg-primary-accent {
    background-color: var(--accent-green);
}

.bg-primary-light {
    background: var(--primary-background);
}

.bg-primary-transition {
    background-color: var(--accent-green-light);
}

.text-primary-accent {
    color: var(--accent-green);
}

.text-secondary-accent {
    color: var(--secondary-accent);
}

.text-tertiary-accent {
    color: var(--accent-green-dark);
}

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

.border-primary-accent {
    border-color: var(--accent-green);
}

.glass-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 201, 106, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-glass);
    border-radius: 16px;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(56, 201, 106, 0.3);
    box-shadow: var(--shadow-strong), 0 0 24px rgba(56, 201, 106, 0.15);
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,255,254,0.95) 50%, rgba(240,253,244,0.9) 100%);
}

.heading-xl {
    font-size: clamp(3rem, 5vw, 4rem); /* увеличенный размер шрифта для Карманный консультант */
    line-height: 1.1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.75rem; /* увеличенный размер для подзаголовка, но меньше заголовка */
    line-height: 1.3;
    max-width: 580px; /* еще увеличенная ширина для двух строк */
    margin-top: 0.25rem;
    display: block;
    word-break: normal;
    white-space: normal;
}

/* Мобильное меню */
.mobile-menu {
    display: none;
    cursor: pointer;
    z-index: 1000;
}

.mobile-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: 0.4s;
}

/* Новые классы для градиентов */
.bg-gradient-soft-green {
    background: var(--gradient-soft-green);
}

.bg-gradient-hero {
    background: var(--gradient-hero);
}

.bg-gradient-light-green {
    background: var(--gradient-light-green);
}

.hero-gradient-bg {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 20%, #dcfce7 40%, #bbf7d0 60%, #d1fae5 80%, #f0fdf4 100%) !important;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.hero-gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(56, 201, 106, 0.04) 0%, transparent 70%),
                radial-gradient(ellipse at bottom left, rgba(56, 201, 106, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Градиент для секции сравнения с плавными переходами в белый */
.comparison-gradient-bg {
    background: linear-gradient(180deg,
        #ffffff 0%,
        #f8fffe 10%,
        #f0fdf4 25%,
        #ecfdf5 50%,
        #f0fdf4 75%,
        #f8fffe 90%,
        #ffffff 100%
    ) !important;
    position: relative;
    z-index: 1;
}

.comparison-gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 800px 400px at 25% 30%, rgba(56, 201, 106, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse 600px 300px at 75% 70%, rgba(34, 197, 94, 0.04) 0%, transparent 60%),
        linear-gradient(0deg, rgba(255,255,255,0.8) 0%, transparent 15%, transparent 85%, rgba(255,255,255,0.8) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Адаптивные стили */
@media (max-width: 1024px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }

    section {
        padding: 5rem 0;
    }

    .glass-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.125rem;
        line-height: 1.4;
    }

    .heading-xl {
        font-size: 2.5rem;
    }

    /* Hero section mobile spacing fix */
    .hero-gradient-bg {
        padding-top: 6rem !important;
    }

    /* Benefits section improvements */
    .comparison-gradient-bg .grid {
        gap: 2rem !important;
    }

    .comparison-gradient-bg .glass-card {
        padding: 1.5rem !important;
    }

    .comparison-gradient-bg h3 {
        font-size: 1.25rem !important;
    }

    .comparison-gradient-bg .text-2xl {
        font-size: 1.25rem !important;
    }

    .mobile-menu {
        display: block;
    }

    .md\:flex {
        display: none !important;
    }

    .md\:flex.active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-light);
        padding: 2rem;
        z-index: 100;
        gap: 1.5rem;
        align-items: flex-start;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    /* Mobile menu specific styles */
    .md\:flex.active a.nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 0;
        width: 100%;
        text-align: left;
        display: block;
        margin: 0;
    }

    .md\:flex.active .registration-btn {
        width: auto;
        margin: 1.5rem auto 0 auto;
        padding: 0.75rem 1.5rem;
        text-align: center;
        display: block;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 1rem;
    }

    .heading-xl {
        font-size: 2rem;
    }

    /* Hero section mobile spacing fix for small screens */
    .hero-gradient-bg {
        padding-top: 5.5rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem;
    }

    .glass-card {
        padding: 1rem;
    }

    .stats-item {
        padding: 1.25rem 0.75rem;
    }

    .registration-btn {
        width: 100% !important;
        min-width: auto !important;
        max-width: 100% !important;
        font-size: 0.85rem !important;
        padding: 0.75rem 0.75rem !important;
        white-space: normal !important;
        text-align: center !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.3 !important;
    }

    .registration-btn.inline-flex {
        display: flex !important;
    }

    .registration-btn span {
        width: 100%;
        text-align: center;
        white-space: normal !important;
        word-wrap: break-word !important;
        line-height: 1.3 !important;
    }

    /* Special fix for the long button text */
    .registration-btn span br {
        display: inline !important;
    }

    /* General mobile improvements for all sections */
    section {
        padding: 2.5rem 0 !important;
    }

    /* Pricing cards */
    .glass-card {
        margin-bottom: 1rem;
    }

    /* Time saving tabs */
    .time-tab-content .glass-card {
        padding: 1rem !important;
    }

    /* Testimonials */
    .testimonial-slide .glass-card {
        padding: 1rem !important;
    }

    /* Footer improvements */
    footer .grid {
        gap: 1rem !important;
    }

    footer .text-sm {
        font-size: 0.75rem !important;
    }


    /* Services section adjustments */
    .slider-card {
        min-height: 220px !important;
        padding: 1rem !important;
    }

    .slider-card h3 {
        font-size: 1rem !important;
    }

    .slider-card p {
        font-size: 0.8rem !important;
    }
}

h2 {
    font-size: clamp(2.2rem, 3.5vw, 2.8rem) !important;
    margin-bottom: 2.5rem;
    margin-top: 2.5rem;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 3rem;
    margin-top: 1rem;
}

section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.section-transition {
    position: relative;
    z-index: 1;
}

.section-transition::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--primary-light), transparent);
    z-index: -1;
}

.section-transition-reverse::after {
    transform: rotate(180deg);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.feature-card {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.stats-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stats-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-green);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 0 10px rgba(56, 201, 106, 0.2);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.connect-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(66, 153, 225, 0.5) 50%,
        transparent 100%
    );
    opacity: 0.5;
}

@media (max-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    .floating {
        max-width: 85%;
        margin: 0 auto;
    }
}

@media (min-width: 1025px) {
    .hero-floating {
        max-width: 650%;
        transform: translateX(-75%);
        position: relative;
        right: -1%;
        margin-right: -10%;
    }

    .hero-floating img {
        width: 100%;
        height: auto;
        object-fit: contain;
        scale: 1.25;
    }

    .floating {
        max-width: 100%;
        position: relative;
    }

.floating img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
}

@media (max-width: 768px) {
    .heading-xl {
        font-size: 2rem;
    }

    .company-info {
        text-align: center;
        margin-top: 1rem;
        padding: 0 1rem;
    }

    .company-info-group {
        margin-bottom: 1.5rem;
    }

    .company-info p {
        font-size: 0.75rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
        white-space: normal;
        word-break: break-word;
    }

    .tooltip {
        width: 80%;
        text-align: center;
        padding: 15px;
    }
}

@media (max-width: 640px) {
    footer .grid {
        gap: 2rem;
    }

    .company-info-group {
        margin-bottom: 1rem;
    }

    footer .flex-col {
        text-align: center;
    }

    footer .space-x-4 {
        justify-content: center;
    }
}

/* Стили для hero-slider секции */
.bg-primary-darkest {
    background-color: #0a1620; /* Темнее основного цвета */
}

.animate-pulse-slow {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.3;
    }
}

/* Стили для слайдера */
.slider-3d-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.slider-carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 350px;
    perspective: 1000px;
}

.slider-card {
    position: absolute;
    width: 100%;
    max-width: 500px;
    min-height: 200px;
    padding: 2rem;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(56, 201, 106, 0.2);
    box-shadow: var(--shadow-glass);
    transition: all 0.6s ease;
    overflow: hidden;
}

.slider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.slider-card:hover::before {
    transform: translateX(100%);
}

.slider-primary {
    z-index: 30;
    opacity: 1;
    transform: translateZ(0) scale(1);
}

.slider-secondary[data-position="left"] {
    z-index: 20;
    opacity: 0.8;
    transform: translateX(-70%) translateZ(-100px) scale(0.85);
    filter: brightness(0.9);
}

.slider-secondary[data-position="right"] {
    z-index: 20;
    opacity: 0.8;
    transform: translateX(70%) translateZ(-100px) scale(0.85);
    filter: brightness(0.9);
}

.slider-hidden {
    opacity: 0;
    transform: translateZ(-200px) scale(0.7);
    pointer-events: none;
}

.slider-icon {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
    display: inline-block;
    text-shadow: 0 0 10px rgba(56, 201, 106, 0.3);
}

.slider-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
}

.slider-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Навигация карусели */
.carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.carousel-control {
    background: var(--gradient-card);
    border: 1px solid rgba(56, 201, 106, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-control:hover {
    background: var(--accent-green);
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(56, 201, 106, 0.3);
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--accent-green);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .slider-card {
        padding: 1.25rem;
        max-width: 95%;
        min-height: 250px;
    }

    .slider-secondary[data-position="left"] {
        transform: translateX(-25%) translateZ(-80px) scale(0.85);
    }

    .slider-secondary[data-position="right"] {
        transform: translateX(25%) translateZ(-80px) scale(0.85);
    }

    .slider-icon {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .slider-card h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .slider-card p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .slider-3d-carousel {
        padding: 1rem 0;
    }

    .slider-carousel-container {
        min-height: 280px;
    }
}

@media (max-width: 576px) {
    .slider-secondary {
        display: none;
    }

    .slider-card {
        max-width: 95%;
        min-height: auto;
    }

    .carousel-control {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

/* Override for smoother section transition */
.section-gradient-blue {
    background-image: linear-gradient(to top, var(--primary-light) 0%, transparent 20%), var(--gradient-soft-green);
    background-repeat: no-repeat;
    background-size: cover;
}
.section-gradient-blue::before {
    display: none !important;
}

/* Testimonials Slider Styles */
.testimonials-container {
    overflow: hidden;
    position: relative;
}

.testimonials-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex: 0 0 auto;
}

.testimonial-dot {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.testimonial-dot.active {
    background-color: var(--accent-green);
    transform: scale(1.3);
    border-color: rgba(56, 201, 106, 0.3);
    box-shadow: 0 0 12px rgba(56, 201, 106, 0.4);
}

.testimonial-dot:hover:not(.active) {
    background-color: rgba(56, 201, 106, 0.6);
    transform: scale(1.1);
    border-color: rgba(56, 201, 106, 0.2);
}

/* Testimonial card animations */
.glass-card {
    transition: all 0.3s ease;
}

.testimonial-slide .glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 20px rgba(56, 201, 106, 0.15);
}

/* Emoji avatar styling */
.testimonial-slide .w-12.h-12 {
    background: linear-gradient(135deg, rgba(56, 201, 106, 0.1), rgba(56, 201, 106, 0.05));
    border: 2px solid rgba(56, 201, 106, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.testimonial-slide .glass-card:hover .w-12.h-12 {
    transform: scale(1.1);
    border-color: rgba(56, 201, 106, 0.4);
    box-shadow: 0 0 20px rgba(56, 201, 106, 0.3);
}

/* Mobile responsiveness for testimonials */
@media (max-width: 768px) {
    .testimonial-slide {
        min-width: 100% !important;
        width: 100% !important;
    }

    .testimonials-container {
        padding: 0 16px;
    }

    .testimonial-slide .glass-card {
        margin: 0 8px;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .testimonial-slide {
        min-width: 50% !important;
        width: 50% !important;
    }
}

@media (min-width: 1024px) {
    .testimonial-slide {
        min-width: 33.333% !important;
        width: 33.333% !important;
    }
}

/* Стили для кнопок с белым текстом */
.registration-btn,
button.registration-btn {
    color: white !important;
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    word-break: keep-all !important;
    white-space: nowrap !important;
    text-wrap: nowrap !important;
}

/* Убедимся, что все кнопки с зеленым фоном имеют белый текст */
.bg-primary-accent,
.bg-primary-transition,
[class*="bg-primary-accent"]:not(.border),
button[class*="bg-primary-accent"],
a[class*="bg-primary-accent"] {
    color: white !important;
}

/* Фикс для ссылок внутри зеленых кнопок */
.bg-primary-accent a,
.bg-primary-transition a {
    color: white !important;
}

/* Стили для hover состояний */
.hover\:bg-primary-accent:hover,
.hover\:bg-primary-transition:hover {
    color: white !important;
}

/* Исключение для блоков со скоростью - они должны иметь темный текст */
.inline-flex.items-center[class*="bg-primary-accent/10"] {
    color: inherit !important;
}

.inline-flex.items-center[class*="bg-primary-accent/10"] * {
    color: inherit !important;
}

/* Исключение для кнопок с прозрачным фоном - они должны иметь темный текст */
button.registration-btn.bg-transparent,
button.registration-btn[class*="bg-white"] {
    color: #374151 !important;
}

button.registration-btn.bg-transparent:not(:hover),
button.registration-btn[class*="bg-white"]:not(:hover) {
    color: #374151 !important;
}

/* Универсальные стили для заголовков с Montserrat */
h1, h2, h3, h4, h5, h6,
.font-display {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700;
}

/* Стили для шапки на больших экранах */
@media (min-width: 1280px) {
    nav .max-w-6xl {
        max-width: 100%;
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (min-width: 1536px) {
    nav .max-w-6xl {
        padding-left: 5rem;
        padding-right: 5rem;
    }
}

@media (min-width: 1920px) {
    nav .max-w-6xl {
        padding-left: 8rem;
        padding-right: 8rem;
    }
}

/* Стили для контента hero секции на больших экранах */
@media (min-width: 1280px) {
    .hero-gradient-bg .max-w-8xl {
        max-width: 100%;
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (min-width: 1536px) {
    .hero-gradient-bg .max-w-8xl {
        padding-left: 5rem;
        padding-right: 5rem;
    }
}

@media (min-width: 1920px) {
    .hero-gradient-bg .max-w-8xl {
        padding-left: 8rem;
        padding-right: 8rem;
    }
}

/* Стили для интерактивных табов экономии времени */
.time-tab-btn {
    background: var(--gradient-card);
    border-color: rgba(56, 201, 106, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
}

.time-tab-btn:hover {
    border-color: rgba(56, 201, 106, 0.3);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,255,254,0.95) 50%, rgba(240,253,244,0.9) 100%);
}

.time-tab-btn.active {
    border-color: var(--accent-green);
    background: linear-gradient(135deg, rgba(56, 201, 106, 0.05) 0%, rgba(56, 201, 106, 0.02) 50%, rgba(255,255,255,0.95) 100%);
    box-shadow: var(--shadow-medium), 0 0 20px rgba(56, 201, 106, 0.1);
}

.time-tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.time-tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


/* Адаптивность для табов */
@media (max-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    .time-tab-btn {
        margin-bottom: 0.5rem;
    }

    .sticky {
        position: static !important;
    }
}

@media (max-width: 768px) {
    .time-tab-btn {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .time-tab-btn .w-12 {
        width: 2.5rem;
        height: 2.5rem;
        flex-shrink: 0;
    }

    .time-tab-btn h4 {
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 0.25rem;
    }

    .time-tab-btn p {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .time-tab-btn .flex.items-center.justify-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .time-tab-btn .text-right {
        align-self: flex-end;
        text-align: right;
        min-width: auto;
    }

    .time-tab-content .glass-card {
        padding: 1.25rem;
    }

    .time-tab-content h3 {
        font-size: 1.25rem;
    }

    .time-tab-content .text-2xl {
        font-size: 1.25rem !important;
    }

    .time-tab-content .space-y-6 > div {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    /* Detailed content cards optimization */
    .time-tab-content .flex.items-center.justify-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .time-tab-content .flex.items-center.justify-between .flex.items-center {
        width: 100%;
    }

    .time-tab-content .flex.items-center.justify-between span {
        align-self: flex-end;
        font-size: 1.125rem !important;
    }

    .time-tab-content .w-16 {
        width: 3rem !important;
        height: 3rem !important;
    }

    .time-tab-content .text-2xl.text-white {
        font-size: 1.125rem !important;
    }
}

@media (max-width: 480px) {
    .time-tab-btn {
        padding: 0.875rem;
        margin-bottom: 0.875rem;
    }

    .time-tab-btn .flex.items-center.space-x-4 {
        gap: 0.75rem;
        flex: 1;
    }

    .time-tab-btn .w-12 {
        width: 2.25rem;
        height: 2.25rem;
    }

    .time-tab-btn h4 {
        font-size: 0.9rem;
    }

    .time-tab-btn p {
        font-size: 0.7rem;
    }

    .time-tab-btn .text-right {
        text-align: right;
        min-width: auto;
    }

    .time-tab-btn .text-lg {
        font-size: 1rem !important;
    }

    .time-tab-content .glass-card {
        padding: 1rem;
    }

    .time-tab-content h3 {
        font-size: 1.125rem;
    }

    .time-tab-content .text-2xl {
        font-size: 1.125rem !important;
    }

    /* More detailed content optimizations for small screens */
    .time-tab-content .space-y-6 > div {
        padding: 0.625rem;
        margin-bottom: 0.625rem;
    }

    .time-tab-content .flex.items-center.justify-between span {
        font-size: 1rem !important;
    }

    .time-tab-content .w-16 {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }

    .time-tab-content .text-lg {
        font-size: 0.875rem !important;
    }

    .time-tab-content .text-sm {
        font-size: 0.75rem !important;
    }

    .time-tab-content .font-semibold {
        font-size: 0.875rem !important;
    }

    .time-tab-content ul li {
        font-size: 0.8rem !important;
        line-height: 1.4;
    }

    .time-tab-content .bg-gradient-to-r {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
}

/* Extra small screens - for very narrow devices */
@media (max-width: 360px) {
    .registration-btn {
        font-size: 0.8rem !important;
        padding: 0.75rem 0.5rem !important;
        min-height: 3rem !important;
        height: auto !important;
    }

    .registration-btn span {
        padding: 0.25rem 0;
        line-height: 1.2 !important;
    }

    .registration-btn span br {
        display: block !important;
    }
}

/* Плавная анимация смены контента */
.time-tab-content.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

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