/*
Theme Name: Pro4You
Description: Современная тема для pro4you.ru с мягкими цветами и полным функционалом
Author: Pro4You
Version: 1.2.0
Text Domain: pro4you
*/

/* Основные стили темы Pro4You */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS переменные для цветовой схемы */
:root {
    --primary-color: #7C3AED;      /* Мягкий фиолетовый */
    --primary-dark: #6D28D9;       /* Темный фиолетовый */
    --accent-color: #059669;       /* Спокойный зеленый */
    --text-color: #374151;         /* Мягкий серый */
    --text-light: #6B7280;         /* Светло-серый текст */
    --text-muted: #9CA3AF;         /* Приглушенный текст */
    --bg-light: #F9FAFB;           /* Очень светлый серый */
    --bg-white: #FFFFFF;           /* Белый */
    --border-color: #E5E7EB;       /* Светлая граница */
    --border-light: #F3F4F6;       /* Очень светлая граница */
    --shadow-light: rgba(107, 114, 128, 0.1);   /* Легкая тень */
    --shadow-medium: rgba(107, 114, 128, 0.15); /* Средняя тень */
    --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
    --gradient-soft: linear-gradient(135deg, #F9FAFB 0%, #E5E7EB 100%);
}

/* Reset и базовые стили */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--bg-white);
    font-size: 16px;
    font-weight: 400;
}

/* Контейнер */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки Pro4You */
.pro4you-btn {
    background: var(--gradient-primary);
    border-radius: 12px;
    padding: 14px 28px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px var(--shadow-light);
}

.pro4you-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-medium);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #8B5CF6 100%);
    text-decoration: none;
    color: white;
}

.pro4you-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px var(--shadow-light);
}

/* Стили для обратной совместимости */
.pro4you-btn {
    background: var(--gradient-primary);
    border-radius: 12px;
    padding: 14px 28px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px var(--shadow-light);
}

.pro4you-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-medium);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #8B5CF6 100%);
    text-decoration: none;
    color: white;
}

/* Header стили */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #f3f4f6;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-logo:hover {
    opacity: 0.8;
    text-decoration: none;
    color: var(--text-color);
}

/* Навигация */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.main-navigation a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a.current {
    color: var(--primary-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #b3856c 100%);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation a.current::after {
    width: 100%;
}

/* Контактная информация в хедере */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-weight: 600;
}

.header-whatsapp {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #16a34a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-whatsapp:hover {
    color: #15803d;
    text-decoration: none;
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 10001;
    position: relative;
    color: var(--text-color);
}

.mobile-menu-toggle:hover {
    background-color: #f3f4f6;
    color: var(--primary-color);
}

.mobile-menu-toggle.active {
    background-color: var(--primary-color);
    color: white;
}

.mobile-menu-toggle svg {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active svg {
    transform: rotate(90deg);
}
.mobile-menu {
    background: white;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    /* Анимация появления */
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 16px;
}
.mobile-menu li {
    margin-bottom: 16px;
}
.mobile-menu a {
    display: block;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}
.mobile-menu a:hover,
.mobile-menu a.current {
    background-color: #f3f4f6;
    color: var(--primary-color);
    text-decoration: none;
}
.mobile-menu-contacts {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
}
/* Адаптивность для мобильного меню */
@media (max-width: 1024px) {
    .main-navigation {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .header-contacts {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header-content {
        padding: 12px 0;
    }

    .mobile-menu {
        top: 70px; /* Уменьшенная высота header на мобильных */
    }

    .mobile-menu ul {
        padding: 20px 16px;
    }

    .mobile-menu li {
        margin-bottom: 12px;
    }

    .mobile-menu a {
        padding: 16px 20px;
        font-size: 16px;
        font-weight: 500;
    }
}

/* Hero секция */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 48px 0;
    min-height: 200px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 24px 0;
    animation: fadeInUp 0.6s ease-out;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-top: 16px;
    max-width: 768px;
}

/* Хлебные крошки */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #9ca3af;
}

/* Основной контент */
.site-main {
    padding: 64px 0;
}

.page-content {
    max-width: none;
}

/* Карточки сервисов */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 32px;
    margin: 64px 0;
}

.service-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.service-card-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 10;
}

.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    color: white;
    z-index: 20;
}

.service-card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-card-description {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    opacity: 0.9;
}

.service-card-link {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-card-link:hover {
    color: white;
    text-decoration: none;
}

/* Темная секция */
.dark-section {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.dark-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.1;
}

.dark-section-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1024px;
    margin: 0 auto;
}

