* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #95CC29;
    --secondary-color: #000000;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --gray: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;

    /* Единая шкала отступов (база 4px) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;
    --space-10: 64px;
    --space-11: 80px;

    --container-padding-x: 24px;
    --section-padding-y: 72px;
    --section-padding-y-md: 56px;
    --section-padding-y-sm: 40px;
    --block-gap: 48px;
    --block-gap-sm: 32px;
    --title-gap: 32px;
    --element-gap: 20px;
    --spacing-after-table: 32px;
    --spacing-after-faq: 48px;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--container-padding-x);
    padding-right: var(--container-padding-x);
}

/* Вертикальный ритм внутренних страниц */
main > .container {
    display: flex;
    flex-direction: column;
    gap: var(--block-gap);
    padding-top: var(--space-8);
    padding-bottom: var(--section-padding-y);
}

main > .container > * {
    margin-top: 0;
    margin-bottom: 0;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #7db320;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #333;
}

.btn-white {
    background-color: var(--white);
    color: var(--secondary-color);
}

.btn-white:hover {
    background-color: #7db320;
    color: var(--white);
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: var(--title-gap);
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 0;
    color: var(--secondary-color);
}

.section-header .section-title {
    margin-bottom: 0;
}

.services-another {
    display: flex;
    flex-direction: column;
    gap: var(--title-gap);
    padding: 0;
}

.pricing-section,
.page-faq {
    display: flex;
    flex-direction: column;
}

/* Шапка */
.header {
    background-color: var(--primary-color);
    padding: var(--space-4) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
    opacity: 0.9;
}

.dropdown-toggle {
    position: relative;
}

.dropdown-arrow {
    margin-left: 5px;
    font-size: 12px;
    transition: var(--transition);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    list-style: none;
    border-radius: 4px;
    overflow: visible;
    border: 1px solid var(--gray);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid var(--gray);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.dropdown-menu a:hover {
    color: var(--primary-color);
}

/* Вложенное подменю - Desktop */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    border-bottom: 1px solid var(--gray);
}

.dropdown-submenu:last-child .dropdown-submenu-toggle {
    border-bottom: none;
}

.submenu-arrow {
    font-size: 10px;
    margin-left: 10px;
    transition: var(--transition);
}

.dropdown-submenu-list {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: var(--white);
    min-width: 320px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: var(--transition);
    z-index: 101;
    list-style: none;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--gray);
    max-height: 450px;
    overflow-y: auto;
}

.dropdown-submenu:hover .dropdown-submenu-list {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-submenu:hover .submenu-arrow {
    transform: rotate(90deg);
}

.dropdown-submenu-list li {
    border-bottom: 1px solid var(--gray);
}

.dropdown-submenu-list li:last-child {
    border-bottom: none;
}

.dropdown-submenu-list a {
    display: block;
    padding: 10px 20px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
}

.dropdown-submenu-list a:hover {
    color: var(--primary-color);
    background-color: rgba(149, 204, 41, 0.05);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    color: var(--white);
    font-size: 24px;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2px;
}

.contact-value {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.contact-value:hover {
    opacity: 0.9;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
    position: relative;
    width: 40px;
    height: 40px;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: var(--transition);
    position: relative;
}


/* Overlay for mobile menu */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}


/* Баннер */
.banner {
    padding: var(--space-8) 0 0;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(160deg, rgba(150, 204, 41, 0.048) 0%, rgba(150, 204, 41, 0.13) 10%, rgba(150, 204, 41, 0.24) 30%, rgba(150, 204, 41, 0.295) 70%);
    z-index: 1;
}

.banner .container {
    position: relative;
    z-index: 2;
}

.banner-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-8);
    min-height: 500px;
}

.banner-text {
    flex: 1;
    align-self: center;
    padding-bottom: var(--space-8);
}

.banner-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-5);
    color: var(--secondary-color);
    text-transform: uppercase;
}

.banner-description {
    font-size: 18px;
    margin-bottom: var(--space-7);
    color: var(--secondary-color);
}

.banner-btn {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 500;
    background-color: var(--primary-color);
    color: var(--white);
    margin-bottom: 0;
}

.banner-btn:hover {
    background-color: #7db320;
    color: var(--white);
}

