/* ═══════════════════════════════════════════
   КазСтандарт — Main Stylesheet
   Extracted from hybrid-v4 design
═══════════════════════════════════════════ */

:root {
    --f-display: 'Playfair Display', Georgia, serif;
    --f-body: 'Nunito Sans', sans-serif;
    --f-mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --speed: 0.3s;
    --r: 10px;
    --r-lg: 16px;
}

/* ═══ LIGHT ═══ */
[data-theme="light"] {
    --bg: #F6F8FB;
    --bg2: #FFFFFF;
    --bg3: #F0F3F7;
    --bg4: #E8ECF2;
    --bg-hero: linear-gradient(160deg, #0A2E5C 0%, #143D7A 35%, #1A5199 65%, #2668B5 100%);
    --bg-hero2: linear-gradient(135deg, #0E3566, #1B5DAA);
    --surface: #FFFFFF;
    --hover: #F5F7FB;
    --input-bg: #F3F5F9;
    --text: #111827;
    --text2: #4B5563;
    --text3: #9CA3AF;
    --inverse: #FFFFFF;
    --link: #1A5199;
    --accent: #1A5199;
    --accent2: #143D7A;
    --accent-light: #3B82F6;
    --gold: #D97706;
    --gold-bg: #FFFBEB;
    --gold-border: #FDE68A;
    --green: #059669;
    --green-bg: #ECFDF5;
    --red: #DC2626;
    --orange: #EA580C;
    --border: #E5E7EB;
    --border2: #F3F4F6;
    --shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.03);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.04);
    --shadow-hover: 0 6px 20px rgba(26,81,153,0.1), 0 2px 6px rgba(0,0,0,0.04);
    --overlay: rgba(10,20,40,0.4);
    --footer-bg: #0A1E38;
    --footer-text: #8B9FBA;
    --nav-bg: rgba(255,255,255,0.96);
    --ribbon: #B91C1C;
}