.dark-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.dark-section p {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 32px;
    max-width: 512px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.site-footer {
    background-color: var(--bg-light);
    padding: 64px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 24px;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-contacts h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.footer-email {
    font-size: 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 24px;
    display: block;
}

.footer-email:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social-link {
    width: 48px;
    height: 48px;
    background-color: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.footer-social-link:hover {
    background-color: #ede9fe;
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    padding-top: 40px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 100%;
    position: relative;
    max-height: calc(100vh - 80px);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 16px 16px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 24px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    /* Кастомный скроллбар */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Формы */
.contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-label {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-input,
.form-textarea,
.form-select {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(144, 100, 120, 0.1);
}

.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox {
    margin-top: 4px;
}

.form-checkbox-label {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.form-checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-checkbox-label a:hover {
    text-decoration: underline;
}

/* Cookie уведомление */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--text-color);
    color: white;
    padding: 24px;
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-notice-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-notice-text {
    flex: 1;
    font-size: 14px;
}

.cookie-notice-buttons {
    display: flex;
    gap: 16px;
}

.cookie-accept {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-accept:hover {
    background-color: #7c5a6b;
}

.cookie-decline {
    background: none;
    color: #d1d5db;
    border: 1px solid var(--text-light);
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.cookie-decline:hover {
    color: white;
    border-color: #9ca3af;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    opacity: 0;
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-slide-in-down {
    opacity: 0;
    animation: slideInDown 0.8s ease-out forwards;
}

/* Задержки анимации */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Утилиты */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Адаптивные стили */
@media (max-width: 1024px) {
    .header-contacts {
        display: none;
    }

    .main-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .dark-section h2 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cookie-notice-content {
        flex-direction: column;
        text-align: center;
    }

    .pro4you-btn {
        padding: 12px 24px;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-content {
        padding: 24px;
    }

    .service-card-title {
        font-size: 20px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .dark-section h2 {
        font-size: 1.75rem;
    }
}
/* Стили для формы Contact Form 7 */
.wpcf7-form {
    max-width: 100%;
}

.wpcf7-form .form-group {
    margin-bottom: 20px;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1E293B; /* Темно-серый из палитры */
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

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

.wpcf7-form .wpcf7-submit {
    display: inline-block;
    padding: 12px 24px;
    background-color: #6B73FF; /* Основной синий из палитры */
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.wpcf7-form .wpcf7-submit:hover {
    background-color: #5A63E8; /* Темный синий из палитры */
}

.wpcf7-form .wpcf7-acceptance {
    margin-top: 10px;
}

.wpcf7-form .wpcf7-response-output {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.wpcf7-form .wpcf7-mail-sent-ok {
    border: 2px solid #10B981; /* Мягкий зеленый из палитры */
    color: #10B981;
}

.wpcf7-form .wpcf7-validation-errors,
.wpcf7-form .wpcf7-spam-blocked {
    border: 2px solid #EF4444;
    color: #EF4444;
}
.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    margin-right: 8px;
}

.wpcf7-form .wpcf7-acceptance label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #6b7280;
}
.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    margin-right: 8px;
}

.wpcf7-form .wpcf7-acceptance label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #6b7280;
}
.modal.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}
/*форма онлайн-записи*/
.contact-form-section {
    max-width: 100%;
}

.contact-form-section .form-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-form-section .form-group {
    margin-bottom: 24px;
    flex: 1 1 45%;
}

.contact-form-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1E293B; /* dark-gray */
    font-size: 0.9rem;
}

.contact-form-section input[type="text"],
.contact-form-section input[type="email"],
.contact-form-section input[type="tel"],
.contact-form-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E5E7EB; /* light border */
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.contact-form-section input:focus,
.contact-form-section textarea:focus {
    border-color: #6B73FF; /* primary-blue */
    outline: none;
}

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

.contact-form-section .form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
}

.contact-form-section input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 8px;
}

.contact-form-section .checkbox-label {
    font-size: 0.85rem;
    color: #6b7280; /* light gray text */
    line-height: 1.4;
}

.contact-form-section .checkbox-label a {
    color: #6B73FF;
    text-decoration: underline;
}

.contact-form-section .checkbox-label a:hover {
    color: #5A63E8; /* dark-blue */
}

/* Для сообщений об ошибке/успехе (если добавите) */
.contact-form-section .form-response {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.contact-form-section .form-response.success {
    border: 2px solid #10B981; /* soft-green */
    color: #10B981;
}

.contact-form-section .form-response.error {
    border: 2px solid #EF4444;
    color: #EF4444;
}

/* Адаптив */
@media (max-width: 640px) {
    .contact-form-section .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-form-section .form-group {
        flex: 1 1 100%;
    }
}


/* ========== АДАПТИВНЫЕ СТИЛИ ДЛЯ МОДАЛЬНЫХ ОКОН ========== */

/* Большие экраны */
@media (min-width: 1200px) {
    .modal.active {
        padding: 40px;
        padding-top: 60px;
    }

    .modal-content {
        max-width: 600px;
        max-height: calc(100vh - 120px);
    }

    .modal-body {
        padding: 32px;
        max-height: calc(100vh - 200px);
    }
}

/* Планшеты */
@media (max-width: 768px) {
    .modal.active {
        padding: 16px;
        padding-top: 24px;
        align-items: flex-start;
    }

    .modal-content {
        max-width: 100%;
        max-height: calc(100vh - 48px);
        border-radius: 12px;
    }

    .modal-header {
        padding: 16px 20px;
        border-radius: 12px 12px 0 0;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 20px;
        max-height: calc(100vh - 120px);
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group {
        flex: 1 1 100%;
    }
}

/* Мобильные устройства */
@media (max-width: 480px) {
    .modal.active {
        padding: 8px;
        padding-top: 16px;
    }

    .modal-content {
        max-height: calc(100vh - 32px);
        border-radius: 8px;
    }

    .modal-header {
        padding: 14px 16px;
        border-radius: 8px 8px 0 0;
    }

    .modal-title {
        font-size: 1rem;
    }

    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 16px;
        max-height: calc(100vh - 96px);
    }

    .form-input,
    .form-textarea,
    .form-select {
        font-size: 16px; /* Предотвращает зум на iOS */
        padding: 14px 12px;
    }

    .pro4you-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
        font-size: 16px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .modal.active {
        padding: 4px;
        padding-top: 12px;
    }

    .modal-content {
        max-height: calc(100vh - 24px);
    }

    .modal-body {
        padding: 14px;
        max-height: calc(100vh - 88px);
    }

    .modal-header {
        padding: 12px 14px;
    }

    .modal-title {
        font-size: 0.95rem;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .modal.active {
        padding: 8px;
        padding-top: 12px;
    }

    .modal-content {
        max-height: calc(100vh - 24px);
    }

    .modal-body {
        max-height: calc(100vh - 100px);
        padding: 16px;
    }
}
