/* ============================================================
   Unfortuna — Landing Page
   ============================================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent: #ED2939;
    --bg: #0f0f13;
    --bg-card: #1a1a22;
    --text: #e4e4e8;
    --text-muted: #8888a0;
    --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Навигация === */
.nav {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav__logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.nav__link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color .2s;
}
.nav__link:hover { color: var(--accent); }

/* === Главный экран === */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    text-align: center;
}
.hero__inner { max-width: 600px; }
.hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}
.hero__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Кнопки === */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s, box-shadow .2s;
    cursor: pointer;
    border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 24px rgba(237,41,57,.3);
}
.btn--primary:hover {
    box-shadow: 0 8px 32px rgba(237,41,57,.45);
}

/* === Карточки === */
.services { padding: 40px 0 80px; }
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color .2s, transform .15s;
}
.card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}
.card__icon {
    font-size: 2rem;
    margin-bottom: 12px;
}
.card__title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.card__text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.card__link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}
.card__link:hover { text-decoration: underline; }

/* === Футер === */
.footer {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 24px 0;
}
.footer__inner {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* === Адаптив === */
@media (max-width: 640px) {
    .hero { padding: 48px 0; }
    .btn { padding: 12px 24px; font-size: 0.95rem; }
    .card { padding: 24px; }
}

