:root {
  --ink: #0c1220;
  --muted: rgba(12, 18, 32, .62);
  --glass: rgba(255, 255, 255, .42);
  --glass-strong: rgba(255, 255, 255, .58);
  --line: rgba(255, 255, 255, .55);
  --line-dark: rgba(12, 18, 32, .08);
  --accent: #1d4ed8;
  --accent-2: #0ea5e9;
  --shadow: 0 18px 50px rgba(28, 49, 92, .14);
  --radius: 28px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 700px at 8% -10%, rgba(125, 211, 252, .55), transparent 55%),
    radial-gradient(900px 600px at 110% 8%, rgba(196, 181, 253, .5), transparent 50%),
    radial-gradient(800px 500px at 70% 110%, rgba(253, 186, 116, .38), transparent 45%),
    radial-gradient(700px 500px at -10% 80%, rgba(167, 243, 208, .4), transparent 50%),
    linear-gradient(180deg, #eef3fb 0%, #f7f8fc 40%, #e8eef8 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.5), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.25), transparent 32%);
  z-index: 0;
}

a { color: var(--accent); }
.wrap { width: min(1120px, calc(100% - 28px)); margin: 0 auto; position: relative; z-index: auto; padding-bottom: 48px; }

.glass {
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.75);
}

.topline { display: none; }
header.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  margin: 18px 0 8px;
  padding: 12px 16px 12px 18px;
  border-radius: 999px;
  position: relative;
  z-index: 80;
}
.header-tools { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.55);
  padding: 12px 11px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.nav-call { display: none !important; }

.brand {
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
  color: var(--ink);
  font-size: 20px;
}

header.top nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(15, 23, 42, .12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
header.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 560;
  padding: 8px 12px;
  border-radius: 999px;
}
header.top nav a:hover, header.top nav a.active {
  color: var(--ink);
  background: rgba(255,255,255,.55);
}

.contacts { color: var(--muted); font-size: 13px; padding-right: 4px; display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px 12px; line-height:1.25; }
.contacts a { color: inherit; text-decoration: none; }
.btn-sm { padding: 8px 14px; font-size: 13px; width: auto; }

