/* modern-main.css - современные стили для главной страницы приемной комиссии ВлГУ */

:root {
    --primary-color: #0055a2;
    --primary-dark: #004a8f;
    --primary-light: #0088cc;
    --secondary-color: #00a86b;
    --accent-color: #ff6b35;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --text-dark: #333333;
    --text-medium: #4c4c4c;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.16);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

/* Базовые стили */
body {
    font-family: "Open Sans", Tahoma, Geneva, sans-serif;
    color: var(--text-dark);
    background-color: var(--background-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Верхняя панель */
.top-bar {
    background-color: var(--primary-dark);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: white;
    transition: var(--transition);
}

.social-icon:hover {
    fill: var(--secondary-color);
    transform: scale(1.1);
}

/* Ссылки в верхней панели не должны менять цвет при наведении */
.top-bar a,
.top-bar a:hover {
    color: inherit;
    text-decoration: none;
}

/* Шапка */
.main-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 40px 0;
    text-align: center;
    box-shadow: var(--shadow-medium);
}

/* Гарантированный белый цвет текста в шапке */
.main-header,
.main-header a,
.logo-text h1,
.logo-text .tagline {
    color: white !important;
}

.logo-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    text-align: left;
}

.logo-gerb {
    max-width: 100px;
    height: auto;
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo-text .tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 100%;
    margin: 0;
}

/* Ссылка логотипа */
.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-link:hover {
    text-decoration: none;
}

/* Быстрые ссылки */
.quick-links {
    padding: 40px 0;
    background-color: var(--background-white);
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 8px auto 0;
    border-radius: 2px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    padding: 20px 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: block;
    color: inherit;
    text-decoration: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
    text-wrap: balance;
}

/* Специальные кнопки (ОВЗ и иностранные граждане) */
.special-buttons {
    padding: 25px 0;
    background-color: var(--background-light);
    text-align: center;
}

.special-buttons-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.special-btn {
    display: inline-flex;
    align-items: center;
    background: var(--background-white);
    border-radius: var(--border-radius);
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-light);
    border: 2px solid transparent;
    transition: var(--transition);
    flex: 1;
    min-width: 220px;
    max-width: 350px;
    justify-content: center;
}

.special-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
    color: var(--text-dark);
}

.special-btn-ovz {
    border-left: 4px solid var(--secondary-color);
}

.special-btn-foreign {
    border-left: 4px solid var(--accent-color);
}

.special-btn-apply {
    border-left: 4px solid #ff3366;
    background: linear-gradient(135deg, #ff3366, #ff6b35);
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

.special-btn-apply:hover {
    background: linear-gradient(135deg, #ff6b35, #ff3366);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.4);
    border-color: #ff3366;
    color: white;
}

.btn-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.btn-text {
    line-height: 1.3;
}

/* Обёртка для изменения порядка на десктопе */
.top-sections {
    display: flex;
    flex-direction: column;
}

/* На десктопе (ширина больше 768px) меняем порядок */
@media (min-width: 769px) {
    .top-sections {
        flex-direction: column;
    }
    .top-sections .special-buttons {
        order: 1;
        margin-bottom: 0;
    }
    .top-sections .quick-links {
        order: 2;
        margin-top: 0;
    }
}

/* Секция кнопки подачи заявления */
.apply-button-section {
    padding: 20px 0;
    background: linear-gradient(135deg, #0055a2, #0088cc);
    text-align: center;
    color: white;
}

.apply-button-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.apply-button-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.apply-button-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.apply-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ff3366, #ff6b35);
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.4);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.apply-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b35, #ff3366);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.apply-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 51, 102, 0.6);
    color: white;
}

.apply-button:hover::before {
    opacity: 1;
}

.apply-button-icon {
    font-size: 1.8rem;
    margin-right: 15px;
}

.apply-button-text {
    line-height: 1.3;
}

/* Контактный центр Минобрнауки */
.contact-center {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Компактный вариант (между заголовком и кнопкой) */
.contact-center.compact {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px;
    max-width: 700px;
}

.contact-center.compact .contact-center-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contact-center.compact .contact-center-items {
    gap: 8px;
}

.contact-center.compact .contact-center-item {
    font-size: 0.9rem;
    gap: 8px;
    line-height: 1.3;
}

.contact-center.compact .contact-center-label {
    min-width: 110px;
    font-weight: 400;
}

.contact-center.compact .contact-center-icon {
    width: 16px;
    height: 16px;
}

.contact-center-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    text-align: center;
}

.contact-center-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-center-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 1rem;
    line-height: 1.4;
}

.contact-center-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: currentColor;
    opacity: 0.9;
}

.contact-center-label {
    font-weight: 600;
    min-width: 140px;
    flex-shrink: 0;
}

.contact-center-value {
    flex-grow: 1;
    opacity: 0.95;
}

.contact-center-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
    transition: border-color 0.2s;
}

.contact-center-link:hover {
    border-bottom-color: white;
    text-decoration: none;
    color: inherit;
}