/* ═══ DARK ═══ */
[data-theme="dark"] {
    --bg: #0C1220;
    --bg2: #141C2B;
    --bg3: #1A2435;
    --bg4: #212D40;
    --bg-hero: linear-gradient(160deg, #070D18 0%, #0C1A30 35%, #112648 65%, #183560 100%);
    --bg-hero2: linear-gradient(135deg, #0E1D35, #152E52);
    --surface: #141C2B;
    --hover: #1A2435;
    --input-bg: #0F1722;
    --text: #E8EDF3;
    --text2: #8B9BB0;
    --text3: #4E5D72;
    --inverse: #0C1220;
    --link: #5BA0F5;
    --accent: #5BA0F5;
    --accent2: #79B6FF;
    --accent-light: #93C5FD;
    --gold: #FBBF24;
    --gold-bg: #1C1508;
    --gold-border: #78580A;
    --green: #34D399;
    --green-bg: #0B2418;
    --red: #F87171;
    --orange: #FB923C;
    --border: #1E293B;
    --border2: #1A2435;
    --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.4), 0 12px 32px rgba(0,0,0,0.3);
    --shadow-hover: 0 6px 20px rgba(91,160,245,0.1), 0 2px 6px rgba(0,0,0,0.2);
    --overlay: rgba(0,0,0,0.6);
    --footer-bg: #070D18;
    --footer-text: #4E5D72;
    --nav-bg: rgba(12,18,32,0.96);
    --ribbon: #EF4444;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--f-body);
    background: var(--bg);
    color: var(--text);
    transition: background var(--speed), color var(--speed);
}
h1,h2,h3,h4 { font-family: var(--f-display); font-weight: 700; }
a { color: var(--link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent2); }
img { max-width: 100%; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ═══ UTILITY ═══ */
.container-xl { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ═══ TOP INFO BAR ═══ */
.info-bar {
    background: var(--bg-hero2);
    padding: 6px 0;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.7);
}
.info-bar a { color: rgba(255,255,255,0.85); }
.info-bar a:hover { color: #fff; }
.info-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.info-bar-left { display: flex; gap: 16px; align-items: center; }
.info-bar-right { display: flex; gap: 12px; align-items: center; }
.lang-btn {
    padding: 2px 8px; border-radius: 4px;
    font-size: 0.72rem; font-weight: 700;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.15s;
}
.lang-btn.active { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.4); }
.theme-pill {
    width: 38px; height: 20px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    position: relative;
}
.theme-pill::after {
    content: ''; position: absolute;
    width: 14px; height: 14px; border-radius: 50%;
    top: 2px; left: 2px;
    background: #fff;
    transition: transform 0.3s cubic-bezier(0.68,-0.3,0.27,1.3);
}
[data-theme="dark"] .theme-pill::after { transform: translateX(18px); background: var(--gold); }

/* ═══ HEADER ═══ */
.site-header {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background var(--speed), border-color var(--speed);
}
.header-main {
    display: flex;
    align-items: center;
    padding: 10px 0;
    gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
    width: 42px; height: 42px;
    border-radius: 11px;
    background: var(--bg-hero);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px; font-weight: 800; font-family: var(--f-mono);
    box-shadow: 0 2px 8px rgba(26,81,153,0.3);
}
.logo-text { line-height: 1.15; }
.logo-name { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; color: var(--text); }
.logo-sub { font-size: 0.65rem; color: var(--text3); font-weight: 500; letter-spacing: 0.3px; text-transform: uppercase; padding-top: 2px; }

/* ─── Логотипы (светлый/тёмный) ─────────────────────── */
.logo-img {
    height: 44px;
    width: auto;
    display: block;
    flex-shrink: 0;
}
/* По умолчанию (светлая тема): показываем светлый логотип */
.logo-img-dark { display: none; }
.logo-img-light { display: block; }

/* Тёмная тема: показываем тёмный (логотип для тёмного фона) */
[data-theme="dark"] .logo-img-light { display: none; }
[data-theme="dark"] .logo-img-dark { display: block; }

/* Скрываем старый текстовый logo-mark если он где-то остался */
.logo-mark { display: none; }

/* Делаем чтобы логотип нормально вставал в .logo flex-контейнер */
.logo { display: inline-flex; align-items: center; gap: 12px; }

.header-search {
    flex: 1; max-width: 480px;
    position: relative;
}
.header-search input {
    width: 100%; height: 40px;
    padding: 0 44px 0 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    background: var(--input-bg);
    color: var(--text);
    font-family: var(--f-body);
    font-size: 0.85rem;
    outline: none;
    transition: all var(--speed);
}
.header-search input::placeholder { color: var(--text3); }
.header-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,81,153,0.08); }
[data-theme="dark"] .header-search input:focus { box-shadow: 0 0 0 3px rgba(91,160,245,0.12); }
.header-search button {
    position: absolute; right: 4px; top: 4px; bottom: 4px;
    width: 34px; border: none; border-radius: 7px;
    background: var(--accent); color: #fff;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; transition: background 0.15s;
}
.header-search button:hover { background: var(--accent2); }
.header-actions {
    display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0;
}
.ha-btn {
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    padding: 6px 10px; border: none; border-radius: var(--r);
    background: transparent; color: var(--text2);
    cursor: pointer; text-decoration: none;
    transition: all 0.15s; position: relative;
}
.ha-btn:hover { background: var(--hover); color: var(--accent); }
.ha-btn i { font-size: 1.2rem; }
.ha-btn small { font-size: 0.62rem; font-weight: 600; }
.ha-btn .ha-badge {
    position: absolute; top: 1px; right: 4px;
    min-width: 16px; height: 16px; border-radius: 8px;
    background: var(--red); color: #fff;
    font-size: 0.6rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

/* Navigation */
.main-nav {
    border-top: 1px solid var(--border2);
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.nav-link {
    padding: 11px 16px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text2);
    white-space: nowrap;
    border-bottom: 2.5px solid transparent;
    transition: all 0.15s;
    display: flex; align-items: center; gap: 5px;
}
.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-link i { font-size: 0.9rem; }

/* ═══ HERO ═══ */
.hero {
    background: var(--bg-hero);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20h20v20H20zM0 0h20v20H0z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
    content: ''; position: absolute;
    right: -10%; top: -40%;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,179,0,0.06), transparent 70%);
}
.hero-inner {
    position: relative; z-index: 2;
    display: flex;
    align-items: center;
    padding: 56px 0 64px;
    gap: 48px;
}
.hero-content { flex: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; border-radius: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem; font-weight: 600;
    margin-bottom: 18px;
    backdrop-filter: blur(6px);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #34D399; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.4} }
.hero-title {
    font-size: 2.4rem; font-weight: 800;
    color: #fff; line-height: 1.2;
    margin-bottom: 14px;
}
.hero-title em { font-style: normal; color: var(--gold); }
.hero-desc {
    font-size: 1rem; color: rgba(255,255,255,0.65);
    max-width: 500px; line-height: 1.65;
    margin-bottom: 28px;
}
.hero-search-box {
    max-width: 500px;
    position: relative;
}
.hero-search-box input {
    width: 100%; height: 50px;
    padding: 0 120px 0 20px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: var(--r-lg);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    color: #fff;
    font-family: var(--f-body); font-size: 0.92rem;
    outline: none; transition: all 0.25s;
}
.hero-search-box input::placeholder { color: rgba(255,255,255,0.4); }
.hero-search-box input:focus { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.12); }
.hero-search-btn {
    position: absolute; right: 5px; top: 5px; bottom: 5px;
    padding: 0 24px; border: none; border-radius: 12px;
    background: var(--gold); color: #1a1a1a;
    font-family: var(--f-body); font-size: 0.85rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; gap: 6px;
    transition: all 0.15s;
}
.hero-search-btn:hover { background: #E5A60B; }
.hero-stats {
    display: flex; gap: 36px; margin-top: 36px;
}
.hs-num { font-family: var(--f-display); font-size: 1.7rem; font-weight: 800; color: #fff; }
.hs-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* Hero sidebar card */
.hero-side {
    width: 300px; flex-shrink: 0;
    display: flex; flex-direction: column; gap: 12px;
}
.hs-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r-lg);
    padding: 18px;
    backdrop-filter: blur(10px);
}
.hs-card-title {
    font-family: var(--f-body);
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--gold);
    margin-bottom: 12px;
}
.hs-link {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: pointer; transition: all 0.15s;
}
.hs-link:last-child { border-bottom: none; }
.hs-link:hover { padding-left: 4px; }
.hs-link i { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.hs-link-title { font-size: 0.82rem; font-weight: 600; color: #fff; }
.hs-link-sub { font-size: 0.7rem; color: rgba(255,255,255,0.45); }
.hs-card-egf {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--r);
    padding: 14px 16px;
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; transition: all 0.2s;
}
.hs-card-egf:hover { background: rgba(255,255,255,0.15); }
.hs-card-egf i { font-size: 1.3rem; color: var(--gold); }
.hs-card-egf div { font-size: 0.82rem; font-weight: 700; color: #fff; }
.hs-card-egf small { font-size: 0.7rem; color: rgba(255,255,255,0.5); font-weight: 400; display: block; }

/* ═══ SECTION STYLES ═══ */
.section { padding: 52px 0; }
.section-alt { background: var(--bg3); }
.sec-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 28px; flex-wrap: wrap; gap: 10px;
}
.sec-title { font-size: 1.45rem; color: var(--text); }
.sec-sub { font-size: 0.85rem; color: var(--text3); margin-top: 2px; font-family: var(--f-body); font-weight: 400; }
.sec-link { font-size: 0.82rem; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 5px; }
.sec-link:hover { gap: 8px; }

/* ═══ CATEGORIES GRID ═══ */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 12px;
}
.cat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
}
.cat-card:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.cat-icon {
    width: 46px; height: 46px; border-radius: 12px;
    margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.ci-blue { background: rgba(26,81,153,0.08); color: var(--accent); }
.ci-gold { background: rgba(217,119,6,0.08); color: var(--gold); }
.ci-green { background: rgba(5,150,105,0.08); color: var(--green); }
.ci-red { background: rgba(220,38,38,0.06); color: var(--red); }
.ci-purple { background: rgba(124,58,237,0.06); color: #7C3AED; }
.ci-teal { background: rgba(13,148,136,0.06); color: #0D9488; }
.ci-orange { background: rgba(234,88,12,0.06); color: var(--orange); }
[data-theme="dark"] .ci-blue { background: rgba(91,160,245,0.1); }
[data-theme="dark"] .ci-gold { background: rgba(251,191,36,0.1); }
[data-theme="dark"] .ci-green { background: rgba(52,211,153,0.1); }
[data-theme="dark"] .ci-red { background: rgba(248,113,113,0.1); }
[data-theme="dark"] .ci-purple { background: rgba(167,139,250,0.1); }
[data-theme="dark"] .ci-teal { background: rgba(45,212,191,0.1); }
[data-theme="dark"] .ci-orange { background: rgba(251,146,60,0.1); }
.cat-card h6 { font-family: var(--f-body); font-weight: 700; font-size: 0.84rem; color: var(--text); margin: 0 0 3px; }
.cat-card .cc-count { font-size: 0.72rem; color: var(--text3); font-family: var(--f-mono); }

/* ═══ PRODUCT CARDS ═══ */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; }
.prod-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all 0.25s;
    display: flex; flex-direction: column;
}
.prod-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--accent); }
.prod-top { padding: 16px 18px 12px; flex: 1; position: relative; }
.prod-badge {
    display: inline-block; padding: 2px 8px; border-radius: 50px;
    font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
    margin-bottom: 10px;
}
.pb-new { background: var(--green-bg); color: var(--green); border: 1px solid rgba(5,150,105,0.15); }
.pb-hot { background: var(--gold-bg); color: var(--gold); border: 1px solid var(--gold-border); }
.pb-upd { background: rgba(26,81,153,0.06); color: var(--accent); border: 1px solid rgba(26,81,153,0.12); }
[data-theme="dark"] .pb-new { border-color: rgba(52,211,153,0.2); }
[data-theme="dark"] .pb-hot { border-color: rgba(251,191,36,0.2); }
[data-theme="dark"] .pb-upd { border-color: rgba(91,160,245,0.2); }
.prod-cat { font-family: var(--f-mono); font-size: 0.7rem; font-weight: 600; color: var(--accent); }
.prod-code { font-family: var(--f-mono); font-size: 0.74rem; color: var(--text3); }
.prod-title {
    font-family: var(--f-body); font-weight: 700; font-size: 0.88rem;
    color: var(--text); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin: 8px 0;
}
.prod-meta { display: flex; gap: 10px; font-size: 0.72rem; color: var(--text3); }
.prod-meta span { display: flex; align-items: center; gap: 3px; }
.prod-bottom {
    padding: 12px 18px; border-top: 1px solid var(--border2);
    display: flex; align-items: center; justify-content: space-between;
}
.prod-price { font-family: var(--f-mono); font-weight: 800; font-size: 1.05rem; color: var(--text); }
.prod-price small { font-size: 0.78rem; color: var(--text3); font-weight: 400; }
.prod-actions { display: flex; gap: 4px; }
.btn-cart {
    height: 32px; padding: 0 14px; border-radius: 8px;
    border: none; background: var(--accent); color: #fff;
    font-family: var(--f-body); font-size: 0.76rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; gap: 4px;
    transition: all 0.15s;
}
.btn-cart:hover { background: var(--accent2); }
.btn-fav {
    height: 32px; width: 32px; border-radius: 8px;
    border: none; background: transparent; color: var(--text3);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; transition: all 0.15s;
}
.btn-fav:hover { color: var(--red); background: var(--hover); }
.btn-fav.active { color: var(--red); }
.btn-fav.active:hover { color: var(--red); background: rgba(220,38,38,0.06); }

