/*
Theme Name: АйтиДо
Theme URI: https://itdo.ru
Author: АйтиДо
Description: Тёмная тема сайта АйтиДо. При активации создаёт страницы, меню и переносит тексты с itdo.ru. Визуальный язык — спокойный тёмный продуктовый сайт.
Version: 1.9.9
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: itdo
*/

:root {
  --bg: #090909;
  --bg-raise: #111111;
  --card: #131313;
  --text: #f4f4f2;
  --muted: #a4a4a4;
  --faint: #8f8f8f;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --cream: #f3f1ea;
  --ink: #141414;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1120px;
  --header: 68px;
  --font: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(255, 255, 255, 0.06), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #f3f1ea; color: #141414; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--cream);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 80;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.wrap-wide { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(9, 9, 9, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1440px, calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 560;
  letter-spacing: -0.04em;
  font-size: 18px;
  flex: 0 0 auto;
}
.logo-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background:
    linear-gradient(160deg, #ffffff 0%, #d9d4c8 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.header-brand { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; min-width: 0; }
.brand-panel { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.nav-panel { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.tools-toggle { display: none; }
.tools-panel { display: contents; }
.msg-row { display: contents; }
.menu-search {
  display: flex;
  align-items: center;
  flex: 0 1 148px;
  width: 148px;
  max-width: 148px;
  height: 30px;
  margin: 0 2px;
  padding: 0 2px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}
.menu-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: white;
  font: inherit;
  font-size: 12.5px;
  outline: none;
}
.menu-search input::placeholder { color: var(--faint); }
.menu-search button {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.menu-search svg { width: 14px; height: 14px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.search-list { display: grid; gap: 12px; }
.search-hit {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}
.search-hit h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.03em; font-weight: 520; }
.search-hit h2 a { color: white; }
.search-hit p { margin: 0; color: var(--muted); }
.search-kind { margin-bottom: 6px !important; color: var(--faint) !important; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.search-hit .sum { color: white; margin: 0 0 8px; }
.nav-list, .subnav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-link, .subnav-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  color: #d7d7d7;
  font-size: 13.5px;
  white-space: nowrap;
}
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shop-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.shop-wrap { width: min(1280px, calc(100% - 40px)); }
.shop-side { position: sticky; top: 84px; }
.shop-side-label { margin: 0 0 10px; color: var(--faint); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.shop-tree ul { list-style: none; margin: 0; padding: 0 0 0 12px; }
.shop-tree > ul { padding-left: 0; }
.shop-tree li { margin: 4px 0; }
.shop-tree a, .shop-all { display: block; padding: 6px 8px; border-radius: 8px; color: #d7d7d7; }
.shop-folder > a { color: white; font-weight: 540; }
.shop-tree a:hover, .shop-tree a[aria-current="true"], .shop-all[aria-current="true"] { background: rgba(255,255,255,.06); color: white; }
.shop-main .product-grid, .shop-main .woocommerce ul.products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.shop-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); }
.shop-crumbs [aria-hidden="true"] { color: var(--faint); }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, .woocommerce div.product, .woocommerce-cart .cart_totals, .woocommerce-checkout #order_review {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; }
.woocommerce ul.products li.product a, .woocommerce div.product .product_title { color: var(--text); }
.woocommerce span.price, .woocommerce div.product p.price { color: white; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce ul.products li.product a.button, .woocommerce ul.products li.product a.button:hover,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  background: var(--cream);
  background-color: var(--cream);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  font-weight: 550;
  line-height: 1.2;
  text-align: center;
  box-shadow: none;
  text-shadow: none;
}
.woocommerce table.shop_table { color: #ddd; border-color: var(--line); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  background: #0e0e0e;
  color: white;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}
.nav-link:hover, .subnav-link:hover, .current-menu-item > .nav-link, .current-menu-item > .subnav-link {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}
.nav-item { position: relative; }
a.bar-shop { display: none; }
.subnav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  max-width: calc(100vw - 16px);
  flex-direction: column;
  align-items: stretch;
  padding: 8px;
  background: #161616;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.nav-item:hover > .subnav, .nav-item:focus-within > .subnav { display: flex; }
.subnav, .city-menu { max-height: min(70vh, calc(100dvh - 88px)); overflow: auto; }
.subnav-link { border-radius: 10px; justify-content: flex-start; }
.subnav-link.is-center, .btn-label-center { justify-content: center; text-align: center; }
.btn.btn-label-center { white-space: nowrap; flex-shrink: 0; }
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.shop-btn { border-radius: 12px; background: var(--cream); color: var(--ink); }
.msg {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  flex: 0 0 auto;
}
.msg svg { width: 16px; height: 16px; display: block; }
.city-switch { position: relative; }
.city-switch summary {
  list-style: none;
  cursor: pointer;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  color: white;
  font-size: 13px;
  white-space: nowrap;
}
.city-switch summary::-webkit-details-marker { display: none; }
.city-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  min-width: 210px;
  max-width: calc(100vw - 16px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #161616;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.city-menu button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: white;
  border: 0;
  border-radius: 8px;
  min-height: 34px;
  padding: 0 10px;
  cursor: pointer;
}
.city-menu button:hover, .city-menu button[aria-current="true"] { background: rgba(255,255,255,.06); }
.header-phone { color: var(--muted); font-size: 14px; white-space: nowrap; }
.header-phone:hover { color: white; }
.nav-toggle, .tools-toggle {
  display: none;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: white;
  font-size: 13px;
  cursor: pointer;
}
.to-top {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 45;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  color: white;
  cursor: pointer;
}
.to-top svg { width: 22px; height: 22px; display: block; }
.to-top[hidden] { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.btn:hover { transform: translateY(-1px); background: white; }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.05); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn.full { width: 100%; }

.hero { padding: 72px 0 28px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, .h1 {
  margin: 0;
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.048em;
  font-weight: 500;
}
.lede {
  max-width: 640px;
  margin: 22px 0 0;
  color: #c8c8c8;
  font-size: 18px;
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  gap: 18px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.stat b { display: block; font-size: 22px; letter-spacing: -0.04em; font-weight: 540; }
.stat span { color: var(--muted); font-size: 13px; }

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
  color: #bdbdbd;
  font-size: 14px;
}
.marquee-track { display: flex; gap: 18px; width: max-content; align-items: center; animation: drift 160s linear infinite; }
.marquee img { height: 64px; width: auto; max-width: 160px; object-fit: contain; background: #f3f1ea; border-radius: 12px; padding: 8px; }
.logo-img { height: 32px; width: auto; display: block; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; }
.hero-photo, .page-cover, .card-media > img, .person img {
  width: 100%;
  display: block;
  object-fit: cover;
  background: #161616;
}
.hero-photo, .page-cover { border-radius: 22px; aspect-ratio: 16/10; }
.page-cover { margin-top: 22px; max-width: 920px; }
.card-media > img { border-radius: 12px; aspect-ratio: 16/10; margin-bottom: 14px; }
.person img { aspect-ratio: 1; border-radius: 14px; margin-bottom: 12px; }
.shot-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.shot { padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 16px; overflow: hidden; }
.shot-row img, .shot img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 16px; background: #161616; display: block; transition: transform 0.35s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.gear-list li a { display: flex; align-items: center; gap: 12px; color: inherit; }
.gear-list li a:hover { color: white; }
.kb-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.kb-side { position: sticky; top: 84px; }
.kb-tree ul { list-style: none; margin: 0; padding: 0 0 0 12px; }
.kb-tree > ul { padding-left: 0; }
.kb-tree li { margin: 4px 0; }
.kb-tree a, .kb-folder > span { display: block; padding: 6px 8px; border-radius: 8px; color: #d7d7d7; }
.kb-folder > span { color: white; font-weight: 540; }
.kb-tree a:hover, .kb-tree a[aria-current="true"] { background: rgba(255,255,255,.06); color: white; }
.kb-main { display: grid; gap: 14px; }
.kb-main .doc-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; background: rgba(255,255,255,.03); }
.kb-cards { grid-template-columns: 1fr 1fr; }
.kb-card { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 18px; padding: 12px; background: rgba(255,255,255,.03); color: inherit; min-height: 100%; }
.kb-card:hover { border-color: rgba(255,255,255,.28); color: inherit; }
.kb-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; background: #161616; }
.kb-card h2 { margin: 4px 4px 0; font-size: 20px; letter-spacing: -0.03em; font-weight: 520; color: white; }
.kb-card p { margin: 0 4px; color: var(--muted); }
.kb-more { margin: auto 4px 6px; color: var(--cream); font-size: 14px; }
.kb-hero { margin: 0 0 18px; }
.kb-hero img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 18px; background: #161616; display: block; }
.kb-hero figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }
.kb-article .lede { margin-top: 0; }
.kb-source { margin-top: 18px; }
.kb-offer { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: start; margin-top: 36px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.03); }
.kb-offer h2 { margin: 8px 0 12px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.04em; font-weight: 520; }
.gear-ico { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: var(--cream); flex: 0 0 auto; }
.gear-ico svg { width: 22px; height: 22px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.card .btn { margin-top: 14px; }
.quote footer { display: flex; gap: 12px; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
@keyframes drift { to { transform: translateX(-50%); } }

.section { padding: 88px 0; }
#tarify { scroll-margin-top: calc(var(--header) + 16px); }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.section h2, .h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.section-head p, .sub { margin: 10px 0 0; color: var(--muted); max-width: 560px; }

.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.card, .price, .quote, .person, .dept, .step {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.price { display: flex; flex-direction: column; height: 100%; }
.price .btn { margin-top: auto; }
.card h3, .price h3, .dept h3, .step h3, .person strong {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.03em;
  font-weight: 540;
}
.card p, .dept p, .step p, .person span, .quote footer, .price li, .note {
  color: var(--muted);
}
.card p:last-child { margin-bottom: 0; }
.card .more { display: inline-flex; margin-top: 16px; color: white; font-size: 14px; }
.card .more:hover { text-decoration: underline; text-underline-offset: 3px; }

.banner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
  background: var(--cream);
  color: var(--ink);
}
.banner h2 { color: var(--ink); font-size: clamp(28px, 3vw, 40px); }
.banner .eyebrow { color: #5c5c5c; }
.banner p { margin: 8px 0 0; }
.banner .btn { background: var(--ink); color: white; }
.banner .btn:hover { background: #2a2a2a; }

.price .sum {
  font-size: 28px;
  letter-spacing: -0.04em;
  margin: 8px 0 14px;
}
.price ul { margin: 0 0 18px; padding: 0; list-style: none; }
.price li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.price li::before { content: ""; }

blockquote { margin: 0; }
.card ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.quotes { grid-template-columns: 1fr 1fr; }
.quote { min-height: 220px; display: flex; flex-direction: column; }
.quote p { margin: 0 0 18px; font-size: 16px; letter-spacing: -0.02em; }
.quote footer { margin-top: auto; font-size: 13px; }
.quote footer b { display: block; color: white; font-weight: 540; }

.person span, .role { display: block; color: var(--faint); font-size: 13px; margin-bottom: 6px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tab {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  cursor: pointer;
  color: #d0d0d0;
}
.tab[aria-selected="true"] { background: var(--cream); color: var(--ink); border-color: transparent; }
.panel { border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: rgba(255,255,255,0.02); }
.panel h3 { margin-top: 0; letter-spacing: -0.03em; }
.format-panel { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; align-items: center; }
.format-panel[hidden] { display: none; }
.format-panel img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 16px; }
.case-intro { margin-bottom: 14px; }
.case-intro h2 { margin: 0 0 8px; }
.case-intro .sub { margin: 0; max-width: 720px; }
.case-slider-bar { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
.case-arrow {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 18px;
}
.case-arrow:hover { background: rgba(255,255,255,.06); }
.case-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.case-track::-webkit-scrollbar { display: none; }
.case-slide {
  flex: 0 0 min(460px, 88%);
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
}
.case-slide img { width: 112px; height: 84px; object-fit: cover; border-radius: 10px; background: #161616; flex: none; }
.case-slide img.is-logo { object-fit: contain; background: #f3f1ea; padding: 6px; }
.case-copy { min-width: 0; }
.case-copy .eyebrow { margin: 0 0 2px; }
.case-copy strong { display: block; color: white; font-size: 18px; letter-spacing: -0.02em; }
.case-copy p { margin: 6px 0 0; color: #d0d0d0; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
table.matrix { width: 100%; border-collapse: collapse; min-width: 760px; }
.matrix th, .matrix td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.matrix th { font-weight: 540; background: #141414; }
.matrix td { color: #cfcfcf; }
.matrix tr:last-child td { border-bottom: 0; }
.matrix .price-cell { color: white; font-size: 16px; letter-spacing: -0.03em; }

.steps { counter-reset: step; }
.step { position: relative; }
.step em {
  display: block;
  font-style: normal;
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.prose { max-width: 760px; }
.prose h2 { font-size: 28px; letter-spacing: -0.03em; margin: 32px 0 10px; }
.prose h3 { font-size: 20px; margin: 26px 0 8px; }
.prose p, .prose li { color: #d0d0d0; }
.prose ul { padding-left: 18px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.kv { width: 100%; border-collapse: collapse; }
.kv th, .kv td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv th { color: var(--muted); font-weight: 500; width: 42%; padding-right: 16px; }

.page-hero { padding: 56px 0 10px; }
.page-body { padding-bottom: 80px; }
.crumbs { color: var(--faint); font-size: 13px; margin-bottom: 14px; }
.crumbs a:hover { color: white; }

.form {
  display: grid;
  gap: 12px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
input, select, textarea {
  width: 100%;
  background: #0e0e0e;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 12px;
  outline: none;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(243, 241, 234, 0.7); }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; }
.check input { width: auto; margin-top: 3px; }
.form-status { min-height: 1.2em; color: #d8d8d8; font-size: 14px; }
.hp { position: absolute; left: -9999px; }

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 24px; }
.section-search { display: flex; gap: 8px; margin: 0 0 18px; max-width: 520px; }
.section-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #0e0e0e;
  color: white;
  padding: 0 14px;
  font: inherit;
}
.doc-list { display: grid; gap: 14px; }
.doc-card img, .doc-card > img { width: 100%; max-height: 280px; object-fit: cover; border-radius: 14px; margin-bottom: 12px; }
.doc-card h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.03em; font-weight: 520; }
.doc-card h2 a { color: white; }
.doc-card .prose { margin-top: 10px; }
.footer-articles .btn { width: 100%; margin: 6px 0; justify-content: center; text-align: center; }
dialog.modal {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #111;
  color: var(--text);
  padding: 22px;
}
.side-toggle, .side-toggle-label { display: none; }
dialog.modal::backdrop { background: rgba(0, 0, 0, 0.66); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.modal-head h2 { margin: 0; font-size: 28px; letter-spacing: -0.04em; font-weight: 500; }
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.site-footer h2 { margin: 0 0 12px; color: white; font-size: 14px; font-weight: 540; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer a { display: block; padding: 4px 0; color: #bdbdbd; font-size: 14px; }
.site-footer a:hover { color: white; }
.footer-brand p { margin: 10px 0; max-width: 280px; }
.site-footer .partner-mark { height: 32px; width: auto; max-width: 100%; margin: 0 0 14px; background: transparent; }
.legal-note { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.legal-note p { margin: 0; }
.pay-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.pay { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 4px; background: transparent; color: #fff; font-size: 12px; font-weight: 650; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.pay-sbp svg { width: 14px; height: 14px; display: block; }
.pay-sbp svg path { fill: currentColor; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: #d5d5d5; font-size: 13px; }
.list-clean { margin: 0; padding: 0; list-style: none; }
.list-clean li { padding: 8px 0; border-bottom: 1px solid var(--line); }

.buy-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  margin: 8px 0 36px;
}
.buy-feature.is-flip > img { order: -1; }
.buy-feature img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #111;
}
.buy-feature .h2 { margin-top: 0; }
.buy-price { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.buy-price b { color: white; font-weight: 540; }
.buy-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
#zayavka { scroll-margin-top: calc(var(--header) + 16px); scroll-margin-bottom: 96px; }
.is-buy { padding-bottom: 88px; }
.buy-dock {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(520px, calc(100% - 20px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 12, 12, 0.94);
  box-shadow: var(--shadow);
}
.buy-dock span { font-size: 14px; color: #d5d5d5; }
.buy-dock b { color: white; font-weight: 540; }
body:has(.is-buy) .to-top { bottom: calc(78px + env(safe-area-inset-bottom)); }
.split-cta {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 1390px) {
  .nav-toggle, .tools-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner { flex-wrap: nowrap; align-items: center; gap: 8px; padding: 8px 0; }
  .header-brand { flex: 1 1 auto; min-width: 0; }
  .logo { min-width: 0; }
  .logo-img { height: 28px; max-width: min(150px, 42vw); }
  .site-footer .partner-mark { height: 28px; }
  .header-tools { position: relative; margin-left: auto; flex: 0 0 auto; }
  .brand-panel, .tools-panel {
    display: none;
    position: absolute;
    z-index: 40;
    max-height: min(70dvh, calc(100dvh - var(--header) - 12px));
    overflow: auto;
    background: #0d0d0d;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .brand-panel {
    left: 0;
    right: 0;
    top: 100%;
    padding: 8px 16px 18px;
    border-width: 0 0 1px;
  }
  body.nav-open .brand-panel { display: flex; flex-direction: column; }
  body.nav-open .menu-search { order: -1; }
  a.bar-shop { display: inline-flex; flex: 0 0 auto; }
  .tools-panel {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(320px, calc(100vw - 16px));
    padding: 10px;
    border-radius: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  body.tools-open .tools-panel { display: flex; }
  .tools-panel .city-switch { width: 100%; }
  .tools-panel .city-switch summary, .tools-panel .shop-btn, .tools-panel .btn { width: 100%; }
  .msg-row { display: flex; gap: 8px; }
  .tools-panel .msg { width: 44px; height: 44px; }
  .tools-panel .header-phone { display: inline-flex; align-items: center; min-height: 44px; }
  .menu-search { flex: none; width: 100%; max-width: none; margin: 4px 0 12px; }
  .nav-panel { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .subnav { position: static; display: flex; min-width: 0; width: 100%; max-width: 100%; box-shadow: none; background: transparent; border: 0; padding: 0 0 8px 10px; }
  .tools-panel .city-switch[open] .city-menu { position: static; display: block; min-width: 0; width: 100%; max-width: 100%; margin-top: 6px; box-shadow: none; }
  .nav-link { white-space: normal; }
  .nav-link, .subnav-link, .city-switch summary { min-height: 44px; }
  .tools-panel .shop-btn { display: none; }
}

.shop-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; align-items: center; min-width: 0; }
.shop-main > * { grid-column: 1 / -1; min-width: 0; }
.shop-main > .woocommerce-result-count { grid-column: 1; margin: 0; color: var(--muted); }
.shop-main > .woocommerce-ordering { grid-column: 2; justify-self: end; margin: 0; float: none; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { float: none; }
.woocommerce .woocommerce-ordering select { width: auto; min-width: 220px; padding: 8px 12px; }
.woocommerce ul.products { margin: 0; padding: 0; list-style: none; clear: both; }
.woocommerce ul.products li.product { display: block; float: none !important; overflow: visible; background: transparent; border: 0; padding: 0; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px 12px; }
.offer-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: inherit; }
.offer-photo { position: relative; display: block; aspect-ratio: 1 / 1.08; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: #101010; }
.offer-photo img, .woocommerce ul.products li.product .offer-photo img { width: 100%; height: 100%; object-fit: contain; margin: 0; border-radius: 0; background: transparent; }
.offer-badge { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 999px; background: var(--cream); color: var(--ink); font-size: 12px; }
.offer-price, .offer-price .amount { color: white; font-size: 18px; font-weight: 650; letter-spacing: -0.03em; }
.offer-price .woocommerce-Price-currencySymbol { font-size: 14px; }
.offer-title { color: #dedede; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.offer-meta { color: var(--faint); font-size: 12px; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.shop-toolbar h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; font-weight: 540; }
.shop-filters { display: grid; gap: 8px; margin-top: 18px; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-range input { min-height: 38px; padding: 8px 10px; }
.filter-check { display: flex; align-items: center; gap: 8px; color: #d7d7d7; font-size: 14px; }
.filter-check input { width: auto; }
.filter-reset { color: var(--muted); font-size: 13px; }
.offer-one { display: grid; gap: 16px; }
.offer-one[hidden] { display: none; }
.offer-one .offer-photo { max-width: 460px; }
.offer-one h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.04em; font-weight: 500; }
.woocommerce ul.products li.product .button, .woocommerce ul.products li.product a.button { width: 100%; margin-top: auto; }
.woocommerce ul.products li.product a.added_to_cart { display: inline-flex; justify-content: center; margin-top: 8px; color: var(--cream); }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.woocommerce div.product form.cart .quantity .qty { width: 84px; }
.woocommerce span.onsale { background: var(--cream); color: var(--ink); }
body.woocommerce .shop-tree ul,
body.woocommerce-page .shop-tree ul,
body.woocommerce .shop-tree li,
body.woocommerce-page .shop-tree li {
  list-style: none;
  margin: 0;
}
body.woocommerce .shop-tree ul,
body.woocommerce-page .shop-tree ul { padding: 0 0 0 12px; }
body.woocommerce .shop-tree > ul,
body.woocommerce-page .shop-tree > ul { padding-left: 0; }
body.woocommerce .logo-img,
body.woocommerce-page .logo-img {
  height: 32px !important;
  max-height: 32px !important;
  width: auto !important;
  max-width: none !important;
}
body.woocommerce-page .site-header,
body.woocommerce .site-header {
  align-items: center;
}
body.woocommerce-page .site-header .header-inner,
body.woocommerce .site-header .header-inner {
  display: flex;
  align-items: center;
  min-height: var(--header);
}
body.woocommerce-page .site-header .nav-list,
body.woocommerce-page .site-header .subnav,
body.woocommerce .site-header .nav-list,
body.woocommerce .site-header .subnav {
  list-style: none;
  margin: 0;
  padding: 0;
}
body.woocommerce-page .site-header .nav-link,
body.woocommerce .site-header .nav-link {
  font-size: 13.5px;
  color: #d7d7d7;
}
body.woocommerce-page .site-footer,
body.woocommerce .site-footer {
  clear: both;
}
body.woocommerce-page .site-footer .footer-grid,
body.woocommerce .site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 24px;
}
body.woocommerce-page .site-footer h2,
body.woocommerce .site-footer h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 14px;
  font-weight: 540;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}
body.woocommerce-page .site-footer a,
body.woocommerce .site-footer a {
  display: block;
  width: auto;
  padding: 4px 0;
  color: #bdbdbd;
  font-size: 14px;
  background: none;
  border-radius: 0;
}
body.woocommerce-page .site-footer .logo,
body.woocommerce .site-footer .logo {
  display: inline-flex;
  width: auto;
}
.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  float: none;
  width: auto;
  background: transparent;
  border: 0;
  padding: 0;
}
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; }
.woocommerce div.product div.images,
.woocommerce div.product div.summary,
.woocommerce div.product .woocommerce-product-gallery {
  float: none !important;
  width: auto !important;
  margin: 0;
}
.woocommerce div.product div.images,
.woocommerce div.product .woocommerce-product-gallery {
  max-width: 520px;
  margin-bottom: 20px;
}
.woocommerce div.product div.images img,
.woocommerce div.product .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  background: #0c0c0c;
  border-radius: 16px;
}
.woocommerce div.product .product_title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 500;
}

@media (max-width: 980px) {
  .to-top:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; }
  .grid-2, .grid-3, .grid-4, .grid-6, .quotes, .footer-grid, .split-cta, .buy-feature, .format-panel:not([hidden]), .kb-offer, .kb-cards, .form-row, .section-head, .banner, .stat-row, .hero-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
  .shot-row, .product-grid, .woocommerce ul.products, .kb-layout, .shop-layout, .shop-main .product-grid, .shop-main .woocommerce ul.products { grid-template-columns: 1fr; }
  .shop-side { position: static; }
  .kb-side { position: static; }
  .banner, .section-head { display: flex; flex-direction: column; align-items: flex-start; }
  .header-inner { width: min(1240px, calc(100% - 20px)); }
  .wrap, .wrap-wide { width: min(var(--max), calc(100% - 28px)); }
  .hero { padding-top: 42px; }
  .section { padding: 64px 0; }
  .side-toggle-label { min-height: 44px; }
  .side-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: white;
    cursor: pointer;
  }
  .side-toggle-label::after { content: "Показать"; color: var(--muted); font-size: 13px; }
  .side-toggle:checked + .side-toggle-label::after { content: "Скрыть"; }
  .shop-side .shop-tree, .shop-side .shop-filters, .kb-side .section-search, .kb-side .kb-tree { display: none; }
  .side-toggle:checked ~ .shop-tree, .side-toggle:checked ~ .shop-filters, .side-toggle:checked ~ .kb-tree { display: block; }
  .side-toggle:checked ~ .section-search { display: flex; }
  .shop-side-label { display: none; }
  .matrix-wrap { -webkit-overflow-scrolling: touch; }
  dialog.modal { padding: 16px; }
}

@media (max-width: 980px) and (min-width: 700px) {
  .grid-3, .grid-4, .grid-6, .quotes, .kb-cards, .product-grid, .shop-main .product-grid, .footer-grid, .shot-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .case-slide { flex-basis: 92%; }
  .shop-main > .woocommerce-result-count, .shop-main > .woocommerce-ordering { grid-column: 1 / -1; justify-self: stretch; }
  .woocommerce .woocommerce-ordering select { width: 100%; }
  h1, .h1 { font-size: clamp(34px, 11vw, 48px); }
  .lede { font-size: 16px; }
  .wrap, .wrap-wide, .header-inner { width: min(var(--max), calc(100% - 20px)); }
  .hero { padding-top: 28px; }
  .section { padding: 48px 0; }
  .shot-row { grid-template-columns: 1fr 1fr; }
  .kb-offer { padding: 18px; }
}

@media (max-width: 1390px) {
  body.woocommerce .logo-img,
  body.woocommerce-page .logo-img {
    height: 28px !important;
    max-height: 28px !important;
    max-width: min(150px, 42vw) !important;
  }
}
@media (max-width: 980px) {
  body.woocommerce-page .site-footer .footer-grid,
  body.woocommerce .site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
  .woocommerce div.product { grid-template-columns: 1fr; }
  .woocommerce div.product div.images,
  .woocommerce div.product .woocommerce-product-gallery { max-width: none; }
}
@media (max-width: 980px) and (min-width: 700px) {
  body.woocommerce-page .site-footer .footer-grid,
  body.woocommerce .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .offer-grid, .shop-main .woocommerce ul.products, .shop-main .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .offer-grid, .shop-main .woocommerce ul.products, .shop-main .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) and (min-width: 981px) {
  .grid-4, .grid-6, .product-grid, .woocommerce ul.products { grid-template-columns: 1fr 1fr; }
  .footer-grid, body.woocommerce .site-footer .footer-grid, body.woocommerce-page .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .grid-2, .format-panel:not([hidden]), .buy-feature, .kb-offer, .split-cta, .kb-layout, .shop-layout, .banner, .section-head {
    grid-template-columns: 1fr;
  }
  .shop-side, .kb-side { position: static; }
}

@media (max-width: 980px) {
  .hero, .section, .page-hero, .page-body, .site-footer, .card, .price, .dept, .step, .quote, .person, .banner, .panel, .case-slide, .offer-card, .doc-card {
    min-width: 0;
  }
  .card h3, .price h3, .dept h3, .doc-card h2, .prose h2, .banner h2, .section h2, .h2, h1, .h1, .crumbs, .lede, .sub {
    overflow-wrap: break-word;
  }
  .prose img, .card img, .doc-card img, .buy-feature img, .format-panel img, .kb-card img, .kb-hero img, .hero-photo, .page-cover {
    max-width: 100%;
    height: auto;
  }
  .banner { padding: 20px; align-items: stretch; }
  .banner .btn, .section-head .btn, .hero-actions .btn, .card .btn, .split-cta .btn { width: 100%; white-space: normal; }
  .section-head .btn.btn-label-center { flex-shrink: 1; }
  .card, .price, .quote, .person, .dept, .step, .panel { padding: 16px; }
  .page-hero { padding: 32px 0 8px; }
  .page-body { padding-bottom: 56px; }
  .stat b { font-size: 20px; }
  .marquee img { height: 48px; max-width: 120px; }
  .case-slide { flex-basis: 100%; }
  .section-search { flex-wrap: wrap; }
  .section-search button { width: 100%; }
  .kv, .kv tbody, .kv tr, .kv th, .kv td { display: block; width: 100%; }
  .kv th { padding: 10px 0 0; border-bottom: 0; }
  .kv td { padding-top: 2px; }
  .legal-note { align-items: flex-start; }
  .pay-row { margin-left: 0; }
  .footer-brand p { max-width: none; }
  .buy-dock { width: min(520px, calc(100% - 16px)); padding: 10px 12px; border-radius: 18px; }
  .buy-feature.is-flip > img { order: 0; }
  .woocommerce table.shop_table { display: block; overflow-x: auto; }
  .modal-head h2 { font-size: 22px; }
  input, select, textarea { font-size: 16px; }
}

@media (max-width: 640px) {
  .case-slide { flex-direction: column; align-items: stretch; }
  .case-slide img { width: 100%; height: 148px; }
  .case-slider-bar { justify-content: space-between; }
  .buy-dock { flex-direction: column; align-items: stretch; text-align: center; }
  .buy-dock .btn { width: 100%; }
  .price .sum { font-size: 22px; }
  .shot-row { gap: 8px; }
  .grid-3, .grid-4, .grid-6, .quotes, .kb-cards { gap: 10px; }
}

.section,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

.fraud-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #090909;
}
.fraud-gate > div { max-width: 28rem; }
html.is-fraud .fraud-gate { display: flex !important; }
html.is-fraud body > :not(.fraud-gate) { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .btn { transition: none; }
}
