/* ============================================
ПОДКЛЮЧЕНИЕ ШРИФТОВ (САМОХОСТИНГ)
============================================ */
@font-face {
    font-family: 'Seymour One';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    /* Путь ../ выходит из папки css и заходит в папку fonts */
    src: url('../fonts/seymour-one.woff2') format('woff2'),
         url('../fonts/seymour-one.woff') format('woff');
}

/* ============================================
ТЕКСТОВЫЕ СТРАНИЦЫ — text-page.css
============================================ */

/* ============================================
ЛОГОТИП — яркие цвета на белом фоне
============================================ */

/* Базовый стиль логотипа */
.site-logo .logo-link svg {
    width: 8.5rem;
    max-width: 40%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    
    /* ❌ Убираем старый фильтр */
    filter: none !important;
    
    /* 🎨 Яркий цвет по умолчанию (виден на белом) */
    color: #ff00ff !important;
    fill: currentColor !important;
    
    /* 🔄 Плавный переход между состояниями */
    transition: color 0.2s ease, fill 0.2s ease;
}

/* 🖱️ При наведении */
.site-logo .logo-link:hover svg {
    color: #ff69b4 !important;
    fill: currentColor !important;
    filter: none !important;
}

/* 👆 При нажатии (активное состояние) */
.site-logo .logo-link:active svg {
    color: #ffb6c1 !important;
    fill: currentColor !important;
    filter: none !important;
}

/* ⌨️ Для доступности: фокус с клавиатуры */
.site-logo .logo-link:focus svg {
    color: #ffb6c1 !important;
    fill: currentColor !important;
    outline: none;
}

/* Контейнер текстовой страницы */
.text-page {
    padding-top: 3rem;
    padding-bottom: 3rem;
    align-items: flex-start;
}

.text-container {
    max-width: 900px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

/* Ссылка «Назад» */
.back-link {
    display: inline-block;
    color: var(--color-purple-dark);
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
    font-weight: 600;
}

.back-link:hover {
    color: var(--color-pink-bright);
    transform: translateX(-5px);
}

/* Заголовок H1 */
.text-h1 {
    font-family: 'Seymour One', sans-serif;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--color-purple-dark) 0%, var(--color-pink-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Контент */
.text-content {
    color: #333;
    line-height: 1.8;
}

.text-section {
    margin-bottom: 2.5rem;
}

.text-section h2 {
    font-family: 'Seymour One', sans-serif;
    font-size: 1.5rem;
    color: var(--color-purple-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-lavender);
}

.text-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.text-content ul,
.text-content ol {
    list-style: none;
    margin: 1rem 0 1rem 2rem;
    padding-left: 0;
}

.text-content li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.text-content li::before {
    content: '•';
    color: var(--color-pink-bright);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.text-content a {
    color: var(--color-purple-dark);
    text-decoration: none;
    transition: var(--transition-smooth);
    border-bottom: 1px dashed var(--color-pink-bright);
}

.text-content a:hover {
    color: var(--color-pink-bright);
    border-bottom-style: solid;
}

/* Блок контактов/призыва */
.text-cta {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-lavender) 0%, rgba(255, 182, 193, 0.3) 100%);
    border-radius: 15px;
    text-align: center;
}

.text-cta p {
    margin: 0.5rem 0;
}

.text-cta a {
    color: var(--color-purple-dark);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.text-cta a:hover {
    color: var(--color-pink-bright);
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .text-page {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .text-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    .text-h1 {
        font-size: 1.8rem;
    }
    .text-section h2 {
        font-size: 1.2rem;
    }
    .text-content {
        font-size: 0.95rem;
    }
    .text-content ul,
    .text-content ol {
        margin-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .text-container {
        padding: 1.5rem 1rem;
    }
    .text-h1 {
        font-size: 1.5rem;
    }
    .text-section h2 {
        font-size: 1.1rem;
    }
    .text-content {
        font-size: 0.9rem;
        text-align: left;
    }
}

/* ============================================
ФУТЕР С НАВИГАЦИЕЙ
============================================ */
.site-footer {
    margin-top: 3rem;
    padding: 3rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Левая часть — навигация */
.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-group-title {
    font-family: 'Seymour One', sans-serif;
    color: white;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-pink-bright);
}

.footer-group a {
    color: #D0D0D0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    padding: 0.2rem 0;
    display: inline-block; /* Добавляем */
}

.footer-group a:hover {
    color: white;
    text-decoration: underline;
    transform: translateX(5px); /* Вместо padding-left */
}

/* Правая часть — информация */

.footer-info {
    align-self: end; /* ← Добавлено: прижимает блок к низу */
    text-align: right;
    color: #D0D0D0;
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-info p {
    margin: 0.5rem 0;
}

.footer-info strong {
    color: white;
}

.footer-info a {
    color: #D0D0D0;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-info a:hover {
    color: var(--color-pink-bright);
    text-decoration: underline;
}

/* Ссылка управления куки */
.policy-link-container {
    margin-top: 2rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .site-footer {
        padding: 2rem 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-group-title {
        font-size: 0.9rem;
    }
    
    .footer-group a {
        font-size: 0.85rem;
    }
    
    .footer-info {
        font-size: 0.8rem;
    }
}

/* Рекламный блок */
.footer-ad-banner {
    position: relative;
    display: inline-block; /* Чтобы блок был по размеру баннера */
    margin: 2rem 0 2rem auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    text-align: center;
}

.footer-ad-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Запрети сжатие баннеров */
.footer-ad-banner a {
    flex-shrink: 0;
    display: block;
    line-height: 0;
}

/* Размеры */
.banner-300 { max-width: 300px; min-height: 300px; }
.banner-600 { max-width: 620px; min-height: 300px; }
.banner-728 { max-width: 728px; min-height: 90px; }
.banner-480 { max-width: 480px; min-height: 320px; }

/* Адаптивность */
@media (max-width: 768px) {
    .footer-ad-banner {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        max-width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
    }
    .footer-ad-banner img {
        width: 100%;
        max-width: 320px; /* ограничение, чтобы не были гигантскими */
        height: auto;
    }
    .banner-600, .banner-728, .banner-480 {
        max-width: 100%;
    }
}

.ad-label {
    display: block;
    text-align: right;
    font-size: 9px;
    color: rgba(255,255,255,0.7);
    position: absolute;
    bottom: -10px;
    right: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .ad-label {
        position: static;
        text-align: center;
        margin-top: 5px;
    }
}