/* ═══ SERVICES ═══ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.svc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    display: flex; gap: 14px;
    transition: all 0.25s;
    cursor: pointer;
}
.svc-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.svc-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}
.svc-card h5 { font-family: var(--f-body); font-weight: 700; font-size: 0.92rem; color: var(--text); margin-bottom: 4px; }
.svc-card p { font-size: 0.8rem; color: var(--text2); line-height: 1.5; margin: 0; }
.svc-tag { display: inline-block; font-size: 0.68rem; font-weight: 700; color: var(--gold); background: var(--gold-bg); border: 1px solid var(--gold-border); padding: 2px 8px; border-radius: 50px; margin-top: 6px; }

/* ═══ CTA BANNER ═══ */
.cta-banner {
    background: var(--bg-hero);
    border-radius: var(--r-lg);
    padding: 42px 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.cta-banner::before { content: ''; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,0.04); }
.cta-title { font-size: 1.35rem; color: #fff; margin-bottom: 6px; }
.cta-desc { font-size: 0.88rem; color: rgba(255,255,255,0.6); max-width: 460px; }
.cta-btn {
    padding: 12px 28px; border: none; border-radius: var(--r);
    background: var(--gold); color: #1a1a1a;
    font-family: var(--f-body); font-size: 0.88rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    white-space: nowrap; transition: all 0.15s; flex-shrink: 0;
}
.cta-btn:hover { background: #E5A60B; }

/* ═══ NEWS + SIDEBAR ═══ */
.content-2col { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px;
    transition: all 0.25s;
    height: 100%;
}
.news-card:hover { box-shadow: var(--shadow-hover); }
.news-card .nc-date { font-family: var(--f-mono); font-size: 0.7rem; color: var(--text3); margin-bottom: 6px; }
.news-card h5 { font-family: var(--f-body); font-weight: 700; font-size: 0.9rem; color: var(--text); margin-bottom: 6px; line-height: 1.4; }
.news-card p { font-size: 0.8rem; color: var(--text2); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.info-sidebar { display: flex; flex-direction: column; gap: 14px; }
.isb-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px;
}
.isb-title {
    font-family: var(--f-body); font-weight: 700; font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--text3); margin-bottom: 12px;
    display: flex; align-items: center; gap: 6px;
}
.isb-title i { color: var(--accent); }
.isb-link {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 0; border-bottom: 1px solid var(--border2);
    font-size: 0.82rem; color: var(--text); cursor: pointer;
    transition: all 0.1s;
}
.isb-link:last-child { border-bottom: none; }
.isb-link:hover { color: var(--accent); padding-left: 3px; }
.isb-link i { color: var(--text3); font-size: 0.8rem; }
.isb-link small { font-size: 0.7rem; color: var(--text3); margin-left: auto; }
.isb-stat { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.82rem; }
.isb-stat-val { font-family: var(--f-mono); font-weight: 700; color: var(--accent); }

/* ═══ FEATURES ═══ */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat-card { text-align: center; padding: 28px 16px; }
.feat-icon {
    width: 50px; height: 50px; border-radius: 14px;
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    background: rgba(26,81,153,0.06); color: var(--accent);
}
[data-theme="dark"] .feat-icon { background: rgba(91,160,245,0.08); }
.feat-card h5 { font-family: var(--f-body); font-weight: 700; font-size: 0.88rem; margin-bottom: 5px; }
.feat-card p { font-size: 0.8rem; color: var(--text2); margin: 0; line-height: 1.5; }

/* ═══ FOOTER ═══ */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 48px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.3fr; gap: 32px; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.foot-brand-icon { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg,#1A5199,#3B82F6); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 800; font-family: var(--f-mono); }
.foot-brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1rem; color: #E8EDF3; }
.foot-desc { font-size: 0.8rem; line-height: 1.6; margin-bottom: 16px; }
.foot-payments { display: flex; gap: 8px; }
.foot-pay { padding: 3px 10px; border: 1px solid rgba(255,255,255,0.08); border-radius: 5px; font-size: 0.72rem; color: #8B9FBA; font-weight: 600; }
.foot-heading { font-family: var(--f-body); font-weight: 700; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.6px; color: #E8EDF3; margin-bottom: 14px; }
.foot-links { list-style: none; }
.foot-links li { margin-bottom: 8px; }
.foot-links a { font-size: 0.8rem; color: var(--footer-text); transition: all 0.15s; }
.foot-links a:hover { color: #fff; padding-left: 3px; }
.foot-contact { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; font-size: 0.8rem; }
.foot-contact i { color: var(--accent-light); margin-top: 3px; font-size: 0.85rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 16px; margin-top: 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.72rem; }

.foot-brand-img {
    height: 36px;
    width: auto;
    display: block;
    margin-bottom: 12px;
}
.foot-brand-img-dark { display: none; }
[data-theme="dark"] .foot-brand-img-light { display: none; }
[data-theme="dark"] .foot-brand-img-dark { display: block; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .hero-side { display: none; }
    .content-2col { grid-template-columns: 1fr; }
    .info-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 1.7rem; }
    .hero-stats { gap: 20px; }
    .hs-num { font-size: 1.3rem; }
    .feat-grid { grid-template-columns: 1fr 1fr; }
    .info-bar { display: none; }
    .logo-sub { display: none; }
    .ha-btn small { display: none; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .cta-banner { flex-direction: column; text-align: center; padding: 32px 24px; }
    .cta-desc { max-width: 100%; }
    .services-grid { grid-template-columns: 1fr; }
    .info-sidebar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .cat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .prod-grid { grid-template-columns: 1fr; }
    .feat-grid { grid-template-columns: 1fr; }
}

/* ═══ SCROLL REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══ Django messages ═══ */
.alert { padding: 12px 20px; border-radius: var(--r); margin-bottom: 16px; font-size: 0.85rem; }
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid rgba(5,150,105,0.15); }
.alert-error { background: rgba(220,38,38,0.06); color: var(--red); border: 1px solid rgba(220,38,38,0.15); }
.alert-warning { background: var(--gold-bg); color: var(--gold); border: 1px solid var(--gold-border); }
.alert-info { background: rgba(26,81,153,0.06); color: var(--accent); border: 1px solid rgba(26,81,153,0.12); }
