/* ============================================================
   СТРАНИЦА: Курсы китайского языка в Кропоткине
   САЙТ: English Academy (academy-english-kuban.ru)
   ВЕРСИЯ: 1.0 – Боевая, резиновая, адаптивная
   ============================================================ */

/* ---------- ПЕРЕМЕННЫЕ (токены дизайна из брендбука) ---------- */
:root {
    /* Основная палитра */
    --primary: #0f407b;
    --primary-hover: #0a2d58;
    --primary-light: #3a6bb0;
    --secondary: #ff9e40;
    --accent: #2ecc71;

    /* Нейтральные */
    --light: #f8f9fa;
    --dark: #212b36;
    --text: #000;
    --text-dark: #333333;
    --white: #ffffff;
    --gray-100: #f9fafb;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-500: #6c757d;

    /* Функциональные */
    --transition: all 0.3s ease;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-pill: 50px;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-btn: 0 4px 14px rgba(15, 64, 123, 0.3);

    /* Китайский акцент (красный — традиционный цвет) */
    --chinese-red: #c62828;
    --chinese-red-light: #ef5350;
    --chinese-gold: #f9a825;

    /* Типографика */
    --font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --line-height: 1.65;
    --heading-line-height: 1.2;

    /* Ритмика */
    --section-gap: clamp(2.5rem, 5vw, 4rem);
    --content-gap: clamp(1rem, 2.5vw, 1.5rem);
    --container-padding: clamp(1rem, 3vw, 2rem);

    /* Анимация появления */
    --fade-in: fadeIn 0.6s ease both;
}

/* ---------- СБРОС И БАЗА ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: var(--line-height);
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

ul,
ol {
    list-style: none;
    padding-left: 0;
}

/* Базовые списки внутри контента (не в карточках) */
section > ul,
section > ol {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

section > ul li,
section > ol li {
    margin-bottom: 0.5rem;
}

hr {
    border: 0;
    height: 1px;
    background: var(--gray-200);
    margin: var(--section-gap) 0;
}

/* ---------- КОНТЕЙНЕР (резиновый) ---------- */
.container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ---------- ТИПОГРАФИКА ---------- */
h1,
h2,
h3,
h4 {
    color: var(--dark);
    line-height: var(--heading-line-height);
    font-weight: 700;
    text-wrap: balance;
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1.25rem;
    color: var(--primary);
}

h2 {
    font-size: clamp(1.5rem, 3.2vw, 2.2rem);
    margin-bottom: 1rem;
    position: relative;
}

/* Декоративная линия под H2 */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin-top: 0.5rem;
    border-radius: 2px;
}

h3 {
    font-size: clamp(1.2rem, 2.4vw, 1.5rem);
    margin-bottom: 0.75rem;
    color: var(--primary-light);
}

p {
    margin-bottom: 1rem;
    max-width: 72ch;
}

.lead {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    color: var(--text-dark);
    max-width: 68ch;
}

/* ---------- ХЛЕБНЫЕ КРОШКИ ---------- */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: '›';
    font-size: 1.2rem;
    color: var(--gray-300);
    margin-left: 0.2rem;
}

.breadcrumbs a {
    color: var(--gray-500);
}

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

.breadcrumbs li:last-child {
    color: var(--primary);
    font-weight: 500;
}

/* ---------- КНОПКИ ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    text-align: center;
    line-height: 1.3;
}

.btn:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    background: #e68a30;
    border-color: #e68a30;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

/* ---------- СЕКЦИИ ---------- */
section {
    margin: var(--section-gap) 0;
}

.section-highlight {
    background: var(--gray-100);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius);
    border-left: 4px solid var(--chinese-red);
}

/* Секция с серым фоном (для блока "Почему доверяют") */
.section-highlight h2::after {
    background: var(--chinese-red);
}

/* ---------- КАРТОЧКИ (УНИВЕРСАЛЬНАЯ СЕТКА) ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.card {
    background: var(--white);
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.card h3 {
    color: var(--primary);
}

/* Карточка "featured" */
.card.featured {
    background: linear-gradient(135deg, #fef7ee 0%, #fff3e0 100%);
    border: 2px solid var(--secondary);
    position: relative;
}

.card.featured::before {
    content: '★ Самый популярный';
    position: absolute;
    top: -12px;
    right: 16px;
    background: var(--secondary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-pill);
}

/* Карточка с китайским акцентом (красная верхняя граница) */
.card.card-chinese {
    border-top: 4px solid var(--chinese-red);
}

/* ---------- КАРТОЧКИ ТАРИФОВ ---------- */
.tariff-card {
    background: var(--white);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    text-align: center;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
}

.tariff-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.tariff-card.featured {
    border: 2px solid var(--chinese-red);
    background: #fff5f5;
}

.tariff-price {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--chinese-red);
    line-height: 1;
}

