/* Основные стили для сайта Студии "Карусель" */

/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Фирменные цвета из предоставленного изображения */
    --primary-color: #FF6B8B; /* Розовый/коралловый */
    --secondary-color: #6A5ACD; /* Фиолетовый */
    --accent-color: #00CED1; /* Бирюзовый */
    --light-color: #FFD700; /* Золотой */
    --dark-color: #4B0082; /* Темно-фиолетовый */
    
    /* Дополнительные яркие цвета */
    --bright-pink: #FF1493; /* Глубокий розовый */
    --bright-blue: #00BFFF; /* Голубой */
    --bright-green: #32CD32; /* Лаймовый */
    --bright-orange: #FFA500; /* Оранжевый */
    --bright-purple: #9370DB; /* Средний фиолетовый */
    
    /* Дополнительные цвета */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    
    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-colorful: 0 6px 20px rgba(255, 107, 139, 0.3);
    
    /* Скругления */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Отступы */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;
}

/* Устранение горизонтального скроллинга */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative !important;
}

body {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 107, 139, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(106, 90, 205, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(0, 206, 209, 0.03) 0%, transparent 30%);
    background-attachment: fixed;
    overflow-x: hidden !important;
    width: 100% !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    overflow-x: hidden !important;
}

.text-center {
    text-align: center;
}

.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::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.7s ease;
    z-index: -1;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--bright-pink));
    background-size: 200% 200%;
    color: white;
    box-shadow: var(--shadow-colorful);
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 107, 139, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-color), var(--bright-blue));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 206, 209, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--light-color), var(--bright-orange));
    color: var(--text-dark);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 3px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--accent-color)) 1;
    color: var(--secondary-color);
    position: relative;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: translateY(-4px);
    border-color: transparent;
}

.btn-outline:hover::after {
    opacity: 1;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.2rem;
    border-radius: var(--radius-xl);
}

/* Шапка */
.header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.98));
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(106, 90, 205, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: hidden;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color)) 1;
    width: 100% !important;
    max-width: 100vw !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    width: 100% !important;
    max-width: 100% !important;
}

/* Логотип в шапке */
.logo-image {
    display: flex;
    align-items: center;
    position: relative;
}

.logo-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    z-index: -1;
    opacity: 0.1;
}

.logo-image img {
    height: 100px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo-image:hover img {
    transform: scale(1.05) rotate(5deg);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-list a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-list a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-list a.active {
    color: var(--primary-color);
}

.nav-list a.active::before {
    width: 100%;
}

.nav-list a:hover::before {
    width: 100%;
}

.nav-list a:hover {
    color: var(--primary-color);
    transform: none;
}

.header-contacts .phone-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(255, 107, 139, 0.1), rgba(106, 90, 205, 0.1));
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.header-contacts .phone-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-colorful);
}

.menu-toggle {
    display: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: rotate(90deg);
    box-shadow: var(--shadow-colorful);
}

/* Герой-секция */
.hero {
    background: linear-gradient(135deg, 
        var(--secondary-color) 0%, 
        var(--dark-color) 30%,
        var(--bright-purple) 70%,
        var(--primary-color) 100%);
    color: white;
    padding: var(--space-xxl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important; /* Явное предотвращение горизонтального скроллинга */
    position: relative !important;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 206, 209, 0.2) 0%, transparent 50%);
    pointer-events: none;
    overflow-x: hidden !important; /* Предотвращение горизонтального скроллинга */
}

.hero-title {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: none;
    -webkit-text-fill-color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    opacity: 0.95;
    font-weight: 300;
}

.hero-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* Преимущества */
.advantages {
    padding: var(--space-xxl) 0;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9), rgba(255, 255, 255, 0.9));
    position: relative;
    width: 100% !important;
    max-width: 100vw !important;
}

.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--primary-color), 
        var(--accent-color), 
        var(--light-color), 
        var(--secondary-color));
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--secondary-color);
    font-size: 2.5rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.advantage-card {
    background: linear-gradient(135deg, var(--bg-white), #f8f9fa);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(106, 90, 205, 0.2);
    border-color: var(--accent-color);
}

.advantage-card:hover::before {
    opacity: 1;
}

.advantage-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-lg);
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.advantage-card h3 {
    color: var(--secondary-color);
    margin-bottom: var(--space-sm);
    font-size: 1.8rem;
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Услуги */
.services-preview {
    padding: var(--space-xxl) 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.9));
    width: 100% !important;
    max-width: 100vw !important;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.service-card {
    background: linear-gradient(135deg, var(--bg-white), #f8f9fa);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 107, 139, 0.1), 
        rgba(106, 90, 205, 0.1), 
        rgba(0, 206, 209, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(106, 90, 205, 0.25);
    border-color: var(--light-color);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--bright-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: var(--space-sm);
    font-size: 1.8rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* CTA секция */
.cta {
    padding: var(--space-xxl) 0;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--bright-pink) 30%,
        var(--light-color) 70%,
        var(--bright-orange) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100% !important;
    max-width: 100vw !important;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 40%);
    pointer-events: none;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.cta h2::after {
    background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.5));
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
}