/* Адаптивность для контактного центра */
@media (max-width: 768px) {
    .contact-center {
        margin-top: 30px;
        padding: 15px;
    }
    .contact-center-title {
        font-size: 1.1rem;
    }
    .contact-center-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    .contact-center-label {
        min-width: 120px;
    }
    .contact-center-value {
        width: 100%;
        margin-left: 32px; /* отступ под иконку */
    }
}

/* Адаптивность для кнопок */
@media (max-width: 768px) {
    .special-buttons-grid {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .special-btn {
        min-width: 100%;
        max-width: 100%;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    .btn-icon {
        font-size: 1.3rem;
        margin-right: 8px;
    }
    .apply-button-section {
        padding: 30px 0;
    }
    .apply-button-title {
        font-size: 1.8rem;
    }
    .apply-button-subtitle {
        font-size: 1rem;
    }
    .apply-button {
        font-size: 1.2rem;
        padding: 16px 32px;
    }
}

/* Основной контент */
.main-content {
    padding: 40px 0;
    background-color: var(--background-white);
}

.content-grid {
    display: block; /* Убрали сетку, оставили одну колонку */
}

/* Объявления */
.announcements {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-light);
    max-width: 100%;
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.announcement-item {
    background: white;
    border-left: 4px solid var(--accent-color);
    border-radius: var(--border-radius-sm);
    padding: 15px;
    transition: var(--transition);
}

.announcement-item:hover {
    background: #f9f9f9;
    border-left-color: var(--primary-color);
}

.announcement-item h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.announcement-item h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.announcement-item h3 a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.announcement-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.btn-secondary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius-sm);
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    border: 2px solid transparent;
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
}

/* Табы "Пять шагов к успеху" */
/* Футер */
.main-footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: white;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.footer-column p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-column a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
    text-decoration: none;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

