/* Root variables for brand colours - ОБНОВЛЕНА ПАЛИТРА */
:root {
    --primary: #E53080;
    --primary-dark: #C0266B;
    --secondary: #0072B5;
    --accent: #FFD166; /* Яркий акцентный цвет */
    --dark: #1a1a2e; /* Глубокий темно-синий */
    --light-gray: #f7f7f7;
    --text-color: #333333;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-light: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout utility classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

/* НОВАЯ ШАПКА - Двухуровневая */
.header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Верхняя панель с контактами */
.header-top {
    background: var(--dark);
    color: #fff;
    padding: 8px 0;
    font-size: 0.9rem;
}

.header-top-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-contacts {
    display: flex;
    gap: 20px;
}

.header-contacts a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.header-contacts a:hover {
    color: var(--accent);
}

.header-cta .btn.small {
    background: var(--accent);
    color: var(--dark);
    font-weight: 600;
}

.header-cta .btn.small:hover {
    background: #ffc747;
}

/* Основная навигация */
.header-main {
    padding: 1rem 0;
}

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

.logo {
    font-weight: 800;
    font-size: 1.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: "✦";
    font-size: 1.5em;
    -webkit-text-fill-color: initial;
    color: var(--primary);
}

/* Десктопная навигация */
.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

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

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

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

/* Hamburger toggle for mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
}
.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero - Более современный */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/fe51e50f-63ec-44f6-a124-3a9a23ac6c0b.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) saturate(1.2);
    z-index: -2;
}

/* Наложение градиента на герой */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.7;
    mix-blend-mode: multiply;
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    font-weight: 800;
}

.hero-content p {
    margin-bottom: 2.5rem;
    font-size: 1.4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--dark);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 209, 102, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 209, 102, 0.4);
    background: #ffc747;
}

.btn.small {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* Grid helpers */
.grid {
    display: grid;
    gap: 3rem;
}

.two-columns {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
}

/* About section */
.about .image-wrapper {
    display: flex;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.about img {
    max-width: 100%;
    transition: transform 0.5s ease;
}
.about .image-wrapper:hover img {
    transform: scale(1.03);
}

/* Services - Стиль карточек изменен */
.services .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}
.service-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}
.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}
.service-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 3px solid #f0f0f0;
    padding: 5px;
    background: #fff;
}
.service-item h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--dark);
}
.service-item p {
    color: #666;
}
.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Features - Новый дизайн */
.features .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}
.feature-item {
    background: #ffffff;
    color: var(--text-color);
    padding: 30px 25px;
    border-radius: 16px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #f0f0f0;
}
.feature-item h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--dark);
}
.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    background: var(--gradient);
    color: #fff;
}
.feature-item:hover h3 {
    color: #fff;
}

/* Gallery */
.gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.gallery .gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.4s ease;
    filter: grayscale(0.2);
}
.gallery .gallery-grid img:hover {
    transform: scale(1.05);
    filter: grayscale(0);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Pricing - Более стильные карточки */
.pricing .pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.price-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 30px;
    width: 300px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-light);
}
.price-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--dark);
}

/* Красивые заголовки разделов */
.section h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}



/* Альтернативный вариант для светлых секций */
.cta h2 {
    color: #ffffff;
}

.cta h2::after,
.features h2::after {
    background: var(--accent);
}

.cta h2::before,
.features h2::before {
    background: #ffffff;
}

/* Адаптивность для заголовков */
@media (max-width: 768px) {
    .section h2 {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
        padding-bottom: 1.2rem;
    }
    
    .section h2::after {
        width: 60px;
        height: 3px;
    }
    
    .section h2::before {
        width: 30px;
        height: 3px;
        bottom: -6px;
    }
}

@media (max-width: 480px) {
    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
}

.price-card .price {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 800;
}

.price-card ul {
    list-style: none;
    margin-bottom: 30px;
}
.price-card ul li {
    margin: 12px 0;
    position: relative;
    padding-left: 20px;
}
.price-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}
.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.price-card.featured {
    background: var(--gradient);
    color: #ffffff;
    border: none;
    transform: scale(1.05);
}
.price-card.featured::before {
    height: 8px;
    background: var(--accent);
}
.price-card.featured .price {
    color: #ffffff;
}
.price-card.featured .btn.small {
    background: #ffffff;
    color: var(--primary);
    font-weight: 700;
}
.price-card.featured .btn.small:hover {
    background: var(--light-gray);
    transform: translateY(-3px);
}
.price-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

