/* Afitin Group — sayt dizayn sistemi (kataloq stili: #112b40 / #087ba9 / #eef3f7) */
:root {
  --navy: #112b40;
  --navy-2: #0b1f30;
  --accent: #087ba9;
  --accent-2: #0a93c9;
  --accent-soft: #e3f1f8;
  --light: #eef3f7;
  --line: #d8e2ea;
  --text: #233747;
  --muted: #64798a;
  --white: #fff;
  --ok: #1b8a5a;
  --err: #c0392b;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(17, 43, 64, .08);
  --shadow-lg: 0 24px 60px rgba(17, 43, 64, .16);
  --container: 1240px;
  --font: "Noto Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--white); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.bg-light { background: var(--light); }
.bg-navy { background: var(--navy); color: #c9d6e1; }
.bg-navy h2, .bg-navy h3 { color: #fff; }

/* Eyebrow + section head */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { max-width: 620px; color: var(--muted); margin: 0; }
.section-head h2 { margin-bottom: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .2s; white-space: nowrap; line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--accent); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: .85rem; }

/* ===== Topbar ===== */
.topbar { background: var(--navy-2); color: #9fb3c4; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a { color: #c9d6e1; }
.topbar a:hover { color: #fff; }
.topbar-contacts { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar-contacts span, .topbar-contacts a { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; opacity: .8; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.08); }
.socials a:hover { background: var(--accent); color: #fff; }
.socials svg { width: 14px; height: 14px; }

.lang-switch { display: flex; gap: 2px; background: rgba(255,255,255,.06); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; text-transform: uppercase; color: #9fb3c4; }
.lang-switch a.active { background: var(--accent); color: #fff; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo img { height: 46px; width: auto; }
.logo-text { font-weight: 800; color: var(--navy); font-size: 1.25rem; letter-spacing: .02em; line-height: 1; }
.logo-text small { display: block; font-size: .62rem; letter-spacing: .2em; color: var(--muted); font-weight: 600; margin-top: 4px; }
.main-nav { flex: 1; }
.main-nav > ul { display: flex; list-style: none; gap: 4px; align-items: center; }
.main-nav > ul > li > a, .main-nav > ul > li > button {
  display: inline-flex; align-items: center; gap: 6px; padding: 26px 12px; color: var(--navy);
  font-weight: 600; font-size: .95rem; background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > button:hover, .main-nav > ul > li.active > a { color: var(--accent); }
.main-nav .chev { width: 14px; height: 14px; transition: transform .2s; }
.has-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega { opacity: 1; visibility: visible; transform: none; }
.has-mega:hover .chev { transform: rotate(180deg); }
.mega .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 32px; padding-top: 32px; padding-bottom: 32px; min-height: 0; align-items: start; }
.mega-col h4 { font-size: .95rem; margin-bottom: 10px; }
.mega-col h4 a { color: var(--navy); display: flex; gap: 10px; align-items: center; }
.mega-col h4 a:hover { color: var(--accent); }
.mega-col h4 .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.mega-col h4 .ico svg { width: 18px; height: 18px; }
.mega-col ul { list-style: none; display: grid; gap: 6px; padding-left: 44px; }
.mega-col li a { color: var(--muted); font-size: .88rem; }
.mega-col li a:hover { color: var(--accent); }
.mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: .9rem; gap: 16px; flex-wrap: wrap; }
.header-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(11, 31, 48, .55); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: #fff; transform: translateX(100%); transition: transform .25s; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-nav a { display: block; padding: 11px 4px; border-bottom: 1px solid var(--light); color: var(--navy); font-weight: 600; }
.drawer details summary { padding: 11px 4px; border-bottom: 1px solid var(--light); font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.drawer details summary::-webkit-details-marker { display: none; }
.drawer details a { padding-left: 16px; font-weight: 500; font-size: .92rem; color: var(--text); }

/* ===== Hero ===== */
.hero { position: relative; background: radial-gradient(1200px 600px at 85% 10%, #18496a 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #c9d6e1; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #5cc6f0; }
.hero-lead { font-size: 1.12rem; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 32px; justify-content: start; }
.hero-stats b { display: block; font-size: 1.9rem; color: #fff; line-height: 1.1; }
.hero-stats span { font-size: .85rem; color: #9fb3c4; }
.hero-visual { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-visual a { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); display: block; }
.hero-visual a:first-child { grid-row: span 2; aspect-ratio: auto; }
.hero-visual img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .4s; }
.hero-visual a:hover img { transform: scale(1.04); }
.hero-visual span { position: absolute; left: 12px; bottom: 12px; right: 12px; background: rgba(17,43,64,.9); color: #fff; font-size: .8rem; font-weight: 600; padding: 7px 12px; border-radius: 8px; }

/* ===== Direction cards ===== */
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dir-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .25s; color: var(--text); }
.dir-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); color: var(--text); }
.dir-media { aspect-ratio: 16 / 9; background: var(--light); display: grid; place-items: center; overflow: hidden; }
.dir-media img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .4s; }
.dir-card:hover .dir-media img { transform: scale(1.05); }
.dir-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.dir-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.dir-body p { color: var(--muted); font-size: .92rem; flex: 1; }
.dir-meta { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; font-weight: 600; color: var(--accent); border-top: 1px solid var(--light); padding-top: 14px; margin-top: 6px; }
.dir-meta svg { width: 18px; height: 18px; transition: transform .2s; }
.dir-card:hover .dir-meta svg { transform: translateX(4px); }
.dir-card.compact .dir-media { aspect-ratio: 16 / 7; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { display: inline-block; font-size: .76rem; padding: 4px 10px; border-radius: 999px; background: var(--light); color: var(--muted); }

/* ===== Product cards ===== */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-products.cols-3 { grid-template-columns: repeat(3, 1fr); }
.p-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .25s; color: var(--text); height: 100%; }
.p-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-3px); color: var(--text); }
.p-media { aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--light); display: grid; place-items: center; overflow: hidden; }
.p-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .35s; }
.p-card:hover .p-media img { transform: scale(1.05); }
.p-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.p-cat { font-size: .74rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.p-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-models { font-size: .8rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.p-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; font-weight: 600; color: var(--accent); }
.p-foot svg { width: 16px; height: 16px; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); padding: 22px 18px; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 1.6rem; font-weight: 800; color: #5cc6f0; margin-bottom: 12px; }
.step h3 { font-size: 1rem; margin-bottom: 6px; color: #fff; }
.step p { font-size: .86rem; margin: 0; color: #9fb3c4; }

/* ===== Features ===== */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ===== Catalog cards ===== */
.catalog-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.catalog-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.catalog-cover { position: relative; aspect-ratio: 3 / 4; background: linear-gradient(170deg, var(--navy), #163b57); color: #fff; padding: 20px 18px; display: flex; flex-direction: column; }
.catalog-cover .brand { font-size: .64rem; letter-spacing: .24em; font-weight: 700; color: #5cc6f0; }
.catalog-cover h3 { color: #fff; font-size: 1.02rem; margin: 10px 0 0; text-transform: uppercase; letter-spacing: .02em; }
.catalog-cover .img { margin-top: auto; background: #fff; border-radius: 10px; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.catalog-cover .img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.catalog-cover .pages { position: absolute; top: 18px; right: 16px; font-size: .7rem; color: #9fb3c4; }
.catalog-body { padding: 14px; display: grid; gap: 8px; }

/* ===== Page hero (inner) ===== */
.page-hero { background: linear-gradient(160deg, var(--navy) 0%, #163b57 100%); color: #c9d6e1; padding: 46px 0 52px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(8,123,169,.45), transparent 70%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 10px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.page-hero p { max-width: 760px; margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .85rem; margin-bottom: 18px; color: #9fb3c4; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a { color: #c9d6e1; }
.breadcrumbs a:hover { color: #fff; }

/* ===== Catalog layout ===== */
.catalog-layout { display: grid; grid-template-columns: 290px 1fr; gap: 36px; align-items: start; }
.sidebar { position: sticky; top: 96px; display: grid; gap: 18px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-box h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.cat-tree { list-style: none; display: grid; gap: 2px; }
.cat-tree a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--navy); font-size: .92rem; font-weight: 600; }
.cat-tree a:hover { background: var(--light); }
.cat-tree a.active { background: var(--accent); color: #fff; }
.cat-tree a .cnt { font-size: .75rem; font-weight: 600; color: var(--muted); }
.cat-tree a.active .cnt { color: #d7eef8; }
.cat-tree ul { list-style: none; padding-left: 12px; margin: 2px 0 6px; border-left: 2px solid var(--light); }
.cat-tree ul a { font-weight: 500; font-size: .87rem; color: var(--text); }
.side-cta { background: var(--navy); color: #c9d6e1; border: 0; }
.side-cta h3 { color: #5cc6f0; }
.side-cta p { font-size: .9rem; }
.side-cta .manager { font-weight: 700; color: #fff; }
.side-cta a { color: #fff; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: .92rem; }
.search-box { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 16px; min-width: 280px; }
.search-box input { border: 0; outline: 0; flex: 1; padding: 8px 0; background: transparent; min-width: 0; }
.search-box button { border: 0; background: var(--accent); color: #fff; border-radius: 999px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; }
.search-box svg { width: 16px; height: 16px; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.subcats a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); font-size: .88rem; font-weight: 600; background: #fff; }
.subcats a:hover, .subcats a.active { border-color: var(--accent); background: var(--accent); color: #fff; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; justify-content: center; margin-top: 40px; }
.pagination .page-link, .pagination span.page-link { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--navy); font-weight: 600; background: #fff; }
.pagination .active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .disabled .page-link { opacity: .45; }
nav[role="navigation"] > div:first-child.d-flex.justify-content-between.flex-fill.d-sm-none { display: none; }
nav[role="navigation"] .small.text-muted { display: none; }

/* ===== Product page ===== */
.product-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.gallery-main { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.gallery-thumbs button { border: 2px solid var(--line); border-radius: 10px; background: #fff; padding: 4px; aspect-ratio: 1; cursor: pointer; overflow: hidden; }
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-info .p-cat { margin-bottom: 8px; display: inline-block; }
.product-info h1 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); margin-bottom: 14px; }
.models-line { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; background: var(--light); border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-size: .92rem; }
.models-line b { color: var(--navy); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.lead { font-size: 1.05rem; color: var(--text); }
.check-list { list-style: none; display: grid; gap: 10px; margin: 18px 0 24px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087ba9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.manager-card { display: flex; gap: 14px; align-items: center; font-size: .9rem; }
.manager-card .av { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.manager-card a { font-weight: 600; }
.note { font-size: .82rem; color: var(--muted); border-left: 3px solid var(--accent); padding: 8px 12px; background: var(--light); border-radius: 0 8px 8px 0; margin: 0; }

.tabs-nav { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.tabs-nav a { padding: 12px 18px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs-nav a:hover { color: var(--navy); }
.block { margin-bottom: 48px; scroll-margin-top: 110px; }
.block > h2 { font-size: 1.4rem; margin-bottom: 18px; }

.spec-title { font-size: 1rem; margin: 22px 0 10px; color: var(--navy); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; -webkit-overflow-scrolling: touch; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table th, .spec-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--light); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .82rem; white-space: nowrap; position: sticky; top: 0; }
.spec-table tbody th { font-weight: 600; color: var(--navy); background: #f7fafc; width: 38%; }
.spec-table.wide tbody th { width: auto; white-space: nowrap; position: sticky; left: 0; z-index: 1; min-width: 180px; white-space: normal; }
.spec-table.wide td { white-space: nowrap; text-align: center; }
.spec-table tbody tr:nth-child(even) td { background: #fbfdfe; }
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.apps-grid div { background: var(--light); border-radius: 10px; padding: 14px 16px; font-size: .92rem; font-weight: 600; color: var(--navy); }

/* Quote form */
.quote-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.quote-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8,123,169,.15); }
.field textarea { min-height: 110px; resize: vertical; }
.field .err { color: var(--err); font-size: .8rem; margin-top: 4px; display: block; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.hp { position: absolute; left: -9999px; }

.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }
.alert-success { background: #e6f5ee; color: var(--ok); border: 1px solid #bfe5d2; }
.alert-danger { background: #fbeaea; color: var(--err); border: 1px solid #f2c6c2; }
.flash { position: fixed; right: 20px; bottom: 20px; z-index: 120; max-width: 380px; box-shadow: var(--shadow-lg); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--accent) 0%, #0b5f86 100%); color: #e6f4fa; border-radius: 22px; padding: 44px; display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.partner { aspect-ratio: 3 / 2; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; padding: 14px; }
.partner img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: all .2s; }
.partner:hover img { filter: none; opacity: 1; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--text); transition: all .25s; }
.news-card:hover { box-shadow: var(--shadow-lg); color: var(--text); }
.news-card .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--light); }
.news-card .media img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 18px 20px 22px; }
.news-card time { font-size: .8rem; color: var(--muted); }
.news-card h3 { font-size: 1.05rem; margin: 6px 0 8px; }
.news-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Prose */
.prose { font-size: 1.02rem; }
.prose img { border-radius: var(--radius); margin: 20px 0; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.rounded-img { border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }

/* Contact */
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card small { display: block; color: var(--muted); font-size: .8rem; }
.contact-card b, .contact-card a { color: var(--navy); font-weight: 700; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-2); color: #9fb3c4; font-size: .92rem; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 40px; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #c9d6e1; }
.site-footer a:hover { color: #fff; }
.footer-brand p { margin: 16px 0; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 4px; flex: none; color: #5cc6f0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.footer-disclaimer { font-size: .8rem; color: #7d93a6; }

/* Floating */
.float-actions { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 10px; }
.float-actions a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-lg); }
.float-actions .wa { background: #25d366; }
.float-actions .up { background: var(--navy); opacity: 0; pointer-events: none; transition: opacity .2s; }
.float-actions .up.show { opacity: 1; pointer-events: auto; }
.float-actions svg { width: 24px; height: 24px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 130; background: rgba(5, 15, 25, .92); display: none; place-items: center; padding: 30px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; max-width: 92vw; background: #fff; border-radius: 12px; padding: 12px; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ===== Responsive ===== */
@media (max-width: 1320px) {
  .header-cta .btn-outline { display: none; }
}
@media (max-width: 1180px) {
  .main-nav > ul > li > a, .main-nav > ul > li > button { padding-left: 8px; padding-right: 8px; font-size: .9rem; }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .header-cta .btn-outline { display: none; }
}
@media (max-width: 1024px) {
  .main-nav, .header-cta .btn { display: none; }
  .nav-toggle { display: grid; }
  .site-header .container { justify-content: space-between; }
  .hero .container, .product-top, .quote-wrap, .two-col { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; order: 2; }
  .dir-grid, .feature-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .partners { grid-template-columns: repeat(4, 1fr); }
  .cta-band { grid-template-columns: 1fr; }
  .grid-products.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .topbar-contacts .hide-sm { display: none; }
  .topbar .socials { display: none; }
  .grid-products, .grid-products.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dir-grid, .feature-grid, .news-grid, .footer-main { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .quote-box { padding: 22px; }
  .cta-band { padding: 28px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero-stats b { font-size: 1.4rem; }
  .search-box { min-width: 0; width: 100%; }
  .p-body { padding: 12px; }
  .p-title { font-size: .9rem; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 420px) {
  .grid-products, .grid-products.cols-3 { grid-template-columns: 1fr; }
  .hero-visual { grid-template-columns: 1fr; }
  .hero-visual a:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
}

/* Grid uşaqlarının məzmuna görə daşmasının qarşısı */
.catalog-layout > *, .quote-wrap > *, .product-top > *, .two-col > *, .hero .container > *, .footer-main > * { min-width: 0; }
.subcats { max-width: 100%; }

/* ===== Mobil menyu (drawer) ===== */
.drawer-panel { padding: 18px 20px 24px; gap: 10px; }
.drawer-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav > a,
.drawer details summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 4px; border-bottom: 1px solid var(--light);
  color: var(--navy); font-weight: 600; font-size: .98rem; line-height: 1.35;
}
.drawer details summary svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .2s; }
.drawer details[open] summary svg { transform: rotate(180deg); color: var(--accent); }
.drawer details[open] summary { color: var(--accent); }
.drawer details > a {
  display: block; padding: 9px 4px 9px 16px; border-bottom: 0; border-left: 2px solid var(--light);
  margin-left: 4px; font-weight: 500; font-size: .9rem; color: var(--text);
}
.drawer details > a:first-of-type { margin-top: 6px; color: var(--accent); font-weight: 600; }
.drawer details > a:last-child { margin-bottom: 8px; }
.drawer details > a:hover { border-left-color: var(--accent); color: var(--accent); }
.drawer .btn-block { margin-top: 10px; }
.drawer-head .nav-toggle { display: grid; }

/* Mobil dil seçimi */
.drawer-lang { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--light); border-radius: 12px; padding: 4px; margin-top: 4px; }
.drawer-lang a { text-align: center; padding: 10px 6px; border-radius: 9px; font-size: .85rem; font-weight: 600; color: var(--navy); }
.drawer-lang a.active { background: #fff; color: var(--accent); box-shadow: 0 2px 8px rgba(17,43,64,.12); }

/* Bloq məzmunu */
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--light); text-align: left; }
.prose thead th { background: var(--navy); color: #fff; font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(8,123,169,.35); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose h2 { font-size: 1.35rem; }
.prose ol { padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }
.side-cta .btn-light { color: var(--navy); }
.side-cta .btn-light:hover { color: #fff; }
