/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e63946;
    --primary-dark: #d62828;
    --secondary: #2a9d8f;
    --dark: #264653;
    --light: #f8f9fa;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
}

.btn-secondary:hover {
    background: #21867a;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo span {
    color: var(--primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    min-width: 0;
}

/* ФИКС ДЛЯ МЕНЮ НА ДЕСКТОПЕ - двухуровневое меню */
@media (min-width: 1025px) {
    .nav-list {
        display: flex;
        flex-wrap: wrap;
        list-style: none;
        gap: 10px 20px;
        flex: 1;
        justify-content: center;
        max-width: 900px;
        margin: 0 auto;
    }
    
    .nav-list li {
        flex: 0 0 auto;
    }
    
    .nav-link {
        font-weight: 500;
        padding: 8px 12px;
        position: relative;
        font-size: 14px;
        white-space: nowrap;
        display: inline-block;
    }
    
    .nav-link:hover {
        color: var(--primary);
        background: var(--light-gray);
        border-radius: 4px;
    }
    
    .nav-link.active {
        color: var(--primary);
        background: rgba(230, 57, 70, 0.1);
        border-radius: 4px;
    }
    
    .nav-link.active:after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 12px;
        right: 12px;
        height: 2px;
        background: var(--primary);
    }
    
    /* Телефон в меню */
    .contact-info {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .phone {
        font-weight: 700;
        font-size: 1.1rem;
        color: var(--dark);
        white-space: nowrap;
        background: var(--primary);
        color: white;
        padding: 10px 18px;
        border-radius: 5px;
        box-shadow: var(--shadow);
    }
    
    .phone:hover {
        background: var(--primary-dark);
    }
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
}

.messengers {
    display: flex;
    gap: 10px;
}

.messenger-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.messenger-btn:hover {
    transform: scale(1.1);
}

.whatsapp {
    background: #25D366;
}

.telegram {
    background: #0088cc;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark) 0%, #2c3e50 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    color: white;
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ФИКС ДЛЯ МОБИЛЬНОЙ ВЕРСИИ */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
    }
    
    .hero .container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-content {
        order: 2;
        width: 100%;
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
        text-align: center;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
        text-align: center;
        line-height: 1.5;
    }
    
    .hero-image {
        order: 1;
        width: 100%;
        max-height: 250px;
        overflow: hidden;
        border-radius: 10px;
    }
    
    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 10px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        margin: 0;
    }
}

/* Для маленьких экранов */
@media (max-width: 480px) {
    .hero {
        padding: 30px 0;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .hero-image {
        max-height: 200px;
    }
    
    .hero-buttons .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ===== SERVICES SECTION ===== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.service-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.3rem;
    margin: 15px 0;
}

/* ===== ADVANTAGES SECTION ===== */
.advantages {
    background: var(--light-gray);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.advantage-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* ===== PRICING SECTION ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.price-card {
    background: white;
    padding: 35px 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: var(--transition);
}

.price-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.price-card.featured .btn {
    background: var(--primary);
}

.price-header h3 {
    color: var(--dark);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
}

.price-period {
    color: var(--gray);
    font-size: 0.9rem;
}

.price-features {
    list-style: none;
    margin: 25px 0;
}

.price-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--light-gray);
}

.price-features li:last-child {
    border-bottom: none;
}

/* ===== REVIEWS SECTION ===== */
.reviews-slider {
    position: relative;
    overflow: hidden;
}

.reviews-container {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
}

.review-card {
    min-width: 100%;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.review-meta h4 {
    margin-bottom: 5px;
}

.review-date {
    color: var(--gray);
    font-size: 0.9rem;
}

.review-text {
    font-style: italic;
    line-height: 1.7;
}

/* ===== FORM SECTION ===== */
.form-section {
    background: linear-gradient(135deg, var(--dark) 0%, #2c3e50 100%);
    color: white;
}

.form-section h2 {
    color: white;
}

.form-section h2:after {
    background: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.15);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== GEO SECTION ===== */
.geo-map {
    height: 400px;
    background: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 40px;
    position: relative;
}

.geo-map:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: 2;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(230, 57, 70, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
    }
}

.geo-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.geo-item {
    background: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.geo-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ===== FAQ SECTION ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-gray);
    transition: var(--transition);
}

.faq-question:hover {
    background: #dfe6e9;
}

.faq-question.active {
    background: var(--primary);
    color: white;
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 20px;
    max-height: 1000px;
}

/* ===== OTHER SERVICES ===== */
.other-services {
    background: var(--light-gray);
}

.other-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.other-service-link {
    display: block;
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    font-weight: 500;
}

.other-service-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #bdc3c7;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #95a5a6;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .review-card {
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .price-card.featured {
        transform: none;
    }
    
    .review-card {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.seo-text {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-top: 50px;
    line-height: 1.8;
}

.seo-text h3 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 20px;
}

.seo-text ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.seo-text li {
    margin-bottom: 10px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.price-table th {
    background: var(--dark);
    color: white;
    padding: 15px;
    text-align: left;
}

.price-table td {
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover {
    background: var(--light-gray);
}

.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin: 50px 0;
    border-radius: 10px;
}

.cta-banner h2 {
    color: white;
}

.cta-banner h2:after {
    background: white;
}