/* ===========================
   Homepage Styles
   VectorMed Theme
   =========================== */

/* ===========================
   Hero Home Section
   =========================== */
.hero-home {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 188, 212, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(233, 30, 99, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #0a1929 0%, #1a2332 25%, #0f4c5c 50%, #006b79 75%, #004d57 100%);
    background-size: 100% 100%;
}

/* Анимированный градиент для hero */
@keyframes gradient-shift-hero {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-home .hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    z-index: 0;
    opacity: 1;
}

.shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -200px;
    left: -100px;
    filter: blur(80px);
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    bottom: -150px;
    right: 100px;
    filter: blur(80px);
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #00BCD4 0%, #E91E63 100%);
    border-radius: 50%;
    top: 50%;
    right: 30%;
    transform: translateY(-50%);
    filter: blur(100px);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

.hero-content-home {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0;
    padding: 1rem 1rem 2rem 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-badge svg {
    color: var(--primary-color);
}

.hero-title-home {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-home {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-features {
    display: inline-block;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    margin-bottom: 2.5rem;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    margin-bottom: 0.75rem;
}

.hero-feature-item:last-child {
    margin-bottom: 0;
}

.hero-feature-item svg {
    flex-shrink: 0;
    opacity: 0.9;
    width: 20px;
    height: 20px;
}

.hero-feature-item span {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.stat-number::after {
    content: '+';
    margin-left: 2px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.pulse-btn {
    animation: pulse 2s infinite;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.4);
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(233, 30, 99, 0.4), 0 0 0 0 rgba(233, 30, 99, 0.7);
    }
    50% {
        box-shadow: 0 4px 20px rgba(233, 30, 99, 0.4), 0 0 0 15px rgba(233, 30, 99, 0);
    }
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(8px);
    text-shadow: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.35);
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    font-size: 0.9rem;
    color: var(--text-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.badge-item svg {
    color: var(--primary-color);
}

/* ===========================
   Vertical Stats Panel (Top Right)
   =========================== */
.stats-vertical-panel {
    position: absolute;
    right: 60px;
    top: 80px;
    z-index: 15;
    display: none;
}

.stat-box-vertical {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    min-width: 140px;
    transition: all 0.3s ease;
}

.stat-box-vertical:hover {
    transform: translateX(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.stat-box-vertical:last-child {
    margin-bottom: 0;
}

.stat-number-vertical {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label-vertical {
    font-size: 13px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ===========================
   Services Navigation with Icons
   =========================== */
.services-navigation {
    padding: var(--spacing-xxl) 0;
    background: white;
}

.section-title-nav {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xl);
}

.services-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: all var(--transition-normal);
    position: relative;
}

.service-nav-item:hover {
    transform: translateY(-5px);
}

.service-nav-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

/* Ensure custom images scale nicely inside the icon wrapper */
.service-nav-icon img,
.service-nav-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.service-nav-item:hover .service-nav-icon {
    color: var(--accent-color);
    transform: scale(1.1);
}

.service-nav-item span {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: #333;
    transition: color var(--transition-fast);
}

.service-nav-item:hover span {
    color: var(--primary-color);
}

.service-nav-all .service-nav-icon {
    color: var(--accent-color);
}

/* ===========================
   Quick Services Icons
   =========================== */
.quick-services {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.quick-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.quick-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.05) 0%, rgba(233, 30, 99, 0.05) 100%);
    border: 2px solid transparent;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    color: var(--text-dark);
    transition: all var(--transition-normal);
}

.quick-service-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.2);
}

.quick-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    color: white;
}

.quick-service-item span {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* ===========================
   Popular Services
   =========================== */
.popular-services {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, rgba(233, 30, 99, 0.1) 100%);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.service-card-home {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card-home:hover {
    box-shadow: 0 12px 30px rgba(0, 188, 212, 0.15);
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.service-card-header {
    margin-bottom: 1rem;
}

.service-icon-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius-md);
    color: white;
}

.service-card-home .service-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card-home .service-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.service-card-home .service-card-title a:hover {
    color: var(--primary-color);
}

.service-card-home .service-card-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.service-card-home .service-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.service-card-home .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===========================
   Why Choose Us
   =========================== */
.why-choose-us {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, #e0f7fa 0%, #fff9e6 100%);
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.advantage-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-normal);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 188, 212, 0.2);
    border-color: var(--primary-color);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    color: white;
}

.advantage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

/* ===========================
   How It Works
   =========================== */
.page-template-template-homepage .how-it-works,
body.page-template-template-homepage-php .how-it-works,
.how-it-works {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 35%, #006b79 65%, #004d57 100%) !important;
    animation: gradient-shift 10s ease-in-out infinite;
    background-size: 300% 300%;
    color: var(--text-white);
}

/* Анимированный градиент */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.how-it-works .section-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.how-it-works .section-title {
    color: white;
}

.how-it-works .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1320px;
    margin: 0 auto;
    align-items: center;
    padding: 0 1rem;
}

