/* --- RESET & VARS --- */
:root {
    --bg: #ffffff;
    --bg-alt: #f7f9fc; /* Чуть холоднее оттенок */
    --text: #0f172a;
    --text-gray: #64748b;
    
    /* Цвета из твоего самолета */
    --accent: #00aeef;      /* Яркий голубой (Cyan) */
    --accent-dark: #0077cc; /* Глубокий синий */
    --accent-light: #e0f2fe;
    
    --radius: 24px;
    --radius-sm: 12px;
    
    --font-body: 'Inter', sans-serif;
    --font-head: 'Space Grotesk', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* --- LOW POLY PATTERN (ФОН С ТРЕУГОЛЬНИКАМИ) --- */
/* Генерируем треугольники через SVG в CSS - это супер-легко для браузера */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 800 800'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop offset='0' stop-color='%23E0F2FE'/%3E%3Cstop offset='1' stop-color='%23FFFFFF'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill-opacity='0.4'%3E%3Cpath fill='%2300AEEF' d='M-125 523L87 295l287 450z' opacity='0.05'/%3E%3Cpath fill='%230077CC' d='M800 200L600 0h200z' opacity='0.08'/%3E%3Cpath fill='%2300AEEF' d='M650 800l150-300v300z' opacity='0.07'/%3E%3Cpath fill='%230077CC' d='M0 0l300 150L0 300z' opacity='0.03'/%3E%3Cpath fill='%2300AEEF' d='M200 100L400 0H0z' opacity='0.04'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    z-index: -2;
    pointer-events: none;
}

/* Дополнительный декоративный треугольник справа сверху */
.hero-poly-decor {
    position: absolute;
    top: 0; right: 0;
    width: 50vw; height: 80vh;
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.05), rgba(0, 119, 204, 0.15));
    clip-path: polygon(100% 0, 0 0, 100% 100%); /* Форма треугольника */
    z-index: -1;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 20px; left: 0; right: 0;
    z-index: 100;
}

.nav-row {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    height: 64px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 10px 30px rgba(0, 174, 239, 0.08); /* Синяя тень */
}

.brand {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 18px;
    display: flex; align-items: center; gap: 8px;
    letter-spacing: -0.5px;
    color: var(--text);
}
.brand-dot {
    width: 0; height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid var(--accent); /* Треугольная точка */
}

.nav-center { display: flex; gap: 32px; }
.nav-center a { font-size: 14px; font-weight: 500; color: var(--text-gray); }
.nav-center a:hover { color: var(--accent-dark); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.link-login { font-size: 14px; font-weight: 600; color: var(--text); }
.link-login:hover { color: var(--accent); }

.btn-pill {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent)); /* Градиент кнопки */
    color: #fff;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 14px; font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
}
.btn-pill:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 174, 239, 0.4); }

/* --- HERO --- */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-content { max-width: 750px; position: relative; z-index: 1; }

