/* ==========================================================================
   tineco.kz — дизайн-система (plain CSS, без сборки)
   Светлая технологичная тема. Поддерживает и классовые, и «голые» страницы.
   ========================================================================== */

/* ---------- Шрифты ---------- */
/* Manrope — вариативный шрифт (SIL OFL), кириллица + латиница */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  --brand: #0066FF;
  --brand-2: #00C2FF;
  --brand-ink: #0047B3;
  --ink: #0F172A;
  --muted: #5B6B7F;
  --line: #E6ECF3;
  --bg: #F5F8FC;
  --white: #fff;
  --ok: #16A34A;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg: 0 12px 40px rgba(15,23,42,.12);
  --maxw: 76rem;
}

/* ---------- Сброс / база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; border-radius: var(--r-sm); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------- Типографика ---------- */
h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; margin: 0 0 1rem; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.25; font-weight: 800; letter-spacing: -.01em; margin: 0 0 .85rem; }
h3 { font-size: 1.15rem; line-height: 1.35; font-weight: 700; margin: 0 0 .5rem; }
h4 { font-size: 1rem; font-weight: 700; margin: 0 0 .4rem; }
p { margin: 0 0 .8rem; }
.lead { font-size: 1.12rem; color: var(--muted); }
figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

/* ---------- Контейнер ---------- */
.container, .mx-auto { margin-left: auto; margin-right: auto; }
.max-w-6xl { max-width: var(--maxw); }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.w-full { width: 100%; }
.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; }