/* Убираем подчеркивание у всех ссылок при наведении */
a:hover {
    text-decoration: none !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

.hotline {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.copyright a {
    color: #cce7ff;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.footer-icon {
    width: 32px;
    height: 32px;
    fill: white;
    transition: var(--transition);
}

.footer-icon:hover {
    fill: var(--secondary-color);
    transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .logo-text h1 {
        font-size: 2rem;
    }
    .logo-text .tagline {
        font-size: 1rem;
    }
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .top-bar .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .contact-info {
        justify-content: center;
    }
    /* Оптимизация производительности для мобильных */
    .card {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    .special-btn:hover {
        transform: none;
    }
    .social-icon:hover,
    .footer-icon:hover {
        transform: none;
    }
    html {
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    /* Делаем шапку компактнее: логотип над текстом */
    .logo-section {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        text-align: center !important;
    }

    .logo-gerb {
        max-width: 80px !important;
    }

    .logo-text h1 {
        font-size: 1.8rem !important;
    }

    .logo-text .tagline {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1.7rem;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .content-grid {
        gap: 30px;
    }
    .announcements {
        padding: 20px;
    }
}

/* Hero Section с ключевыми показателями */
.hero-stats {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 40px 0;
    /*margin-bottom: 30px;*/
    box-shadow: var(--shadow-medium);
}

.hotline-banner {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 20px 25px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hotline-icon {
    width: 3rem;
    height: 3rem;
    margin-right: 25px;
    flex-shrink: 0;
    fill: currentColor;
}

.hotline-content {
    flex-grow: 1;
}

.hotline-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.hotline-phone {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.hotline-phone a {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.2s;
}

.hotline-phone a:hover {
    border-bottom-color: white;
}

.hotline-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

/* Компактный вариант горячей линии (одна строка) */
.hotline-banner.compact {
    padding: 12px 20px;
    margin-top: 20px;
    margin-bottom: 0px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hotline-banner.compact .hotline-content,
.hotline-banner.compact .hotline-title,
.hotline-banner.compact .hotline-desc {
    display: none;
}

.hotline-banner.compact .hotline-icon {
    width: 1.6rem;
    height: 1.6rem;
    margin-right: 10px;
    flex-shrink: 0;
    fill: currentColor;
}

.hotline-banner.compact .hotline-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    flex-shrink: 1;
}

.hotline-banner.compact .hotline-phone {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0;
    flex-shrink: 0;
}

.hotline-banner.compact .hotline-phone a {
    border-bottom: 1px dotted rgba(255, 255, 255, 0.6);
}

.hotline-banner.compact .hotline-period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    flex-shrink: 1;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    padding: 25px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

a.stat-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
}

.stat-icon--book {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M18 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zM6 4h5v8l-2.5-1.5L6 12V4z'/%3E%3C/svg%3E");
}

.stat-icon--money {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M9%2014H12%22%20stroke%3D%22%23267FBD%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M10%2012V8.2C10%208.0142%2010%207.9213%2010.0123%207.84357C10.0801%207.41567%2010.4157%207.08008%2010.8436%207.01231C10.9213%207%2011.0142%207%2011.2%207H13.5C14.8807%207%2016%208.11929%2016%209.5C16%2010.8807%2014.8807%2012%2013.5%2012H10ZM10%2012V17M10%2012H9%22%20stroke%3D%22%23267FBD%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");
}

.stat-icon--building {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z'/%3E%3C/svg%3E");
}

.stat-icon--house {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5z'/%3E%3C/svg%3E");
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.stat-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
    max-width: 200px;
    text-wrap: balance;
}

/* Адаптивность для Hero Stats */
@media (max-width: 768px) {
    .hotline-banner {
        /* flex-direction и text-align удалены, чтобы не ломать компактный баннер */
        padding: 20px;
        margin-bottom: 30px;
    }
    .hotline-icon {
        margin-right: 0;
        margin-bottom: 15px;
        width: 2.5rem;
        height: 2.5rem;
    }
    .hotline-title {
        font-size: 1.2rem;
    }
    .hotline-phone {
        font-size: 1.8rem;
    }
    .hotline-desc {
        font-size: 0.95rem;
    }
    .hotline-banner.compact {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        text-align: left;
        padding: 12px 20px;
        margin-bottom: 0;
    }
    .hotline-banner.compact .hotline-icon {
        margin-right: 10px;
        margin-bottom: 0;
        width: 1.6rem;
        height: 1.6rem;
    }
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .stat-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .stat-label {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hotline-banner {
        /* padding и margin-bottom удалены, чтобы не ломать компактный баннер */
    }
    .hotline-icon {
        width: 2rem;
        height: 2rem;
        margin-bottom: 10px;
    }
    .hotline-title {
        font-size: 1.1rem;
    }
    .hotline-phone {
        font-size: 1.6rem;
    }
    .hotline-desc {
        font-size: 0.9rem;
    }
    .hotline-banner.compact {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        text-align: left;
        padding: 10px 12px;
        margin-bottom: 0;
        gap: 5px;
    }
    .hotline-banner.compact .hotline-icon {
        margin-right: 8px;
        margin-bottom: 0;
        width: 1.4rem;
        height: 1.4rem;
    }
    .hotline-banner.compact .hotline-label {
        font-size: 1rem;
    }
    .hotline-banner.compact .hotline-phone {
        font-size: 1.2rem;
    }
    .hotline-banner.compact .hotline-period {
        font-size: 0.9rem;
    }
    .hero-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .hero-stats {
        padding: 30px 0;
    }
    .stat-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    .stat-number {
        font-size: 2.2rem;
    }
}

/* Скрытый элемент для доступности */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Блоки вариантов оплаты (образовательный кредит и материнский капитал) */
.payment-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.payment-card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.payment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
}

.payment-card-credit::before {
    background: linear-gradient(to bottom, #00a86b, #0088cc);
}

.payment-card-maternity::before {
    background: linear-gradient(to bottom, #ff6b35, #ffa500);
}

.payment-icon {
    font-size: 2.8rem;
    margin-bottom: 15px;
    display: block;
}

.payment-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.payment-desc {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin-bottom: 20px;
}

.payment-link {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.payment-link:hover {
    background: var(--primary-dark);
    color: white;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .payment-options-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .payment-card {
        padding: 20px;
    }
    .payment-icon {
        font-size: 2.5rem;
    }
}

/* Стили для блока часто задаваемых вопросов (FAQ) */
.faq-section {
    padding: 60px 0;
    background-color: var(--background-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.faq-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.cd-faq {
    max-width: 100%;
    margin: 0 auto;
}

.cd-faq-group {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cd-faq-group > li {
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.cd-faq-group > li:hover {
    /* без тени */
}

.cd-faq-trigger {
    display: block;
    position: relative;
    padding: 18px 60px 18px 0;
    background-color: transparent;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.cd-faq-trigger::after {
    content: '';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transition: var(--transition);
}

.cd-faq-trigger:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.cd-faq-content {
    display: none;
    padding: 0 0 20px;
    background-color: transparent;
    color: var(--text-medium);
    line-height: 1.6;
    text-wrap: balance;
}

.cd-faq-content p {
    margin-top: 0;
    margin-bottom: 1em;
}

.cd-faq-content ul {
    padding-left: 20px;
    margin-bottom: 1em;
    text-wrap: balance;
}

.cd-faq-content li {
    margin-bottom: 0.5em;
}

.cd-faq-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cd-faq-content a:hover {
    color: var(--primary-dark);
}

/* Активный элемент (когда открыт) */
.cd-faq-group > li.active .cd-faq-trigger::after {
    transform: translateY(-50%) rotate(-135deg);
}

.cd-faq-group > li.active .cd-faq-content {
    display: block;
}

.faq-more {
    margin-top: 40px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-medium);
}

.faq-more a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.faq-more a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .faq-section {
        padding: 40px 0;
    }
    .faq-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .cd-faq-trigger {
        padding: 16px 40px 16px 0;
        font-size: 1rem;
    }
    .cd-faq-content {
        padding: 0 0 18px;
    }
}