:root {
  --text: #111827;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.10);
  --accent: #14b8a6;
  --accent-dark: #0f766e;
  --bg: #f7fafc;
  --dark: #0f172a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% 0%, rgba(20, 184, 166, 0.16), transparent 28%), radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.12), transparent 26%), var(--bg);
}
.page-noise { position: fixed; inset: 0; pointer-events: none; opacity: .28; background-image: linear-gradient(rgba(15,23,42,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.035) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000, transparent 92%); }
a { color: inherit; }
.demo-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px clamp(18px, 5vw, 70px);
  backdrop-filter: blur(18px);
  background: rgba(247, 250, 252, .76);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; }
.brand span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 15px; color: white; background: #111827; }
.brand strong { letter-spacing: -.03em; }
.demo-header nav { display: flex; align-items: center; gap: 18px; color: var(--muted); font-weight: 750; font-size: 14px; }
.demo-header nav a, .header-btn { text-decoration: none; }
.header-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.hero, .section { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 40px; align-items: center; min-height: calc(100vh - 74px); padding: 64px 0; }
.kicker { margin: 0 0 14px; color: var(--accent-dark); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .11em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(48px, 8vw, 92px); line-height: .9; letter-spacing: -.08em; }
.lead { max-width: 680px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px; border-radius: 999px; font-weight: 880; text-decoration: none; }
.btn--primary { color: white; background: #111827; box-shadow: 0 24px 50px rgba(15,23,42,.18); }
.btn--ghost { color: #111827; background: rgba(255,255,255,.78); border: 1px solid var(--line); }
.hero__visual { position: relative; min-height: 560px; }
.phone { position: absolute; inset: 20px 70px 40px auto; width: 300px; min-height: 520px; padding: 18px; border-radius: 46px; background: #111827; box-shadow: 0 36px 90px rgba(15,23,42,.25); transform: rotate(3deg); }
.phone::before { content: ""; position: absolute; inset: 10px; border-radius: 38px; border: 1px solid rgba(255,255,255,.12); pointer-events: none; }
.phone__top { height: 170px; border-radius: 32px; background: linear-gradient(145deg, #99f6e4, #dbeafe 50%, #fff); }
.phone__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.phone__grid span { min-height: 96px; border-radius: 24px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.10); }
.phone__button { height: 52px; margin-top: 18px; border-radius: 999px; background: var(--accent); }
.floating-card { position: absolute; display: grid; gap: 3px; min-width: 190px; padding: 18px 20px; border-radius: 24px; background: rgba(255,255,255,.84); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.86); box-shadow: 0 24px 70px rgba(15,23,42,.14); }
.floating-card small { color: var(--muted); font-weight: 800; }
.floating-card strong { letter-spacing: -.04em; }
.floating-card--one { top: 66px; left: 0; animation: float 6s ease-in-out infinite; }
.floating-card--two { right: 0; bottom: 100px; animation: float 6.4s ease-in-out infinite reverse; }
.demo-disclaimer { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 34px; padding: 20px 22px; border-radius: 28px; background: #111827; color: #fff; box-shadow: 0 28px 70px rgba(15,23,42,.16); }
.demo-disclaimer span { color: rgba(255,255,255,.72); }
.section { padding: 80px 0; }
.section-head { max-width: 760px; margin-bottom: 28px; }
h2 { font-size: clamp(34px, 5vw, 60px); line-height: .98; letter-spacing: -.065em; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 18px; line-height: 1.6; }
.catalog-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 20px; align-items: start; }
.filters, .products-wrap { border: 1px solid rgba(226,232,240,.95); border-radius: 30px; background: rgba(255,255,255,.76); backdrop-filter: blur(12px); box-shadow: 0 24px 70px rgba(15,23,42,.07); }
.filters { position: sticky; top: 94px; display: grid; gap: 10px; padding: 18px; }
.filters__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.filters__top strong { font-size: 18px; letter-spacing: -.03em; }
.filters__top span { color: var(--accent-dark); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.filter { width: 100%; min-height: 44px; border: 0; border-radius: 999px; padding: 0 14px; text-align: left; background: transparent; color: #475569; font-weight: 800; cursor: pointer; }
.filter.is-active, .filter:hover { color: #fff; background: #111827; }
.filters__note { margin-top: 10px; padding: 14px; border-radius: 20px; background: #f0fdfa; color: #0f766e; font-size: 13px; line-height: 1.5; font-weight: 720; }
.products-wrap { padding: 18px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 14px 16px; border-radius: 22px; background: #f8fafc; }
.catalog-toolbar strong { display: block; letter-spacing: -.03em; }
.catalog-toolbar span { color: var(--muted); font-size: 14px; }
.toolbar-pill { border: 0; min-height: 36px; padding: 0 13px; border-radius: 999px; background: #ccfbf1; color: #0f766e; font-weight: 900; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.product { overflow: hidden; border-radius: 26px; background: #fff; border: 1px solid rgba(226,232,240,.96); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.product:hover { transform: translateY(-5px); border-color: rgba(20,184,166,.42); box-shadow: 0 28px 60px rgba(15,23,42,.10); }
.product.is-hidden { display: none; }
.product__media { position: relative; min-height: 210px; background: linear-gradient(145deg,#e0f2fe,#ccfbf1); }
.product__media span { position: absolute; top: 14px; left: 14px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.82); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.product__media::after { content: ""; position: absolute; inset: 34px; border-radius: 34px; background: rgba(255,255,255,.28); border: 1px solid rgba(255,255,255,.34); transform: rotate(-8deg); }
.product__media--a { background: linear-gradient(145deg,#fce7f3,#ccfbf1); }
.product__media--b { background: linear-gradient(145deg,#dbeafe,#fef3c7); }
.product__media--c { background: linear-gradient(145deg,#e2e8f0,#cbd5e1); }
.product__media--d { background: linear-gradient(145deg,#f5d0fe,#dbeafe); }
.product__media--e { background: linear-gradient(145deg,#fee2e2,#fff7ed); }
.product__media--f { background: linear-gradient(145deg,#ccfbf1,#f8fafc); }
.product__media--g { background: linear-gradient(145deg,#bfdbfe,#94a3b8); }
.product__media--h { background: linear-gradient(145deg,#fde68a,#fef3c7); }
.product__body { padding: 18px; }
.product__body small { color: var(--accent-dark); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.product__body h3 { margin: 8px 0 8px; font-size: 22px; letter-spacing: -.045em; }
.product__body p { min-height: 44px; color: var(--muted); line-height: 1.45; }
.product__body strong { font-size: 22px; letter-spacing: -.04em; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how-grid article { padding: 26px; border-radius: 30px; background: #fff; border: 1px solid rgba(226,232,240,.96); box-shadow: 0 22px 60px rgba(15,23,42,.06); }
.how-grid span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; color: #0f766e; background: #ccfbf1; font-weight: 900; }
.how-grid h3 { margin: 18px 0 10px; font-size: 24px; line-height: 1.08; letter-spacing: -.045em; }
.how-grid p, .cta p { color: var(--muted); line-height: 1.6; }
.cta { margin-bottom: 70px; padding: clamp(36px, 6vw, 70px); border-radius: 40px; background: radial-gradient(circle at 82% 8%, rgba(20,184,166,.26), transparent 34%), #111827; color: #fff; }
.cta p { max-width: 720px; color: rgba(255,255,255,.72); font-size: 18px; }
.product-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 18px; }
.product-modal.is-open { display: flex; }
.product-modal__backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.72); backdrop-filter: blur(10px); }
.product-modal__dialog { position: relative; display: grid; grid-template-columns: .9fr 1fr; width: min(860px, 100%); overflow: hidden; border-radius: 34px; background: #fff; box-shadow: 0 40px 120px rgba(0,0,0,.35); }
.product-modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 999px; background: rgba(255,255,255,.78); font-size: 25px; cursor: pointer; }
.product-modal__media { min-height: 420px; background: linear-gradient(145deg,#ccfbf1,#dbeafe); }
.product-modal__content { padding: clamp(28px, 5vw, 50px); }
.product-modal__content h2 { font-size: clamp(34px, 5vw, 56px); }
.product-modal__content strong { display: block; margin-bottom: 14px; font-size: 30px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.modal-actions a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 999px; color: #fff; background: #111827; text-decoration: none; font-weight: 850; }
.modal-actions a:nth-child(2) { color: #111827; background: #f1f5f9; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 46px; }
  .hero__visual { min-height: 440px; }
  .phone { left: 50%; right: auto; transform: translateX(-50%) rotate(2deg); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .products { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .how-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .demo-header nav { display: none; }
  .header-btn { display: none; }
  .hero, .section { width: min(100% - 28px, 1180px); }
  .hero { min-height: auto; }
  h1 { font-size: 48px; }
  .hero__visual { min-height: 370px; }
  .phone { width: 230px; min-height: 380px; }
  .phone__top { height: 120px; }
  .phone__grid span { min-height: 70px; }
  .floating-card { min-width: 150px; padding: 14px; }
  .floating-card--one { left: 0; top: 26px; }
  .floating-card--two { right: 0; bottom: 40px; }
  .demo-disclaimer { display: grid; }
  .products { grid-template-columns: 1fr; }
  .product-modal__dialog { grid-template-columns: 1fr; max-height: 92vh; overflow: auto; }
  .product-modal__media { min-height: 230px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }


/* v1.39 — Gonchar Online demo navigation utilities */
.demo-header .brand img {
  display: block;
  width: auto;
  height: 54px;
  max-width: 190px;
  object-fit: contain;
}

.demo-float-home,
.demo-back-to-top {
  position: fixed;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(15,23,42,.10);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 22px 54px rgba(15,23,42,.18);
  backdrop-filter: blur(18px);
}

.demo-float-home {
  left: 20px;
  bottom: 20px;
  padding: 0 18px;
  border-radius: 999px;
  color: #111827;
  background: rgba(255,255,255,.86);
}

.demo-back-to-top {
  right: 20px;
  bottom: 20px;
  width: 52px;
  border-radius: 999px;
  color: #07110f;
  background: linear-gradient(135deg, #5eead4, #a7f3d0);
  cursor: pointer;
}

@media (max-width: 760px) {
  .demo-header .brand img {
    height: 48px;
    max-width: 168px;
  }

  .demo-header nav {
    display: none;
  }

  .header-btn {
    display: none;
  }

  .demo-float-home {
    left: 14px;
    right: 78px;
    bottom: 14px;
    padding: 0 12px;
  }

  .demo-back-to-top {
    right: 14px;
    bottom: 14px;
  }
}


/* v1.40 anchor back-to-top fix */
.demo-back-to-top {
  text-decoration: none !important;
  cursor: pointer !important;
}


/* v1.41 — darker demo header and centered disclaimer card */
.demo-header {
  background:
    radial-gradient(circle at 14% 0%, rgba(94,234,212,.16), transparent 32%),
    rgba(5, 7, 12, .92) !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 18px 46px rgba(15,23,42,.22) !important;
}

.demo-header .brand img {
  filter: drop-shadow(0 16px 30px rgba(45,212,191,.18));
}

.demo-header nav {
  color: rgba(226,232,240,.76) !important;
}

.demo-header nav a:hover {
  color: #fff !important;
}

.header-btn {
  color: #07110f !important;
  background: linear-gradient(135deg, #5eead4, #a7f3d0) !important;
  border-color: rgba(255,255,255,.16) !important;
  box-shadow: 0 14px 36px rgba(45,212,191,.18);
}

.demo-disclaimer {
  display: block !important;
  text-align: center !important;
  max-width: 980px !important;
  margin: 0 auto 42px !important;
  padding: clamp(26px, 5vw, 46px) clamp(22px, 5vw, 54px) !important;
  border-radius: 36px !important;
  background:
    radial-gradient(circle at 78% 8%, rgba(94,234,212,.18), transparent 34%),
    linear-gradient(180deg, #101827, #07111f) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: 0 30px 86px rgba(15,23,42,.24), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.demo-disclaimer strong {
  display: block !important;
  margin: 0 auto 16px !important;
  max-width: 820px;
  color: #fff !important;
  font-size: clamp(24px, 4vw, 38px) !important;
  line-height: 1.12 !important;
  letter-spacing: -.045em;
}

.demo-disclaimer span {
  display: block !important;
  max-width: 780px;
  margin: 0 auto !important;
  color: rgba(226,232,240,.78) !important;
  font-size: clamp(17px, 2.2vw, 22px) !important;
  line-height: 1.58 !important;
}

@media (max-width: 760px) {
  .demo-header {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  .demo-disclaimer {
    border-radius: 30px !important;
    margin-bottom: 34px !important;
  }
}