.banner-image {
    flex: 1;
    display: flex;
    align-items: flex-end;
    align-self: stretch;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.banner-image img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

/* Услуги */
.services {
    padding: var(--section-padding-y) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
}

.service-card {
    display: flex;
    align-items: center;
    padding: var(--space-6);
    background-color: var(--white);
    border-radius: 8px;
    border: 1px solid var(--gray);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    text-decoration: none;
    color: inherit;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(149, 204, 41, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.service-icon img {
    width: 50px;
    height: auto;
}

.service-info {
    flex: 1;
}

.service-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.service-arrow {
    color: var(--primary-color);
    font-size: 20px;
}

/* Статистика */
.stats {
    padding: var(--section-padding-y-md) 0;
    background-color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-6);
}

.stat-item {
    display: flex;
    min-width: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-3);
    width: 100%;
    min-height: 148px;
    padding: var(--space-7) var(--space-4);
    background-color: var(--light-gray);
    border-radius: 8px;
}

.stat-number {
    font-size: clamp(1.75rem, 3.2vw, 2.625rem);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.stat-text {
    font-size: clamp(0.875rem, 1.6vw, 1.125rem);
    color: var(--secondary-color);
    font-weight: 600;
    line-height: 1.35;
    max-width: 12ch;
}

@media (max-width: 400px) {
    .stat-number {
        font-size: clamp(1.375rem, 6vw, 1.75rem);
    }

    .stat-text {
        font-size: 0.8125rem;
    }

    .stat-content {
        min-height: 104px;
        padding: var(--space-4) var(--space-2);
    }
}

/* Консультация и история */
.consultation-history {
    padding: var(--section-padding-y) 0;
}

.consultation-history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: start;
}

.consultation-form-wrapper {
    border: 2px solid var(--gray);
    border-radius: 8px;
    padding: 10px;
}

.consultation-form {
    background-color: var(--white);
    padding: var(--space-7);
    border-radius: 6px;
}

.consultation-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--secondary-color);
    text-align: left;
}

.consultation-description {
    font-size: 14px;
    color: #666;
    margin-bottom: var(--space-6);
    line-height: 1.5;
    text-align: left;
}

.form-group {
    margin-bottom: var(--space-5);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--secondary-color);
    text-align: left;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: var(--transition);
    text-align: left;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.history-text {
    margin-bottom: var(--space-5);
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
}

.history-text:last-child {
    margin-bottom: 0;
}

/* Отзывы */
.reviews {
    padding: var(--section-padding-y) 0;
    background-color: var(--light-gray);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-7);
}

.review-card {
    background-color: var(--white);
    padding: var(--space-7);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-5);
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 24px;
}

.review-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--secondary-color);
    text-align: left;
}

.review-info p {
    font-size: 14px;
    color: #777;
    text-align: left;
}

.review-divider {
    height: 1px;
    background-color: var(--gray);
    margin-bottom: var(--space-5);
}

.review-text {
    font-style: italic;
    line-height: 1.7;
    text-align: left;
}

/* FAQ */
.faq {
    padding-top: var(--section-padding-y);
    padding-bottom: calc(var(--section-padding-y) + var(--spacing-after-faq));
}

.faq-list {
    max-width: 100%;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--space-4);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) var(--space-6);
    background-color: var(--white);
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(149, 204, 41, 0.05);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    flex: 1;
    min-width: 0;
    padding-right: 15px;
}

.faq-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
}

.faq-icon i {
    flex-shrink: 0;
    line-height: 1;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background-color: var(--white);
    transition: var(--transition);
}

.faq-answer p {
    padding: var(--space-6);
    line-height: 1.7;
    text-align: left;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Подвал */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
}

.footer-top {
    padding: var(--section-padding-y-md) 0 var(--space-5);
}

.footer-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: var(--space-7);
    color: var(--white);
    text-align: left;
}

.footer-contacts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-5);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 250px;
}

.footer-contact-item i {
    color: var(--primary-color);
    font-size: 20px;
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
}

.footer-contact-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2px;
    text-align: left;
}

.footer-contact-value {
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.footer-map {
    padding: var(--space-5) 0;
}

.map-placeholder {
    height: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-align: center;
}

.map-placeholder h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-bottom {
    padding: var(--space-5) 0 var(--space-8);
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: #aaa;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-header {
    padding: 30px 30px 0 30px;
    position: relative;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
    text-align: left;
    padding-right: 40px;
}

.modal-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
    text-align: left;
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 0 30px 30px 30px;
}

.modal-body .form-group {
    margin-bottom: 25px;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: left;
}

.modal-body .form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: var(--transition);
    text-align: left;
}

.modal-body .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-body .btn-primary {
    width: 100%;
}