.hero {
  padding: 36px 28px 28px;
  border-radius: calc(var(--radius) + 8px);
  margin: 18px 0 22px;
  background: var(--glass);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.8);
}
.hero-photo {
  background:
    linear-gradient(90deg, rgba(12,18,32,.62), rgba(12,18,32,.28)),
    url("/assets/home/hero.jpg") center/cover no-repeat;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  overflow: hidden;
}
.hero-photo .hero-copy,
.hero-photo h1,
.hero-photo .lead { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero-photo .btn-ghost { color: #fff; background: rgba(255,255,255,.18); }

h1 {
  font-size: clamp(32px, 6vw, 58px);
  letter-spacing: -.045em;
  line-height: 1.04;
  font-weight: 680;
  margin: 0 0 14px;
}

h2 {
  font-size: 22px;
  letter-spacing: -.03em;
  margin: 28px 0 14px;
  font-weight: 650;
}

.lead { color: var(--muted); max-width: 640px; font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-split { display:grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items:center; }
.order-form {
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  display: grid;
  gap: 10px;
  box-shadow: inset 0 1px 0 #fff, 0 14px 36px rgba(28,49,92,.1);
}
.order-form h3 { margin:0; font-size:20px; letter-spacing:-.03em; line-height:1.25; white-space:nowrap; }
.order-form h3 span { white-space: nowrap; }
.order-form p { margin:0 0 4px; color:var(--muted); font-size:14px; }
.order-form input, .order-form textarea {
  width:100%; border:1px solid rgba(12,18,32,.08); border-radius:16px;
  padding:12px 14px; font: inherit; background: rgba(255,255,255,.72);
}
.order-form button { width:100%; border:0; cursor:pointer; font: inherit; }
.hp { position:absolute; left:-9999px; height:0; width:0; overflow:hidden; }
.modal {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(12,18,32,.38);
  display: grid; place-items: center;
  padding: 18px;
  backdrop-filter: blur(8px);
}
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(420px, 100%); padding: 8px; border-radius: 32px; }
.modal-card .order-form { box-shadow: none; }
.modal-close {
  position: absolute; top: 14px; right: 16px; z-index: 1;
  border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted);
}
.toast { margin: 12px 0 0; padding: 12px 16px; border-radius: 16px; background: rgba(16,185,129,.18); }
.toast-err { background: rgba(239,68,68,.16); }

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: 0 10px 30px rgba(28, 49, 92, .08), inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  background: var(--glass-strong);
  box-shadow: 0 18px 40px rgba(28, 49, 92, .14), inset 0 1px 0 #fff;
}
.card a { text-decoration: none; color: var(--ink); font-weight: 650; letter-spacing: -.02em; font-size: 18px; }
.brand-card { display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.logo, .logo-hero {
  display:block;
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  background: transparent;
}
.logo-hero { height: 64px; max-width: 240px; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 8px 0 0; font-size: 14px; font-weight: 400; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  color: #fff;
  text-decoration: none;
  font-weight: 620;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(29, 78, 216, .28), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-ghost {
  background: rgba(255,255,255,.45);
  color: var(--ink);
  box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(28, 49, 92, .08);
  border: 1px solid var(--line);
}

footer.foot {
  margin-top: 40px;
  padding: 28px 26px 18px;
  border-radius: 32px;
  color: var(--muted);
  font-size: 14px;
}
.foot-top { display:grid; grid-template-columns: 1.3fr .8fr 1.2fr; gap: 28px; }
.foot-brand p { max-width: 280px; }
.foot h4 { margin: 0 0 10px; color: var(--ink); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.foot a { display:block; color: var(--ink); text-decoration:none; margin: 5px 0; }
.foot p { margin: 6px 0; }
.foot-bottom { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.45); font-size: 13px; }

.crumbs { color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }

ul.prod {
  margin: 8px 0 18px;
  padding: 18px 18px 18px 36px;
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
}
ul.prod a, ul.prod { color: var(--ink); }

.why-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-item { text-align:center; padding: 12px 8px; }
.why-item img { width:64px; height:64px; object-fit:contain; margin: 0 auto 8px; }
.why-item p { margin:0; font-size:14px; color:var(--ink); }
.shops { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin: 28px 0; }
.shop-card { text-align:center; font-weight:700; color:var(--ink); text-decoration:none; }
.video-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; }
.video-card { display:block; position:relative; border-radius:18px; overflow:hidden; background:#111; }
.video-card img { width:100%; height:160px; object-fit:cover; display:block; }
.video-card span { position:absolute; left:12px; bottom:10px; color:#fff; font-size:13px; font-weight:650; }
.review-row { display:flex; gap:12px; overflow:auto; padding: 8px 0 18px; }
.review-row img { height:220px; width:auto; border-radius:12px; background:#fff; }
.band {
  display:grid; grid-template-columns: 1.1fr .9fr; gap:24px; align-items:center;
  padding: 32px 26px; border-radius: 32px; margin: 28px 0;
  color:#fff; background-size:cover; background-position:center;
}
.band h2, .band .lead { color:#fff; }
.band-podbor { background: linear-gradient(90deg, rgba(12,18,32,.7), rgba(12,18,32,.35)), url("/assets/home/pexels.jpg") center/cover; }
.band-podbor img { width:100%; max-height:280px; object-fit:contain; }
.band-rare { background: linear-gradient(90deg, rgba(12,18,32,.72), rgba(12,18,32,.4)), url("/assets/home/rare-bg.jpg") center/cover; }
.band-offer { background: linear-gradient(90deg, rgba(28,16,10,.75), rgba(28,16,10,.4)), url("/assets/home/offer-bg.jpg") center/cover; }
.panel { padding: 24px; border-radius: 28px; margin: 24px 0; }
.blog-line { display:block; padding:10px 0; border-bottom:1px solid rgba(12,18,32,.08); color:var(--ink); text-decoration:none; font-weight:600; }
.brand-marquee {
  overflow: hidden;
  margin: 6px 0 28px;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.brand-marquee-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  animation: brand-scroll 42s linear infinite;
}
.brand-marquee:hover .brand-marquee-track,
.brand-marquee:focus-within .brand-marquee-track {
  animation-play-state: paused;
}
.brand-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 76px;
  padding: 12px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(28, 49, 92, .08);
  text-decoration: none;
}
.brand-chip img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.brand-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(28, 49, 92, .14);
}
@keyframes brand-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-marquee {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
  }
  .brand-marquee-track { animation: none; }
}
.factory-grid { display:grid; grid-template-columns: repeat(6, 1fr); gap:12px; }
.factory-logo { display:flex; align-items:center; justify-content:center; min-height:84px; padding:10px; border-radius:18px; background: var(--glass); border:1px solid var(--line); }
.center { text-align:center; margin: 22px 0 8px; }
.inline-form { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.inline-form input { flex:1; min-width:180px; border:1px solid rgba(12,18,32,.08); border-radius:16px; padding:12px 14px; font:inherit; }
.inline-form .btn { width:auto; }

@media (max-width: 980px) {
  .hero-split { grid-template-columns: 1fr; gap: 18px; }
  .foot-top, .why-grid, .video-grid, .band, .shops, .factory-grid { grid-template-columns: 1fr 1fr; }
  .topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 6px 8px;
    font-size: 13px;
    color: var(--muted);
  }
  .topline a { color: inherit; text-decoration: none; white-space: nowrap; }
  header.top {
    flex-wrap: nowrap;
    margin: 0 0 10px;
    padding: 8px 8px 8px 16px;
    border-radius: 22px;
  }
  .contacts { display: none; }
  .burger { display: flex; }
  header.top nav {
    display: none !important;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 90;
    max-height: min(70vh, 520px);
    overflow: auto;
  }
  header.top nav a { padding: 12px 14px; font-size: 16px; color: var(--ink); }
  .nav-call { display: inline-flex !important; width: 100%; margin-top: 6px; }
  body.nav-open { overflow: hidden; }
  body.nav-open header.top nav { display: flex !important; }
  body.nav-open .nav-scrim {
    display: block;
    pointer-events: auto;
  }
  body.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .burger span:nth-child(2) { opacity: 0; }
  body.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .burger span { transition: transform .2s ease, opacity .2s ease; }
}
@media (max-width: 720px) {
  .wrap { width: min(1120px, calc(100% - 20px)); }
  .hero {
    padding: 20px 14px 16px;
    border-radius: 24px;
    margin: 10px 0 18px;
  }
  .hero-photo {
    background:
      linear-gradient(180deg, rgba(12,18,32,.45) 0%, rgba(12,18,32,.78) 100%),
      url("/assets/home/hero.jpg") center/cover no-repeat;
  }
  h1 { font-size: 28px; }
  .hero-photo .lead { font-size: 15px; }
  .hero .actions { flex-direction: column; align-items: stretch; margin-top: 16px; }
  .hero .actions .btn { width: 100%; text-align: center; font-size: 14px; white-space: nowrap; padding: 12px 12px; }
  .hero .order-form { padding: 16px; border-radius: 20px; }
  .hero .order-form h3 { white-space: normal; font-size: 18px; }
  .hero .order-form h3 span { display: block; }
  .hero .order-form .btn { width: 100%; }
  .brand-chip { min-width: 128px; height: 64px; padding: 8px 12px; border-radius: 14px; }
  .brand-chip img { height: 32px; max-width: 120px; }
  .brand-marquee-track { gap: 8px; animation-duration: 32s; }
  .topline { font-size: 12px; }
  .why-grid, .video-grid, .band, .shops, .factory-grid { grid-template-columns: 1fr; }
}