.tariff-card ul {
    text-align: left;
    padding-left: 1.2rem;
    list-style: disc;
    color: var(--text-dark);
    margin: 0.5rem 0;
}

.tariff-card ul li {
    margin-bottom: 0.4rem;
}

/* ---------- ФОТО-ГАЛЕРЕЯ ---------- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.photo-grid figure {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.photo-grid figure:hover {
    box-shadow: var(--shadow-hover);
    transform: scale(1.02);
}

.photo-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.photo-grid figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--white);
    text-align: center;
}

/* ---------- FAQ (раскрывающиеся вопросы) ---------- */
.faq-block details {
    margin-bottom: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    background: var(--white);
    transition: var(--transition);
}

.faq-block details[open] {
    box-shadow: var(--shadow-card);
    border-color: var(--primary-light);
}

.faq-block summary {
    font-weight: 700;
    cursor: pointer;
    color: var(--dark);
    font-size: 1.05rem;
    padding: 0.25rem 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-block summary::-webkit-details-marker {
    display: none;
}

.faq-block summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--chinese-red);
    transition: var(--transition);
}

.faq-block details[open] summary::after {
    content: '–';
    color: var(--secondary);
}

.faq-block p {
    margin-top: 0.75rem;
    color: var(--text-dark);
}

/* ---------- БАННЕР АКЦИИ ---------- */
.alert-banner {
    background: linear-gradient(135deg, var(--chinese-red) 0%, var(--chinese-red-light) 100%);
    color: var(--white);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius);
    text-align: center;
    margin: var(--section-gap) 0;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

/* Декоративный иероглиф на фоне */
.alert-banner::before {
    content: '中文';
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
    line-height: 1;
}

.alert-banner h2 {
    color: var(--white);
    position: relative;
    z-index: 1;
}

.alert-banner h2::after {
    background: var(--chinese-gold);
    margin-left: auto;
    margin-right: auto;
}

.alert-banner .btn {
    background: var(--white);
    color: var(--chinese-red);
    border-color: var(--white);
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.alert-banner .btn:hover {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.alert-banner p {
    position: relative;
    z-index: 1;
}

/* ---------- КАРТА ---------- */
.map-container {
    width: 100%;
    height: clamp(250px, 40vw, 400px);
    background: var(--gray-200);
    border-radius: var(--radius);
    margin: 1.5rem 0;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ---------- СЕРТИФИКАТЫ ---------- */
.certificates-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.certificate-placeholder {
    width: 160px;
    height: 220px;
    background: var(--gray-100);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
    transition: var(--transition);
}

.certificate-placeholder:hover {
    border-color: var(--chinese-red);
    color: var(--chinese-red);
}

/* ---------- ФОРМА ЗАЯВКИ ---------- */
.contact-form {
    max-width: 460px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-pill);
    border: 2px solid var(--gray-200);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(255, 158, 64, 0.15);
}

.contact-form .privacy-note {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 0.5rem;
}

/* ---------- БЛОК КОНТАКТОВ (первый экран) ---------- */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.contact-info p {
    margin-bottom: 0.25rem;
}

.contact-info a {
    color: var(--primary);
    font-weight: 700;
}

/* ---------- УТИЛИТЫ ---------- */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Плавное появление */
.fade-in {
    animation: var(--fade-in);
}

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

/* ---------- КНОПКА "НАВЕРХ" ---------- */
.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--chinese-red);
    color: var(--white);
    border: none;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top-btn:hover {
    background: var(--chinese-red-light);
    transform: translateY(-2px);
}

/* ---------- СООБЩЕНИЯ ФОРМЫ ---------- */
.form-message {
    text-align: center;
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    font-weight: 600;
    animation: fadeIn 0.4s ease;
}

.form-message.success {
    color: #2e7d32;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.form-message.error {
    color: #c0392b;
    background: #fdecea;
    border: 1px solid #f5c6cb;
}

/* ---------- ОШИБКА ПОЛЯ ---------- */
.field-error {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

/* ---------- КАРТОЧКА ПЕРЕЛИНКОВКИ ---------- */
.crosslink-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    color: inherit;
}

.crosslink-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--secondary);
    color: inherit;
}