/* Адаптивность */
@media (max-width: 992px) {
    .banner-title {
        font-size: 38px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-5);
    }

    .stat-content {
        min-height: 132px;
        padding: var(--space-6) var(--space-4);
    }
    
    .consultation-history-grid {
        grid-template-columns: 1fr;
        gap: var(--block-gap-sm);
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-contacts {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-contact-item {
        max-width: 100%;
    }
}

@media (max-width: 1064px) {

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--white);
        padding: 80px 0 20px 0;
        transform: translateX(100%);
        opacity: 1;
        visibility: visible;
        transition: transform 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }
    
    .nav-list > li {
        width: 100%;
    }
    
    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid var(--gray);
        justify-content: space-between;
        color: var(--secondary-color);
        font-weight: 600;
    }
    
    .nav-link:hover {
        background-color: rgba(149, 204, 41, 0.1);
        color: var(--primary-color);
    }
    
    /* Dropdown toggle arrow styling */
    .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .dropdown-arrow {
        color: var(--primary-color);
        font-size: 14px;
        transition: transform 0.3s ease;
    }
    
    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--light-gray);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border: none;
        width: 100%;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
        overflow-y: auto;
    }
    
    .dropdown-menu li {
        border-bottom: 1px solid var(--gray);
    }
    
    .dropdown-menu li:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu a {
        padding: 12px 20px 12px 30px;
        color: var(--secondary-color);
        opacity: 1;
        font-size: 14px;
        display: block;
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(149, 204, 41, 0.1);
        color: var(--primary-color);
    }

    /* Мобильные стили для вложенного подменю */
    .dropdown-submenu {
        width: 100%;
        border-bottom: 1px solid var(--gray);
    }
    
    .dropdown-submenu:last-child {
        border-bottom: none;
    }

    .dropdown-submenu-toggle {
        color: var(--secondary-color);
        padding: 12px 20px 12px 30px;
        border-bottom: none;
        opacity: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        transition: background-color 0.3s ease;
    }
    
    .dropdown-submenu-toggle:hover {
        background-color: rgba(149, 204, 41, 0.1);
        color: var(--primary-color);
    }

    .submenu-arrow {
        transform: rotate(0deg);
        color: var(--primary-color);
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .dropdown-submenu.active .submenu-arrow {
        transform: rotate(90deg);
    }

    .dropdown-submenu-list {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--white);
        border: none;
        border-top: 1px solid var(--gray);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        min-width: auto;
        padding: 0;
    }

    .dropdown-submenu.active .dropdown-submenu-list {
        max-height: 600px;
        overflow-y: auto;
    }

    .dropdown-submenu-list li {
        border-bottom: 1px solid var(--gray);
    }
    
    .dropdown-submenu-list li:last-child {
        border-bottom: none;
    }

    .dropdown-submenu-list a {
        color: var(--secondary-color);
        padding: 10px 20px 10px 45px;
        font-size: 13px;
        opacity: 1;
        display: block;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .dropdown-submenu-list a:hover {
        background-color: rgba(149, 204, 41, 0.1);
        color: var(--primary-color);
    }
    
    .header-contacts {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    /* Исправленный крестик в бургер-меню */
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
        background-color: var(--secondary-color);
    }
    
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
        background-color: var(--secondary-color);
    }


    .banner-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .banner-text {
        align-self: center;
        padding-bottom: 0;
    }
    
    .banner-title {
        font-size: 32px;
    }
    
    .banner-image {
        flex: none;
        width: 100%;
        align-self: stretch;
        border-radius: 8px 8px 0 0;
    }

    .banner-image img {
        width: 100%;
        max-height: 360px;
        object-fit: contain;
        object-position: bottom center;
        border-radius: 8px 8px 0 0;
    }
}

@media (max-width: 576px) {
    :root {
        --section-padding-y: 48px;
        --section-padding-y-md: 40px;
        --section-padding-y-sm: 32px;
        --block-gap-sm: 24px;
        --spacing-after-table: 24px;
        --spacing-after-faq: 40px;
    }

    .banner-title {
        font-size: 28px;
    }
    
    .banner-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-4);
    }

    .stat-content {
        min-height: 116px;
        padding: var(--space-5) var(--space-3);
        gap: var(--space-2);
    }

    .stat-text {
        max-width: none;
    }
    
    .footer-title {
        font-size: 30px;
    }
    
    .header {
        padding: var(--space-3) 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    .footer-contacts {
        gap: var(--space-4);
    }
    
    .footer-contact-item {
        flex-direction: row;
        gap: 12px;
        align-items: center;
    }
    
    .footer-contact-item i {
        margin-top: 0;
    }
    
    .modal-header {
        padding-top: 20px;
    }
    
    .modal-header h3 {
        padding-right: 35px;
        font-size: 22px;
    }
    
    .close-modal {
        top: 15px;
        right: 15px;
        font-size: 26px;
        width: 26px;
        height: 26px;
    }
    
    .modal-description {
        font-size: 13px;
        margin-bottom: 20px;
    }
}

