/* ============================================
   АЙВАЗОВСКИЙ — main.css
   Shared across all pages
   ============================================ */

:root {
  --bg:        #0a0a0a;
  --bg-2:      #111111;
  --bg-3:      #181818;
  --bg-4:      #1e1e1e;
  --border:    rgba(255,255,255,0.07);
  --border-md: rgba(255,255,255,0.12);
  --border-lg: rgba(255,255,255,0.18);
  --w100: #ffffff;
  --w60:  rgba(255,255,255,0.6);
  --w40:  rgba(255,255,255,0.4);
  --w20:  rgba(255,255,255,0.2);
  --w08:  rgba(255,255,255,0.08);
  --w04:  rgba(255,255,255,0.04);
  --font-d: 'Unbounded', sans-serif;
  --font-b: 'Manrope', sans-serif;
  --r:    16px;
  --r-sm: 10px;
  --r-xs: 6px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t:    0.22s;
  --max:  1240px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--w100);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-b); }

/* ── Layout ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}
.page-wrap { padding-top: var(--nav-h); min-height: 100vh; }

/* ── Section helpers ── */
.eyebrow {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--w40);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-d);
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}
.section-head { margin-bottom: 52px; }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: rgba(255,255,255,0.88); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--w60);
  border: 1px solid var(--border-md);
}
.btn-ghost:hover { color: var(--w100); border-color: var(--border-lg); background: var(--w08); }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ── Tag / Badge ── */
.tag {
  display: inline-block;
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 20px;
  background: var(--w100);
  color: #000;
}
.tag-outline {
  background: transparent;
  color: var(--w40);
  border: 1px solid var(--border);
}

/* ─────────────────────────────────────────
   HEADER / NAV
   ───────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  transition: background var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
#header.scrolled {
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}
.nav__logo { flex-shrink: 0; margin-right: 40px; }
.nav__logo img { height: 26px; width: auto; display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav__links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-xs);
  font-size: 14px;
  font-weight: 500;
  color: var(--w60);
  transition: color var(--t), background var(--t);
  position: relative;
}
.nav__links a:hover { color: var(--w100); background: var(--w04); }
.nav__links a.active { color: var(--w100); background: var(--w08); }
.nav__links .has-sub { cursor: pointer; }

/* Dropdown */
.nav__dropdown {
  position: relative;
}
.nav__dropdown > a { gap: 5px; }
.nav__dropdown > a::after {
  content: '⌄';
  font-size: 12px;
  color: var(--w40);
  transition: transform var(--t);
  line-height: 1;
  margin-top: 1px;
}
.nav__dropdown:hover > a::after { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--bg-2);
  border: 1px solid var(--border-md);
  border-radius: var(--r);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--t), transform var(--t);
  z-index: 300;
  backdrop-filter: blur(20px);
}
.nav__dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown-menu a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 9px 12px !important;
  border-radius: var(--r-sm) !important;
  font-size: 14px;
  color: var(--w60) !important;
  background: none !important;
}
.dropdown-menu a:hover { background: var(--w08) !important; color: var(--w100) !important; }
.dropdown-menu a .di { font-size: 16px; }

/* Divider in dropdown */
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }

.nav__right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav__phone {
  font-size: 14px;
  font-weight: 700;
  color: var(--w100);
  background: var(--w08);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 50px;
  transition: all var(--t);
}
.nav__phone:hover { background: var(--w100); color: #000; }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--w100);
  border-radius: 2px;
  transition: all var(--t);
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  z-index: 199;
  overflow-y: auto;
  padding: 24px 20px 40px;
}
.nav__mobile.open { display: block; }
.mob-section { margin-bottom: 8px; }
.mob-section-label {
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--w20);
  padding: 16px 12px 8px;
}
.mob-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-radius: var(--r-sm);
  font-size: 16px;
  font-weight: 600;
  color: var(--w60);
  transition: all var(--t);
}
.mob-link:hover, .mob-link.active { color: var(--w100); background: var(--w08); }
.mob-link .mi { font-size: 18px; }

/* ─────────────────────────────────────────
   BREADCRUMB
   ───────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  font-size: 13px;
  color: var(--w40);
}
.breadcrumb a { color: var(--w40); transition: color var(--t); }
.breadcrumb a:hover { color: var(--w100); }
.breadcrumb span { color: var(--w20); }
.breadcrumb strong { color: var(--w60); font-weight: 500; }

/* ─────────────────────────────────────────
   PAGE HERO (inner pages)
   ───────────────────────────────────────── */