/* ---------- Утилиты ---------- */
.flex { display: flex; } .grid { display: grid; gap: 1.25rem; }
.flex-wrap { flex-wrap: wrap; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; } .gap-10 { gap: 2.5rem; }
.hidden { display: none; } .block { display: block; } .inline-block { display: inline-block; }
.text-center { text-align: center; } .text-left { text-align: left; }
.text-sm { font-size: .875rem; } .text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; } .text-2xl { font-size: 1.5rem; }
.font-bold { font-weight: 700; } .font-semibold { font-weight: 600; }
.tracking-tight { letter-spacing: -.02em; }
.text-white { color: #fff; } .text-ink { color: var(--ink); }
.text-brand { color: var(--brand); } .text-slate-600 { color: var(--muted); } .text-slate-500 { color: #6B7A8D; }
.hover\:text-brand:hover { color: var(--brand); }
.bg-white { background: var(--white); } .bg-white\/95 { background: rgba(255,255,255,.9); }
.bg-mist { background: var(--bg); } .bg-brand { background: var(--brand); }
.backdrop-blur { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.border { border: 1px solid var(--line); } .border-t { border-top: 1px solid var(--line); }
.border-b { border-bottom: 1px solid var(--line); }
.border-slate-100 { border-color: #EEF3F8; } .border-slate-200 { border-color: var(--line); }
.border-slate-300 { border-color: #D3DEEA; } .border-brand { border-color: var(--brand); }
.rounded-xl { border-radius: var(--r-sm); } .rounded-2xl { border-radius: var(--r); }
.p-2 { padding: .5rem; } .p-3 { padding: .75rem; } .p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-6 { padding-top: 1.5rem; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; } .mt-16 { margin-top: 4rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: .5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: .75rem; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; line-height: 1; cursor: pointer;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff !important; box-shadow: 0 6px 18px rgba(0,102,255,.28); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-outline { background: #fff; border-color: var(--brand); color: var(--brand) !important; }
.btn-outline:hover { background: #EAF2FF; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink) !important; }
.btn-ghost:hover { border-color: #C7D5E6; }
.btn-block { display: flex; width: 100%; }

/* Кнопки-ссылки из старых шаблонов (class-based) */
.bg-brand.rounded-2xl, a.bg-brand {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; text-decoration: none; border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
a.bg-brand:hover { background: var(--brand-ink); text-decoration: none; transform: translateY(-1px); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: .7rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo img { height: 40px; width: 146px; object-fit: cover; display: block; }
@media (max-width: 767px) { .logo img { height: 34px; width: 124px; } }
.site-nav { display: flex; align-items: center; gap: 1.35rem; }
.site-nav > a { font-size: .95rem; font-weight: 500; color: var(--ink); }
.site-nav > a:hover { color: var(--brand); text-decoration: none; }
.site-nav > a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.site-nav .nav-cta { padding: .6rem 1.1rem; font-size: .92rem; }
.burger { display: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .55rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero, main > section.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(0,194,255,.16), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(0,102,255,.10), transparent 55%),
    linear-gradient(180deg, #fff, var(--bg));
}
.hero-grid { max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 1rem; display: grid; gap: 2.5rem; align-items: center; }
.hero-grid > div > ul { list-style: none; padding: 0; }
.hero-grid > div > ul li { position: relative; padding-left: 1.6rem; color: var(--muted); }
.hero-grid > div > ul li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.hero-figure img, .hero figure img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); background: #fff; }
.hero > div > ul { list-style: none; padding: 0; }
.hero > div > ul li { position: relative; padding-left: 1.6rem; color: var(--muted); }
.hero > div > ul li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* Баннер */
.banner-wrap { margin: 1.25rem 0 0; }
.banner-img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); }

/* Промо-слайдер (Kaspi Жұма) */
.promo-slider { max-width: var(--maxw); margin: 1.25rem auto 0; padding: 0 1rem; }
.promo-controls { display: inline-flex; gap: .5rem; }
.promo-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.promo-btn:hover:not(:disabled) { background: var(--brand); border-color: var(--brand); color: #fff; }
.promo-btn:disabled { opacity: .35; cursor: default; }
.promo-track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: .25rem .25rem .75rem; margin: 0 -.25rem;
}
.promo-track::-webkit-scrollbar { display: none; }
.promo-slide {
  flex: 0 0 100%; scroll-snap-align: start; position: relative; display: block;
  border-radius: var(--r-lg); overflow: hidden; background: #EA3524;
  box-shadow: var(--shadow); transition: box-shadow .25s ease;
}
.promo-slide img { display: block; width: 100%; height: auto; border-radius: 0; transition: transform .5s ease; }
.promo-slide:hover { text-decoration: none; box-shadow: var(--shadow-lg); }
.promo-slide:hover img { transform: scale(1.015); }
.promo-dots { display: flex; justify-content: center; gap: .5rem; margin-top: .35rem; }
.promo-dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: #CBD5E1; cursor: pointer; transition: background .2s ease, width .2s ease;
}
.promo-dot.is-active { width: 26px; border-radius: 5px; background: var(--brand); }
@media (min-width: 720px) {
  .promo-slide { flex-basis: calc((100% - 1rem) / 2); }
}
@media (prefers-reduced-motion: reduce) {
  .promo-track { scroll-behavior: auto; }
  .promo-slide img { transition: none; }
}

/* Блок «№1 бренд» */
.brand-no1 { display: grid; gap: 2rem; align-items: center; }
.brand-no1 figure { margin: 0; }
.brand-no1 img { display: block; width: 100%; max-width: 460px; margin: 0 auto; border-radius: var(--r-lg); box-shadow: var(--shadow); }
@media (max-width: 767px) { .brand-no1 figure { order: -1; } }
@media (min-width: 768px) { .brand-no1 { grid-template-columns: 1fr minmax(320px, 460px); } }

/* Видео */
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Соцсети */
.social { display: inline-flex; align-items: center; gap: .5rem; }.social-link { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); background: #fff; }
.social-link:hover { color: #fff; background: var(--brand); border-color: var(--brand); text-decoration: none; }
.site-footer .social { margin-top: 1rem; }
.site-footer .social-link { background: transparent; border-color: rgba(255,255,255,.22); color: #C7D2E0; }
.site-footer .social-link:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Поиск */
.nav-search { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink); }
.nav-search:hover { color: var(--brand); background: var(--bg); text-decoration: none; }
.search-item { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.15rem; background: #fff; margin-bottom: .75rem; }
.search-item h2 { font-size: 1.05rem; margin: .2rem 0 .35rem; }
.search-cat { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }

/* ---------- Секции ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding-inline: 1rem; }
main > section { margin: 3rem 0; }
main > section:first-of-type { margin-top: 1.25rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .4rem; }

/* ---------- Карточки ---------- */
.card, main article, .product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.4rem; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover, main article:hover, .product-card:hover { box-shadow: var(--shadow); border-color: #D8E4F2; transform: translateY(-2px); }
.product-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.product-card .pc-media { aspect-ratio: 4 / 3; background: linear-gradient(180deg, #fff, var(--bg)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card .pc-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.product-card .pc-media picture { display: block; width: 100%; height: 100%; }
.product-card .pc-media.is-contain { padding: .75rem; }
.product-card .pc-media.is-contain img { object-fit: contain; }
.product-card .pc-body { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.product-card h3 { margin: 0; font-size: 1.05rem; }
.product-card .pc-specs { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.product-card .pc-specs li { font-size: .88rem; color: var(--muted); padding-left: 1.2rem; position: relative; }
.product-card .pc-specs li::before { content: '•'; position: absolute; left: .25rem; color: var(--brand); }
.product-card .pc-actions { margin-top: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.product-card .pc-actions .btn { padding: .65rem 1rem; font-size: .9rem; flex: 1; }

/* Карточки магазинов («Қайдан сатып алу»): кнопки на одном уровне */
@media (min-width: 768px) {
  #mechta, #kaspi, #dns { display: flex; flex-direction: column; }
  #mechta > .btn, #kaspi > .btn, #dns > .btn { margin-top: auto; }
}
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: #EAF2FF; color: var(--brand); }
.badge-hot { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }

/* ---------- Сетки карточек ---------- */
.grid-cards { display: grid; gap: 1.25rem; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs, nav[aria-label="breadcrumb"] ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none;
  padding: 1.25rem 0 .25rem; margin: 0; font-size: .875rem; color: var(--muted);
}
nav[aria-label="breadcrumb"] a { color: var(--muted); }
nav[aria-label="breadcrumb"] a:hover { color: var(--brand); }

/* ---------- Характеристики ---------- */
table, .spec-table { width: 100%; border-collapse: collapse; }
caption { text-align: left; font-weight: 700; padding: .5rem 0; }
th, td { border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; font-size: .95rem; vertical-align: top; }
thead th { background: var(--bg); font-weight: 700; }
tbody th[scope="row"] { background: #FAFCFF; font-weight: 600; color: var(--muted); width: 42%; }
.spec-table tbody tr:nth-child(even) td { background: #FBFDFF; }

/* ---------- Аккордеон ---------- */
.faq-item, [data-faq-item] { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.15rem 1.25rem; margin-bottom: .75rem; }
.faq-item h3, [data-faq-item] h3 { margin: 0 0 .5rem; }
[data-accordion-btn] {
  display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid #D3DEEA;
  border-radius: 999px; padding: .5rem 1rem; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--ink);
}
[data-accordion-btn]::after { content: '▾'; font-size: .8rem; transition: transform .2s ease; }
[data-accordion-btn][aria-expanded="true"]::after { transform: rotate(180deg); }
[data-accordion-btn]:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Табы / фильтры ---------- */
[data-tabs] { display: flex; flex-wrap: wrap; gap: .5rem; }
[data-tab] {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: .5rem 1.05rem; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink);
}
[data-tab]:hover { border-color: var(--brand); color: var(--brand); }
[data-tab][aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Поля ввода ---------- */
input[type="text"], input[type="search"], input:not([type]) {
  width: 100%; padding: .8rem 1.1rem; border: 1px solid #D3DEEA; border-radius: 999px; font-size: 1rem; font-family: inherit;
}
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,102,255,.15); }

/* ---------- Карточки преимуществ (иконки-эмодзи-заменители) ---------- */
.feature { display: flex; gap: .9rem; align-items: flex-start; }
.feature .fi { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: #EAF2FF; display: grid; place-items: center; color: var(--brand); font-size: 1.25rem; }

/* ---------- Продуктовая страница ---------- */
.product-hero { display: grid; gap: 2rem; align-items: start; }
.product-hero .ph-info > ul { list-style: none; padding: 0; margin: 1rem 0; }
.product-hero .ph-info > ul li { position: relative; padding-left: 1.6rem; color: var(--muted); margin-bottom: .35rem; }
.product-hero .ph-info > ul li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.product-hero figure { margin: 0; }
.product-hero figure img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); background: #fff; }
.buy-box { border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; background: #fff; box-shadow: var(--shadow); }
.buy-box .price-note { color: var(--muted); font-size: .9rem; }

/* Нұсқаулық */
.manual-card { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; background: #fff; box-shadow: var(--shadow); }
.manual-card .manual-meta { display: grid; gap: .25rem; }
.manual-card .manual-title { font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.gallery img { border-radius: var(--r-sm); border: 1px solid var(--line); }

/* Галерея продукта */
.pdp-gallery { display: grid; gap: .75rem; min-width: 0; }
.pdp-main { position: relative; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(180deg, #fff, var(--bg)); border: 1px solid var(--line); }
.pdp-main picture { display: block; }
.pdp-main img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.pdp-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.92); display: grid; place-items: center; font-size: 1.5rem; line-height: 1; color: var(--ink); cursor: pointer; z-index: 2; }
.pdp-nav:hover { color: var(--brand); border-color: var(--brand); }
.pdp-prev { left: .5rem; } .pdp-next { right: .5rem; }
.pdp-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scroll-snap-type: x mandatory; }
.pdp-thumbs button { flex: 0 0 auto; width: 72px; height: 72px; padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; scroll-snap-align: start; }
.pdp-thumbs button[aria-current="true"] { border-color: var(--brand); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,23,42,.94); display: none; place-items: center; padding: 3.5rem 1rem; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 88vh; width: auto; border-radius: var(--r); }
.lightbox button { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Лайфстайл */
.lifestyle-grid { display: grid; gap: .75rem; }.lifestyle-grid figure { margin: 0; }
.lifestyle-grid img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
@media (min-width: 640px) {
  .lifestyle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lifestyle-wide { grid-column: 1 / -1; }
}

/* ---------- Футер ---------- */
.site-footer { background: #0B1220; color: #C7D2E0; margin-top: 4rem; }
.site-footer a { color: #C7D2E0; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1rem 2rem; display: grid; gap: 2rem; }
.footer-grid .logo { color: #fff; }
.footer-grid h4, .footer-grid .ftitle { color: #fff; font-weight: 700; margin: 0 0 .9rem; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-grid p { color: #93A2B8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { max-width: var(--maxw); margin: 0 auto; padding: 1.1rem 1rem; font-size: .85rem; color: #8A99AE; }

/* ---------- Sticky CTA (моб.) ---------- */
.sticky-cta, main + div.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: .7rem 1rem;
}
.sticky-cta a { display: block; text-align: center; background: var(--brand); color: #fff !important; font-weight: 700; padding: .95rem 1rem; border-radius: 999px; text-decoration: none; }
body { padding-bottom: 84px; }

/* ---------- Наверх ---------- */
.to-top { position: fixed; right: 1rem; bottom: 96px; z-index: 55; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: none; place-items: center; cursor: pointer; color: var(--brand); font-size: 1.1rem; }
.to-top.show { display: grid; }

/* ==========================================================================
   «Голые» страницы (продукты, статьи): стилизация по тегам
   ========================================================================== */
body > header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
body > header > div { max-width: var(--maxw); margin: 0 auto; padding: .7rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
body > header > div > a:first-child { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
body > header nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
body > header nav a { font-size: .95rem; font-weight: 500; color: var(--ink); }
body > header nav a:hover { color: var(--brand); text-decoration: none; }

main figure img { width: 100%; }

/* Статьи блога: читаемая колонка */
main > article { max-width: 100%; }
.prose { max-width: 52rem; }
main > article h1 { margin-top: .25rem; }
main > article figure { margin: 1.5rem 0; }

/* Карточки блога */
.blog-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.blog-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg); }
.blog-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.blog-body { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.blog-body h3 { margin: 0; font-size: 1.05rem; }
.blog-body h3 a { color: var(--ink); }
.blog-body h3 a:hover { color: var(--brand); text-decoration: none; }
.blog-body time { margin-top: auto; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .md\:flex { display: flex; } .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .grid-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-grid { grid-template-columns: 1.05fr .95fr; padding: 4.5rem 1rem; }
  .product-hero { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; }
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
  .to-top { bottom: 1.25rem; }
}
@media (min-width: 1024px) {
  .grid-cards { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .burger { display: inline-flex; }
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: .35rem;
    position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem);
    background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: .75rem;
  }
  .site-nav.is-open > a { padding: .6rem .75rem; border-radius: 10px; }
  .site-nav.is-open > a:hover { background: var(--bg); }
  .header-inner { position: relative; }
  .spec-table thead { display: none; }
  .spec-table tr { display: block; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: .75rem; padding: .5rem .9rem; background: #fff; }
  .spec-table td, .spec-table th { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .45rem 0; }
  .spec-table tbody th[scope="row"] { width: auto; }
  table:not(.spec-table) { font-size: .9rem; }
}

/* ---------- Печать ---------- */
@media print {
  .site-header, .site-footer, .sticky-cta, .to-top { display: none !important; }
}
