/* ============================================
ПОДКЛЮЧЕНИЕ ШРИФТОВ (САМОХОСТИНГ)
============================================ */
@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');
}

/* ============================================
CSS VARIABLES & RESET
============================================ */
:root {
    --color-purple-dark: #8b00ff;
    --color-purple-mid: #b026ff;
    --color-pink-bright: #ff00ff;
    --color-pink-soft: #ff69b4;
    --color-pink-light: #ffb6c1;
    --color-lavender: #e6e6fa;
    --color-magenta: #da70d6;
    --container-max-width: 1400px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}
/* ============================================
ЛОГОТИП
============================================ */
.site-logo {
    width: 100%;
    margin-bottom: 1.25rem;
    text-align: center;
}

.site-logo .logo-link svg {
    width: 8.5rem;
    max-width: 40%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* ============================================
ГРАДИЕНТНЫЙ ФОН
============================================ */
.gradient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #b026ff 0%, #ff00ff 50%, #ff69b4 100%);
    z-index: -1;
    animation: fadeInBg 0.8s ease-in-out;
}

.gradient-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(176, 38, 255, 0.8) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(255, 0, 255, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse 70% 60% at 40% 80%, rgba(255, 105, 180, 0.7) 0%, transparent 50%);
    z-index: 1;
}

.gradient-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(139, 0, 255, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(255, 20, 147, 0.5) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(218, 112, 214, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 70% 10%, rgba(255, 182, 193, 0.4) 0%, transparent 35%),
        radial-gradient(circle at 25% 85%, rgba(230, 230, 250, 0.3) 0%, transparent 40%);
    z-index: 2;
    filter: blur(60px);
}

.gradient-background .texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    z-index: 3;
    pointer-events: none;
    opacity: 0.4;
}

/* ============================================
КОНТЕНТ
============================================ */
.content-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.generator-container {
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 3rem 2rem;
}

.title {
    font-size: 2.7rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease;
}

/* ============================================
КНОПКА ГЕНЕРАЦИИ
============================================ */
.generate-btn {
    background: linear-gradient(135deg, #ff00ff 0%, #ff69b4 100%);
    border: none;
    padding: 1.5rem 4rem;
    font-family: 'Seymour One', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 3px;
    font-weight: bold;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(255, 0, 255, 0.4);
    transition: var(--transition-smooth);
    animation: pulse 2s infinite, fadeInUp 0.8s ease 0.2s both;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.generate-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(255, 0, 255, 0.6);
}

.generate-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.generate-btn:hover::before {
    left: 100%;
}

/* ============================================
ИНДИКАТОР ЗАГРУЗКИ
============================================ */
.loading-spinner {
    margin: 3rem 0;
    animation: fadeIn 0.5s ease;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #ff00ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner p {
    color: white;
    font-size: 1.1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ============================================
КОНТЕЙНЕР ИЗОБРАЖЕНИЯ
============================================ */
.image-container {
    margin-top: 3rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: fadeIn 0.8s ease;
}

.placeholder-text {
    color: rgba(255,255,255,0.6);
    font-size: 1.2rem;
}

.image-container img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: fadeInUp 0.5s ease;
}

.download-btn {
    margin-top: 2rem;
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    padding: 1rem 2rem;
    font-size: 1rem;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.download-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

/* ============================================
АНИМАЦИИ
============================================ */
@keyframes pulse {
    0%, 100% { box-shadow: 0 10px 40px rgba(255, 0, 255, 0.4); }
    50% { box-shadow: 0 10px 60px rgba(255, 0, 255, 0.7); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
АДАПТИВНОСТЬ
============================================ */
@media (max-width: 1024px) {
    .gradient-background::before {
        background: 
            radial-gradient(ellipse 70% 45% at 25% 45%, rgba(176, 38, 255, 0.8) 0%, transparent 50%),
            radial-gradient(ellipse 55% 35% at 75% 25%, rgba(255, 0, 255, 0.6) 0%, transparent 50%),
            radial-gradient(ellipse 65% 55% at 45% 75%, rgba(255, 105, 180, 0.7) 0%, transparent 50%);
    }
    .gradient-background::after { filter: blur(50px); }
}

@media (max-width: 768px) {
    .gradient-background::before {
        background: 
            radial-gradient(ellipse 90% 50% at 50% 30%, rgba(176, 38, 255, 0.9) 0%, transparent 50%),
            radial-gradient(ellipse 70% 40% at 20% 70%, rgba(255, 0, 255, 0.7) 0%, transparent 50%),
            radial-gradient(ellipse 60% 45% at 80% 60%, rgba(255, 105, 180, 0.8) 0%, transparent 50%);
    }
    .gradient-background::after {
        background: 
            radial-gradient(circle at 50% 20%, rgba(139, 0, 255, 0.5) 0%, transparent 40%),
            radial-gradient(circle at 20% 80%, rgba(255, 20, 147, 0.6) 0%, transparent 45%),
            radial-gradient(circle at 80% 50%, rgba(218, 112, 214, 0.4) 0%, transparent 50%);
        filter: blur(40px);
    }
    .content-wrapper { padding: 1.5rem; }
    .title { font-size: 2rem; }
    .subtitle { font-size: 1rem; }
    .generate-btn { padding: 1.2rem 3rem; font-size: 1.2rem; }
    .image-container { min-height: 300px; }
}

@media (max-width: 375px) {
    .gradient-background::before {
        background: 
            radial-gradient(ellipse 100% 60% at 50% 40%, rgba(176, 38, 255, 0.9) 0%, transparent 50%),
            radial-gradient(ellipse 80% 50% at 30% 80%, rgba(255, 0, 255, 0.8) 0%, transparent 50%);
    }
    .title { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .gradient-background { background: white !important; }
    .gradient-background::before,
    .gradient-background::after,
    .gradient-background .texture-overlay { display: none; }
}

/* ============================================
ШРИФТ SEYMOUR ONE
============================================ */

body {
    font-family: 'Seymour One', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.title {
    font-family: 'Seymour One', sans-serif;
}

/* ============================================
ССЫЛКА НА ПОЛИТИКУ КОНФИДЕНЦИАЛЬНОСТИ
============================================ */

.policy-link-container {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1rem;
}

.policy-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.policy-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ============================================
ФУТЕР С НАВИГАЦИЕЙ
============================================ */
.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-disclaimer {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--color-pink-bright);
    font-size: 0.75rem;
    line-height: 1.5;
    color: #bbb;
    font-style: italic;
}

.footer-disclaimer strong {
    color: white;
    font-style: normal;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

/* Рекламный блок */
.footer-ad-banner {
    position: relative;
    display: inline-block;
    margin: 2rem 0 2rem auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-ad-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Размеры */
.banner-300 { max-width: 300px; min-height: 300px; }
.banner-600 { max-width: 600px; 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 { max-width: 100%; }
    .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;
}

.ad-label-1 {
    display: block;
    text-align: center;
    font-size: 9px;
    color: rgba(255,255,255,0.7);
    bottom: 5px; /* Сдвиг вниз за пределы баннера */
    right: 0;
    white-space: nowrap;
}

@keyframes fadeInBg { from { opacity: 0; } to { opacity: 1; } }