/* Reset и базовые стили */

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

body {
    font-family: 'Inter', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Шапка — теперь не закреплена и компактна */

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: static;
    /* Убрали фиксированное позиционирование */
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* Соцсети | Логотип | Навигация */
    align-items: center;
    gap: 60px;
    padding-bottom: 0;
    border-bottom: none;
}


/* Социальные сети слева */

.header-social {
    display: flex;
    justify-content: flex-start;
    /* Теперь слева */
    gap: 15px;
}

.header-social .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0);
}

.header-social .social-link:hover {
      background: #ffffff00;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 245, 245, 0);
}


/* Логотип по центру */

.header-logo {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.header-logo svg {
    width: 120px;
    height: 40px;
}

.header-logo p {
    font-size: 0.9rem;
    color: #9ca3af;
    margin: 0;
}


/* Навигация справа */

.header-nav {
    order: 3;
    /* Теперь справа */
    width: 100%;
    text-align: right;
}

.header-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: flex-end;
    /* Выравнивание справа */
}

.header-nav-link {
    color: #374151;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.header-nav-link:hover {
    color: #3b82f6;
    transform: translateX(5px);
}

.header-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.header-nav-link:hover::after {
    width: 100%;
}


/* Логотип SVG */

.logo-svg path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawLogo 2s ease-in-out forwards;
}

@keyframes drawLogo {
    to {
        stroke-dashoffset: 0;
    }
}


/* Секция услуг */

.services-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #1f2937;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #6b7280;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    will-change: transform;
    transform: translateZ(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}


/* Обновленные стили для картинок услуг - IT и финансы в спокойных тонах */

.service-image[data-image="service-1"] {
    background-image: url('../image/supp_buh.jpg');
}

.service-image[data-image="service-2"] {
    background-image: url('../image/zarplata_podchet.jpg');
}

.service-image[data-image="service-3"] {
    background-image: url('../image/podderjka.jpg');
}

.service-image[data-image="service-4"] {
    background-image: url('../image/development.jpg');
}

.service-image[data-image="service-5"] {
    background-image: url('../image/help-idea.jpg');
}

.service-image[data-image="service-6"] {
    background-image: url('../image/startup-strategy.jpg');
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.9), rgba(59, 130, 246, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 0.9;
}

.service-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.service-card:hover .service-number {
    color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1f2937;
    position: relative;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    border-radius: 2px;
}

.service-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: #4b5563;
    font-size: 0.95rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}


/* Кнопка CTA */