/* Страницы услуг и контента */
.page-header {
    padding: 0;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary-color);
    text-align: left;
    margin-bottom: 0;
    line-height: 1.2;
}

.info-block {
    background-color: rgba(149, 204, 41, 0.1);
    border-radius: 8px;
    padding: var(--space-8);
}

.info-block-content {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.info-block-text {
    flex: 1;
}

.info-block-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

.info-block-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.info-block h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--space-5);
    color: var(--secondary-color);
    text-align: left;
}

.info-block p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: var(--space-4);
    text-align: left;
}

.info-block p:last-child {
    margin-bottom: 0;
}

.double-info-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
}

.double-info-block {
    background-color: rgba(149, 204, 41, 0.1);
    border-radius: 8px;
    padding: var(--space-7);
}

.double-info-block h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--secondary-color);
    text-align: left;
}

.double-info-block p {
    margin-bottom: var(--space-4);
}

.double-info-block p:last-child {
    margin-bottom: 0;
}

.cta-section {
    padding: var(--space-9) 0;
    text-align: center;
}

main > .container > .cta-section {
    padding: var(--space-8) 0;
}

.cta-section .container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

.cta-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: var(--space-7);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cta-text:last-of-type {
    margin-bottom: var(--space-7);
}

.pricing-section {
    padding: 0;
    padding-bottom: var(--spacing-after-table);
}

/* Таблица — последний блок на странице (перед подвалом) */
main > .container > .pricing-section:last-child {
    padding-bottom: var(--spacing-after-faq);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.pricing-note {
    text-align: left;
    margin-top: var(--space-4);
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.callout-box {
    background-color: rgba(149, 204, 41, 0.08);
    border-left: 4px solid var(--primary-color);
    padding: var(--space-4) var(--space-5);
    border-radius: 4px;
    margin: var(--space-6) 0;
}

.callout-box p {
    font-style: italic;
    margin: 0;
    color: var(--text-color);
}

.pricing-table th {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--space-4) var(--space-5);
    text-align: left;
    font-weight: 600;
}

.pricing-table td {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--gray);
    text-align: left;
}

.pricing-table tr:nth-child(even) {
    background-color: var(--light-gray);
}

.pricing-table tr:hover {
    background-color: rgba(150, 204, 41, 0.082);
}

.service-name {
    font-weight: 600;
    color: var(--secondary-color);
}

.service-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
}

.page-faq {
    padding: 0;
    padding-bottom: var(--spacing-after-faq);
}

.page-faq .faq-item:last-child {
    margin-bottom: 0;
}

/* Стили текстового контента */
.text-content {
    padding: 0;
}

.text-content > *:first-child {
    margin-top: 0;
}

.text-content h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-top: var(--space-9);
    margin-bottom: var(--space-6);
    text-align: left;
}

.text-content h2:first-child {
    margin-top: 0;
}

.text-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: var(--space-7);
    margin-bottom: var(--space-5);
    text-align: left;
}

.text-content p {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: var(--space-5);
    text-align: left;
}

.text-content ul,
.text-content ol {
    margin: var(--space-6) 0;
    padding-left: var(--space-8);
}

.text-content ul li,
.text-content ol li {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: var(--space-4);
    text-align: left;
}

.text-content ul li:last-child,
.text-content ol li:last-child {
    margin-bottom: 0;
}

.text-content ul li strong,
.text-content ol li strong {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Стили для текстовых элементов */
.text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: var(--space-5);
}

.text-strong {
    font-weight: 700;
    color: var(--secondary-color);
}

.subsection-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: var(--space-7);
    margin-bottom: var(--space-4);
    text-align: left;
}

.highlight-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    background-color: rgba(149, 204, 41, 0.15);
    padding: var(--space-4) var(--space-5);
    border-radius: 4px;
    text-align: center;
    margin: var(--space-7) 0;
}

.btn-call {
    display: inline-block;
    padding: 16px 32px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    text-align: center;
    margin-top: var(--space-5);
}

