/* ===== ОБНОВЛЕННАЯ ЦВЕТОВАЯ ПАЛИТРА ===== */
:root {
    --primary: #0077FF;
    --secondary: #00C2FF;
    --accent: #FF6B35;
    --accent-light: #FF9B66;
    --dark: #1A365D;
    --light: #F8FAFF;
    --gray: #718096;
    --light-gray: #E2E8F0;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    --shadow: 0 10px 30px rgba(0, 119, 255, 0.15);
    --shadow-hover: 0 15px 40px rgba(0, 119, 255, 0.25);
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===== ОБЩИЕ УЛУЧШЕНИЯ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #F8FAFF 0%, #E6F0FF 100%);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===== ОБНОВЛЕННЫЙ HEADER ===== */
header {
    background: var(--gradient);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000; /* Должен быть меньше чем у модального окна */
    box-shadow: var(--shadow);
    border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover:after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.phone {
    font-weight: 600;
    font-size: 1.1rem;
}

.header-socials {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-socials .social-link {
    color: white;
    font-size: 16px;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.header-socials .social-link:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-phone-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    padding: 5px;
}

/* ===== ГЕРОЙ СЕКЦИЯ С АНИМАЦИЕЙ ===== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('/images/photo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 150px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}


.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* ===== КНОПКИ С ГРАДИЕНТОМ ===== */
.btn {
    display: inline-block;
    padding: 16px 32px;
    background: var(--gradient-accent);
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover:before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 3px solid var(--white);
    color: var(--white);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-4px);
}

.btn-full {
    width: 100%;
}

/* ===== СЕКЦИИ С ФОНОМ ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section:nth-child(even) {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFF 100%);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    color: var(--dark);
}

.section-title2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    color: var(--white);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}


.section-title2:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* ===== КАРТОЧКИ УСЛУГ ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 119, 255, 0.1);
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.service-img {
    height: 250px;
    background-position: center;
    background-size: cover;
    transition: var(--transition);
    position: relative;
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
    position: relative;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-desc {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.8;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

/* ===== СЕКЦИЯ О КОМПАНИИ ===== */
.about {
    background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 1s ease-out;
}

.stat-text {
    color: var(--gray);
    font-weight: 600;
    font-size: 0.95rem;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.about-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.1;
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.advantages {
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.advantages:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    position: relative;
    z-index: 2;
}

.advantage-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.advantage-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: var(--transition);
}

.advantage-card:hover:before {
    left: 100%;
}

.advantage-card:hover {
    transform: translateY(-8px) scale(1.03);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.advantage-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.advantage-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== ЦЕНЫ ===== */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
    border: none;
}

.pricing-table th, .pricing-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.pricing-table th {
    background: var(--gradient);
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 20px;
    text-align: center;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr:nth-child(even) {
    background: rgba(0, 119, 255, 0.03);
}

.pricing-table tr:hover {
    background: rgba(0, 119, 255, 0.08);
    transform: scale(1.01);
}

.price-note {
    text-align: center;
    color: var(--gray);
    font-style: italic;
}

/* ===== ОТЗЫВЫ ===== */
.reviews {
    background-color: var(--light);
}

.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
}

.review-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 119, 255, 0.1);
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.review-card:before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    color: rgba(0, 119, 255, 0.1);
    font-family: serif;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.review-rating {
    color: var(--accent);
    font-size: 1.1rem;
}

.review-text {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.8;
    font-style: italic;
    position: relative;
    z-index: 2;
}

/* ===== КОНТАКТЫ ===== */
.contact {
    background: linear-gradient(135deg, var(--dark) 0%, #2D3748 100%);
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--accent);
    min-width: 40px;
    text-align: center;
}

.contact-details h3 {
    color: var(--dark) !important;
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.contact-details p,
.contact-details a {
    color: var(--dark) !important;
}

.contact-details a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form-container h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    transition: var(--transition);
    color: var(--dark);
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
    transition: var(--transition);
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.5;
    transform: translateX(10px);
}

.map-container {
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 70px 0 30px;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    display: inline-block;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.footer-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    padding-bottom: 15px;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links li:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-links a {
    color: inherit;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .header-socials {
        display: none;
    }
    
    .contact-info {
        display: none;
    }
    
    .mobile-phone-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-card {
        padding: 30px 20px;
    }
    
    .header-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .contact-info {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
    
    .service-card {
        margin: 0 10px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Мобильная шапка - логотип и кнопки в одном ряду */
.header-mobile-controls {
    display: none;
    align-items: center;
    gap: 15px;
}

@media (max-width: 992px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .header-mobile-controls {
        display: flex;
        order: 2;
    }
    
    .logo {
        order: 1;
        flex-shrink: 0;
    }
    
    nav {
        order: 3;
        width: auto;
    }
    
    .header-right {
        display: none;
    }
    
    .mobile-toggle, 
    .mobile-phone-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        color: white;
        font-size: 1.3rem;
        cursor: pointer;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transition: var(--transition);
    }
    
    .mobile-toggle:hover, 
    .mobile-phone-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.1rem;
    }
    
    .mobile-toggle, 
    .mobile-phone-toggle {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
}

/* Модальное окно с телефонами */
.phones-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999; /* Увеличьте z-index */
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.phones-modal.active {
    display: flex;
}

.phones-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10000; /* Убедитесь, что контент выше фона */
}

.phones-modal-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Убедитесь, что hero имеет меньший z-index */
.hero {
    position: relative;
    z-index: 1;
}

/* Убедитесь, что header имеет достаточный z-index, но меньше модального */
header {
    z-index: 1000;
}

.phones-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    flex: 1;
}

.phones-modal-close {
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-weight: bold;
    padding: 0;
}

.phones-modal-body {
    padding: 20px;
}

.phone-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.phone-item:first-child {
    padding-top: 0; /* Убираем верхний отступ у первого элемента */
}

.phone-item:last-child {
    border-bottom: none;
    padding-bottom: 0; /* Убираем нижний отступ у последнего элемента */
}

.phone-address {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 14px;
}

.phone-number {
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: block;
    padding: 8px 0;
}

.phone-number:hover {
    color: var(--secondary);
}

/* Для мобильных устройств */
@media (max-width: 480px) {
    .phones-modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 60px; /* Отступ сверху чтобы не перекрывать header */
    }
    
    .phones-modal-content {
        max-height: 70vh;
        margin-top: 20px;
    }
}

/* Предотвращаем прокрутку фона когда модальное окно открыто */
body.modal-open {
    overflow: hidden;
    height: 100%;
}

/* Специфические стили для страницы с ценами */
.price-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1565898835704-3d6be4a2c98c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.full-pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.full-pricing-table th {
    background-color: #2e86c1;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.full-pricing-table tr:nth-child(even) {
    background-color: #f8f9f9;
}

.full-pricing-table tr:hover {
    background-color: #ebf5fb;
}

.full-pricing-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.full-pricing-table .service-number {
    font-weight: 600;
    color: #2e86c1;
    width: 40px;
}

.full-pricing-table .service-name {
    font-weight: 500;
}

.full-pricing-table .service-price {
    font-weight: 600;
    color: #27ae60;
    text-align: right;
    white-space: nowrap;
}

.price-category {
    background-color: #1a5276 !important;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.price-note {
    text-align: center;
    font-style: italic;
    color: #666;
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9f9;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .full-pricing-table {
        display: block;
        overflow-x: auto;
    }
    
    .full-pricing-table th,
    .full-pricing-table td {
        padding: 10px;
        font-size: 14px;
    }
    
    .service-number {
        display: none;
    }
}

/* Стили для страницы статей */
.article-detail {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-detail h3 {
    color: #2e86c1;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.article-detail h4 {
    color: #1a5276;
    margin: 20px 0 15px;
}

.article-detail p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.article-detail ul, .article-detail ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-detail li {
    margin-bottom: 8px;
}

.article-detail li:last-child {
    margin-bottom: 0;
}

.articles-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1549399542-7e821f7f6ddf?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}
        
        .article-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .article-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        }
        
        .article-image {
            height: 200px;
            background-size: cover;
            background-position: center;
        }
        
        .article-content {
            padding: 25px;
        }
        
        .article-title {
            font-size: 1.4rem;
            margin-bottom: 15px;
            color: #2e86c1;
        }
        
        .article-excerpt {
            color: #666;
            margin-bottom: 20px;
            line-height: 1.6;
        }
        
        .article-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid #eee;
        }
        
        .read-more {
            color: #2e86c1;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        
        .read-more:hover {
            color: #1a5276;
        }
        
        .article-tags {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        
        .article-tag {
            background: #ebf5fb;
            color: #2e86c1;
            padding: 4px 10px;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 500;
        }
        
        @media (max-width: 768px) {
            .articles-grid {
                grid-template-columns: 1fr;
            }
            
            .article-card {
                margin: 0 10px;
            }
        }
		
		
		/* Новые стили для шапки */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Вертикальное расположение соцсетей в шапке */
.header-socials {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-socials .social-link {
    color: white;
    font-size: 16px;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.header-socials .social-link:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Для мобильного меню */
.mobile-socials .social-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.mobile-socials .social-link {
    color: white;
    font-size: 20px;
}



/* Адаптивность */
@media (max-width: 992px) {
    .header-socials {
        display: none;
    }
    
    .contact-info {
        display: none;
    }
    
    .mobile-phone-toggle {
        display: block;
    }
    
    .mobile-socials {
        display: block;
        text-align: center;
        padding: 20px 0;
    }
    
    .mobile-socials .social-links {
        justify-content: center;
        gap: 20px;
    }
    
    .mobile-socials .social-link {
        color: white;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .phones-modal-content {
        width: 95%;
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .header-right {
        gap: 15px;
    }
    
    .mobile-phone-toggle {
        font-size: 1.2rem;
        padding: 6px;
    }
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 25px;
        transition: var(--transition);
        z-index: 999;
        padding-top: 40px;
    }
    
    .nav-menu.active {
        left: 0;
    }
}

/* Добавьте стили для кнопки телефона */
.mobile-phone-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    padding: 5px;
}

/* Исправьте стили для мобильного меню */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: nowrap; /* Изменил на nowrap */
        justify-content: space-between;
    }
    
    .logo {
        order: 0;
    }
    
    .mobile-phone-toggle {
        order: 1;
        display: block;
    }
    
    .mobile-toggle {
        order: 2;
        display: block;
    }
    
    .contact-info {
        display: none;
    }
}

/* Добавьте стили для мобильных социальных иконок */
.mobile-socials {
    display: none;
}

@media (max-width: 992px) {
    .mobile-socials {
        display: block;
        text-align: center;
        margin-top: 30px;
    }
    
    .mobile-socials .social-links {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
    }
}

/* Мобильная шапка - логотип и кнопки в одном ряду */
.header-mobile-controls {
    display: none;
    align-items: center;
    gap: 15px;
}

@media (max-width: 992px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .header-mobile-controls {
        display: flex;
        order: 2;
    }
    
    .logo {
        order: 1;
        flex-shrink: 0;
    }
    
    nav {
        order: 3;
        width: auto;
    }
    
    .header-right {
        display: none;
    }
    
    .mobile-toggle, 
    .mobile-phone-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        color: white;
        font-size: 1.3rem;
        cursor: pointer;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transition: var(--transition);
    }
    
    .mobile-toggle:hover, 
    .mobile-phone-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.1rem;
    }
    
    .mobile-toggle, 
    .mobile-phone-toggle {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
}



/* ===== ОБНОВЛЕННЫЙ РАЗДЕЛ КОНТАКТОВ ===== */
.contact-blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-block {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.contact-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-block-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.contact-block-icon i {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 15px;
    border-radius: 50%;
    background-color: rgba(0, 119, 255, 0.1);
}

.contact-block-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--dark);
    position: relative;
    padding-bottom: 15px;
}

