/* --- 1. ПЕРЕМЕННЫЕ ЦВЕТОВОЙ ПАЛИТРЫ --- */
:root {
    --bg-primary: #FBFBFD;
    --bg-secondary: #F4F4F7;
    --label-primary: #1D1D1F; 
    --label-secondary: #86868B;
    --accent-blue: #0071E3; /* Официальный системный синий Apple */
    --separator: #D2D2D7;
}

/* --- 2. БАЗОВЫЕ НАСТРОЙКИ --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-primary);
}

body {
    /* Приоритет системного шрифта Apple */
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--label-primary);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--label-secondary);
}

.legal-text:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* --- 3. ГИБКАЯ СЕТКА --- */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 4. ШАПКА (HEADER) --- */
.header {
    padding: 30px 0 10px 0;
    background-color: transparent;
}

.header .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo img {
    height: 45px;
    display: block;
}

/* --- 5. КНОПКИ В СТИЛЕ APPLE --- */

/* Общие свойства для всех кнопок */
.btn-primary, .btn-outline {
    display: inline-block;
    border-radius: 980px; /* Капсульная форма */
    font-size: 17px;
    line-height: 1.17648;
    font-weight: 400;
    letter-spacing: -0.022em; /* Фирменный кернинг Apple */
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Эффект нажатия для обеих кнопок */
.btn-primary:active, .btn-outline:active {
    transform: scale(0.97); 
}

/* Основная кнопка (Синяя) */
.btn-primary {
    padding: 12px 22px;
    background-color: var(--accent-blue);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #0077ED; /* Легкое осветление при наведении */
}

/* Вторичная кнопка (Контурная) */
.btn-outline {
    padding: 11px 21px; /* На 1px меньше из-за border */
    border: 1px solid var(--accent-blue);
    background-color: transparent;
    color: var(--accent-blue);
}

.btn-outline:hover {
    background-color: var(--accent-blue);
    color: #FFFFFF;
}

/* --- 6. ГЛАВНЫЙ ЭКРАН (HERO) --- */
.hero {
    padding: 40px 0 80px 0;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-content h1 {
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 600;
    color: var(--label-primary);
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 19px;
    color: var(--label-secondary);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.011em;
    margin-bottom: 40px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

/* --- 7. ПОДВАЛ (FOOTER) --- */
.footer {
    padding: 60px 0 30px 0;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--separator);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 16px;
    display: block;
}

.footer-brand p {
    font-size: 14px;
    color: var(--label-secondary);
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact p {
    font-size: 16px;
    font-weight: 500;
    color: var(--label-primary);
    margin-bottom: 16px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--separator);
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--label-secondary);
}

/* --- 8. АДАПТИВНОСТЬ --- */
@media (max-width: 992px) {
    .hero { padding: 40px 0 60px 0; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-image { max-width: 70%; }
    .footer-container { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 768px) {
    .header { padding: 20px 0 0 0; }
    .header .container { justify-content: center; }
    
    /* Корректировка типографики и отступов для телефонов */
    .hero-content h1 { 
        font-size: 32px; /* Уменьшен размер заголовка */
        margin-bottom: 8px; /* Сокращено расстояние до подзаголовка */
    }
    
    .hero-content p {
        font-size: 17px; /* Слегка уменьшен текст для пропорциональности */
        margin-bottom: 24px; /* Сокращено расстояние до кнопки */
    }
    
    .hero-image { max-width: 100%; margin-top: 20px; }
}