.page-hero {
  padding: 60px 0 52px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.page-hero__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.page-hero__title {
  font-family: var(--font-d);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2px;
}
.page-hero__sub {
  font-size: 16px;
  color: var(--w40);
  margin-top: 12px;
  max-width: 480px;
}

/* ─────────────────────────────────────────
   TABS (inner tabs on catalog pages)
   ───────────────────────────────────────── */
.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  padding: 14px 20px;
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 600;
  color: var(--w40);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color var(--t), border-color var(--t);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--w100); }
.tab-btn.active { color: var(--w100); border-bottom-color: var(--w100); }

.tab-panel { display: none; padding: 40px 0; }
.tab-panel.active { display: block; }

/* ─────────────────────────────────────────
   PRICE TABLE
   ───────────────────────────────────────── */
.price-table {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.price-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 20px;
  transition: border-color var(--t), transform var(--t);
}
.price-card:hover {
  border-color: var(--border-md);
  transform: translateY(-2px);
}

.price-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.price-card__name {
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.price-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
}
.price-card__row:last-child { border-bottom: none; }
.price-card__row .variant { color: var(--w40); }
.price-card__row .price {
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
}

/* ─────────────────────────────────────────
   CARDS GRID (catalog grid)
   ───────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }

.prod-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--t), transform var(--t);
}
.prod-card:hover { border-color: var(--border-md); transform: translateY(-3px); }

.prod-card__img {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  font-size: 80px;
  border-bottom: 1px solid var(--border);
}

.prod-card__body { padding: 18px 20px; }
.prod-card__name {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}
.prod-card__sub { font-size: 13px; color: var(--w40); margin-bottom: 12px; }
.prod-card__price {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 800;
}
.prod-card__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* ─────────────────────────────────────────
   REPAIR PAGE
   ───────────────────────────────────────── */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color var(--t), background var(--t);
}
.service-item:hover { border-color: var(--border-md); background: var(--bg-3); }
.service-item:first-child { border-radius: var(--r) var(--r) var(--r-sm) var(--r-sm); }
.service-item:last-child { border-radius: var(--r-sm) var(--r-sm) var(--r) var(--r); }
.service-item__icon { font-size: 22px; flex-shrink: 0; }
.service-item__info { flex: 1; }
.service-item__name { font-weight: 600; font-size: 15px; }
.service-item__desc { font-size: 13px; color: var(--w40); margin-top: 2px; }
.service-item__price {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* ─────────────────────────────────────────
   ABOUT / CONTACT
   ───────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.info-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
}
.info-card__icon { font-size: 28px; margin-bottom: 16px; }
.info-card h3 { font-family: var(--font-d); font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.info-card p, .info-card a { font-size: 15px; color: var(--w60); line-height: 1.7; }
.info-card a:hover { color: var(--w100); }

/* Map placeholder */
.map-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
.map-block p { font-family: var(--font-d); font-size: 18px; font-weight: 700; }
.map-block small { color: var(--w40); font-size: 14px; }

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer__top {
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__brand img { height: 22px; margin-bottom: 16px; }
.footer__brand p { font-size: 14px; color: var(--w40); line-height: 1.7; max-width: 240px; }
.footer__col h4 {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--w40);
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col li a {
  font-size: 14px;
  color: var(--w60);
  transition: color var(--t);
}
.footer__col li a:hover { color: var(--w100); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer__copy { font-size: 13px; color: var(--w20); }
.footer__socials { display: flex; gap: 12px; }
.footer__socials a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 16px;
  color: var(--w40);
  transition: all var(--t);
}
.footer__socials a:hover { border-color: var(--border-md); color: var(--w100); background: var(--w08); }

/* ─────────────────────────────────────────
   HOMEPAGE SPECIFIC
   ───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.1;
}
.hero__orb-1 {
  width: 800px; height: 800px;
  background: radial-gradient(circle, #fff 0%, transparent 70%);
  top: -300px; left: -300px;
  animation: orb1 20s ease-in-out infinite;
}
.hero__orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #fff 0%, transparent 70%);
  bottom: -200px; right: -100px;
  animation: orb2 26s ease-in-out infinite;
}
@keyframes orb1 {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(100px, 80px); }
}
@keyframes orb2 {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(-80px,-60px); }
}
.hero__content {
  position: relative; z-index: 2;
  padding-top: 140px; padding-bottom: 80px;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--w40);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
}
.hero__kicker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.5;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:.4;transform:scale(1)} 50%{opacity:1;transform:scale(1.3)} }
.hero__h1 {
  font-family: var(--font-d);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -3px;
  margin-bottom: 24px;
}
.hero__h1 em { color: var(--w40); font-style: normal; }
.hero__p {
  font-size: 18px;
  color: var(--w60);
  max-width: 460px;
  margin-bottom: 40px;
  line-height: 1.65;
}
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 64px; }
.hero__stats { display: flex; align-items: center; gap: 28px; }
.hero__stat strong {
  display: block;
  font-family: var(--font-d);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
}
.hero__stat span { font-size: 12px; color: var(--w40); }
.hero__stat-sep { width: 1px; height: 36px; background: var(--border); }

.hero__scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  z-index: 2;
}
.hero__scroll span { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--w20); }
.hero__scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--w20), transparent);
  animation: scrl 2s ease-in-out infinite;
}
@keyframes scrl { 0%,100%{opacity:.4} 50%{opacity:1} }

/* Homepage category grid */
.home-cats { padding: 100px 0; }
.cat-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 14px;
}
.cat-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  cursor: pointer;
  transition: border-color var(--t), transform var(--t);
  text-decoration: none;
  color: inherit;
}
.cat-item:hover { border-color: var(--border-md); transform: translateY(-2px); }
.cat-item--span2 { grid-row: span 2; }
.cat-item__emoji {
  position: absolute;
  font-size: 100px;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  opacity: 0.12;
  transition: opacity var(--t), transform var(--t);
  pointer-events: none;
  line-height: 1;
}
.cat-item--span2 .cat-item__emoji { font-size: 180px; }
.cat-item:hover .cat-item__emoji { opacity: 0.18; transform: translate(-50%, -58%) scale(1.04); }
.cat-item__label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--w40); margin-bottom: 6px; }
.cat-item__name {
  font-family: var(--font-d);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.cat-item--span2 .cat-item__name { font-size: 30px; }
.cat-item__arrow { font-size: 18px; color: var(--w40); transition: all var(--t); }
.cat-item:hover .cat-item__arrow { color: var(--w100); transform: translateX(4px); }

/* Home why */
.home-why { padding: 80px 0; background: var(--bg-2); }
.why-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why-item {
  padding: 28px 24px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color var(--t), transform var(--t);
}
.why-item:hover { border-color: var(--border-md); transform: translateY(-2px); }
.why-item__ico {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  background: var(--w08);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 18px;
}
.why-item h3 { font-family: var(--font-d); font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.why-item p { font-size: 13px; color: var(--w40); line-height: 1.6; }

/* Home CTA banner */
.home-cta {
  padding: 80px 0;
  background: var(--bg);
}
.cta-banner {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner h2 {
  font-family: var(--font-d);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}
.cta-banner p { font-size: 15px; color: var(--w40); margin-top: 10px; }
.cta-banner__btns { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .cat-item--span2 { grid-row: span 1; }
  .why-row { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav__links, .nav__right { display: none; }
  .nav__burger { display: flex; }
  .cat-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .cat-item--span2 .cat-item__name { font-size: 22px; }
  .why-row { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .cta-banner { flex-direction: column; padding: 36px 28px; }
  .page-hero__inner { flex-direction: column; align-items: flex-start; }
  .hero__h1 { font-size: 38px; letter-spacing: -1.5px; }
  .price-table { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .price-table { grid-template-columns: 1fr; }
  .hero__btns { flex-direction: column; }
  .hero__btns .btn { width: 100%; }
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════
   WHITE/BLACK THEME OVERRIDE
   ═══════════════════════════════════════ */
:root {
  --bg:        #ffffff;
  --bg-2:      #f7f7f7;
  --bg-3:      #eeeeee;
  --bg-4:      #e5e5e5;
  --border:    rgba(0,0,0,0.08);
  --border-md: rgba(0,0,0,0.14);
  --border-lg: rgba(0,0,0,0.22);
  --w100: #111111;
  --w60:  rgba(0,0,0,0.55);
  --w40:  rgba(0,0,0,0.38);
  --w20:  rgba(0,0,0,0.2);
  --w08:  rgba(0,0,0,0.05);
  --w04:  rgba(0,0,0,0.03);
}

/* Fix logo — use black version on white bg */
.nav__logo img { content: url('../img/logo-black.png'); }

/* Fix header */
#header { background: rgba(255,255,255,0.94); border-bottom: 1px solid var(--border); }
#header.scrolled { background: rgba(255,255,255,0.96); }

/* Fix nav */
.nav__links a { color: var(--w60); }
.nav__links a:hover, .nav__links a.active { color: var(--w100); background: var(--w08); }
.dropdown-menu { background: #fff; }
.dropdown-menu a { color: var(--w60) !important; }
.dropdown-menu a:hover { background: var(--w08) !important; color: var(--w100) !important; }
.nav__phone { background: var(--w08); border-color: var(--border); color: var(--w100); }
.nav__phone:hover { background: #111; color: #fff; }
.nav__burger span { background: var(--w100); }
.nav__mobile { background: #fff; }
.mob-link { color: var(--w60); }
.mob-link:hover, .mob-link.active { color: var(--w100); background: var(--w08); }
.mob-section-label { color: var(--w20); }

/* Fix hero */
.hero { background: #fff; }
.hero__kicker { color: var(--w40); border-color: var(--border); }
.hero__kicker-dot { background: #111; }
.hero__h1 em { color: var(--w40); }
.hero__p { color: var(--w60); }
.hero__stat span { color: var(--w40); }
.hero__stat-sep { background: var(--border); }
.hero__orb-1, .hero__orb-2 { background: radial-gradient(circle, #000 0%, transparent 70%); opacity: 0.04; }
.hero__scroll span { color: var(--w20); }
.hero__scroll-line { background: linear-gradient(to bottom, var(--w20), transparent); }

/* Buttons */
.btn-primary { background: #111; color: #fff; }
.btn-primary:hover { background: #222; }
.btn-ghost { color: var(--w60); border-color: var(--border-md); }
.btn-ghost:hover { color: var(--w100); border-color: var(--border-lg); background: var(--w08); }

/* Tags */
.tag { background: #111; color: #fff; }
.tag-outline { background: transparent; color: var(--w40); border-color: var(--border); }

/* Section texts */
.eyebrow { color: var(--w40); }
.section-title { color: var(--w100); }

/* Cat grid */
.cat-item { background: var(--bg-2); border-color: var(--border); }
.cat-item:hover { border-color: var(--border-md); }
.cat-item__label { color: var(--w40); }
.cat-item__name { color: var(--w100); }
.cat-item__arrow { color: var(--w40); }
.cat-item:hover .cat-item__arrow { color: var(--w100); }
.cat-item__emoji { opacity: 0.07; }
.cat-item:hover .cat-item__emoji { opacity: 0.12; }

/* Why items */
.home-why { background: var(--bg-2); }
.why-item { background: var(--bg); border-color: var(--border); }
.why-item__ico { background: var(--w08); border-color: var(--border); }
.why-item p { color: var(--w40); }

/* CTA banner */
.cta-banner { background: #111; border: none; }
.cta-banner h2, .cta-banner p { color: rgba(255,255,255,0.9); }
.cta-banner p { color: rgba(255,255,255,0.55); }
.cta-banner .btn-primary { background: #fff; color: #111; }
.cta-banner .btn-primary:hover { background: rgba(255,255,255,0.9); }
.cta-banner .btn-ghost { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.2); }
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Price cards */
.price-card { background: var(--bg); border-color: var(--border); }
.price-card__name { color: var(--w100); }
.price-card__head { border-color: var(--border); }
.price-card__row .variant { color: var(--w40); }
.price-card__row .price { color: var(--w100); }

/* Tabs */
.tabs { border-bottom-color: var(--border); background: var(--bg-2); }
.tab-btn { color: var(--w40); border-bottom-color: transparent; }
.tab-btn:hover { color: var(--w100); }
.tab-btn.active { color: var(--w100); border-bottom-color: #111; }

/* Page hero */
.page-hero { background: var(--bg); border-bottom-color: var(--border); }
.page-hero__sub { color: var(--w40); }

/* Breadcrumb */
.breadcrumb a { color: var(--w40); }

/* Repair/service */
.service-item { background: var(--bg); border-color: var(--border); }
.service-item:hover { background: var(--bg-2); border-color: var(--border-md); }
.service-item__desc { color: var(--w40); }

/* Repair card */
.repair__card { background: var(--bg-2); border-color: var(--border); }
.repair__card-item { border-color: var(--border); }
.repair__card-item span:first-child { color: var(--w60); }
.repair__card-badge { color: var(--w40); }
.repair__card-note { color: var(--w20); }

/* Info/contact cards */
.info-card { background: var(--bg); border-color: var(--border); }
.info-card p, .info-card a { color: var(--w60); }
.map-block { background: var(--bg-2); border-color: var(--border); }
.map-block small { color: var(--w40); }
.contact-link { background: var(--bg-2); border-color: var(--border); }
.contact-link:hover { border-color: var(--border-md); background: var(--bg-3); }
.contact-link small { color: var(--w40); }

/* Footer */
.footer { background: #111; }
.footer__brand p { color: rgba(255,255,255,0.4); }
.footer__col h4 { color: rgba(255,255,255,0.3); }
.footer__col li a { color: rgba(255,255,255,0.5); }
.footer__col li a:hover { color: #fff; }
.footer__copy { color: rgba(255,255,255,0.25); }
.footer__socials a { border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.4); }
.footer__socials a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.footer__logo img { filter: brightness(10); }

/* Prices note */
.prices__note { color: var(--w20); }

/* ═══════════════════════════════════════════
   МОБИЛЬНАЯ ОПТИМИЗАЦИЯ (доп. правила)
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  html { font-size: 15px; }

  .container { padding: 0 16px; }
  section, .home-cats, .home-why, .home-cta { padding: 48px 0; }

  /* Hero */
  .hero__content { padding-top: 110px; padding-bottom: 60px; }
  .hero__h1 { font-size: 34px; letter-spacing: -1px; line-height: 1.05; }
  .hero__p { font-size: 15px; }
  .hero__btns { flex-direction: column; gap: 10px; }
  .hero__btns .btn { width: 100%; justify-content: center; }
  .hero__stats { flex-wrap: wrap; gap: 16px; justify-content: space-between; }
  .hero__stat-sep { display: none; }
  .hero__kicker { font-size: 9px; padding: 6px 12px; }

  /* Nav phone hidden on small screens, burger shown */
  .nav { padding: 0 16px; }
  .nav__logo img { height: 22px; }

  /* Page hero */
  .page-hero { padding: 40px 0 32px; }
  .page-hero__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-hero__title { font-size: 30px; }
  .page-hero__inner .btn { width: 100%; justify-content: center; }

  /* Tabs - horizontal scroll already, just tighten padding */
  .tab-btn { padding: 12px 14px; font-size: 13px; }

  /* Cards grids: always 1 column on phones for readability */
  .cards-grid, .cards-grid--2, .cards-grid--4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .prod-card__img { font-size: 50px; }
  .prod-card__body { padding: 12px 14px; }
  .prod-card__name { font-size: 12px; }
  .prod-card__price { font-size: 13px; }

  .price-table { grid-template-columns: 1fr; gap: 10px; }

  .cat-grid { gap: 10px; }
  .cat-item { padding: 20px; }
  .cat-item--span2 .cat-item__name { font-size: 24px; }
  .cat-item__emoji { font-size: 70px; }
  .cat-item--span2 .cat-item__emoji { font-size: 120px; }

  .why-row { grid-template-columns: 1fr; gap: 10px; }
  .why-item { padding: 22px 20px; }

  .cta-banner { padding: 28px 20px; flex-direction: column; text-align: left; gap: 20px; }
  .cta-banner__btns { width: 100%; flex-direction: column; }
  .cta-banner__btns .btn { width: 100%; justify-content: center; }
  .cta-banner h2 { font-size: 22px; }

  .info-grid { grid-template-columns: 1fr; gap: 10px; }
  .repair__inner, .about__inner, .contact__inner { gap: 28px; }
  .repair__service { padding: 14px 16px; }

  .footer__top { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* Order form */
  .order-grid { gap: 28px; }
  .order-form { padding: 24px 20px; border-radius: 16px; }
  .form-input, .form-select, .form-textarea { font-size: 16px; } /* prevents iOS zoom on focus */

  /* Product detail modal */
  .modal-product-overlay > div { padding: 20px !important; max-height: 90vh !important; }
}

@media (max-width: 420px) {
  .cards-grid, .cards-grid--2, .cards-grid--4 { grid-template-columns: 1fr; }
  .hero__stats { justify-content: flex-start; gap: 24px; }
}

/* Touch-friendly tap targets */
@media (hover: none) {
  .btn, .nav__links a, .mob-link, .tab-btn, .filter-btn { min-height: 44px; }
  a, button { -webkit-tap-highlight-color: transparent; }
}