/* Более специфичные селекторы для предотвращения конфликта с style.css */
.how-it-works .steps-timeline .step-item {
    display: flex !important;
    gap: 1.75rem;
    align-items: flex-start;
    width: 100%;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem 2rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    transform: none !important;
    transition: all 0.3s ease !important;
}

.how-it-works .steps-timeline .step-item:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.how-it-works .steps-timeline .step-number {
    position: static;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    font-size: 2rem;
    font-weight: 800;
    border-radius: 50%;
    flex-shrink: 0;
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.how-it-works .steps-timeline .step-content {
    flex: 1;
    min-width: 0;
}

.how-it-works .steps-timeline .step-content h3 {
    font-size: 1.625rem;
    margin-bottom: 0.75rem;
    color: white;
    font-weight: 700;
    line-height: 1.3;
}

.how-it-works .steps-timeline .step-content p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin: 0;
    font-size: 1.0625rem;
}

.how-it-works .steps-timeline .step-content a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.how-it-works .steps-timeline .step-content a:hover {
    text-decoration: underline;
}

.how-it-works .step-connector {
    display: none;
}

/* ===========================
   Testimonials
   =========================== */
.testimonials {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.testimonial-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.star {
    color: #FFB800;
    font-size: 1.25rem;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
}

.author-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ===========================
   Emergency Call
   =========================== */
.emergency-call {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    position: relative;
    overflow: hidden;
}

.emergency-call::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.emergency-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.emergency-icon {
    color: white;
    animation: ring 2s infinite;
}

@keyframes ring {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-15deg);
    }
    20%, 40% {
        transform: rotate(15deg);
    }
}

.emergency-text h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.emergency-text p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn-white {
    background: white;
    color: var(--accent-color);
    border: 2px solid white;
}

.btn-white:hover {
    background: transparent;
    color: white;
}

/* ===========================
   FAQ Section
   =========================== */
.faq-section {
    padding: var(--spacing-xxl) 0;
    background: white;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    background: white;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    background: rgba(0, 188, 212, 0.05);
}

.faq-question h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin: 0;
}

.faq-question svg {
    color: var(--primary-color);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===========================
   Responsive Design
   =========================== */

/* Mobile - скрываем изображение на маленьких экранах */
@media (max-width: 767px) {
    .hero-home .hero-image {
        display: none;
    }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    .hero-title-home {
        font-size: 3.5rem;
    }

    .hero-subtitle-home {
        font-size: 1.5rem;
    }

    .hero-home .hero-image {
        height: 65%;
        max-width: none;
        max-height: none;
        transform: translateX(15%) translateY(5%);
    }

    .services-nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .quick-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-it-works .steps-timeline {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
    }

    .how-it-works .steps-timeline .step-item {
        flex-direction: column;
        text-align: center;
        flex: 1;
        align-items: center;
        max-width: 200px;
    }

    .how-it-works .step-connector {
        display: block;
        flex: 0 0 50px;
        height: 2px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.8) 100%);
        margin-top: 30px;
        flex-shrink: 0;
    }

    .emergency-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .hero-home .container {
        margin: 0;
        max-width: 100%;
        padding-left: 0;
        display: flex;
        align-items: center;
        height: 100vh;
    }

    .hero-content-home {
        padding-top: 0;
        margin-top: -8rem;
        text-align: center;
        margin-left: 80px;
        margin-right: auto;
        max-width: 50%;
        width: 50%;
        padding-left: 60px;
        padding-right: 60px;
    }

    .hero-stats {
        justify-content: center;
    }

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

    .hero-cta {
        justify-content: center;
    }

    .trust-badges {
        justify-content: center;
    }

    .stats-vertical-panel {
        display: block;
    }

    .hero-title-home {
        font-size: 4rem;
    }

    .hero-home .hero-image {
        height: 70%;
        max-width: none;
        max-height: none;
        transform: translateX(18%) translateY(10%);
    }

    .services-nav-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .quick-services-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===========================
   Contact Form Section
   =========================== */
.contact-form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 50%, 
        transparent 100%);
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Стили для формы CF7 */
.contact-form-wrapper .wpcf7 {
    margin: 0;
}

.contact-form-wrapper .wpcf7-form {
    display: grid;
    gap: 20px;
}

.contact-form-wrapper .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-form-wrapper input[type="text"]:focus,
.contact-form-wrapper input[type="email"]:focus,
.contact-form-wrapper input[type="tel"]:focus,
.contact-form-wrapper textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.contact-form-wrapper textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-wrapper .wpcf7-submit {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0097a7 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form-wrapper .wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3);
}

.contact-form-wrapper .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 15px 20px;
    border-radius: 10px;
    border: none !important;
}

.contact-form-wrapper .wpcf7-validation-errors {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.contact-form-wrapper .wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.contact-form-wrapper .wpcf7-mail-sent-ng {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-form-section {
        padding: 60px 0;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .contact-form-wrapper .wpcf7-submit {
        padding: 15px 30px;
        font-size: 16px;
    }
}
