:root {
  --navy: #071d3a;
  --blue: #0c3d75;
  --accent: #f2a400;
  --accent-strong: #e78900;
  --ink: #10233e;
  --muted: #66758a;
  --line: #dce4ed;
  --soft: #f4f7fa;
  --white: #fff;
  --shadow: 0 16px 48px rgba(6, 29, 58, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: linear-gradient(180deg, #f4f7fa 0, #fff 420px); }
button, input, select { font: inherit; }
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23071d3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}
a { color: inherit; }
.shell { width: min(1420px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { background: #fff; position: relative; z-index: 5; box-shadow: 0 1px 0 rgba(7,29,58,.1); }
.topline { height: 5px; background: linear-gradient(90deg, var(--accent) 0 18%, var(--navy) 18% 100%); }
.header-inner { width: min(1420px, calc(100% - 48px)); margin: auto; height: 88px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; padding-right: 26px; border-right: 1px solid var(--line); }
.brand img { width: 148px; height: 42px; object-fit: contain; display: block; }
.product-title { display: grid; gap: 2px; }
.product-title strong { color: var(--navy); font-size: 21px; }
.product-title span { color: var(--muted); font-size: 13px; }
.language-control { margin-left: auto; }
.language-control select, .sort-control select { border: 1px solid var(--line); border-radius: 4px; background-color: #fff; color: var(--ink); padding: 10px 48px 10px 12px; }

.intro { min-height: 260px; padding-block: 62px 42px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 36px; }
.eyebrow { margin: 0 0 12px; color: var(--accent-strong); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
h1 { max-width: 760px; margin: 0; color: var(--navy); font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -.045em; }
.lead { max-width: 760px; margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.catalog-status { min-width: 220px; border-left: 5px solid var(--accent); padding: 10px 0 10px 20px; display: grid; }
.catalog-status strong { color: var(--navy); font-size: 38px; line-height: 1; }
.catalog-status span { margin-top: 8px; color: var(--muted); font-size: 14px; }

.finder { border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.group-tabs { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--navy); }
.group-tab { min-height: 86px; border: 0; border-right: 1px solid rgba(255,255,255,.15); background: transparent; color: #fff; padding: 16px; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 12px; transition: background .2s, color .2s; }
.group-tab:last-child { border-right: 0; }
.group-tab:hover, .group-tab:focus-visible { background: var(--blue); }
.group-tab.active { background: var(--accent); color: var(--navy); }
.group-tab .tab-icon { width: 36px; height: 36px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.group-tab strong { font-size: 15px; line-height: 1.25; }
.group-tab small { display: block; margin-top: 3px; opacity: .72; font-size: 11px; }
.filter-panel { padding: 30px; }
.search-wrap label, .filters label > span { display: block; margin-bottom: 8px; color: var(--navy); font-size: 13px; font-weight: 750; }
.search-field { position: relative; }
.search-field svg { position: absolute; left: 16px; top: 50%; width: 21px; transform: translateY(-50%); fill: none; stroke: var(--blue); stroke-width: 2; }
.search-field input { width: 100%; min-height: 58px; border: 1px solid #cbd7e3; border-radius: 4px; padding: 0 18px 0 50px; color: var(--ink); font-size: 17px; outline: none; }
.search-field input:focus, .filters select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(12,61,117,.12); }
.filters { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.filters select { width: 100%; min-height: 50px; border: 1px solid #cbd7e3; border-radius: 4px; background-color: #fff; color: var(--ink); padding: 0 48px 0 13px; outline: none; }
.filters select:disabled { background: var(--soft); color: #9ba8b6; cursor: not-allowed; }
.filter-actions { min-height: 34px; margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.filter-actions p { margin: 0; color: var(--muted); font-size: 14px; }
.text-button { border: 0; background: none; color: var(--blue); font-weight: 700; cursor: pointer; padding: 7px; }

.results { padding-block: 58px 88px; }
.results-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.results-head h2 { margin: 0; color: var(--navy); font-size: clamp(24px, 3vw, 36px); letter-spacing: -.025em; }
.sort-control { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.empty-state { min-height: 260px; border: 1px dashed #b9c8d7; background: rgba(244,247,250,.8); display: grid; place-items: center; align-content: center; text-align: center; padding: 40px; }
.empty-icon { color: var(--accent-strong); font-size: 54px; line-height: 1; }
.empty-state h3 { margin: 12px 0 8px; color: var(--navy); font-size: 22px; }
.empty-state p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.6; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card { min-width: 0; border: 1px solid var(--line); background: #fff; display: grid; grid-template-rows: 220px 1fr; transition: transform .2s, box-shadow .2s, border-color .2s; }
.product-card:hover { transform: translateY(-3px); border-color: #b7c8da; box-shadow: var(--shadow); }
.product-image { display: grid; place-items: center; padding: 20px; background: linear-gradient(145deg, #f6f8fa, #fff); overflow: hidden; }
.product-image img { max-width: 100%; max-height: 180px; object-fit: contain; transition: transform .25s; }
.product-card:hover .product-image img { transform: scale(1.035); }
.product-body { min-width: 0; padding: 22px; display: flex; flex-direction: column; }
.product-breadcrumb { color: var(--accent-strong); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.product-body h3 { margin: 8px 0 10px; color: var(--navy); font-size: 23px; overflow-wrap: anywhere; }
.product-description { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag { border: 1px solid #d5e0eb; background: #f7f9fb; color: #40536b; border-radius: 999px; padding: 5px 9px; font-size: 11px; }
.product-actions { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.primary-link { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--navy); color: #fff; text-decoration: none; padding: 0 16px; font-size: 13px; font-weight: 750; }
.primary-link:hover { background: var(--blue); }
.download-links { display: flex; gap: 10px; flex-wrap: wrap; }
.download-link { color: var(--blue); text-decoration: none; font-size: 12px; font-weight: 700; }
.download-link:hover { text-decoration: underline; }
.load-more { display: block; min-width: 220px; margin: 30px auto 0; border: 1px solid var(--navy); background: #fff; color: var(--navy); padding: 13px 22px; font-weight: 750; cursor: pointer; }
.load-more:hover { background: var(--navy); color: #fff; }

footer { border-top: 1px solid var(--line); background: var(--navy); color: rgba(255,255,255,.72); }
.footer-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 13px; }
.footer-inner a { color: #fff; }
.powered { text-decoration: none; white-space: nowrap; }
.powered strong { color: var(--accent); letter-spacing: .05em; }

@media (max-width: 980px) {
  .group-tabs { grid-template-columns: repeat(3, 1fr); }
  .group-tab:nth-child(3) { border-right: 0; }
  .group-tab:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.15); }
  .filters { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .shell, .header-inner { width: min(100% - 28px, 1420px); }
  .header-inner { height: 76px; gap: 12px; }
  .brand { padding-right: 12px; }
  .brand img { width: 104px; height: 34px; }
  .product-title span { display: none; }
  .product-title strong { font-size: 15px; }
  .language-control select { max-width: 95px; padding-right: 26px; }
  .intro { min-height: 0; padding-block: 40px 28px; grid-template-columns: 1fr; }
  h1 { font-size: 40px; }
  .lead { font-size: 16px; }
  .catalog-status { min-width: 0; }
  .group-tabs { grid-template-columns: 1fr 1fr; }
  .group-tab { min-height: 72px; padding: 12px; }
  .group-tab:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.15); }
  .group-tab:nth-child(even) { border-right: 0; }
  .filter-panel { padding: 20px; }
  .filters { grid-template-columns: 1fr; }
  .filter-actions, .results-head, .footer-inner { align-items: flex-start; flex-direction: column; }
  .sort-control { width: 100%; justify-content: space-between; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { grid-template-rows: 190px 1fr; }
  .footer-inner { padding-block: 24px; min-height: 0; }
}
