/* contact.css - Премиальный дизайн страницы контактов */

/* ========== ПЕРЕМЕННЫЕ (наследуем из основного сайта) ========== */
:root {
    --color-white: #ffffff;
    --color-black: #0A1A2A;
    --color-blue: #0047AB;
    --color-blue-light: #2A6FD1;
    --color-red: #e21a59;
    --color-red-light: #df3e5e;
    --color-gray-100: #F5F7FA;
    --color-gray-200: #E9ECF2;
    --color-gray-300: #DDE1E7;
    --color-gray-400: #B0BEC5;
    --color-gray-500: #78909C;
    --color-gray-600: #546E7A;
    --color-gray-700: #37474F;
    --color-gray-800: #263238;
    --color-gray-900: #132164;
    
    --shadow-sm: 0 4px 6px rgba(0, 71, 171, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 71, 171, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 71, 171, 0.15);
    --shadow-xl: 0 30px 60px rgba(0, 71, 171, 0.2);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========== БАЗОВЫЕ СТИЛИ ДЛЯ КОНТАКТОВ ========== */
.contact-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Секционные бейджи (общие) */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0,71,171,0.1), rgba(226,26,89,0.1));
    color: var(--color-blue);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,71,171,0.1);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--color-gray-900);
    margin-bottom: 1rem;
}

.title-gradient {
    background: linear-gradient(135deg, var(--color-blue), var(--color-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-divider .divider-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-blue), var(--color-red), transparent);
}

.section-divider .divider-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,71,171,0.1), rgba(226,26,89,0.1));
    border-radius: 50%;
    color: var(--color-red);
    font-size: 1rem;
    border: 1px solid rgba(0,71,171,0.2);
}

/* ========== HERO СЕКЦИЯ ========== */
.contact-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-gray-900);
    isolation: isolate;
}

.contact-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-hero__media {
    position: relative;
    width: 100%;
    height: 100%;
}

.contact-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    animation: kenBurns 20s infinite alternate;
    filter: saturate(1.3) contrast(1.1);
}

@keyframes kenBurns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, -1%); }
}

.contact-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0,71,171,0.5) 0%, rgba(226,26,89,0.4) 100%);
    mix-blend-mode: multiply;
}

/* Частицы */
.contact-hero__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.contact-hero__particles .particle {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    filter: blur(5px);
    animation: floatParticle 20s infinite linear;
}

.contact-hero__particles .particle-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -100px;
    background: radial-gradient(circle, rgba(0,71,171,0.2) 0%, transparent 70%);
}

.contact-hero__particles .particle-2 {
    width: 500px;
    height: 500px;
    bottom: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(226,26,89,0.15) 0%, transparent 70%);
    animation-delay: -5s;
}

.contact-hero__particles .particle-3 {
    width: 300px;
    height: 300px;
    top: 40%;
    right: 10%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation-delay: -2s;
}

@keyframes floatParticle {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, 3%) rotate(120deg); }
    66% { transform: translate(-3%, 1%) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* Декоративная сетка */
.contact-hero__grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    pointer-events: none;
    opacity: 0.15;
}

.contact-hero__grid .grid-line {
    height: 100%;
    border-left: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.contact-hero__grid .grid-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -1px;
    width: 2px;
    height: 150px;
    background: linear-gradient(to top, var(--color-red), transparent);
    animation: scanLine 10s infinite;
}

.contact-hero__grid .grid-line:nth-child(2)::after {
    background: linear-gradient(to top, var(--color-blue), transparent);
    animation-delay: 3s;
}

.contact-hero__grid .grid-line:nth-child(3)::after {
    background: linear-gradient(to top, var(--color-red), transparent);
    animation-delay: 6s;
}

@keyframes scanLine {
    0% { transform: translateY(100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-1000%); opacity: 0; }
}

/* Контент hero */
.contact-hero__content {
    position: relative;
    z-index: 10;
    color: var(--color-white);
    max-width: 900px;
    padding: 4rem 0;
}

.contact-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem 0.5rem 1rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    animation: slideInLeft 0.6s ease-out;
}

.contact-hero__badge .badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.contact-hero__badge .badge-text {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-hero__title {
    margin-bottom: 3rem;
    animation: slideInRight 0.6s ease-out 0.2s both;
}

.contact-hero__title .title-line {
    display: block;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
}

.contact-hero__title .title-line--gradient {
    background: linear-gradient(135deg, #fff, var(--color-blue-light), var(--color-red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Быстрые контакты */
.contact-hero__quick {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.quick-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    padding: 1rem 1.8rem;
    border-radius: 60px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all var(--transition-normal);
}

.quick-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.quick-item__icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--color-blue), var(--color-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-white);
}

.quick-item__content {
    display: flex;
    flex-direction: column;
}

.quick-item__label {
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quick-item__value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.quick-item__value:hover {
    color: var(--color-red);
}

/* Декоративные орбы */
.contact-hero__decoration .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    pointer-events: none;
    z-index: 5;
}

.contact-hero__decoration .orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-blue) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: orbFloat 20s infinite alternate;
}

.contact-hero__decoration .orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-red) 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
    animation: orbFloat 15s infinite alternate-reverse;
}

.contact-hero__decoration .orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    top: 20%;
    left: 30%;
    animation: orbFloat 18s infinite alternate;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.2); }
}

/* ========== ОСНОВНАЯ СЕКЦИЯ С КАРТОЙ И ФОРМОЙ ========== */
.contact-main {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.contact-main__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Левая колонка - информация */
.contact-info__header {
    text-align: left;
    margin-bottom: 2rem;
}

.contact-info__header .section-divider {
    justify-content: flex-start;
}

/* Карта */
.contact-info__map {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin-bottom: 2rem;
    border: 1px solid rgba(0,71,171,0.1);
    height: 450px;
}

.contact-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.contact-info__map:hover .contact-map {
    transform: scale(1.02);
}

/* Декоративный маркер на карте */
.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    pointer-events: none;
    z-index: 10;
}

