/* Импорт современного шрифта Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Переменные для типографики */
:root {
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
}

/* Красивые стили для всех заголовков на страницах */
h1:not(footer h1):not(header h1):not(.footer h1):not(.header h1),
h2:not(footer h2):not(header h2):not(.footer h2):not(.header h2),
h3:not(footer h3):not(header h3):not(.footer h3):not(.header h3),
h4:not(footer h4):not(header h4):not(.footer h4):not(.header h4),
h5:not(footer h5):not(header h5):not(.footer h5):not(.header h5),
h6:not(footer h6):not(header h6):not(.footer h6):not(.header h6) {
    font-family: var(--font-family-primary);
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Стили для H1 заголовков */
h1:not(footer h1):not(header h1):not(.footer h1):not(.header h1) {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* Стили для H2 заголовков */
h2:not(footer h2):not(header h2):not(.footer h2):not(.header h2) {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
}

/* Стили для H3 заголовков */
h3:not(footer h3):not(header h3):not(.footer h3):not(.header h3) {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

/* Стили для H4 заголовков */
h4:not(footer h4):not(header h4):not(.footer h4):not(.header h4) {
    font-size: clamp(18px, 2.5vw, 20px);
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.5rem;
}

/* Стили для H5 заголовков */
h5:not(footer h5):not(header h5):not(.footer h5):not(.header h5) {
    font-size: clamp(16px, 2vw, 18px);
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.5rem;
}

/* Стили для H6 заголовков */
h6:not(footer h6):not(header h6):not(.footer h6):not(.header h6) {
    font-size: clamp(14px, 1.8vw, 16px);
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.5rem;
}

/* Специальные стили для страницы about.html */
.about-main-title-container {
    text-align: center;
    margin-bottom: 150px;
}

.about-main-title {
    font-size: clamp(32px, 6vw, 38px);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--text-primary);
    margin-top: 200px;
    font-family: var(--font-family-primary);
    letter-spacing: -0.02em;
}

.about-section-title {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 20px;
    color: var(--text-primary);
    font-family: var(--font-family-primary);
    letter-spacing: -0.015em;
    line-height: 1.2;
}

/* Специальные стили для заголовков в секциях */
.feature-content h2,
.page-section h2,
.info-block h2,
.card h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

/* Стили для заголовков в модальных окнах */
.modal h3,
.auth-success h3,
.reset-success h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    h1:not(footer h1):not(header h1):not(.footer h1):not(.header h1) {
        font-size: clamp(28px, 8vw, 36px);
        margin-bottom: 1rem;
    }
    
    h2:not(footer h2):not(header h2):not(.footer h2):not(.header h2) {
        font-size: clamp(20px, 6vw, 24px);
        margin-bottom: 0.75rem;
    }
    
    .about-main-title {
        font-size: clamp(24px, 8vw, 32px);
        margin-top: 100px;
    }
    
    .about-section-title {
        font-size: clamp(18px, 5vw, 20px);
    }
}

/* Темная тема */
[data-theme="dark"] h1:not(footer h1):not(header h1):not(.footer h1):not(.header h1),
[data-theme="dark"] h2:not(footer h2):not(header h2):not(.footer h2):not(.header h2),
[data-theme="dark"] h3:not(footer h3):not(header h3):not(.footer h3):not(.header h3),
[data-theme="dark"] h4:not(footer h4):not(header h4):not(.footer h4):not(.header h4),
[data-theme="dark"] h5:not(footer h5):not(header h5):not(.footer h5):not(.header h5),
[data-theme="dark"] h6:not(footer h6):not(header h6):not(.footer h6):not(.header h6) {
    color: #ffffff;
}

/* Светлая тема */
[data-theme="light"] h1:not(footer h1):not(header h1):not(.footer h1):not(.header h1),
[data-theme="light"] h2:not(footer h2):not(header h2):not(.footer h2):not(.header h2),
[data-theme="light"] h3:not(footer h3):not(header h3):not(.footer h3):not(.header h3),
[data-theme="light"] h4:not(footer h4):not(header h4):not(.footer h4):not(.header h4),
[data-theme="light"] h5:not(footer h5):not(header h5):not(.footer h5):not(.header h5),
[data-theme="light"] h6:not(footer h6):not(header h6):not(.footer h6):not(.header h6) {
    color: #1a1a1a;
}
