:root {
    --il-navy: #1e1e27;
    --il-red: #fe4c50;
    --il-red-hover: #d13235;
    --il-bg: #f8fafc;
    --il-border: #e2e8f0;
    --il-muted: #64748b;
    --il-text: #1e293b;
    --il-white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Poppins, "Segoe UI", sans-serif;
    color: var(--il-text);
    background: var(--il-white);
    font-size: 15px;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
h1, h2, h3, p { margin-top: 0; }

.ek-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.ek-header { position: sticky; top: 0; z-index: 40; background: var(--il-white); border-bottom: 1px solid var(--il-border); }
.ek-topbar { background: var(--il-navy); color: #cbd5e1; font-size: 12px; }
.ek-topbar-inner, .ek-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ek-topbar-inner { min-height: 34px; }
.ek-topbar strong, .ek-topbar a { color: #fff; text-decoration: none; }
.ek-topbar a:hover { color: var(--il-red); }
.ek-topbar-links { display: flex; gap: 16px; }
.ek-bar { min-height: 72px; }
.ek-logo { display: flex; align-items: center; line-height: 0; text-decoration: none; min-width: 0; }
.ek-logo img { height: 44px; width: auto; max-width: 100%; }
.ek-footer .ek-logo { display: inline-flex; margin: 0 0 12px; }
.ek-footer .ek-logo img { height: 44px; }
.ek-nav { display: flex; align-items: center; gap: 4px; }
.ek-nav > a, .ek-drop > a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 8px;
}
.ek-nav > a:hover, .ek-drop > a:hover { color: var(--il-red); }
.ek-drop { position: relative; }
.ek-drop-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--il-border);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
}
.ek-drop:hover .ek-drop-menu, .ek-drop:focus-within .ek-drop-menu { display: grid; }
.ek-drop-menu a { text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.ek-drop-menu a:hover { background: #fef2f2; color: var(--il-red); }
.ek-search { display: flex; align-items: center; min-width: 0; border: 1px solid var(--il-border); border-radius: 999px; overflow: hidden; background: var(--il-bg); }
.ek-search input { border: 0; background: transparent; padding: 9px 14px; width: 190px; min-width: 0; outline: none; }
.ek-search button { flex: 0 0 auto; border: 0; background: transparent; color: var(--il-navy); padding: 0 12px 0 0; cursor: pointer; }
.ek-nav-toggle, .ek-drawer, .ek-backdrop { display: none; }

.ek-hero { background: linear-gradient(180deg, #1e1e27 0%, #2a2a36 100%); color: #fff; overflow: hidden; }
.ek-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 42px 0 48px; }
.ek-kicker { color: var(--il-red); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; margin-bottom: 8px; }
.ek-hero h1 { font-size: 44px; line-height: 1.12; margin: 0 0 12px; letter-spacing: -0.8px; }
.ek-hero p { color: #cbd5e1; max-width: 520px; margin-bottom: 0; }
.ek-hero-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.ek-hero-covers { display: flex; justify-content: flex-end; align-items: flex-end; min-height: 240px; }
.ek-hero-covers img {
    width: min(148px, calc((100% + 56px) / 3)); height: auto; object-fit: contain; border-radius: 4px 8px 8px 4px;
    box-shadow: 8px 16px 30px rgba(0,0,0,.35); margin-left: -28px; background: #fff;
}
.ek-hero-covers img:first-child { margin-left: 0; }
.ek-hero-covers img:nth-child(2) { transform: translateY(-12px); }
.ek-hero-covers img:nth-child(3) { transform: translateY(8px); }

.ek-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--il-red); color: #fff; text-decoration: none; border: 0;
    border-radius: 999px; padding: 11px 18px; font-weight: 600; cursor: pointer;
}
.ek-btn:hover { background: var(--il-red-hover); }
.ek-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.ek-btn-ghost:hover { background: #fff; color: var(--il-navy); }

.ek-section { padding: 42px 0; }
.ek-section-muted { background: var(--il-bg); }
.ek-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.ek-section-head h1, .ek-section-head h2 { margin: 0; font-size: 28px; }
.ek-section-head a { color: var(--il-red); font-weight: 600; text-decoration: none; }
.ek-areas { display: flex; flex-wrap: wrap; gap: 10px; }
.ek-areas a {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    background: #fff; border: 1px solid var(--il-border); border-radius: 999px; padding: 8px 14px;
    transition: border-color .15s ease, color .15s ease;
}
.ek-areas a:hover { border-color: var(--il-red); color: var(--il-red); }
.ek-areas span {
    color: var(--il-muted); font-size: 12px; background: var(--il-bg);
    border-radius: 999px; padding: 1px 7px;
}
.ek-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 22px; }
.ek-card { display: flex; flex-direction: column; min-width: 0; }
.ek-cover {
    display: block; background: #f1f5f9; border-radius: 3px 8px 8px 3px;
    overflow: hidden; box-shadow: 0 12px 28px rgba(30, 30, 39, .12);
    transition: transform .2s ease, box-shadow .2s ease;
}
.ek-card:hover .ek-cover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(30, 30, 39, .18); }
.ek-cover img, .ek-book-cover img { width: 100%; height: auto; object-fit: contain; }
.ek-cover-empty { display: grid; place-items: center; height: 100%; color: var(--il-muted); font-weight: 600; }
.ek-card-body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 4px; }
.ek-card h3 {
    font-size: 15px; line-height: 1.35; margin: 0; font-weight: 600;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.7em;
}
.ek-card h3 a { text-decoration: none; }
.ek-card h3 a:hover { color: var(--il-red); }
.ek-author, .ek-book-author { color: var(--il-muted); margin: 0; font-size: 13px; }
.ek-price {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
    margin: 4px 0 0; font-size: 13px; line-height: 1.3;
}
.ek-price-icon { width: 14px; height: 14px; flex: 0 0 auto; color: var(--il-red); }
.ek-price .ek-price-usd { color: var(--il-red); font-weight: 700; }
.ek-price .ek-price-approx { color: var(--il-muted); font-weight: 500; }
.ek-meta .ek-price { margin: 0; font-size: 15px; }
.ek-meta .ek-price-icon { width: 16px; height: 16px; }
.ek-home-more, .ek-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.ek-more-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 180px; padding: 12px 28px; border-radius: 999px; text-decoration: none; font-weight: 600;
    background: #fff; color: var(--il-navy); border: 1px solid var(--il-border);
    box-shadow: 0 8px 20px rgba(30, 30, 39, .06);
}
.ek-more-btn:hover { background: var(--il-red); border-color: var(--il-red); color: #fff; }
.ek-more-btn.is-loading { opacity: .7; pointer-events: none; }
.ek-tags { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.ek-tag {
    display: inline-flex; width: fit-content; max-width: 100%; min-width: 0; text-decoration: none; white-space: nowrap;
    background: rgba(254, 76, 80, .1); color: var(--il-red); border-radius: 999px;
    padding: 2px 8px; font-size: 11px; font-weight: 700; letter-spacing: .03em;
    overflow: hidden; text-overflow: ellipsis;
}
.ek-tag:hover { background: var(--il-red); color: #fff; }
.ek-tag-lang { margin-left: auto; background: #eef2f6; color: var(--il-navy); text-transform: uppercase; }
.ek-tag-lang:hover { background: var(--il-navy); color: #fff; }
.ek-welcome { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.ek-welcome img { width: 100%; height: 320px; object-fit: cover; border-radius: 18px; }
.ek-news { background: var(--il-navy); color: #fff; text-align: center; padding: 42px 0; }
.ek-news p { color: #cbd5e1; }
.ek-news form { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ek-news input, .ek-filter-search input, .ek-field input, .ek-field select, .ek-field textarea {
    border: 1px solid var(--il-border); border-radius: 12px; padding: 11px 12px; background: #fff;
}
.ek-news input { min-width: min(360px, 100%); }

.ek-crumbs { display: flex; gap: 8px; color: var(--il-muted); font-size: 13px; margin-bottom: 14px; flex-wrap: wrap; }
.ek-crumbs a { color: var(--il-navy); text-decoration: none; }
.ek-filter-search { display: flex; gap: 8px; margin-bottom: 14px; }
.ek-filter-search input { flex: 1; }
.ek-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ek-chips a { text-decoration: none; border: 1px solid var(--il-border); border-radius: 999px; padding: 6px 12px; font-size: 13px; background: #fff; }
.ek-chips a.is-on, .ek-chips a:hover { background: var(--il-navy); color: #fff; border-color: var(--il-navy); }
.ek-chips-soft a.is-on { background: var(--il-red); border-color: var(--il-red); }
.ek-empty, .ek-empty-page { padding: 28px 0 10px; }
.ek-pager { display: flex; gap: 6px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.ek-pager a, .ek-pager span, .ek-pager strong {
    min-width: 36px; text-align: center; text-decoration: none; border: 1px solid var(--il-border);
    border-radius: 10px; padding: 7px 10px; background: #fff;
}
.ek-pager strong { background: var(--il-red); color: #fff; border-color: var(--il-red); }
.ek-book { display: grid; grid-template-columns: 320px 1fr; gap: 36px; margin-bottom: 36px; align-items: start; }
.ek-book-cover { align-self: start; background: var(--il-bg); border-radius: 4px 12px 12px 4px; overflow: hidden; box-shadow: 0 16px 36px rgba(30, 30, 39, .14); }
.ek-book-cover img { display: block; width: 100%; height: auto; }
.ek-book h1 { font-size: 34px; line-height: 1.2; margin-bottom: 6px; }
.ek-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 18px 0; }
.ek-meta div { margin: 0; }
.ek-meta dt { color: var(--il-muted); font-size: 12px; }
.ek-meta dd { margin: 0; font-weight: 600; }
.ek-prose { margin-top: 18px; overflow-wrap: anywhere; }
.ek-prose p { margin: 0 0 12px; }
.ek-prose img, .ek-prose table, .ek-prose iframe, .ek-prose video { max-width: 100%; height: auto; }
.ek-topbar-inner > span:first-child { min-width: 0; }
.ek-prose-page { max-width: 860px; }
.ek-footer { background: #12141c; color: #cbd5e1; margin-top: 20px; }
.ek-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 36px 0; }
.ek-footer h2 { color: #fff; font-size: 15px; }
.ek-footer a { color: #fff; text-decoration: none; display: block; margin: 4px 0; }
.ek-footer a:hover { color: var(--il-red); }
.ek-social { display: flex; flex-wrap: wrap; gap: 8px; }
.ek-social a { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 4px 10px; }
.ek-sub { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 0; font-size: 13px; text-align: center; }
.ek-sub a { display: inline; margin: 0; }
.ek-cookie[hidden] { display: none !important; }
.ek-cookie {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
    display: flex; gap: 16px; align-items: center; justify-content: space-between;
    background: var(--il-navy); color: #fff; border-radius: 16px; padding: 14px 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.ek-cookie p { margin: 0; }
.ek-cookie a { color: var(--il-red); }
.ek-cookie button { background: var(--il-red); color: #fff; border: 0; border-radius: 999px; padding: 10px 14px; cursor: pointer; font-weight: 600; }
.ek-back-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 45;
    width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%;
    background: var(--il-red); color: #fff; cursor: pointer;
    box-shadow: 0 8px 18px rgba(254, 76, 80, .35);
    align-items: center; justify-content: center;
}
.ek-back-top svg { width: 22px; height: 22px; display: block; }
.ek-back-top[hidden] { display: none; }
.ek-back-top:not([hidden]) { display: inline-flex; }
.ek-back-top:hover { background: var(--il-red-hover); }
.ek-cookie:not([hidden]) ~ .ek-back-top { bottom: 108px; }

@media (max-width: 980px) {
    .ek-nav, .ek-topbar-links { display: none; }
    .ek-nav-toggle { display: inline-flex; flex: 0 0 auto; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px; cursor: pointer; }
    .ek-nav-toggle span { width: 18px; height: 2px; background: var(--il-navy); display: block; }
    .ek-logo { flex: 1; }
    .ek-search { flex: 0 1 220px; }
    .ek-search input { width: 100%; }
    .ek-hero-grid, .ek-welcome, .ek-book, .ek-footer-grid { grid-template-columns: 1fr; }
    .ek-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
    .ek-hero h1 { font-size: 34px; }
    .ek-hero-covers { justify-content: flex-start; }
    .ek-section-head { flex-wrap: wrap; align-items: flex-start; }
    .ek-book h1 { font-size: 28px; }
    .ek-meta div:has(.ek-price) { grid-column: 1 / -1; }
    .ek-drawer {
        display: block; position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; width: min(320px, 88vw);
        background: #fff; padding: 18px; overflow: auto; transform: translateX(-105%); transition: transform .2s ease;
    }
    .ek-drawer.is-open { transform: none; }
    .ek-drawer a, .ek-drawer p { display: block; text-decoration: none; padding: 8px 0; }
    .ek-drawer p { margin: 12px 0 0; font-size: 12px; color: var(--il-muted); text-transform: uppercase; letter-spacing: .04em; }
    .ek-drawer .is-sub { padding-left: 10px; }
    .ek-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 55; opacity: 0; pointer-events: none; }
    .ek-backdrop.is-open { opacity: 1; pointer-events: auto; }
}
@media (max-width: 640px) {
    .ek-bar { flex-wrap: wrap; align-items: center; min-height: 0; padding: 8px 0 12px; row-gap: 8px; }
    .ek-search { flex: 1 0 100%; }
    .ek-hero h1 { font-size: 30px; }
    .ek-book h1 { font-size: 24px; }
    .ek-section-head h1, .ek-section-head h2 { font-size: 22px; }
    .ek-tags { gap: 4px; }
    .ek-tag { font-size: 10px; letter-spacing: 0; padding: 2px 6px; }
    .ek-tag-lang { flex: 0 0 auto; max-width: none; }
    .ek-tag:not(.ek-tag-lang) { max-width: calc(100% - 64px); }
    .ek-filter-search { flex-wrap: wrap; }
    .ek-filter-search input { min-width: 0; }
    .ek-cookie { flex-direction: column; align-items: stretch; }
    .ek-cookie:not([hidden]) ~ .ek-back-top { bottom: 220px; }
    .ek-sub { padding-left: 58px; padding-right: 58px; }
}