.services-cta {
    text-align: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1e40af, #2563eb);
    transition: left 0.3s ease;
    z-index: 1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button span,
.cta-button i {
    position: relative;
    z-index: 2;
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.cta-button:hover i {
    transform: translateX(5px);
}


/* Секция "О нас" */

.about-section {
    padding: 100px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    padding-right: 40px;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 25px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


/* Секция контактов */

.contact-section {
    padding: 100px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e0e7ff;
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: #2563eb;
    margin-top: 5px;
}

.contact-item h4 {
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.contact-item p {
    color: #6b7280;
    margin: 0;
}

.contact-form {
    background: #f8fafc;
    padding: 40px;
    border-radius: 20px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form button {
    padding: 15px 30px;
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}


/* Футер */

.footer {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


/* Навигация в футере */

.footer-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.footer-nav-link {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.footer-nav-link:hover {
    color: #3b82f6;
    transform: translateX(5px);
}

.footer-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.footer-nav-link:hover::after {
    width: 100%;
}


/* Логотип в футере */

.footer-logo {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #9ca3af;
    margin: 0;
}


/* Социальные сети в футере */

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.footer-social .social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0);
}

.footer-social .social-link:hover {
    background: #ffffff00;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 245, 245, 0);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #9ca3af;
    font-size: 0.9rem;
}


/* Анимации */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Стили для статуса формы */

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.form-status {
    padding: 15px;
    margin-top: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.form-status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-status i {
    margin-right: 8px;
}


/* Стили для чекбокса согласия */

.checkbox-container {
    margin: 20px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #4b5563;
    margin: 0;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.checkbox-input:checked+.checkbox-custom {
    background: #2563eb;
    border-color: #2563eb;
}

.checkbox-input:checked+.checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-input:focus+.checkbox-custom {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-text {
    flex: 1;
}

.privacy-link {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.privacy-link:hover {
    border-bottom-color: #2563eb;
    color: #1d4ed8;
}


/* Стили для ошибки валидации */

.checkbox-input:invalid+.checkbox-custom {
    border-color: #ef4444;
}

.checkbox-input:invalid:not(:focus)+.checkbox-custom {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}


/* === Модальное окно услуг === */

.services-modal-overlay {
    z-index: 2001;
}

.services-modal-content {
    max-width: 900px;
    max-height: 85vh;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.services-modal-body {
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
}


/* Сетка услуг в модальном окне */

.services-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    padding: 25px;
    transition: opacity 0.3s ease;
}

.services-modal-grid.filtering {
    opacity: 0.5;
}

.service-modal-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-modal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
    border-color: #2563eb;
}

.service-modal-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.service-modal-header>div:last-child {
    flex: 1;
}

.service-modal-icon {
    font-size: 2rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.service-modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.service-modal-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    padding: 2px 10px;
    border-radius: 12px;
    display: inline-block;
}

.service-modal-description {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 45px;
}

.service-modal-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.service-modal-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-modal-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 0.9rem;
}

.service-modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}

.service-modal-price .price-period {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}


/* Кнопка выбора услуги */

.select-service-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.select-service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.select-service-btn:active {
    transform: translateY(0);
}

.select-service-btn i {
    margin-right: 8px;
}


/* Индикатор выбора */

.select-service-btn.selected {
    background: linear-gradient(45deg, #10b981, #34d399);
    pointer-events: none;
}


/* Панель выбранной услуги */

.selected-service-info {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    z-index: 2002;
    display: none;
    align-items: center;
    gap: 15px;
    border: 2px solid #2563eb;
    animation: slideInUp 0.3s ease;
    max-width: 90%;
}

.selected-service-info.show {
    display: flex;
}

.selected-service-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.selected-service-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.selected-service-text .service-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}

.selected-service-text .service-price {
    color: #6b7280;
    font-size: 0.85rem;
}

.go-to-form-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.go-to-form-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.close-info-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.close-info-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}


/* Сообщение об ошибке */

.error-message {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.error-message i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 20px;
}

.error-message p {
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
}


/* === Фильтры услуг - исправленные стили === */

.services-modal-filters {
    padding: 20px 25px 0;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    z-index: 1;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 18px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-btn:hover {
    background: #e5e7eb;
    color: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.filter-btn i {
    margin-right: 8px;
    font-size: 0.9rem;
}


/* Счетчик услуг в фильтре */

.filter-btn .filter-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 8px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}


/* Контейнер для модального окна */

.services-modal-container {
    min-height: 200px;
}


/* Категория услуги в карточке */

.service-category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb;
}


/* Сообщение при отсутствии услуг */

.no-services-message {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    display: none;
    width: 100%;
}

.no-services-message i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 20px;
}

.no-services-message p {
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto 25px;
}

.no-services-message.show {
    display: block;
}


/* Кнопка "Показать все" в сообщении */

.no-services-message .show-all-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
}

.no-services-message .show-all-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.no-services-message .show-all-btn i {
    font-size: 1rem;
    color: white;
    margin: 0;
}


/* === Модальное окно: Политика конфиденциальности === */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #6b7280;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.modal-body {
    padding: 25px;
    color: #374151;
    line-height: 1.7;
    font-size: 1rem;
}

.modal-body p {
    margin-bottom: 16px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding: 0 25px 25px;
    text-align: right;
}

.modal-close-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: #1d4ed8;
}


/* Адаптивность */


/* Адаптация для планшетов и мобильных */

@media (max-width: 968px) {
    .header-content {
        grid-template-columns: 1fr;
        /* Одна колонка */
        gap: 20px;
        text-align: center;
    }
    .header-social {
        justify-self: center;
        order: 1;
    }
    .header-logo {
        order: 2;
    }
    .header-nav {
        justify-self: center;
        order: 3;
    }
    .header-nav-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-nav {
        order: 1;
    }
    .footer-logo {
        order: 2;
    }
    .footer-social {
        order: 3;
        justify-content: center;
    }
    .footer-nav-menu {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .service-card {
        max-width: 1000px;
        margin: 0 auto;
    }
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-text {
        padding-right: 0;
    }
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .services-modal-grid {
        grid-template-columns: 1fr;
    }
    .selected-service-info {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 10px;
        width: 95%;
    }
    .selected-service-text {
        align-items: center;
    }
    .go-to-form-btn {
        width: 100%;
    }
    .filter-buttons {
        gap: 8px;
    }
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    .services-modal-filters {
        padding: 15px 20px 0;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    .services-grid {
        gap: 20px;
        margin-bottom: 40px;
    }
    .service-content {
        padding: 25px;
    }
    .service-title {
        font-size: 1.3rem;
    }
    .cta-button {
        padding: 16px 35px;
        font-size: 1rem;
    }
    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .contact-form {
        padding: 30px;
    }
    .contact-item {
        padding: 20px;
    }
    .footer-content {
        gap: 30px;
    }
    .service-modal-card {
        padding: 20px;
    }
    .service-modal-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    .service-content {
        padding: 20px;
    }
    .service-image {
        height: 200px;
    }
    .service-number {
        font-size: 2.5rem;
    }
    .cta-button {
        padding: 14px 30px;
        font-size: 0.95rem;
        gap: 10px;
    }
    .service-features li {
        font-size: 0.9rem;
    }
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    .contact-item i {
        margin: 0 auto;
    }
    .contact-form {
        padding: 20px;
    }
    .footer-social .social-link {
        width: 40px;
        height: 40px;
    }
    .footer-tagline {
        font-size: 0.8rem;
    }
    .footer-nav-menu {
        flex-direction: column;
        gap: 10px;
    }
    .services-modal-grid {
        padding: 15px;
        gap: 15px;
    }
    .service-modal-card {
        padding: 18px;
    }
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .filter-btn {
        flex-shrink: 0;
    }
}


/* Адаптивность чекбокса */

@media (max-width: 768px) {
    .checkbox-container {
        padding: 12px;
    }
    .checkbox-label {
        font-size: 0.85rem;
    }
    .checkbox-custom {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .checkbox-container {
        margin: 15px 0;
        padding: 10px;
    }
    .checkbox-label {
        gap: 10px;
        font-size: 0.8rem;
    }
}


/* === Фильтры под кнопкой "Фильтр" === */

.filter-toggle-btn {
    background: #e5e7eb;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 10px;
}

.filter-toggle-btn:hover {
    background: #d1d5db;
}

.services-modal-filters.collapsed {
    display: none;
}

.services-modal-filters {
    display: block;
    padding: 10px 15px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1;
}

.services-modal-filters .filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}