.crosslink-card h3 {
    color: var(--primary);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.crosslink-card .crosslink-cta {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: var(--secondary);
    color: var(--white);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: auto;
}

/* ---------- АДАПТИВНОСТЬ (РЕЗИНА) ---------- */

/* Планшеты (≤ 768px) */
@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .card-grid,
    .photo-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .card.featured::before {
        top: -10px;
        right: 8px;
        font-size: 0.7rem;
        padding: 0.2rem 0.8rem;
    }

    .alert-banner::before {
        font-size: 5rem;
        top: -10px;
        right: -5px;
    }

    .crosslink-card {
        padding: 1.5rem 1rem;
    }
}

/* Телефоны (≤ 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    h2::after {
        width: 40px;
        height: 2px;
    }

    h3 {
        font-size: 1.1rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .alert-banner {
        border-radius: var(--radius-sm);
    }

    .alert-banner::before {
        font-size: 3.5rem;
    }

    .faq-block summary {
        font-size: 0.95rem;
    }

    .photo-grid img {
        height: 180px;
    }

    .scroll-top-btn {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .crosslink-card {
        padding: 1.25rem 1rem;
    }
}

/* Большие экраны (> 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

/* Предпочтение уменьшенной анимации (доступность) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===============================
   Footer
=============================== */
footer {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: #e2e8f0;
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.footer-info {
background: rgba(255,255,255,0.03); 
padding: 20px 12px; 
border-radius: 12px;
}

.footer-info p {
    color: #cbd5e0;
    line-height: 1.6;
    font-size: 1.1rem;
    max-width: 300px;
}

/* Стили для блоков филиалов */
.footer-branch {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--secondary);
    backdrop-filter: blur(10px);
}

.footer-branch h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-branch h3 i {
    color: var(--secondary);
    font-size: 1.2rem;
}

.branch-contacts p {
    margin-bottom: 12px;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    line-height: 1.5;
}

.branch-contacts i {
    color: var(--secondary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.branch-contacts a {
    color: #e2e8f0;
    transition: var(--transition);
    text-decoration: none;
}

.branch-contacts a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Соцсети для каждого филиала */
.branch-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.branch-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--secondary); /* Иконки акцентного цвета */
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none; /* Убираем подчеркивание */
    position: relative;
}

.branch-social a:hover {
    background: transparent; /* Прозрачный фон при наведении */
    color: var(--secondary); /* Сохраняем акцентный цвет */
    transform: translateY(-2px);
    box-shadow: 
        0 5px 15px rgba(255, 193, 7, 0.3),
        0 0 0 2px var(--secondary); /* Акцентная обводка */
}

.branch-social a:hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: var(--secondary);
    opacity: 0.1;
    z-index: -1;
}

/* Альтернативный вариант с glow эффектом */
.branch-social a.alternative:hover {
    background: transparent;
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px rgba(255, 193, 7, 0.4),
        inset 0 0 0 1px var(--secondary);
}

/* Вариант с pulsating glow */
.branch-social a.glow:hover {
    animation: socialGlow 1.5s ease-in-out infinite alternate;
    background: transparent;
    color: var(--secondary);
}

.max-logo {
  width: 24px; /* Настройте под нужный размер */
  height: 24px;
  object-fit: contain; /* Сохраняет пропорции */
  vertical-align: middle;
}

.custom-max-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


@keyframes socialGlow {
    from {
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.2),
                   0 0 0 1px var(--secondary);
    }
    to {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.6),
                   0 0 0 2px var(--secondary);
    }
}

/* Убираем стандартное подчеркивание для всех ссылок в футере */
.branch-social a,
.branch-social a:hover,
.branch-social a:focus {
    text-decoration: none !important;
}

/* Дополнительно: улучшаем доступность */
.branch-social a:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* Планшеты - 2 колонки */
@media (max-width: 1100px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки */
        gap: 25px;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* 1 колонка */
        gap: 25px;
    }

    .branch-social a {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .branch-social a:hover {
        transform: translateY(-1px);
        box-shadow: 
            0 3px 10px rgba(255, 193, 7, 0.25),
            0 0 0 1px var(--secondary);
    }
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.95rem;
    color: #a0aec0;
}

/* Адаптивность */
@media (max-width: 768px) {
    footer {
        padding: 40px 0 20px;
    }
    
    .footer-container {
        gap: 25px;
        grid-template-columns: 1fr;
    }
    
    .footer-branch {
        padding: 20px;
    }
    
    .branch-social a {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
}

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

.footer-branch {
    animation: fadeInUp 0.6s ease-out;
}

.footer-branch:nth-child(2) {
    animation-delay: 0.1s;
}

.footer-branch:nth-child(3) {
    animation-delay: 0.2s;
}

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