@font-face {
    font-family: YekanBakh;
    src: url("../fonts/YekanBakhFaNum-VF.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy: #0c2d5b;
    --ink: #181e25;
    --muted: #67788e;
    --line: #e7eaf0;
    --paper: #f7f8fb;
    --card: #ffffff;
    --red: #bf2222;
    --red-deep: #9b1b1b;
    --ok: #0f9f6e;
    --shadow: 0 14px 36px rgba(12, 45, 91, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { font-size: 14px; }
body {
    min-height: 100vh;
    font-family: YekanBakh, Tahoma, sans-serif;
    font-weight: 400;
    font-size: 0.92rem;
    line-height: 1.75;
    background: var(--paper);
    color: var(--ink);
}
button, input, select, textarea {
    font-family: YekanBakh, Tahoma, sans-serif;
    font-size: 0.86rem;
    font-weight: 500;
}
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; color: var(--navy); }
h1 { font-size: 1.25rem; line-height: 1.6; }
h2 { font-size: 1rem; }
h3 { font-size: 0.92rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.brand img { height: 38px; width: auto; object-fit: contain; }
.brand strong { display: block; color: var(--navy); font-size: 0.92rem; font-weight: 700; }
.brand span { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 500; }
.nav { display: flex; gap: 4px; }
.nav a {
    padding: 6px 10px;
    border-radius: 10px;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.82rem;
}
.nav a.active, .nav a:hover { background: rgba(191, 34, 34, 0.1); color: var(--red); }
.search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px 14px;
}
.search input { border: 0; outline: 0; width: 100%; background: transparent; font-size: 0.86rem; font-weight: 400; }
.compare-link, .primary, .secondary, .ghost, .pick, .view {
    border: 0;
    border-radius: 10px;
    padding: 7px 11px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.78rem;
}
.compare-link, .primary { background: var(--red); color: #fff; }
.compare-link:hover, .primary:hover { background: var(--red-deep); }
.compare-link[disabled] { opacity: 0.45; cursor: not-allowed; }
.secondary, .view { background: #f3f6fb; color: var(--navy); }
.ghost, .pick { background: #fff; border: 1px solid var(--line); color: var(--navy); }
.pick.on { background: var(--navy); color: #fff; }

#view { max-width: 1240px; margin: 0 auto; padding: 22px; }
.catalog-layout { display: grid; grid-template-columns: 270px 1fr; gap: 18px; }
.filters, .panel, .detail, .page-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.filters { padding: 18px; height: fit-content; position: sticky; top: 92px; }
.filters h2, .panel-head h1, .page-card h1 { margin: 0 0 12px; color: var(--navy); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.field select { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; color: var(--ink); }
.check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; margin-bottom: 14px; }
.panel { padding: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 16px; }
.panel-head p { margin: 0; color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.card > img { width: 100%; height: 180px; object-fit: contain; background: #f8fafc; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.card h3 { margin: 0; font-size: 0.86rem; font-weight: 600; line-height: 1.7; min-height: 46px; color: var(--navy); }
.price { color: var(--red); font-weight: 700; font-size: 0.86rem; }
.old { color: var(--muted); text-decoration: line-through; font-size: 12px; margin-right: 6px; font-weight: 500; }
.badge { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 8px; }
.badge.ok { background: rgba(15, 159, 110, 0.12); color: var(--ok); }
.badge.no { background: rgba(191, 34, 34, 0.1); color: var(--red); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.pager button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.pager button[disabled] { opacity: 0.4; }
.detail { padding: 22px; display: grid; grid-template-columns: 360px 1fr; gap: 22px; }
.gallery img { width: 100%; height: 320px; object-fit: contain; background: #f8fafc; border-radius: 18px; }
.thumbs { display: flex; gap: 8px; overflow: auto; margin-top: 10px; }
.thumbs img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; background: #fff; }
.specs, .compare-table table { width: 100%; border-collapse: collapse; }
.specs td, .compare-table td, .compare-table th { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: right; vertical-align: top; }
.specs td:first-child, .compare-table th { color: var(--muted); font-weight: 700; }
.compare-table { overflow: auto; }
.compare-table table { min-width: 680px; }
.compare-table img { width: 88px; height: 88px; object-fit: contain; }
.page-card { padding: 28px; }
.page-card p, .lead, .prose { color: #3d4b5c; line-height: 1.9; font-size: 0.9rem; font-weight: 400; }
.prose h2, .section-title, .info-card h2 { color: var(--navy); font-size: 1rem; margin: 18px 0 8px; }
.about-video, .page-card > img { width: 100%; border-radius: 20px; background: #0c2d5b; margin: 8px 0 18px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 18px; }
.info-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; }
.info-card p { margin: 0; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 8px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; align-items: start; }
.map { min-height: 360px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #f8fafc; }
.map iframe { width: 100%; min-height: 360px; border: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.footer-links a { color: var(--navy); font-weight: 600; font-size: 0.82rem; }
.channels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.channels a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(191, 34, 34, 0.08);
    color: var(--red);
    font-weight: 600;
    font-size: 0.8rem;
}
.channels a:hover { background: var(--red); color: #fff; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { background: #f8fafc; border-radius: 14px; padding: 12px 14px; }
.contact-list span { display: block; color: var(--muted); font-size: 12px; }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); }
.back { background: transparent; border: 0; color: var(--red); cursor: pointer; font-weight: 600; font-size: 0.82rem; margin-bottom: 10px; }
.site-footer { margin-top: 28px; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.site-footer h3 { margin: 0 0 8px; color: var(--red); font-size: 0.92rem; }
.site-footer p { color: var(--muted); line-height: 1.85; font-size: 0.82rem; }
.copy { border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; padding: 14px; }

@media (max-width: 900px) {
    .topbar, .catalog-layout, .detail, .contact-grid, .footer-inner, .info-grid { display: flex; flex-direction: column; }
    .nav { order: 3; width: 100%; overflow: auto; }
    .search { width: 100%; }
    .filters { position: static; }
}