.btn-call:hover {
    background-color: #7db320;
    color: var(--white);
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 992px) {
    .info-block-content {
        flex-direction: column;
    }
    
    .info-block-image {
        order: -1;
    }
    
    .double-info-blocks {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }
    
    .info-block {
        padding: var(--space-6);
    }
    
    .double-info-block {
        padding: var(--space-6);
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: var(--space-3) var(--space-4);
    }

    main > .container {
        gap: var(--block-gap-sm);
        padding-top: var(--space-6);
        padding-bottom: var(--section-padding-y-md);
    }

    .services,
    .consultation-history,
    .reviews,
    .faq {
        padding-top: var(--section-padding-y-md);
    }

    .faq {
        padding-bottom: calc(var(--section-padding-y-md) + var(--spacing-after-faq));
    }

    :root {
        --spacing-after-table: 28px;
        --spacing-after-faq: 40px;
    }

    .stats {
        padding-top: var(--section-padding-y-sm);
        padding-bottom: var(--section-padding-y-sm);
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 24px;
    }
    
    .info-block h3 {
        font-size: 24px;
    }
    
    .double-info-block h4 {
        font-size: 20px;
    }
}

/* Сетка карточек услуг */
.services-another-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
    margin-bottom: 0;
}

.service-another-card {
    background-color: var(--white);
    border: 1px solid var(--gray);
    border-radius: 8px;
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: var(--transition);
    min-height: 120px;
    justify-content: space-between;
}

.service-another-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.service-another-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--space-4);
    line-height: 1.3;
}

.service-another-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
}

/* Адаптивность для карточек услуг */
@media (max-width: 1200px) {
    .services-another-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .services-another-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-another-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для страницы вакансии */
.vacancy-form-section {
    padding: var(--section-padding-y) 0;
    background: linear-gradient(135deg, rgba(149, 204, 41, 0.05) 0%, rgba(149, 204, 41, 0.02) 100%);
    min-height: calc(100vh - 200px);
}

.vacancy-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: var(--space-10);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.vacancy-form-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--space-7);
    text-align: center;
}

.vacancy-form-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--space-7);
    text-align: center;
}

.vacancy-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-field label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

.form-field label .field-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    margin-right: 10px;
}

.form-field input,
.form-field textarea {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.vacancy-form-submit {
    margin-top: var(--space-5);
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
}

.vacancy-form-footer {
    margin-top: var(--space-8);
    padding-top: var(--space-7);
    border-top: 2px solid #f0f0f0;
    text-align: center;
}

.vacancy-form-footer p {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
}

@media (max-width: 768px) {
    :root {
        --container-padding-x: 16px;
        --block-gap: 32px;
        --title-gap: 24px;
    }

    .vacancy-form-container {
        padding: var(--space-7) var(--space-5);
        margin: 0 var(--space-4);
    }
    
    .vacancy-form-title {
        font-size: 24px;
    }
    
    .vacancy-form-subtitle {
        font-size: 18px;
    }
}

/* Стили для страницы 404 */
.error-404 {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--container-padding-x);
}

.error-404-content {
    text-align: center;
    max-width: 600px;
}

.error-404-code {
    font-size: 120px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: var(--space-5);
}

.error-404-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--space-4);
}

.error-404-text {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: var(--space-7);
    line-height: 1.6;
}

.error-404-btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
}

.error-404-btn:hover {
    background-color: #7db320;
}

/* Адаптивность для страницы 404 */
@media (max-width: 768px) {
    .error-404-code {
        font-size: 100px;
    }
    
    .error-404-title {
        font-size: 28px;
    }
    
    .error-404-text {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .error-404-code {
        font-size: 80px;
    }
    
    .error-404-title {
        font-size: 24px;
    }
    
    .error-404 {
        min-height: calc(100vh - 70px);
    }
}

/* Адаптивность для текстового контента */
@media (max-width: 768px) {
    .text-content h2 {
        font-size: 20px;
        margin-top: 40px;
    }
    
    .text-content h3 {
        font-size: 18px;
        margin-top: 30px;
    }
    
    .text-content p {
        font-size: 16px;
        line-height: 1.8;
    }
    
    .text-content ul li,
    .text-content ol li {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .subsection-title {
        font-size: 20px;
        margin-top: 25px;
    }
    
    .text {
        font-size: 16px;
    }
    
    .highlight-text {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .text-content h2 {
        font-size: 18px;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    
    .text-content h3 {
        font-size: 16px;
        margin-top: 25px;
        margin-bottom: 15px;
    }
    
    .text-content p {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 15px;
    }
    
    .text-content ul,
    .text-content ol {
        margin: 20px 0;
        padding-left: 25px;
    }
    
    .text-content ul li,
    .text-content ol li {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    
    .subsection-title {
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 12px;
    }
    
    .text {
        font-size: 15px;
    }
    
    .highlight-text {
        font-size: 16px;
        padding: 12px 15px;
        margin: 25px 0;
    }
    
    .btn-call {
        padding: 14px 25px;
        font-size: 15px;
    }
}