.contact-block-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.contact-block-content {
    text-align: left;
}

.address-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.address-item:last-child {
    border-bottom: none;
}

.address-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.address-phone {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    transition: var(--transition);
}

.address-phone:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.time-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.time-item:last-child {
    border-bottom: none;
}

.time-days {
    font-weight: 600;
    color: var(--dark);
}

.time-hours {
    color: var(--gray);
    font-weight: 500;
}

.socials-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    color: var(--dark);
    font-weight: 500;
}

.social-button:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-button.vk:hover {
    background: linear-gradient(135deg, #0077ff 0%, #00a2ff 100%);
    color: white;
}

.social-button.instagram:hover {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: white;
}

.social-button.youtube:hover {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
}

.social-button i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Адаптивность для контактных блоков */
@media (max-width: 992px) {
    .contact-blocks-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .contact-blocks-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-block {
        padding: 25px 20px;
    }
    
    .time-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .contact-block {
        padding: 20px 15px;
    }
    
    .contact-block-icon {
        font-size: 2rem;
    }
    
    .contact-block-title {
        font-size: 1.2rem;
    }
}


/* Новые стили для улучшенного дизайна */

/* Hero Badge */
.hero-badge {
    background: var(--gradient-accent);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

/* Hero Features */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0;
    justify-content: center;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.feature i {
    color: var(--accent-light);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-20px) translateX(-50%);}
    60% {transform: translateY(-10px) translateX(-50%);}
}