.cta p {
    font-size: 1.4rem;
    margin-bottom: var(--space-xl);
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta .btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
    font-size: 1.3rem;
    padding: 20px 40px;
    box-shadow: 0 8px 25px rgba(75, 0, 130, 0.4);
}

.cta .btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-color), var(--secondary-color));
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 15px 35px rgba(75, 0, 130, 0.5);
}

/* Футер */
.footer {
    background: linear-gradient(135deg, var(--dark-color), #2c0052);
    color: white;
    padding: var(--space-xxl) 0 var(--space-lg);
    position: relative;
    overflow: hidden;
    width: 100% !important;
    max-width: 100vw !important;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--primary-color), 
        var(--accent-color), 
        var(--light-color));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-col h3 {
    color: var(--light-color);
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--light-color));
    border-radius: 2px;
}

/* Логотип в футере */
.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
}

.footer-logo img {
    height: 120px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.footer-text {
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    line-height: 1.7;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--bright-pink));
    transform: translateY(-5px) rotate(10deg);
    border-color: var(--light-color);
    box-shadow: 0 8px 20px rgba(255, 107, 139, 0.4);
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    transition: transform 0.3s ease;
}

.footer-list li:hover {
    transform: translateX(5px);
}

.footer-list i {
    color: var(--accent-color);
    margin-top: 3px;
    font-size: 1.2rem;
}

.footer-list a {
    color: white;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-list a:hover {
    color: var(--light-color);
    opacity: 1;
    transform: none;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.8;
    font-size: 1rem;
}

/* Кнопки мессенджеров */
.messenger-buttons {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    z-index: 1000;
}

.whatsapp-btn, .telegram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.whatsapp-btn::before, .telegram-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease;
}

.whatsapp-btn:hover::before, .telegram-btn:hover::before {
    left: 100%;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.telegram-btn {
    background: linear-gradient(135deg, #0088cc, #005580);
}

.whatsapp-btn:hover, .telegram-btn:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Анимация для конфетти */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Стили для кнопки конфетти */
.confetti-toggle {
    position: fixed;
    bottom: 120px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--bright-pink));
    background-size: 200% 200%;
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 8px 25px rgba(255, 107, 139, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: gradient-shift 3s ease infinite, pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.confetti-toggle:hover {
    transform: scale(1.2) rotate(180deg);
    box-shadow: 0 15px 35px rgba(255, 107, 139, 0.6);
}

/* Декоративные элементы */
.decorative-dots {
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.dot {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0.1;
}

/* Адаптивность */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .nav-list {
        gap: var(--space-md);
    }
    
    .messenger-buttons {
        bottom: var(--space-lg);
        right: var(--space-lg);
    }
    
    .whatsapp-btn, .telegram-btn {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .confetti-toggle {
        bottom: 100px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: var(--space-md);
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: var(--space-sm);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.98));
        padding: var(--space-md);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header-contacts {
        margin-left: auto;
        margin-right: var(--space-md);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Адаптивность логотипа */
    .logo-image img {
        height: 80px;
        max-width: 100%;
    }
    
    .footer-logo img {
        height: 100px;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .advantages-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    /* Адаптивность логотипа для мобильных */
    .logo-image img {
        height: 70px;
        max-width: 100%;
    }
    
    .footer-logo img {
        height: 90px;
        max-width: 100%;
    }
    
    .messenger-buttons {
        bottom: var(--space-md);
        right: var(--space-md);
    }
    
    .whatsapp-btn, .telegram-btn {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
    
    .confetti-toggle {
        bottom: 85px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

/* Дополнительные исправления для устранения горизонтального скроллинга */
img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
}

table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

pre, code {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
}

/* Гарантия отсутствия горизонтального скроллинга */
body.prevent-horizontal-scroll {
    overflow-x: hidden !important;
    position: relative !important;
    width: 100% !important;
}

.prevent-horizontal-scroll .container,
.prevent-horizontal-scroll .header,
.prevent-horizontal-scroll .hero,
.prevent-horizontal-scroll .advantages,
.prevent-horizontal-scroll .services-preview,
.prevent-horizontal-scroll .cta,
.prevent-horizontal-scroll .footer {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* Portfolio category label: Малышники */
.portfolio-section-label {
    grid-column: 1 / -1;
    margin: 42px 0 12px;
    padding: 28px 34px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(245,231,255,0.72));
    border: 1px solid rgba(168,85,247,0.20);
    box-shadow: 0 18px 45px rgba(139,92,246,0.12);
    text-align: center;
}

.portfolio-section-label span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d8b4fe, #a855f7);
    color: #fff;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: 0.02em;
}

.portfolio-section-label p {
    max-width: 760px;
    margin: 16px auto 0;
    font-size: 17px;
    line-height: 1.7;
    color: #5e5673;
}

.portfolio-modal__details-text {
    white-space: pre-line;
    line-height: 1.75;
}