.marker-pulse {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(226,26,89,0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
    0% { width: 50px; height: 50px; opacity: 0.5; }
    50% { width: 80px; height: 80px; opacity: 0; }
    100% { width: 50px; height: 50px; opacity: 0.5; }
}

.marker-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-blue), var(--color-red));
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.marker-icon i {
    transform: rotate(45deg);
    color: white;
    font-size: 1.2rem;
}

/* Карточка адреса */
.address-card {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,71,171,0.1);
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.address-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.address-card__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0,71,171,0.1), rgba(226,26,89,0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-red);
    flex-shrink: 0;
}

.address-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
}

.address-card__text {
    color: var(--color-gray-700);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.address-card__coordinates {
    color: var(--color-gray-500);
    font-size: 0.9rem;
    font-family: monospace;
    padding: 0.5rem;
    background: var(--color-gray-100);
    border-radius: 8px;
    display: inline-block;
}

/* Дополнительные контакты */
.address-contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0,71,171,0.02), rgba(226,26,89,0.02));
    border-radius: 30px;
    border: 1px solid rgba(0,71,171,0.1);
}

.address-contacts__item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.address-contacts__item i {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-red);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.address-contacts__item a,
.address-contacts__item span {
    color: var(--color-gray-700);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.address-contacts__item a:hover {
    color: var(--color-red);
}

.address-contacts__item div {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Правая колонка - форма */
.contact-form {
    background: white;
    border-radius: 40px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0,71,171,0.1);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0,71,171,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-form::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(226,26,89,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-form__header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.contact-form__description {
    color: var(--color-gray-600);
    line-height: 1.6;
    max-width: 400px;
    margin: 1rem auto 0;
}

.contact-form__description a {
    color: var(--color-red);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--color-red);
}

.contact-form__description a:hover {
    color: var(--color-blue);
    border-bottom-color: var(--color-blue);
}

/* Элементы формы */
.form-group {
    position: relative;
    margin-bottom: 1.8rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-gray-800);
    margin-bottom: 0.5rem;
}

.form-label i {
    color: var(--color-red);
    font-size: 1rem;
}

.required {
    color: var(--color-red);
    font-size: 1.2rem;
    line-height: 1;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--color-gray-200);
    border-radius: 20px;
    font-size: 1rem;
    color: var(--color-gray-800);
    background: var(--color-gray-100);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 2;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(0,71,171,0.1);
}

.form-focus {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-red));
    transition: width var(--transition-normal);
    z-index: 3;
}

.form-input:focus ~ .form-focus,
.form-textarea:focus ~ .form-focus {
    width: 100%;
}

/* Кастомный чекбокс (toggle) */
.form-group--consent {
    margin: 2rem 0;
}

.consent-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.consent-checkbox {
    display: none;
}

.consent-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
}

.consent-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-gray-300);
    border-radius: 6px;
    background: white;
    position: relative;
    transition: all var(--transition-fast);
}

.consent-checkbox:checked + .consent-label .consent-custom {
    background: linear-gradient(135deg, var(--color-blue), var(--color-red));
    border-color: transparent;
}

.consent-checkbox:checked + .consent-label .consent-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
}

.consent-text {
    color: var(--color-gray-700);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Капча */
.captcha-group {
    background: linear-gradient(135deg, rgba(0,71,171,0.02), rgba(226,26,89,0.02));
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0,71,171,0.1);
}

.captcha-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.captcha-equation {
    background: white;
    padding: 1rem 2rem;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-gray-900);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-200);
    min-width: 120px;
    text-align: center;
}

.captcha-input {
    flex: 1;
    min-width: 120px;
}

/* Кнопка отправки */
.contact-submit-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--color-blue), var(--color-red));
    border: none;
    border-radius: 60px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.contact-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.contact-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.contact-submit-btn:hover::before {
    left: 100%;
}

.contact-submit-btn .btn-icon {
    transition: transform var(--transition-normal);
}

.contact-submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.contact-submit-btn .btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.contact-submit-btn.loading .btn-text,
.contact-submit-btn.loading .btn-icon {
    display: none;
}

.contact-submit-btn.loading .btn-loader {
    display: block;
}

/* ========== СЕКЦИЯ С ОФИЦИАЛЬНОЙ ИНФОРМАЦИЕЙ ========== */
.contact-official {
    padding: 6rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
    position: relative;
    overflow: hidden;
}

.official-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
}

.official-card {
    background: white;
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,71,171,0.1);
    display: flex;
    gap: 1.5rem;
    transition: all var(--transition-bounce);
}

.official-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.official-card--full {
    grid-column: span 2;
}

.official-card__icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0,71,171,0.1), rgba(226,26,89,0.1));
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-red);
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.official-card:hover .official-card__icon {
    background: linear-gradient(135deg, var(--color-blue), var(--color-red));
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.official-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 1rem;
}

.official-card__text {
    color: var(--color-gray-700);
    line-height: 1.7;
}

.official-card__row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.official-card__label {
    font-weight: 600;
    color: var(--color-gray-800);
    min-width: 60px;
}

.official-card__value {
    color: var(--color-gray-700);
}