/* Service Icons */
.service-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    margin: 15px 0;
    text-align: center;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.benefit-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question i {
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: white;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 300px;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Пагинация */
.pagination-section {
    padding: 40px 0;
    background: var(--light);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    color: var(--dark);
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.page-numbers.current {
    background: var(--gradient);
    color: var(--white);
}

.page-numbers:hover:not(.current) {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.next {
    background: var(--gradient-accent);
    color: var(--white);
}

.next:hover {
    transform: translateX(5px);
}

@media (max-width: 480px) {
    .page-numbers {
        width: 40px;
        height: 40px;
    }
}

/* Стили для статьи */
.modern-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.modern-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    margin-bottom: 8px;
    line-height: 1.6;
}

.modern-list li:before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.numbered-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
    counter-reset: item;
}

.numbered-list li {
    padding: 15px 0 15px 50px;
    position: relative;
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.numbered-list li:before {
    counter-increment: item;
    content: counter(item);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.problem-solution {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.problem-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 4px solid var(--accent);
}

.problem-item h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.expert-advice {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 5px solid var(--primary);
}

.expert-advice h3 {
    color: var(--dark);
    margin-bottom: 15px;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--dark);
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: var(--primary);
}

.article-content p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--gray);
}

@media (max-width: 768px) {
    .problem-solution {
        grid-template-columns: 1fr;
    }
    
    .numbered-list li {
        padding: 15px 15px 15px 50px;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
}