.tag {
    display: inline-block;
    border: 1px solid var(--accent-light);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px; font-weight: 700; color: var(--accent-dark);
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: 72px;
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: var(--text);
    background: linear-gradient(to right, #0f172a 20%, #0077cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Градиентный текст */
}

.hero p {
    font-size: 20px; color: var(--text-gray); margin-bottom: 48px; max-width: 520px;
}

.hero-actions { display: flex; align-items: center; gap: 40px; }

.btn-primary {
    background: var(--accent); color: #fff;
    padding: 16px 32px; border-radius: 100px;
    font-weight: 600; font-size: 16px;
    display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 174, 239, 0.3);
    background-image: linear-gradient(45deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    background-size: 200% 200%;
    transition: 0.4s;
}
.btn-primary:hover { 
    background-position: 100% 0; 
    transform: translateY(-2px); 
}

.stats-mini { display: flex; gap: 30px; border-left: 1px solid #e2e8f0; padding-left: 30px; }
.stat-box span { display: block; font-weight: 700; font-size: 20px; color: var(--text); }
.stat-box small { font-size: 12px; color: var(--accent); text-transform: uppercase; font-weight: 700; }

/* --- SECTIONS --- */
.section { padding: 100px 0; }
.section-head { margin-bottom: 60px; text-align: center; }
.section-head.left { text-align: left; }

.section-head h2 {
    font-family: var(--font-head); font-size: 40px; letter-spacing: -1px; margin-bottom: 10px;
}
.section-head p { color: var(--text-gray); font-size: 18px; }

/* --- BENTO GRID --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 24px;
}

.bento-item {
    border-radius: var(--radius);
    background-color: #f1f5f9;
    background-size: cover; background-position: center;
    position: relative; overflow: hidden;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.bento-item::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
    opacity: 0.8;
}

.bento-item:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }

/* Треугольный оверлей на карточках при наведении */
.bento-item::before {
    content: "";
    position: absolute; top: 0; right: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,174,239,0.4) 0%, transparent 50%);
    opacity: 0; transition: 0.4s; z-index: 1;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.bento-item:hover::before { opacity: 1; }

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-content {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 24px; z-index: 2;
    color: #fff;
}

.bento-content h3 { font-size: 24px; font-family: var(--font-head); margin-bottom: 4px; }
.bento-content p { opacity: 0.9; font-size: 14px; font-weight: 500; color: var(--accent-light); }

/* Блок-ссылка */
.link-block {
    background: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: 16px;
    border: 1px solid #e2e8f0;
}
.link-block::after { display: none; } /* Убираем затемнение */
.link-block:hover { border-color: var(--accent); }

.icon-circle {
    width: 56px; height: 56px; border-radius: 50%; background: var(--accent-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-dark); font-size: 20px;
    transition: 0.3s;
}
.link-block:hover .icon-circle { background: var(--accent); color: #fff; transform: rotate(90deg); }
.link-block span { font-weight: 700; color: var(--text); line-height: 1.3; z-index: 2; }

/* --- NEWS --- */
.bg-light { 
    background: #f8fafc; 
    border-radius: 60px 60px 0 0; 
    position: relative;
}
/* Треугольник сверху секции новостей */
.bg-light::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%) rotate(45deg);
    width: 40px; height: 40px; background: #f8fafc;
}

.news-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}

.news-card {
    background: #fff; padding: 32px; border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.04);
    transition: 0.3s; position: relative; overflow: hidden;
}
.news-card:hover { box-shadow: 0 20px 40px rgba(0, 174, 239, 0.1); transform: translateY(-5px); border-color: var(--accent-light); }

/* Полоска акцента сбоку */
.news-card::after {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--accent); opacity: 0; transition: 0.3s;
}
.news-card:hover::after { opacity: 1; }

.news-meta { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 12px; font-weight: 700; color: var(--text-gray); }
.news-meta .tag { border: none; padding: 0; margin: 0; color: var(--accent); background: none; }

.news-card h3 {
    font-size: 20px; margin-bottom: 12px; line-height: 1.3; font-weight: 700;
}
.news-card p { font-size: 15px; color: var(--text-gray); margin-bottom: 24px; line-height: 1.6; }

.link-arrow { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.link-arrow:hover { gap: 10px; color: var(--accent); }

/* --- FOOTER --- */
.footer { padding: 60px 0 40px; border-top: 1px solid #eee; background: #fff; }
.footer-in { display: flex; justify-content: space-between; align-items: center; }
.copy { font-size: 13px; color: var(--text-gray); font-weight: 500; }

/* --- MOBILE --- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 48px; }
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
    .bento-item.large { grid-column: span 1; grid-row: span 1; }
    .news-row { grid-template-columns: 1fr; }
    .nav-center { display: none; }
    .hero-poly-decor { opacity: 0.3; } /* Меньше яркости на мобилке */
}
