/* Base styles - Foundation CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================================================================
   ШРИФТЫ
   ================================================================== */

/* Cremona Sans - шрифт для ГРОМКИХ заголовков */
@font-face {
    font-family: 'Cremona Sans';
    src: url('assets/fonts/CremonaSans.woff2') format('woff2'),
         url('assets/fonts/CremonaSans.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Lora - шрифт для заглавных элементов */
@font-face {
    font-family: 'Lora';
    src: url('assets/fonts/Lora-Regular.woff2') format('woff2'),
         url('assets/fonts/Lora-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lora';
    src: url('assets/fonts/Lora-Bold.woff2') format('woff2'),
         url('assets/fonts/Lora-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Manrope - шрифт для строчного текста */
@font-face {
    font-family: 'Manrope';
    src: url('assets/fonts/Manrope-Regular.woff2') format('woff2'),
         url('assets/fonts/Manrope-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('assets/fonts/Manrope-Medium.woff2') format('woff2'),
         url('assets/fonts/Manrope-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('assets/fonts/Manrope-Bold.woff2') format('woff2'),
         url('assets/fonts/Manrope-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


/* ==================================================================
   ОСНОВНЫЕ СТИЛИ
   ================================================================== */

body {
    font-family: var(--font-body), var(--font-fallback);
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

section {
    position: relative;
}

a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================================================================
   ТИПОГРАФИКА
   ================================================================== */

/* Заголовки в Lora */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Громкие заголовки с Cremona Sans */
.loud-headline,
.hero-headline,
.section-highlight,
.cta-headline,
.featured-headline {
    font-family: var(--font-headlines);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Элементы, которые используют Lora */
.partnership-title, 
.results-title, 
.slider-title,
.section-title {
    font-family: var(--font-headings);
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Размеры заголовков */
h1 {
    font-size: clamp(36px, 8vw, 64px);
}

h2 {
    font-size: clamp(28px, 6vw, 42px);
}

h3 {
    font-size: clamp(20px, 4vw, 28px);
}

h4 {
    font-size: clamp(18px, 3vw, 24px);
}

h5 {
    font-size: clamp(16px, 2.5vw, 20px);
}

h6 {
    font-size: clamp(14px, 2vw, 18px);
}

/* Текст в Manrope */
p, 
.body-text,
.description,
.paragraph {
    font-family: var(--font-body);
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Специальные текстовые стили */
.subtitle,
.caption,
.meta-text {
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.hero-tagline,
.slider-subtitle,
.results-description {
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Акценты */
.accent-text,
.btn,
.link-text {
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ==================================================================
   КОНТЕЙНЕРЫ И УТИЛИТЫ
   ================================================================== */

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Flex утилиты */
.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.space-between {
    justify-content: space-between;
}

/* Grid утилиты */
.grid {
    display: grid;
}

/* ==================================================================
   КОМПОНЕНТЫ
   ================================================================== */

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-radius: 0;
    text-transform: uppercase;
}

/* ==================================================================
   СПЕЦИФИЧЕСКИЕ ТИПОГРАФИЧЕСКИЕ КЛАССЫ
   ================================================================== */

/* Класс для ГРОМКИХ заголовков в Cremona Sans */
.loud-headline {
    text-transform: uppercase;
    font-size: clamp(32px, 7vw, 58px);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* Класс для заголовков в Lora */
.heading-lora {
    font-family: var(--font-headings);
}

/* Класс для текста в Manrope */
.text-manrope {
    font-family: var(--font-body);
}

/* ==================================================================
   ЦВЕТА
   ================================================================== */

.bg-black {
    background-color: #000;
}

.bg-white {
    background-color: #fff;
}

.text-white {
    color: #fff;
}

.text-black {
    color: #000;
}

/* ==================================================================
   АДАПТИВНОСТЬ
   ================================================================== */

@media screen and (max-width: 1200px) {
    .container {
        max-width: 1024px;
    }
}

@media screen and (max-width: 768px) {
    body {
        line-height: 1.5;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .loud-headline {
        font-size: clamp(28px, 6vw, 42px);
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Мобильная типографика */
    p {
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
    }
}