/* Call to action */
.cta {
    background: var(--gradient);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: pulse 8s infinite linear;
}
@keyframes pulse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.cta h2 {
    margin-bottom: 15px;
    font-size: 2.5rem;
    position: relative;
}
.cta p {
    margin-bottom: 25px;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
.cta .btn {
    background: #ffffff;
    color: var(--primary);
    position: relative;
}
.cta .btn:hover {
    background: var(--light-gray);
}

/* Contact page */
.contact-page h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--dark);
}
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
    margin-bottom: 40px;
}
.contact-details,
.contact-form {
    flex: 1 1 350px;
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}
.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-details strong {
    color: var(--dark);
    min-width: 120px;
}
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.contact-form input,
.contact-form textarea {
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 48, 128, 0.1);
}
.contact-form button {
    align-self: start;
    margin-top: 10px;
}
.map-container iframe {
    width: 100%;
    border-radius: 16px;
    border: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Footer */
.footer {
    background: var(--dark);
    color: #eeeeee;
    padding: 50px 0 30px;
}
.footer-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-start;
}
.footer-info p {
    margin-bottom: 10px;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-nav a {
    color: #eeeeee;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-nav a:hover {
    color: var(--accent);
}

/* Animation classes */
.fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== */
/* МОБИЛЬНОЕ МЕНЮ - ПРОСТОЙ РАБОЧИЙ ВАРИАНТ */
/* ==================== */

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Скрываем десктопное меню на мобильных */
    .nav > ul {
        display: none;
    }
    
    /* Полноэкранное мобильное меню */
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--gradient);
        z-index: 1001;
        transition: left 0.4s ease;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 2rem;
    }
    
    .nav.open {
        left: 0;
    }
    
    /* Основное меню в мобильной версии */
    .nav .mobile-menu {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        list-style: none;
        width: 100%;
        max-width: 300px;
        margin-bottom: 1rem;
           margin-top: 100px;
    }
    
    .nav .mobile-menu a {
        color: #ffffff;
        font-size: 1.1rem;
        font-weight: 600;
        text-decoration: none;
        padding: 4px 0;
        display: block;
        transition: color 0.3s ease;
        position: relative;
 
 
    }
    
    .nav .mobile-menu a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: var(--accent);
        transition: width 0.3s ease;
    }
    
    .nav .mobile-menu a:hover::after,
    .nav .mobile-menu a.active::after {
        width: 60px;
    }
    
    .nav .mobile-menu a:hover,
    .nav .mobile-menu a.active {
        color: var(--accent);
    }
    
    /* Контакты в мобильном меню */
    .nav .mobile-contacts {
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        width: 100%;
        max-width: 300px;
    }
    
    .nav .mobile-contacts a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: #ffffff;
        text-decoration: none;
        margin: 1rem 0;
        font-size: 1.1rem;
        font-weight: 500;
        transition: color 0.3s ease;
    }
    
    .nav .mobile-contacts a:hover {
        color: var(--accent);
    }
    
    /* Лого в мобильном меню */
    .nav .mobile-logo {
        position: absolute;
        top: 2rem;
        left: 50%;
        transform: translateX(-50%);
        font-weight: 800;
        font-size: 1.6rem;
        color: #ffffff;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .nav .mobile-logo::before {
        content: "✦";
        font-size: 1.3em;
        color: var(--accent);
    }
    
    /* Кнопка закрытия */
    .nav .nav-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        color: #ffffff;
        font-size: 2rem;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.3s ease;
        z-index: 1002;
    }
    
    .nav .nav-close:hover {
        color: var(--accent);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .pricing .pricing-grid {
        flex-direction: column;
        align-items: center;
    }
    .price-card.featured {
        transform: scale(1);
    }
    .price-card.featured:hover {
        transform: translateY(-10px);
    }
    .footer-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-nav {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .service-item, .feature-item {
        padding: 25px 20px;
    }
    .cta h2 {
        font-size: 2rem;
    }
    .contact-details, .contact-form {
        padding: 25px 20px;
    }
    
    .nav .mobile-menu a {
        font-size: 1.2rem;
    }
    
    .nav .mobile-logo {
        font-size: 1.4rem;
    }
}

/* Десктопная навигация - всегда видна на больших экранах */
@media (min-width: 769px) {
    .nav .mobile-logo,
    .nav .mobile-contacts,
    .nav .nav-close,
    .nav .mobile-menu {
        display: none !important;
    }
    
    .nav {
        position: static;
        width: auto;
        height: auto;
        background: none;
        display: block;
    }
    
    .nav > ul {
        display: flex;
    }
}