:root {
    --brand: #0a84ff;
    --brand-dark: #0066d6;
    --success: #10b981;
    --text-main: #0f172a;
    --text-muted: #475569;
    --bg: #f8fafc;
    --surface: #ffffff;
    --line: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--brand); transition: var(--transition); }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { font-family: 'Manrope', sans-serif; font-weight: 800; margin: 0 0 1rem; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; }

/* NAVBAR */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line); padding: 1rem 0;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Manrope', sans-serif; font-size: 1.4rem; font-weight: 900; color: var(--brand); display: flex; align-items: center; gap: 0.5rem; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-main); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--brand); }

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.8rem 1.5rem; border-radius: var(--radius-sm); font-weight: 700; font-size: 1rem;
    cursor: pointer; border: none; transition: var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(10,132,255,0.25); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* HERO */
.hero { padding: 5rem 0; text-align: center; background: radial-gradient(circle at top center, rgba(10,132,255,0.05) 0%, transparent 60%); }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 2.5rem; }
.hero-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* GRID SECTIONS */
.section { padding: 4rem 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
    background: var(--surface); padding: 2rem; border-radius: var(--radius-md);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-icon {
    width: 48px; height: 48px; border-radius: 12px; background: #eff6ff; color: var(--brand);
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem;
}
.card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* APP PROMO */
.app-promo { background: #0f172a; color: #fff; padding: 4rem 0; border-radius: var(--radius-lg); margin: 2rem 1.5rem; overflow: hidden; }
.app-promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 0 3rem; }
.app-promo h2 { color: #fff; }
.app-promo p { color: #94a3b8; font-size: 1.1rem; margin-bottom: 2rem; }
.app-promo ul { list-style: none; padding: 0; margin-bottom: 2.5rem; }
.app-promo li { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; font-weight: 600; }
.app-promo li i { color: var(--success); font-size: 1.2rem; }
.btn-white { background: #fff; color: #0f172a; padding: 1rem 2rem; border-radius: var(--radius-sm); }
.btn-white:hover { background: #f8fafc; color: var(--brand); }

/* CATALOG SEARCH & FILTERS */
.catalog-header { text-align: center; max-width: 700px; margin: 0 auto 2rem; }
.catalog-header p { color: var(--text-muted); }
.search-input {
    width: 100%; max-width: 800px; display: block; margin: 0 auto 1.5rem;
    padding: 1.2rem 1.5rem; font-size: 1.1rem; border: 2px solid var(--line);
    border-radius: var(--radius-md); background: var(--surface); transition: var(--transition);
}
.search-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(10,132,255,0.1); }

.quick-filters {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
    max-width: 800px; margin: 0 auto 3rem;
}
.filter-chip {
    background: var(--surface); border: 1px solid var(--line); color: var(--text-muted);
    padding: 0.6rem 1.2rem; border-radius: 50px; font-size: 0.9rem; font-weight: 600;
    cursor: pointer; transition: var(--transition); outline: none;
}
.filter-chip:hover { border-color: var(--brand); color: var(--brand); }
.filter-chip.active { background: #eff6ff; border-color: var(--brand); color: var(--brand); box-shadow: 0 2px 8px rgba(10,132,255,0.15); }

/* CATALOG CARDS & PAGINATION */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.cr-card {
    display: flex; flex-direction: column; background: var(--surface); padding: 1.5rem;
    border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--text-main);
    transition: var(--transition); box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.cr-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-sm); color: var(--brand); }
.cr-card h5 { font-size: 1rem; margin: 0 0 1.5rem; font-weight: 700; line-height: 1.4; flex-grow: 1; }
.cr-card-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 1rem; }
.tag-mkb { font-size: 0.8rem; font-weight: 700; color: var(--text-main); background: #f1f5f9; padding: 4px 8px; border-radius: 6px; }
.tag-date { font-size: 0.8rem; color: var(--text-muted); }

.empty-state { text-align: center; padding: 3rem; display: none; grid-column: 1/-1; }
.empty-state i { font-size: 3rem; color: var(--line); }

.load-more-container { text-align: center; margin-top: 3rem; display: none; }

/* SEO & FOOTER */
.seo-section { background: #f1f5f9; padding: 4rem 0; margin-top: 3rem; }
.seo-section article { max-width: 900px; margin: 0 auto; color: var(--text-muted); font-size: 0.95rem; }
.footer { background: var(--surface); padding: 2rem 0; text-align: center; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 0.9rem; }
.footer a { color: var(--text-muted); text-decoration: underline; margin: 0 0.5rem; }
.footer a:hover { color: var(--brand); }

/* MOBILE RESPONSIVE */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: 1fr; }
    .app-promo-grid { grid-template-columns: 1fr; padding: 0 1.5rem; text-align: center; }
    .app-promo ul { text-align: left; max-width: 300px; margin: 0 auto 2rem; }
    .app-promo img { display: none; }
    .nav-links { display: none; }
}
@media (max-width: 768px) {
    .navbar .btn { display: none !important; }
    .navbar .container { justify-content: center; }
    .hero { padding: 3rem 0; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .app-promo { margin: 2rem 0; border-radius: 0; }
    .catalog-grid { grid-template-columns: 1fr; }
    .quick-filters { justify-content: flex-start; overflow-x: auto; padding-bottom: 0.5rem; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .filter-chip { white-space: nowrap; }
}
@media (max-width: 768px) {
    /* Скрываем кнопку "Войти" в шапке на мобильных */
    .navbar { 
        display: none !important; 
    }}