.official-card__link {
    color: var(--color-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.official-card__link:hover {
    color: var(--color-red);
}

.official-card__phones {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Декоративные элементы */
.contact-official__decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.decoration-dots {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, var(--color-blue) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.1;
}

.decoration-lines {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 300px;
    height: 200px;
    background: repeating-linear-gradient(45deg, var(--color-red) 0px, var(--color-red) 2px, transparent 2px, transparent 20px);
    opacity: 0.05;
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.contact-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.contact-modal__container {
    position: relative;
    background: white;
    padding: 3rem;
    border-radius: 50px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10000;
}

.contact-modal__icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--color-blue), var(--color-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

.contact-modal__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-gray-900);
    margin-bottom: 1rem;
}

.contact-modal__message {
    color: var(--color-gray-700);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-modal__close {
    background: linear-gradient(135deg, var(--color-blue), var(--color-red));
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.contact-modal__close:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.contact-modal__close i {
    transition: transform var(--transition-normal);
}

.contact-modal__close:hover i {
    transform: translateX(5px);
}

.contact-modal__close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--color-gray-200);
    border-radius: 50%;
    color: var(--color-gray-800);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.contact-modal__close-btn:hover {
    background: var(--color-red);
    color: white;
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== АНИМАЦИИ ========== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== CONTACT.CSS - ПРЕМИУМ АДАПТИВ ========== */

/* 4K и ультраширокие (1921px - 3840px) */
@media (min-width: 1921px) {
    .contact-container {
        max-width: 1800px;
        padding: 0 3rem;
    }

    .contact-hero {
        min-height: 60vh;
    }

    .contact-hero__title .title-line {
        font-size: clamp(5rem, 6vw, 6rem);
    }

    .quick-item {
        padding: 1.2rem 2.2rem;
    }

    .quick-item__icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    .quick-item__value {
        font-size: 1.3rem;
    }

    .contact-main {
        padding: 8rem 0;
    }

    .contact-main__wrapper {
        gap: 4rem;
    }

    .contact-info__map {
        height: 550px;
    }

    .address-card {
        padding: 2.5rem;
    }

    .address-card__icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .contact-form {
        padding: 4rem;
    }

    .form-input,
    .form-textarea {
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
    }

    .contact-submit-btn {
        padding: 1.5rem 2.5rem;
        font-size: 1.2rem;
    }

    .official-card {
        padding: 3rem;
    }

    .official-card__icon {
        width: 80px;
        height: 80px;
        font-size: 2.2rem;
    }

    .official-card__title {
        font-size: 1.4rem;
    }

    .contact-hero__decoration .orb-1 {
        width: 800px;
        height: 800px;
    }

    .contact-hero__decoration .orb-2 {
        width: 700px;
        height: 700px;
    }
}

/* Desktop Wide (1441px - 1920px) */
@media (min-width: 1441px) and (max-width: 1920px) {
    .contact-container {
        max-width: 1400px;
    }

    .contact-main__wrapper {
        gap: 3.5rem;
    }

    .contact-form {
        padding: 3rem;
    }
}

/* Desktop (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .contact-container {
        max-width: 1200px;
    }

    .contact-main__wrapper {
        gap: 2.5rem;
    }

    .contact-info__map {
        height: 400px;
    }

    .official-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .official-card--full {
        grid-column: span 1;
    }
}

/* Laptop (993px - 1024px) */
@media (min-width: 993px) and (max-width: 1024px) {
    .contact-container {
        max-width: 960px;
    }

    .contact-hero {
        min-height: 60vh;
    }

    .contact-hero__quick {
        gap: 1.5rem;
    }

    .quick-item {
        padding: 0.8rem 1.5rem;
    }

    .contact-main {
        padding: 5rem 0;
    }

    .contact-main__wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info__header {
        text-align: center;
    }

    .contact-info__header .section-divider {
        justify-content: center;
    }

    .contact-info__map {
        height: 400px;
    }

    .contact-form {
        max-width: 700px;
        margin: 0 auto;
    }

    .official-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .official-card--full {
        grid-column: span 2;
    }

    .contact-hero__particles .particle-3 {
        display: none;
    }
}

/* Tablet Landscape (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .contact-container {
        max-width: 720px;
    }

    .contact-hero {
        min-height: 50vh;
    }

    .contact-hero__content {
        text-align: center;
        padding: 3rem 0;
    }

    .contact-hero__badge {
        margin: 0 auto 1.5rem;
    }

    .contact-hero__title .title-line {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }

    .contact-hero__quick {
        justify-content: center;
        gap: 1rem;
    }

    .quick-item {
        padding: 0.8rem 1.2rem;
    }

    .quick-item__icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .quick-item__value {
        font-size: 1rem;
    }

    .contact-main {
        padding: 4rem 0;
    }

    .contact-main__wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info__header {
        text-align: center;
    }

    .contact-info__header .section-divider {
        justify-content: center;
    }

    .contact-info__map {
        height: 380px;
    }

    .address-card {
        padding: 1.8rem;
    }

    .address-contacts {
        padding: 1.2rem;
    }

    .contact-form {
        max-width: 600px;
        margin: 0 auto;
        padding: 2.5rem;
    }

    .official-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .official-card--full {
        grid-column: span 1;
    }

    .official-card {
        padding: 2rem;
    }

    .contact-hero__particles .particle-3,
    .contact-hero__grid .grid-line:nth-child(3)::after {
        display: none;
    }

    .contact-hero__decoration .orb-3 {
        display: none;
    }
}

/* ========== TABLET (577px - 768px) ========== */
@media (min-width: 577px) and (max-width: 768px) {
    .contact-container {
        max-width: 540px;
        padding: 0 1.5rem;
        margin: 0 auto;
        width: 100%;
    }

    /* Hero секция */
    .contact-hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .contact-hero__content {
        padding: 2rem 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .contact-hero__badge {
        margin: 0 auto 1.5rem auto;
        display: inline-flex;
    }

    .contact-hero__title {
        max-width: 500px;
        margin: 0 auto 2rem auto;
    }

    .contact-hero__title .title-line {
        font-size: 2.8rem;
        text-align: center;
    }

    .contact-hero__title .title-line--gradient {
        font-size: 3rem;
    }

    .contact-hero__quick {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

    .quick-item {
        width: 100%;
        max-width: 380px;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        margin: 0 auto;
    }

    /* Основная секция */
    .contact-main {
        padding: 3.5rem 0;
    }

    .contact-main__wrapper {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        width: 100%;
    }

    .contact-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-info__header {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 2rem;
    }

    .contact-info__header .section-divider {
        justify-content: center;
    }

    .contact-info__map {
        width: 100%;
        max-width: 500px;
        height: 350px;
        border-radius: 20px;
        margin: 0 auto 2rem;
    }

    .map-marker {
        display: none;
    }

    .address-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.8rem;
        gap: 1rem;
        max-width: 500px;
        margin: 0 auto 1.5rem auto;
        width: 100%;
    }

    .address-card__icon {
        margin: 0 auto 0.5rem;
    }

    .address-card__title {
        text-align: center;
    }

    .address-card__text {
        text-align: center;
    }

    .address-card__coordinates {
        display: inline-block;
        text-align: center;
        margin: 0 auto;
    }

    .address-contacts {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        padding: 1.5rem;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .address-contacts__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
        width: 100%;
    }

    .address-contacts__item i {
        margin: 0 auto;
    }

    .address-contacts__item div {
        align-items: center;
        text-align: center;
    }

    .address-contacts__item a,
    .address-contacts__item span {
        text-align: center;
    }

    .contact-form {
        padding: 2rem;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .contact-form__header {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .contact-form__header .section-divider {
        justify-content: center;
    }

    .contact-form__description {
        text-align: center;
        margin: 1rem auto 0;
    }

    .form-group {
        width: 100%;
    }

    .form-label {
        justify-content: center;
    }

    .form-input,
    .form-textarea {
        text-align: left;
    }

    .captcha-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .captcha-equation {
        width: 100%;
        max-width: 200px;
        margin: 0 auto 1rem;
        text-align: center;
    }

    .captcha-input {
        width: 100%;
    }

    .form-group--consent .consent-wrapper {
        justify-content: center;
    }

    .consent-label {
        text-align: left;
    }

    .contact-submit-btn {
        justify-content: center;
    }

    .contact-official {
        padding: 3.5rem 0;
    }

    .contact-official__header {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }

    .contact-official__header .section-divider {
        justify-content: center;
    }

    .official-cards {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .official-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem;
        width: 100%;
    }

    .official-card__icon {
        margin: 0 auto 1rem;
    }

    .official-card__content {
        width: 100%;
        text-align: center;
    }

    .official-card__title {
        text-align: center;
        margin-bottom: 1rem;
    }

    .official-card__text {
        text-align: center;
    }

    .official-card__row {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
        text-align: center;
    }

    .official-card__label {
        min-width: auto;
        text-align: center;
    }

    .official-card__value {
        text-align: center;
    }

    .official-card__phones {
        align-items: center;
    }

    .official-card__link {
        text-align: center;
    }

    .official-card--full {
        grid-column: auto;
    }

    /* Скрываем декоративные элементы */
    .contact-hero__particles,
    .contact-hero__grid,
    .contact-main__decoration,
    .contact-official__decoration {
        display: none;
    }

    .orb-1, .orb-2, .orb-3 {
        opacity: 0.1;
        filter: blur(40px);
    }
}

/* ========== MOBILE LARGE (426px - 576px) ========== */
@media (min-width: 426px) and (max-width: 576px) {
    .contact-container {
        max-width: 100%;
        padding: 0 1.25rem;
        margin: 0 auto;
        width: 100%;
    }

    /* Hero секция */
    .contact-hero {
        min-height: auto;
        padding: 2.5rem 0;
        display: flex;
        align-items: center;
    }

    .contact-hero__content {
        padding: 1.5rem 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 0 auto;
    }

    .contact-hero__badge {
        margin: 0 auto 1.25rem auto;
        display: inline-flex;
        justify-content: center;
    }

    .contact-hero__title {
        max-width: 400px;
        margin: 0 auto 1.5rem auto;
        text-align: center;
        width: 100%;
    }

    .contact-hero__title .title-line {
        font-size: 2.2rem;
        text-align: center;
        display: block;
    }

    .contact-hero__title .title-line--gradient {
        font-size: 2.4rem;
    }

    .contact-hero__quick {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        max-width: 350px;
        margin: 0 auto;
        width: 100%;
    }

    .quick-item {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        margin: 0 auto;
        display: flex;
        align-items: center;
    }

    .quick-item__content {
        text-align: left;
    }

    /* Основная секция - ВСЁ ВЕРТИКАЛЬНО */
    .contact-main {
        padding: 3rem 0;
    }

    .contact-main__wrapper {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }

    .contact-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-info__header {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .contact-info__header .section-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-info__header .section-title {
        text-align: center;
        width: 100%;
    }

    .contact-info__header .section-divider {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-info__map {
        width: 100%;
        max-width: 400px;
        height: 280px;
        margin: 0 auto 1.5rem;
        display: block;
    }

    /* Адрес - ВЕРТИКАЛЬНО */
    .address-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
        max-width: 400px;
        margin: 0 auto 1.2rem auto;
        width: 100%;
    }

    .address-card__icon {
        margin: 0 auto 0.5rem auto;
    }

    .address-card__title {
        text-align: center;
        width: 100%;
    }

    .address-card__text {
        text-align: center;
        width: 100%;
    }

    .address-card__coordinates {
        text-align: center;
        margin: 0.5rem auto 0;
        display: inline-block;
    }

    /* Контакты - ВЕРТИКАЛЬНО */
    .address-contacts {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1.2rem;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

    .address-contacts__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
        width: 100%;
    }

    .address-contacts__item i {
        margin: 0 auto;
    }

    .address-contacts__item div {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .address-contacts__item a,
    .address-contacts__item span {
        text-align: center;
        display: block;
    }

    /* Форма - ВЕРТИКАЛЬНО */
    .contact-form {
        padding: 1.5rem;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

    .contact-form__header {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .contact-form__header .section-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-form__header .section-title {
        text-align: center;
    }

    .contact-form__header .section-divider {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-form__description {
        text-align: center;
        margin: 1rem auto 0;
        max-width: 300px;
    }

    .form-group {
        width: 100%;
        margin-bottom: 1.2rem;
    }

    .form-label {
        justify-content: center;
        text-align: center;
    }

    .form-input,
    .form-textarea {
        text-align: left;
        width: 100%;
    }

    .captcha-wrapper {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .captcha-equation {
        width: 100%;
        max-width: 200px;
        margin: 0 auto 1rem;
        text-align: center;
    }

    .captcha-input {
        width: 100%;
    }

    .form-group--consent {
        margin: 1.2rem 0;
    }

    .form-group--consent .consent-wrapper {
        justify-content: center;
        width: 100%;
    }

    .consent-label {
        text-align: left;
        justify-content: flex-start;
    }

    /* Официальная информация - ВЕРТИКАЛЬНО */
    .contact-official {
        padding: 3rem 0;
    }

    .contact-official__header {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .contact-official__header .section-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-official__header .section-title {
        text-align: center;
    }

    .contact-official__header .section-divider {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .official-cards {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

    .official-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
        width: 100%;
        margin: 0 auto;
    }

    .official-card__icon {
        margin: 0 auto 0.8rem auto;
    }

    .official-card__content {
        width: 100%;
        text-align: center;
    }

    .official-card__title {
        text-align: center;
        width: 100%;
        margin-bottom: 0.8rem;
    }

    .official-card__text {
        text-align: center;
    }

    .official-card__row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.2rem;
        justify-content: center;
    }

    .official-card__label {
        min-width: auto;
        text-align: center;
    }

    .official-card__value {
        text-align: center;
    }

    .official-card__phones {
        align-items: center;
    }

    /* Модальное окно */
    .contact-modal__container {
        padding: 1.5rem;
        width: 90%;
        margin: 0 auto;
    }

    /* Скрываем декоративные элементы */
    .contact-hero__particles,
    .contact-hero__grid,
    .contact-hero__decoration,
    .contact-main__decoration,
    .contact-official__decoration,
    .orb-1, .orb-2, .orb-3 {
        display: none;
    }
}

/* ========== MOBILE (376px - 425px) ========== */
@media (min-width: 376px) and (max-width: 425px) {
    .contact-container {
        max-width: 100%;
        padding: 0 1rem;
        margin: 0 auto;
        width: 100%;
    }

    /* Hero секция */
    .contact-hero {
        min-height: auto;
        padding: 2rem 0;
        display: flex;
        align-items: center;
    }

    .contact-hero__content {
        padding: 1.25rem 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 0 auto;
    }

    .contact-hero__badge {
        margin: 0 auto 1rem auto;
        display: inline-flex;
        justify-content: center;
        padding: 0.3rem 1rem;
    }

    .contact-hero__badge .badge-dot {
        width: 6px;
        height: 6px;
    }

    .contact-hero__badge .badge-text {
        font-size: 0.7rem;
    }

    .contact-hero__title {
        max-width: 320px;
        margin: 0 auto 1.25rem auto;
        text-align: center;
        width: 100%;
    }

    .contact-hero__title .title-line {
        font-size: 2rem;
        text-align: center;
        display: block;
    }

    .contact-hero__title .title-line--gradient {
        font-size: 2.2rem;
    }

    .contact-hero__quick {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.7rem;
        max-width: 300px;
        margin: 0 auto;
        width: 100%;
    }

    .quick-item {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        margin: 0 auto;
        display: flex;
        align-items: center;
        padding: 0.6rem 1rem;
    }

    .quick-item__icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .quick-item__content {
        text-align: left;
    }

    .quick-item__label {
        font-size: 0.7rem;
    }

    .quick-item__value {
        font-size: 0.9rem;
    }

    /* Основная секция */
    .contact-main {
        padding: 2.5rem 0;
    }

    .contact-main__wrapper {
        display: flex;
        flex-direction: column;
        gap: 1.8rem;
        width: 100%;
    }

    .contact-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-info__header {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 1.25rem;
    }

    .contact-info__header .section-badge {
        margin-left: auto;
        margin-right: auto;
        font-size: 0.75rem;
        padding: 0.3rem 1rem;
    }

    .contact-info__header .section-title {
        text-align: center;
        width: 100%;
        font-size: 1.7rem;
    }

    .contact-info__header .section-divider {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        gap: 0.8rem;
    }

    .contact-info__header .section-divider .divider-line {
        width: 30px;
    }

    .contact-info__header .section-divider .divider-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .contact-info__map {
        width: 100%;
        max-width: 340px;
        height: 250px;
        margin: 0 auto 1.25rem;
        display: block;
        border-radius: 20px;
    }

    /* Адрес */
    .address-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.2rem;
        gap: 0.8rem;
        max-width: 340px;
        margin: 0 auto 1rem auto;
        width: 100%;
        border-radius: 24px;
    }

    .address-card__icon {
        margin: 0 auto 0.5rem auto;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .address-card__title {
        text-align: center;
        width: 100%;
        font-size: 1.1rem;
    }

    .address-card__text {
        text-align: center;
        width: 100%;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .address-card__coordinates {
        text-align: center;
        margin: 0.5rem auto 0;
        display: inline-block;
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    /* Контакты */
    .address-contacts {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        padding: 1.2rem;
        max-width: 340px;
        margin: 0 auto;
        width: 100%;
        border-radius: 24px;
    }

    .address-contacts__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.4rem;
        width: 100%;
    }

    .address-contacts__item i {
        margin: 0 auto;
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .address-contacts__item div {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        gap: 0.2rem;
    }

    .address-contacts__item a,
    .address-contacts__item span {
        text-align: center;
        display: block;
        font-size: 0.9rem;
    }

    /* Форма */
    .contact-form {
        padding: 1.5rem;
        max-width: 340px;
        margin: 0 auto;
        width: 100%;
        border-radius: 30px;
    }

    .contact-form__header {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .contact-form__header .section-badge {
        margin-left: auto;
        margin-right: auto;
        font-size: 0.75rem;
        padding: 0.3rem 1rem;
    }

    .contact-form__header .section-title {
        text-align: center;
        font-size: 1.6rem;
    }

    .contact-form__header .section-divider {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        gap: 0.8rem;
    }

    .contact-form__description {
        text-align: center;
        margin: 0.8rem auto 0;
        max-width: 280px;
        font-size: 0.85rem;
    }

    .form-group {
        width: 100%;
        margin-bottom: 1rem;
    }

    .form-label {
        justify-content: center;
        text-align: center;
        font-size: 0.85rem;
    }

    .form-input,
    .form-textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        border-radius: 16px;
        text-align: left;
        width: 100%;
    }

    .captcha-group {
        padding: 1rem;
    }

    .captcha-wrapper {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0.8rem;
    }

    .captcha-equation {
        width: 100%;
        max-width: 150px;
        margin: 0 auto;
        text-align: center;
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }

    .captcha-input {
        width: 100%;
    }

    .form-group--consent {
        margin: 1.2rem 0;
    }

    .form-group--consent .consent-wrapper {
        justify-content: center;
        width: 100%;
    }

    .consent-label {
        text-align: left;
        justify-content: flex-start;
        gap: 0.8rem;
    }

    .consent-custom {
        width: 22px;
        height: 22px;
    }

    .consent-text {
        font-size: 0.8rem;
    }

    .contact-submit-btn {
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }

    /* Официальная информация */
    .contact-official {
        padding: 2.5rem 0;
    }

    .contact-official__header {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .contact-official__header .section-badge {
        margin-left: auto;
        margin-right: auto;
        font-size: 0.75rem;
        padding: 0.3rem 1rem;
    }

    .contact-official__header .section-title {
        text-align: center;
        font-size: 1.6rem;
    }

    .contact-official__header .section-divider {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        gap: 0.8rem;
    }

    .official-cards {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        max-width: 340px;
        margin: 0 auto;
        width: 100%;
    }

    .official-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.2rem;
        width: 100%;
        margin: 0 auto;
        border-radius: 24px;
        gap: 0.8rem;
    }

    .official-card__icon {
        margin: 0 auto 0.5rem auto;
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .official-card__content {
        width: 100%;
        text-align: center;
    }

    .official-card__title {
        text-align: center;
        width: 100%;
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

    .official-card__text {
        text-align: center;
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .official-card__row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.2rem;
        justify-content: center;
    }

    .official-card__label {
        min-width: auto;
        text-align: center;
        font-size: 0.85rem;
    }

    .official-card__value {
        text-align: center;
        font-size: 0.85rem;
    }

    .official-card__phones {
        align-items: center;
        gap: 0.2rem;
    }

    .official-card__link {
        font-size: 0.85rem;
    }

    /* Модальное окно */
    .contact-modal__container {
        padding: 1.5rem;
        width: 90%;
        max-width: 320px;
        margin: 0 auto;
    }

    .contact-modal__icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .contact-modal__title {
        font-size: 1.6rem;
    }

    .contact-modal__message {
        font-size: 0.95rem;
    }

    /* Скрываем декоративные элементы */
    .contact-hero__particles,
    .contact-hero__grid,
    .contact-hero__decoration,
    .contact-main__decoration,
    .contact-official__decoration,
    .orb-1, .orb-2, .orb-3 {
        display: none;
    }
}

/* ========== MOBILE SMALL (321px - 375px) ========== */
@media (min-width: 321px) and (max-width: 375px) {
    .contact-container {
        max-width: 100%;
        padding: 0 0.75rem;
        margin: 0 auto;
        width: 100%;
    }

    /* Hero секция */
    .contact-hero {
        min-height: auto;
        padding: 1.8rem 0;
    }

    .contact-hero__content {
        padding: 1rem 0;
    }

    .contact-hero__badge {
        padding: 0.25rem 0.9rem;
        margin-bottom: 0.8rem;
    }

    .contact-hero__badge .badge-dot {
        width: 5px;
        height: 5px;
    }

    .contact-hero__badge .badge-text {
        font-size: 0.65rem;
    }

    .contact-hero__title {
        max-width: 280px;
        margin-bottom: 1rem;
    }

    .contact-hero__title .title-line {
        font-size: 1.8rem;
    }

    .contact-hero__title .title-line--gradient {
        font-size: 2rem;
    }

    .contact-hero__quick {
        max-width: 280px;
        gap: 0.6rem;
    }

    .quick-item {
        max-width: 260px;
        padding: 0.5rem 0.9rem;
    }

    .quick-item__icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .quick-item__value {
        font-size: 0.85rem;
    }

    /* Основная секция */
    .contact-main {
        padding: 2rem 0;
    }

    .contact-main__wrapper {
        gap: 1.5rem;
    }

    .contact-info__header {
        margin-bottom: 1rem;
    }

    .contact-info__header .section-title {
        font-size: 1.5rem;
    }

    .contact-info__header .section-divider .divider-line {
        width: 25px;
    }

    .contact-info__map {
        max-width: 300px;
        height: 220px;
        margin-bottom: 1rem;
    }

    .address-card {
        max-width: 300px;
        padding: 1rem;
    }

    .address-card__icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .address-card__title {
        font-size: 1rem;
    }

    .address-card__text {
        font-size: 0.85rem;
    }

    .address-contacts {
        max-width: 300px;
        padding: 1rem;
    }

    .address-contacts__item i {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .address-contacts__item a,
    .address-contacts__item span {
        font-size: 0.85rem;
    }

    .contact-form {
        max-width: 300px;
        padding: 1.2rem;
    }

    .contact-form__header .section-title {
        font-size: 1.5rem;
    }

    .contact-form__description {
        max-width: 260px;
        font-size: 0.8rem;
    }

    .form-input,
    .form-textarea {
        padding: 0.7rem 0.9rem;
        font-size: 0.85rem;
    }

    .captcha-equation {
        max-width: 140px;
        font-size: 0.9rem;
        padding: 0.5rem 0.7rem;
    }

    .consent-text {
        font-size: 0.75rem;
    }

    .contact-submit-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .official-cards {
        max-width: 300px;
        gap: 0.8rem;
    }

    .official-card {
        padding: 1rem;
    }

    .official-card__icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .official-card__title {
        font-size: 0.95rem;
    }

    .official-card__text,
    .official-card__link {
        font-size: 0.8rem;
    }

    .contact-modal__container {
        max-width: 280px;
        padding: 1.2rem;
    }

    .contact-modal__icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .contact-modal__title {
        font-size: 1.4rem;
    }

    .contact-modal__message {
        font-size: 0.85rem;
    }

    /* Скрываем декор */
    .contact-hero__particles,
    .contact-hero__grid,
    .contact-hero__decoration,
    .contact-main__decoration,
    .contact-official__decoration {
        display: none;
    }
}

/* ========== MOBILE XS (≤320px) ========== */
@media (max-width: 320px) {
    .contact-container {
        max-width: 100%;
        padding: 0 0.5rem;
        margin: 0 auto;
        width: 100%;
    }

    /* Hero секция */
    .contact-hero {
        min-height: auto;
        padding: 1.5rem 0;
    }

    .contact-hero__content {
        padding: 0.8rem 0;
    }

    .contact-hero__badge {
        padding: 0.2rem 0.8rem;
        margin-bottom: 0.8rem;
    }

    .contact-hero__badge .badge-dot {
        width: 4px;
        height: 4px;
    }

    .contact-hero__badge .badge-text {
        font-size: 0.6rem;
    }

    .contact-hero__title {
        max-width: 240px;
        margin-bottom: 1rem;
    }

    .contact-hero__title .title-line {
        font-size: 1.5rem;
    }

    .contact-hero__title .title-line--gradient {
        font-size: 1.7rem;
    }

    .contact-hero__quick {
        max-width: 240px;
        gap: 0.5rem;
    }

    .quick-item {
        max-width: 220px;
        padding: 0.4rem 0.8rem;
    }

    .quick-item__icon {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .quick-item__value {
        font-size: 0.8rem;
    }

    /* Основная секция */
    .contact-main {
        padding: 1.5rem 0;
    }

    .contact-main__wrapper {
        gap: 1.2rem;
    }

    .contact-info__header {
        margin-bottom: 0.8rem;
    }

    .contact-info__header .section-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.8rem;
    }

    .contact-info__header .section-title {
        font-size: 1.4rem;
    }

    .contact-info__header .section-divider .divider-line {
        width: 20px;
    }

    .contact-info__header .section-divider .divider-icon {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    .contact-info__map {
        max-width: 260px;
        height: 200px;
        margin-bottom: 0.8rem;
    }

    .address-card {
        max-width: 260px;
        padding: 0.8rem;
        gap: 0.6rem;
    }

    .address-card__icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .address-card__title {
        font-size: 0.95rem;
    }

    .address-card__text {
        font-size: 0.8rem;
    }

    .address-card__coordinates {
        font-size: 0.7rem;
        padding: 0.3rem;
    }

    .address-contacts {
        max-width: 260px;
        padding: 0.8rem;
        gap: 0.6rem;
    }

    .address-contacts__item i {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .address-contacts__item a,
    .address-contacts__item span {
        font-size: 0.8rem;
    }

    .contact-form {
        max-width: 260px;
        padding: 1rem;
    }

    .contact-form__header .section-title {
        font-size: 1.4rem;
    }

    .contact-form__description {
        max-width: 220px;
        font-size: 0.75rem;
    }

    .form-group {
        margin-bottom: 0.8rem;
    }

    .form-label {
        font-size: 0.8rem;
    }

    .form-input,
    .form-textarea {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .captcha-group {
        padding: 0.8rem;
    }

    .captcha-equation {
        max-width: 120px;
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .consent-label {
        gap: 0.6rem;
    }

    .consent-custom {
        width: 20px;
        height: 20px;
    }

    .consent-text {
        font-size: 0.7rem;
    }

    .contact-submit-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    .contact-official {
        padding: 1.5rem 0;
    }

    .contact-official__header .section-title {
        font-size: 1.4rem;
    }

    .official-cards {
        max-width: 260px;
        gap: 0.6rem;
    }

    .official-card {
        padding: 0.8rem;
    }

    .official-card__icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .official-card__title {
        font-size: 0.9rem;
    }

    .official-card__text,
    .official-card__link {
        font-size: 0.75rem;
    }

    .contact-modal__container {
        max-width: 240px;
        padding: 1rem;
    }

    .contact-modal__icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .contact-modal__title {
        font-size: 1.2rem;
    }

    .contact-modal__message {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .contact-modal__close {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }

    /* Скрываем декор */
    .contact-hero__particles,
    .contact-hero__grid,
    .contact-hero__decoration,
    .contact-main__decoration,
    .contact-official__decoration {
        display: none;
    }
}

/* ========== LANDSCAPE ДЛЯ МОБИЛЬНЫХ ========== */
@media (max-height: 600px) and (orientation: landscape) {
    .contact-hero {
        min-height: auto;
        padding: 1.5rem 0;
    }

    .contact-hero__quick {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .quick-item {
        flex: 0 1 auto;
        min-width: 180px;
    }

    .contact-info__map {
        height: 200px;
    }

    .official-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .contact-hero__particles,
    .contact-hero__grid,
    .contact-hero__decoration {
        display: none;
    }
}

/* ========== УЧЕТ REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    .contact-hero__image,
    .particle,
    .grid-line::after,
    .orb,
    .quick-item:hover,
    .address-card:hover,
    .official-card:hover,
    .contact-submit-btn:hover,
    .marker-pulse {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .contact-submit-btn::before {
        display: none;
    }
}

/* Стили для кнопки в состоянии загрузки */
.contact-submit-btn.loading .btn-text,
.contact-submit-btn.loading .btn-icon {
    opacity: 0;
}

.contact-submit-btn.loading .btn-loader {
    display: block;
}

.contact-submit-btn .btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Стили для ошибок полей */
.form-input.error,
.form-textarea.error {
    border-color: #e21a59;
    background-color: rgba(226, 26, 89, 0.05);
}

.field-error {
    color: #e21a59;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ КАПЧИ ========== */
.captcha-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.captcha-equation {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-gray-900);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-200);
    min-width: 180px;
    text-align: center;
    font-family: monospace;
    letter-spacing: 1px;
}

.captcha-refresh-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gray-100), var(--color-gray-200));
    border: 1px solid var(--color-gray-300);
    color: var(--color-gray-700);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh-btn:hover {
    background: linear-gradient(135deg, var(--color-blue), var(--color-red));
    color: white;
    transform: rotate(180deg);
    border-color: transparent;
}

.captcha-hint {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    margin-top: 0.5rem;
    text-align: center;
}

.captcha-input {
    flex: 1;
    min-width: 150px;
}

/* Адаптив для капчи */
@media (max-width: 576px) {
    .captcha-equation {
        font-size: 1rem;
        padding: 0.8rem 1rem;
        min-width: 140px;
    }
    
    .captcha-refresh-btn {
        width: 38px;
        height: 38px;
    }
}

/* ========== ПРЕМИУМ СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ========== */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.contact-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease-out;
}

.contact-modal__container {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    padding: 0;
    border-radius: 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10000;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Декоративный фон модального окна */
.contact-modal__container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 71, 171, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Анимированная иконка */
.contact-modal__icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 2rem auto 1.5rem;
    background: linear-gradient(135deg, #0047AB, #e21a59);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 71, 171, 0.3);
    animation: iconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-modal__icon i {
    font-size: 3rem;
    color: white;
    animation: iconRotate 0.6s ease-out;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

/* Анимированные частицы вокруг иконки */
.contact-modal__icon::before,
.contact-modal__icon::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: ripple 1.5s infinite;
}

.contact-modal__icon::before {
    width: 110%;
    height: 110%;
    border: 2px solid rgba(0, 71, 171, 0.3);
    animation-delay: 0s;
}

.contact-modal__icon::after {
    width: 120%;
    height: 120%;
    border: 2px solid rgba(226, 26, 89, 0.2);
    animation-delay: 0.5s;
}

/* Заголовок */
.contact-modal__title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 2rem 0.5rem;
    background: linear-gradient(135deg, #0047AB, #e21a59);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleSlide 0.5s ease-out 0.2s both;
}

/* Текст сообщения */
.contact-modal__message {
    color: #37474F;
    line-height: 1.6;
    margin: 0 2rem 2rem;
    font-size: 1rem;
    animation: messageFade 0.5s ease-out 0.3s both;
}

/* Контейнер для кнопок */
.contact-modal__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 0 2rem 2rem;
    margin-bottom: 0;
}

/* Кнопка закрытия (основная) */
.contact-modal__close {
    flex: 1;
    background: linear-gradient(135deg, #0047AB, #e21a59);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0, 71, 171, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-modal__close::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.contact-modal__close:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 71, 171, 0.4);
}

.contact-modal__close:hover::before {
    left: 100%;
}

.contact-modal__close i {
    transition: transform 0.3s ease;
}

.contact-modal__close:hover i {
    transform: translateX(5px);
}

/* Кнопка закрытия (крестик) */
.contact-modal__close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.contact-modal__close-btn:hover {
    background: linear-gradient(135deg, #0047AB, #e21a59);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

/* Кнопка дополнительного действия (опционально) */
.contact-modal__secondary {
    flex: 1;
    background: transparent;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 1rem 2rem;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.contact-modal__secondary:hover {
    border-color: #0047AB;
    color: #0047AB;
    transform: translateY(-2px);
}

/* Анимации */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes iconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes iconRotate {
    from {
        transform: rotate(0deg) scale(0);
        opacity: 0;
    }
    to {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes titleSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes messageFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Вариант для успешной отправки (Success) */
.contact-modal.success .contact-modal__icon {
    background: linear-gradient(135deg, #00c853, #69f0ae);
}

.contact-modal.success .contact-modal__title {
    background: linear-gradient(135deg, #00c853, #00e676);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Вариант для ошибки (Error) */
.contact-modal.error .contact-modal__icon {
    background: linear-gradient(135deg, #d50000, #ff5252);
}

.contact-modal.error .contact-modal__icon i {
    font-size: 2.8rem;
}

.contact-modal.error .contact-modal__title {
    background: linear-gradient(135deg, #d50000, #ff5252);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Конфетти эффект праздника */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #0047AB, #e21a59);
    border-radius: 2px;
    pointer-events: none;
    z-index: 10001;
    animation: confettiFall 2s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Адаптив для модального окна */
@media (max-width: 576px) {
    .contact-modal__container {
        max-width: 90%;
        width: 90%;
        border-radius: 30px;
    }
    
    .contact-modal__icon {
        width: 70px;
        height: 70px;
        margin: 1.5rem auto 1rem;
    }
    
    .contact-modal__icon i {
        font-size: 2rem;
    }
    
    .contact-modal__title {
        font-size: 1.5rem;
        margin: 0 1rem 0.5rem;
    }
    
    .contact-modal__message {
        font-size: 0.9rem;
        margin: 0 1rem 1.5rem;
    }
    
    .contact-modal__buttons {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem 1.5rem;
    }
    
    .contact-modal__close,
    .contact-modal__secondary {
        padding: 0.8rem 1.5rem;
    }
    
    .contact-modal__close-btn {
        width: 30px;
        height: 30px;
        top: 1rem;
        right: 1rem;
        font-size: 0.875rem;
    }
}

/* Анимация для телефона (вибрация) */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}