/* ============ Tokens ============ */
:root{
  --bg: #121110;
  --bg-raised: #17140F;
  --surface: #1C1815;
  --surface-line: #2A2521;
  --red: #E31E2C;
  --red-dim: #7A1017;
  --steel: #8F8B85;
  --text: #F4F1EC;
  --text-muted: #A39C93;
  --text-faint: #6E6862;

  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --wrap: 1180px;
  --radius: 4px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

img,svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration:none; }
ul,ol{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ margin:0; font-family: var(--font-display); font-weight:700; letter-spacing: -0.02em; line-height:1.15; }
p{ margin:0; }
:focus-visible{ outline: 2px solid var(--red); outline-offset: 3px; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* subtle grain overlay for material richness */
.grain{
  position: fixed; inset:0; pointer-events:none; z-index: 999;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ Buttons ============ */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  white-space: nowrap;
}
.btn-solid{ background: var(--red); color: #171310; position:relative; overflow:hidden; }
.btn-solid::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.btn-solid:hover::before{ transform: translateX(120%); }
.btn-solid:hover{ background:#ff3244; transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(227,30,44,0.55); }
.btn-ghost{ background: transparent; color: var(--text); border-color: var(--surface-line); }
.btn-ghost:hover{ border-color: var(--red); color: var(--red); }
.btn-line{ border: 1px solid var(--surface-line); color: var(--text-muted); font-weight:600; font-size:14px; padding: 10px 18px; }
.btn-line:hover{ border-color: var(--red); color: var(--text); }
.btn-block{ width:100%; }

/* ============ Utility top bar ============ */
.topbar{ background: var(--bg-raised); border-bottom: 1px solid var(--surface-line); }
.topbar-inner{
  display:flex; align-items:center; justify-content:center; gap: 10px; flex-wrap:wrap;
  height: 38px; font-size: 12.5px; color: var(--text-faint);
}
.topbar-sep{ color: var(--surface-line); }
.topbar-link{ color: var(--text-faint); transition: color .2s ease; }
.topbar-link:hover{ color: var(--red); }

/* ============ Header ============ */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(18,17,16,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-line);
}
.header-inner{
  display:flex; align-items:center; gap: 40px;
  height: 76px;
}
.logo{ display:flex; align-items:center; gap:10px; margin-right:auto; color: var(--text); }
.logo-mark{ color: var(--text); flex-shrink:0; object-fit: contain; }
.logo-word{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.nav{ display:flex; gap: 32px; }
.nav a{ font-size:14px; font-weight:600; color: var(--text-muted); transition: color .2s; }
.nav a:hover{ color: var(--text); }
.header-actions{ display:flex; align-items:center; gap: 14px; flex-shrink:0; }
.header-cta{ flex-shrink:0; }
.icon-btn{
  display:flex; align-items:center; justify-content:center;
  width: 38px; height: 38px; border-radius: 999px;
  background:none; border: 1px solid var(--surface-line); color: var(--text-muted);
  cursor:pointer; transition: border-color .2s ease, color .2s ease;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"]{ border-color: var(--red); color: var(--red); }
.burger{ display:none; }

.search-panel{
  max-height: 0; overflow:hidden;
  border-top: 0px solid var(--surface-line);
  transition: max-height .3s ease, border-color .3s ease;
}
.search-panel.open{ max-height: 80px; border-top-width: 1px; }
.search-panel-inner{ display:flex; align-items:center; gap: 14px; padding: 18px 28px; color: var(--text-faint); }
.search-panel-inner input{
  flex:1; background:none; border:none; outline:none;
  color: var(--text); font-family: var(--font-body); font-size: 16px;
}
.search-panel-inner input::placeholder{ color: var(--text-faint); }
.search-hint{ font-size: 12px; color: var(--text-faint); white-space:nowrap; }

.mobile-nav{
  display:flex; flex-direction:column;
  position: absolute; top: 100%; left:0; right:0; z-index: 99;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--surface-line);
  padding: 8px 28px 20px;
  transform: translateY(-8px);
  opacity:0; visibility:hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.mobile-nav.open{ opacity:1; visibility:visible; transform: translateY(0); }
.mobile-nav a{ padding: 12px 0; font-weight:600; color: var(--text-muted); border-bottom: 1px solid var(--surface-line); }
.mobile-nav a:last-child{ border-bottom:none; }
.mobile-phone{ color: var(--red) !important; margin-top: 6px; }

/* ============ Hero ============ */
.hero{ position: relative; overflow: hidden; padding: 96px 0 0; }
.hero-bg{
  position: absolute; inset: -10% -10% auto auto; z-index:0;
  width: 62%; height: 780px;
  pointer-events:none;
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(227,30,44,0.55) 0%, rgba(227,30,44,0) 68%),
    radial-gradient(45% 50% at 55% 55%, rgba(227,30,44,0.35) 0%, rgba(227,30,44,0) 70%),
    radial-gradient(40% 45% at 95% 70%, rgba(227,30,44,0.28) 0%, rgba(227,30,44,0) 72%);
  filter: blur(2px);
  -webkit-mask-image: radial-gradient(65% 65% at 75% 35%, #000 0%, transparent 75%);
          mask-image: radial-gradient(65% 65% at 75% 35%, #000 0%, transparent 75%);
}
.hero-grid{
  position:relative; z-index:1;
  display:grid; grid-template-columns: 1fr auto; align-items:center; gap: 40px;
}
.hero-inner{ max-width: 620px; }
.eyebrow-line span{
  display:inline-block; font-size: 13px; font-weight:700; color: var(--red);
  border-bottom: 1px solid var(--red-dim); padding-bottom: 6px;
}
.hero-title{
  font-size: clamp(34px, 5.4vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 28px 0 26px;
  text-transform: none;
}
.hero-title .line{ display:block; }
.hero-title .dot{ color: var(--red); }
.hero-sub{
  max-width: 520px;
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom: 88px; }

.hero-visual{
  position:relative; width: 460px; aspect-ratio: 1; flex-shrink:0;
  perspective: 1400px;
}
.chip-glow{
  position:absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(227,30,44,0.42), rgba(227,30,44,0.08) 60%, transparent 75%);
  filter: blur(30px);
}
.chip-art{
  position:relative; width:100%; height:100%;
  transform: rotateX(24deg) rotateZ(-14deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 50px 50px rgba(0,0,0,0.65)) drop-shadow(0 0 1px rgba(255,255,255,0.05));
  transition: transform .8s cubic-bezier(.19,1,.22,1);
}
.hero-visual:hover .chip-art{ transform: rotateX(16deg) rotateZ(-8deg); }
.chip-core{ animation: corePulse 3.2s ease-in-out infinite; transform-origin: 260px 250px; }
@keyframes corePulse{ 0%,100%{ opacity: 1; } 50%{ opacity: .78; } }
.chip-led{ animation: ledBlink 2.4s steps(1) infinite; }
@keyframes ledBlink{ 0%,70%{ opacity: 1; } 71%,100%{ opacity: .25; } }
.pulse{ stroke-dasharray: 26 420; stroke-dashoffset: 446; animation: tracePulse 3.6s linear infinite; filter: drop-shadow(0 0 4px #FF4552); }
.pulse.p2{ animation-delay: .9s; }
.pulse.p3{ animation-delay: 1.8s; }
.pulse.p4{ animation-delay: 2.7s; }
@keyframes tracePulse{ to{ stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce){
  .chip-core, .chip-led, .pulse{ animation: none; }
  .pulse{ opacity: 0; }
}
@media (max-width: 1100px){ .hero-visual{ width: 380px; } }
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ width: min(360px, 88vw); margin: -40px auto 40px; order: -1; }
  .hero-actions{ margin-bottom: 56px; }
}

@keyframes heroRise{
  from{ opacity:0; transform: translateY(16px); }
  to{ opacity:1; transform: translateY(0); }
}
.hero-anim{
  opacity:0;
  animation: heroRise .7s cubic-bezier(.19,1,.22,1) forwards;
  animation-delay: calc(var(--d) * 90ms + 80ms);
}
@media (prefers-reduced-motion: reduce){
  .hero-anim{ opacity:1; animation:none; }
}

.hero-stats{
  position:relative; z-index:1;
  display:grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--surface-line);
}
.stat{
  padding: 28px 28px 32px 0;
  border-right: 1px solid var(--surface-line);
  display:flex; flex-direction:column;
}
.stat:last-child{ border-right:none; }
.stat-num{
  font-family: var(--font-display); font-weight:700; font-size: 34px; color: var(--text);
  display:inline;
}
.stat-suffix{ font-family: var(--font-display); font-weight:700; font-size: 15px; color: var(--red); margin-left: 4px; }
.stat-label{ display:block; margin-top: 6px; font-size: 13px; color: var(--text-faint); }

/* ============ Quick category nav ============ */
.quick-cats{ border-bottom: 1px solid var(--surface-line); }
.quick-cats-row{
  display:flex; gap: 12px; overflow-x:auto; padding: 22px 28px;
  scrollbar-width: none;
}
.quick-cats-row::-webkit-scrollbar{ display:none; }
.quick-cat{
  display:flex; flex-direction:column; align-items:center; gap: 10px;
  background:none; border:none; cursor:pointer; flex-shrink:0;
  padding: 8px 6px; width: 92px;
  color: var(--text-muted); font-family: var(--font-body); font-size: 12.5px; font-weight:600;
}
.quick-cat-icon{
  display:flex; align-items:center; justify-content:center;
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--surface-line); color: var(--red);
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.quick-cat:hover .quick-cat-icon{ border-color: var(--red); background: var(--bg-raised); transform: translateY(-2px); }
.quick-cat:hover{ color: var(--text); }

/* ============ Brands strip ============ */
.brands{ border-top: 1px solid var(--surface-line); border-bottom: 1px solid var(--surface-line); padding: 26px 0; }
.brands-label{ font-size: 12px; color: var(--text-faint); margin-bottom: 14px; }
.brands-row{ display:flex; flex-wrap:wrap; gap: 20px 40px; }
.brands-row span{ font-family: var(--font-mono); font-weight:500; font-size: 15px; color: var(--text-faint); letter-spacing: 0.01em; }

/* ============ Trust strip ============ */
.trust{ border-bottom: 1px solid var(--surface-line); padding: 30px 0; }
.trust-row{
  display:grid; grid-template-columns: repeat(4,1fr); gap: 20px;
}
.trust-item{
  display:flex; align-items:center; gap: 14px;
  color: var(--text-muted); font-size: 14px; font-weight:600;
}
.trust-item svg{ color: var(--red); flex-shrink:0; }

/* ============ Section head ============ */
.section-head{ max-width: 620px; margin-bottom: 56px; }
.section-head h2{ font-size: clamp(26px,3.2vw,40px); margin-bottom: 16px; }
.section-head p{ color: var(--text-muted); font-size: 17px; }

/* ============ Services: category tiles ============ */
.services{ padding: 120px 0; }
.category-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.category-card{
  position: relative; overflow:hidden;
  display:flex; flex-direction:column; gap: 10px;
  min-height: 230px; padding: 28px;
  background: linear-gradient(160deg, #1E1A17, var(--surface) 55%);
  border: 1px solid var(--surface-line); border-radius: 10px;
  transition: border-color .25s ease, transform .25s ease;
}
.category-card::after{
  content:""; position:absolute; right:-40%; top:-40%; width: 90%; height: 90%; border-radius:50%;
  background: radial-gradient(closest-side, rgba(227,30,44,0.16), transparent 70%);
  opacity: 0; transition: opacity .35s ease;
}
.category-card:hover{ border-color: #4A3E36; transform: translateY(-3px); }
.category-card:hover::after{ opacity: 1; }
.category-card:first-child{ grid-column: span 2; }
.category-icon{ width: 52px; height: 52px; border-radius: 12px; display:flex; align-items:center; justify-content:center; color: var(--red); background: rgba(227,30,44,0.08); border: 1px solid rgba(227,30,44,0.22); margin-bottom: 8px; }
.category-name{ font-family: var(--font-display); font-weight:700; font-size: 18px; letter-spacing:-0.02em; }
.category-desc{ color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.category-meta{ margin-top:auto; padding-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); display:flex; align-items:center; gap: 6px; }
.category-meta .arrow{ margin-left:auto; color: var(--red); transition: transform .25s ease; }
.category-card:hover .arrow{ transform: translateX(4px); }

/* ============ Catalog / price list ============ */
.catalog{ padding: 0 0 120px; }
.catalog-bar{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
  margin-bottom: 40px; padding-bottom: 22px; border-bottom: 1px solid var(--surface-line);
}
.catalog-filters{ display:flex; flex-wrap:wrap; gap: 10px; }
.filter-tab{
  background:none; border: 1px solid var(--surface-line); color: var(--text-muted);
  font-family: var(--font-body); font-size: 13px; font-weight:600;
  padding: 9px 16px; border-radius: 999px; cursor:pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.filter-tab:hover{ color: var(--text); border-color: var(--steel); }
.filter-tab.is-active{ background: var(--red); border-color: var(--red); color: #171310; }

.catalog-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--surface-line); border: 1px solid var(--surface-line); }
.catalog-card{
  display:flex; flex-direction:column; min-height: 200px;
  background: var(--bg); padding: 26px 24px;
  transition: background-color .2s ease;
}
.catalog-name{ font-weight:700; font-size: 16px; line-height: 1.35; margin-bottom: 14px; }
.catalog-foot{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap: 8px; }
.catalog-card:hover{ background: var(--surface); }
.catalog-card.is-hidden{ display:none; }
.catalog-icon{ color: var(--red); margin-bottom: 20px; }
.catalog-tag{ display:block; font-family: var(--font-mono); font-size: 11px; letter-spacing:0.02em; color: var(--text-faint); margin-bottom: 8px; }
.catalog-card h4{ font-family: var(--font-body); font-size: 16px; font-weight:700; margin-bottom: 12px; }
.catalog-price{ display:block; font-family: var(--font-display); font-weight:600; font-size: 15px; color: var(--red); }

/* ============ Promo banner ============ */
.promo{ padding: 0 0 120px; }
.promo-inner{
  display:grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items:center;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(227,30,44,0.22) 0%, rgba(227,30,44,0) 55%),
    var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  padding: 56px 64px;
}
.promo-tag{ font-size: 13px; font-weight:700; color: var(--red); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.promo-copy h2{ font-size: clamp(22px,2.6vw,32px); margin-bottom: 16px; max-width: 480px; }
.promo-sub{ color: var(--text-muted); font-size: 16px; margin-bottom: 28px; max-width: 440px; }
.promo-timer{ display:flex; gap: 14px; justify-content:flex-end; }
.promo-unit{
  display:flex; flex-direction:column; align-items:center; gap: 6px;
  background: var(--bg); border: 1px solid var(--surface-line); border-radius: var(--radius);
  padding: 16px 14px; min-width: 68px;
}
.promo-num{ font-family: var(--font-display); font-weight:700; font-size: 26px; color: var(--text); }
.promo-label{ font-size: 11px; color: var(--text-faint); }

/* ============ Newsletter ============ */
.newsletter{ padding: 0 0 90px; }
.newsletter-inner{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap: 28px;
  border-top: 1px solid var(--surface-line);
  border-bottom: 1px solid var(--surface-line);
  padding-block: 44px;
}
.newsletter-copy h3{ font-size: 22px; margin-bottom: 6px; }
.newsletter-copy p{ color: var(--text-muted); font-size: 15px; }
.newsletter-form{ display:flex; gap: 12px; flex-wrap:wrap; }
.newsletter-form input[type=email]{
  background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius);
  padding: 13px 16px; color: var(--text); font-family: var(--font-body); font-size: 15px; min-width: 260px;
}
.newsletter-form input[type=email]:focus{ border-color: var(--red); outline:none; }

/* ============ Process ============ */
.process{ padding: 0 0 120px; }
.process-list{ position: relative; display:flex; flex-direction:column; padding-left: 26px; }
.process-line{
  position:absolute; left:0; top:8px; bottom:8px; width:2px;
  background: var(--surface-line);
}
.process-line-fill{
  position:absolute; left:0; top:0; width:100%; height:0%;
  background: linear-gradient(var(--red), var(--red-dim));
  transition: height .1s linear;
}
.process-item{
  position: relative;
  display:grid; grid-template-columns: 74px 1fr;
  gap: 24px; align-items:start;
  padding: 32px 0;
  border-top: 1px solid var(--surface-line);
}
.process-item:first-child{ border-top: none; }
.process-item:last-child{ border-bottom: 1px solid var(--surface-line); }
.process-item::before{
  content:""; position:absolute; left:-31px; top:38px;
  width:9px; height:9px; border-radius:50%;
  background: var(--bg); border: 2px solid var(--surface-line);
  transition: border-color .3s ease, background .3s ease;
}
.process-item.is-active::before{ border-color: var(--red); background: var(--red); }
.process-num{ font-family: var(--font-mono); font-weight:500; font-size: 26px; color: var(--red-dim); }
.process-item h3{ font-size: 18px; margin-bottom: 8px; font-weight:700; }
.process-item p{ color: var(--text-muted); max-width: 560px; }

/* ============ Why ============ */
.why{ padding: 0 0 120px; }
.why-inner{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items:center; }
.why-copy h2{ font-size: clamp(26px,3.2vw,40px); margin-bottom: 20px; }
.why-lead{ color: var(--text-muted); font-size: 17px; margin-bottom: 40px; max-width: 480px; }
.why-list{ display:flex; flex-direction:column; gap: 26px; }
.why-list li{ display:flex; gap: 16px; }
.why-mark{ color: var(--red); font-family: var(--font-display); font-weight:800; font-size: 18px; margin-top: 2px; }
.why-list h4{ font-size: 17px; font-weight:700; margin-bottom: 4px; }
.why-list p{ color: var(--text-muted); font-size: 15px; }
.why-visual{ display:flex; justify-content:center; }
.dial{
  padding: 24px; border: 1px solid var(--surface-line); border-radius: 50%;
}

/* ============ Reviews ============ */
.reviews{ padding: 0 0 120px; }
.reviews-track{ display:grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--surface-line); border:1px solid var(--surface-line); }
.review-card{ background: var(--bg); padding: 32px; margin:0; display:flex; flex-direction:column; justify-content:space-between; gap: 24px; min-height: 220px; }
.review-card blockquote{ margin:0; font-size: 16.5px; line-height:1.6; color: var(--text); }
.review-card figcaption{ font-size: 13px; color: var(--text-faint); font-weight:600; }

/* ============ FAQ ============ */
.faq{ padding: 0 0 120px; }
.faq-inner{ display:grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
.faq-head{ margin-bottom:0; }
.faq-list{ display:flex; flex-direction:column; }
.faq-item{ border-bottom: 1px solid var(--surface-line); }
.faq-item:first-child{ border-top: 1px solid var(--surface-line); }
.faq-q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap: 20px;
  background:none; border:none; cursor:pointer; text-align:left;
  padding: 22px 2px; color: var(--text); font-family: var(--font-body); font-weight:700; font-size: 17px;
}
.faq-plus{ position:relative; width:16px; height:16px; flex-shrink:0; }
.faq-plus::before, .faq-plus::after{
  content:""; position:absolute; background: var(--red); border-radius:1px;
  transition: transform .25s ease;
}
.faq-plus::before{ left:0; top:7px; width:16px; height:2px; }
.faq-plus::after{ left:7px; top:0; width:2px; height:16px; }
.faq-q[aria-expanded="true"] .faq-plus::after{ transform: rotate(90deg); opacity:0; }
.faq-a{
  display:grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.faq-a p{ overflow:hidden; color: var(--text-muted); font-size: 15px; padding-right: 40px; }
.faq-item.open .faq-a{ grid-template-rows: 1fr; }
.faq-a > p{ min-height:0; }
.faq-item.open .faq-a p{ padding-bottom: 22px; }

/* ============ CTA / contact ============ */
.cta{ padding: 0 0 110px; }
.cta-inner{
  display:grid; grid-template-columns: 1fr 1fr; gap: 64px;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  padding: 64px;
  border-radius: var(--radius);
}
.cta-copy h2{ font-size: clamp(24px,3vw,34px); margin-bottom: 18px; max-width: 420px; }
.cta-copy p{ color: var(--text-muted); margin-bottom: 32px; max-width: 420px; }
.cta-contacts{ display:flex; flex-direction:column; gap: 10px; }
.cta-contacts a{ font-weight:700; font-size: 16px; }
.cta-contacts a:hover{ color: var(--red); }
.cta-contacts span{ color: var(--text-faint); font-size: 14px; }

.cta-form{ display:flex; flex-direction:column; gap: 18px; }
.cta-form label{ display:flex; flex-direction:column; gap: 8px; font-size: 13px; color: var(--text-muted); font-weight:600; }
.cta-form input, .cta-form textarea{
  background: var(--bg);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  resize: vertical;
}
.cta-form input:focus, .cta-form textarea:focus{ border-color: var(--red); outline: none; }
.form-note{ font-size: 13px; color: var(--red); min-height: 18px; }
.form-note.success{ color: #4CAF6D; }

/* ============ Footer ============ */
.site-footer{ border-top: 1px solid var(--surface-line); padding: 64px 0 0; }
.footer-grid{
  display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px; align-items:start; padding-bottom: 48px;
}
.logo-footer .logo-word{ font-size: 20px; }
.footer-note{ color: var(--text-faint); font-size: 14px; max-width: 320px; margin: 16px 0 22px; }
.footer-social{ display:flex; gap: 10px; }
.footer-social a{
  display:flex; align-items:center; justify-content:center;
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--surface-line); color: var(--text-muted);
  transition: border-color .2s ease, color .2s ease;
}
.footer-social a:hover{ border-color: var(--red); color: var(--red); }
.footer-col{ display:flex; flex-direction:column; gap: 14px; }
.footer-col h5{ font-family: var(--font-body); font-size: 13px; font-weight:700; color: var(--text); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.footer-col a, .footer-plain{ font-size: 14px; color: var(--text-muted); }
.footer-col a:hover{ color: var(--red); }
.footer-plain{ color: var(--text-faint); }
.footer-bottom{
  display:flex; justify-content:space-between;
  border-top: 1px solid var(--surface-line);
  padding-block: 20px; font-size: 13px; color: var(--text-faint);
}

/* ============ Shared page parts ============ */
.nav a.is-current{ color: var(--text); box-shadow: inset 0 -2px 0 var(--red); padding-bottom: 4px; }
a.icon-btn{ text-decoration:none; }
.quick-cat{ width: 108px; text-align:center; line-height:1.3; }
.muted{ color: var(--text-muted); }
section[id]{ scroll-margin-top: 90px; }
.no-scroll{ overflow:hidden; }

.page-hero{ padding: 72px 0 56px; border-bottom: 1px solid var(--surface-line); position:relative; overflow:hidden; }
.page-hero::before{
  content:""; position:absolute; right:-10%; top:-60%; width: 60%; height: 220%; pointer-events:none;
  background: radial-gradient(closest-side, rgba(227,30,44,0.18), transparent 70%);
}
.page-hero--compact{ padding: 56px 0 40px; }
.page-hero h1{ font-size: clamp(30px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -0.03em; margin: 18px 0 16px; position:relative; }
.page-hero p{ color: var(--text-muted); font-size: 18px; max-width: 620px; position:relative; }
.crumbs{ display:flex; gap: 8px; font-size: 13px; color: var(--text-faint); position:relative; }
.crumbs a:hover{ color: var(--red); }

.page-section{ padding: 72px 0 0; }
.page-section:last-child{ padding-bottom: 110px; }
.split{ display:grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items:start; }
.block-title{ font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 14px; }
.block-lead{ color: var(--text-muted); font-size: 16px; margin-bottom: 24px; max-width: 480px; }
.plain-list{ display:flex; flex-direction:column; gap: 10px; margin: 8px 0 0; }
.plain-list li{ position:relative; padding-left: 20px; color: var(--text-muted); font-size: 15px; }
.plain-list li::before{ content:""; position:absolute; left:0; top: 9px; width: 8px; height: 2px; background: var(--red); }
.steps-list{ counter-reset: st; display:flex; flex-direction:column; gap: 12px; }
.steps-list li{ counter-increment: st; display:flex; gap: 14px; color: var(--text-muted); }
.steps-list li::before{ content: counter(st); font-family: var(--font-mono); color: var(--red); }

.field{
  width:100%; background: var(--bg); border: 1px solid var(--surface-line); border-radius: var(--radius);
  padding: 12px 14px; color: var(--text); font-family: var(--font-body); font-size: 15px;
}
.field:focus{ border-color: var(--red); outline:none; }
select.field{ appearance:none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(-45deg, transparent 50%, var(--text-muted) 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat:no-repeat; padding-right: 36px; }
.card-form{
  display:flex; flex-direction:column; gap: 16px;
  background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius); padding: 32px;
}
.card-form--flat{ background:none; border:none; padding: 8px 0 0; }
.card-form label{ display:flex; flex-direction:column; gap: 8px; font-size: 13px; font-weight:600; color: var(--text-muted); }
.card-form label.check{ flex-direction:row; align-items:flex-start; gap: 10px; font-weight:500; }
.check input{ accent-color: var(--red); margin-top: 3px; width: 16px; height: 16px; flex-shrink:0; }
.check a, .info-strip a, .faq-a a{ color: var(--text); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.radio-row{ border:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap: 10px; }
.radio-row legend{ font-size: 13px; font-weight:600; color: var(--text-muted); margin-bottom: 8px; }
.radio-row label{ flex-direction:row; align-items:center; gap: 8px; border: 1px solid var(--surface-line); border-radius: 999px; padding: 8px 14px; cursor:pointer; }
.radio-row input{ accent-color: var(--red); }
.radio-row label:has(input:checked){ border-color: var(--red); color: var(--text); }
.inline-form{ display:flex; gap: 12px; }
.inline-form .field{ flex:1; }
.demo-note{ font-size: 13px; color: var(--text-faint); border: 1px dashed var(--surface-line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 28px; }
.empty-card{ border: 1px dashed var(--surface-line); border-radius: var(--radius); padding: 32px; display:flex; flex-direction:column; align-items:flex-start; gap: 18px; color: var(--text-muted); }

/* ============ Rating (home) ============ */
.rating{ padding: 0 0 120px; }
.rating-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1px; background: var(--surface-line); border: 1px solid var(--surface-line); margin-bottom: 40px; }
.rating-card{ background: var(--bg); padding: 28px; display:flex; flex-direction:column; gap: 6px; }
.rating-card--main{ background: var(--surface); }
.rating-big{ font-family: var(--font-display); font-weight:700; font-size: 56px; line-height: 1; }
.rating-stars{ color: var(--red); letter-spacing: 3px; font-size: 18px; }
.rating-src{ font-size: 13px; font-weight:700; color: var(--text-muted); }
.rating-val{ font-family: var(--font-display); font-weight:700; font-size: 28px; }
.rating-val small{ font-size: 16px; color: var(--text-faint); }
.rating-note{ font-size: 13px; color: var(--text-faint); }
.time-grid{ display:flex; flex-direction:column; gap: 14px; }
.time-row{ display:grid; grid-template-columns: 200px 1fr 90px; gap: 20px; align-items:center; font-size: 15px; color: var(--text-muted); }
.time-row b{ font-family: var(--font-display); font-size: 18px; color: var(--text); text-align:right; }
.time-bar{ height: 6px; background: var(--surface); border-radius: 999px; overflow:hidden; }
.time-bar i{ display:block; height:100%; width: var(--w); background: linear-gradient(90deg, var(--red-dim), var(--red)); border-radius: 999px; }

/* ============ Services page ============ */
.svc-cats-section{ padding: 48px 0 0; }
.svc-cats{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.svc-cat{
  display:flex; flex-direction:column; align-items:flex-start; gap: 8px; text-align:left;
  background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius);
  padding: 22px; cursor:pointer; color: var(--text); font-family: var(--font-body);
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.svc-cat:hover{ border-color: #4A4038; transform: translateY(-2px); }
.svc-cat.is-active{ border-color: var(--red); background: linear-gradient(160deg, rgba(227,30,44,0.14), var(--surface) 60%); }
.svc-cat-icon{ color: var(--red); margin-bottom: 6px; }
.svc-cat-name{ font-family: var(--font-display); font-weight:700; font-size: 16px; }
.svc-cat-desc{ font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.svc-cat-meta{ margin-top: auto; padding-top: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }

.svc-list-section{ padding: 64px 0 110px; }
.svc-toolbar{ display:flex; justify-content:space-between; align-items:flex-end; gap: 20px; flex-wrap:wrap; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--surface-line); }
.svc-toolbar h2{ font-size: clamp(22px, 2.6vw, 30px); }
.svc-count{ font-size: 13px; color: var(--text-faint); margin-top: 4px; }
.svc-controls{ display:flex; gap: 10px; }
.svc-controls .field{ width: 220px; }
.svc-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card{
  display:flex; flex-direction:column; gap: 12px;
  background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius); padding: 26px;
  transition: border-color .2s ease;
}
.svc-card:hover{ border-color: #4A4038; }
.svc-card-top{ display:flex; align-items:center; justify-content:space-between; }
.svc-card-icon{ color: var(--red); }
.svc-card .catalog-tag{ margin:0; }
.svc-card h3{ font-family: var(--font-body); font-size: 18px; font-weight:800; }
.svc-card p{ color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.svc-meta{ display:flex; flex-wrap:wrap; align-items:center; gap: 10px; font-size: 13px; }
.stars{ color: #F5B544; font-weight:700; }
.chip{ border: 1px solid var(--surface-line); border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--text-muted); }
.svc-card-foot{ margin-top:auto; padding-top: 14px; border-top: 1px solid var(--surface-line); display:flex; align-items:center; justify-content:space-between; gap: 10px; flex-wrap:wrap; }
.svc-actions{ display:flex; gap: 8px; }
.svc-actions .btn{ padding: 9px 14px; font-size: 13px; }
.svc-empty{ border: 1px dashed var(--surface-line); border-radius: var(--radius); padding: 40px; display:flex; flex-direction:column; align-items:flex-start; gap: 16px; color: var(--text-muted); }

/* ============ Modal ============ */
.modal{ position:fixed; inset:0; z-index: 1000; display:flex; align-items:center; justify-content:center; padding: 20px; }
.modal[hidden]{ display:none; }
.modal-backdrop{ position:absolute; inset:0; background: rgba(8,7,6,0.72); backdrop-filter: blur(4px); }
.modal-box{
  position:relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow:auto;
  background: var(--bg-raised); border: 1px solid var(--surface-line); border-radius: 8px; padding: 36px;
  display:flex; flex-direction:column; gap: 14px;
  animation: modalIn .25s cubic-bezier(.19,1,.22,1);
}
@keyframes modalIn{ from{ opacity:0; transform: translateY(12px) scale(.98); } to{ opacity:1; transform:none; } }
.modal-box h2{ font-size: 24px; line-height: 1.05; }
.modal-box h4{ font-family: var(--font-body); font-size: 14px; margin-top: 6px; }
.modal-close{ position:absolute; top: 14px; right: 16px; background:none; border:none; color: var(--text-muted); font-size: 28px; line-height:1; cursor:pointer; }
.modal-close:hover{ color: var(--red); }
.modal-foot{ display:flex; align-items:center; justify-content:space-between; gap: 12px; flex-wrap:wrap; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--surface-line); }

/* ============ Support ============ */
.channel-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.channel-card{ display:flex; flex-direction:column; gap: 6px; background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius); padding: 28px; transition: border-color .2s ease; }
.channel-card:hover{ border-color: var(--red); }
.channel-name{ font-size: 13px; font-weight:700; color: var(--red); }
.channel-value{ font-family: var(--font-display); font-weight:700; font-size: 20px; }
.channel-note{ font-size: 13px; color: var(--text-faint); }
.track-result{ background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius); padding: 28px; min-height: 160px; display:flex; flex-direction:column; justify-content:center; gap: 12px; }
#faqList .faq-item[hidden]{ display:none; }
.faq-head .field{ margin-top: 20px; }

/* ============ Orders ============ */
.order-card{ display:flex; flex-direction:column; gap: 10px; background: var(--bg); border: 1px solid var(--surface-line); border-radius: var(--radius); padding: 22px; margin-bottom: 14px; }
.order-head{ display:flex; justify-content:space-between; gap: 16px; align-items:flex-start; }
.order-id{ font-family: var(--font-mono); font-size: 12px; color: var(--red); }
.order-card h3{ font-family: var(--font-body); font-size: 17px; font-weight:800; margin-top: 2px; }
.order-price{ font-family: var(--font-display); font-weight:600; font-size: 15px; color: var(--text); white-space:nowrap; }
.order-card .muted{ font-size: 13px; }
.stepper{ display:grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 6px; }
.stepper li{ display:flex; flex-direction:column; gap: 8px; font-size: 11.5px; color: var(--text-faint); }
.stepper li span{ height: 4px; border-radius: 999px; background: var(--surface-line); }
.stepper li.is-done span{ background: var(--red-dim); }
.stepper li.is-done{ color: var(--text-muted); }
.stepper li.is-current span{ background: var(--red); box-shadow: 0 0 12px rgba(227,30,44,0.6); }
.stepper li.is-current{ color: var(--text); font-weight:700; }

/* ============ Payment ============ */
.pay-methods{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pay-method{ background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius); padding: 26px; display:flex; flex-direction:column; gap: 8px; }
.pay-method .pay-h{ font-size: 18px; }
.pay-method p{ color: var(--text-muted); font-size: 14px; }
.pay-fee{ margin-top:auto; padding-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--red); }
.info-strip{ border-left: 2px solid var(--red); background: var(--surface); padding: 20px 24px; color: var(--text-muted); border-radius: 0 var(--radius) var(--radius) 0; }
.info-strip b{ color: var(--text); }

/* ============ Account ============ */
.auth{ max-width: 460px; }
.auth-tabs{ display:flex; gap: 4px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--surface-line); border-radius: 999px; padding: 4px; width: fit-content; }
.auth-tab{ background:none; border:none; color: var(--text-muted); font-family: var(--font-body); font-weight:700; font-size: 14px; padding: 9px 22px; border-radius: 999px; cursor:pointer; }
.auth-tab.is-active{ background: var(--red); color: #171310; }
.dash{ display:grid; grid-template-columns: 280px 1fr; gap: 40px; align-items:start; }
.dash-side{ display:flex; flex-direction:column; gap: 10px; background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; }
.dash-profile{ display:flex; align-items:center; gap: 12px; margin-bottom: 10px; }
.dash-profile b{ display:block; }
.dash-profile .muted{ font-size: 13px; }
.dash-avatar{ width: 44px; height: 44px; border-radius: 999px; background: var(--red); color: #171310; display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-weight:800; font-size: 22px; }

/* ============ Documents ============ */
.docs{ display:grid; grid-template-columns: 240px 1fr; gap: 56px; align-items:start; }
.docs-nav{ position: sticky; top: 100px; display:flex; flex-direction:column; border-left: 1px solid var(--surface-line); }
.docs-nav a{ padding: 10px 18px; font-size: 14px; font-weight:600; color: var(--text-muted); border-left: 2px solid transparent; margin-left: -1px; }
.docs-nav a:hover{ color: var(--text); }
.docs-nav a.is-active{ color: var(--text); border-left-color: var(--red); }
.docs-body{ display:flex; flex-direction:column; gap: 56px; max-width: 760px; }
.doc{ scroll-margin-top: 110px; }
.doc h2{ font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 8px; }
.doc h3{ font-family: var(--font-body); font-size: 17px; font-weight:800; margin: 24px 0 8px; }
.doc p, .doc li{ color: var(--text-muted); font-size: 15.5px; line-height: 1.7; margin-bottom: 8px; }
.doc-meta{ font-family: var(--font-mono); font-size: 12px !important; color: var(--text-faint) !important; }
.doc-list{ padding-left: 20px; margin: 8px 0 16px; }
ul.doc-list{ list-style: disc; }
ol.doc-list{ list-style: decimal; }
.doc-list li::marker{ color: var(--red); }
.doc b{ color: var(--text); }
.req-list{ display:grid; grid-template-columns: 180px 1fr; gap: 12px 20px; margin: 16px 0 0; }
.req-list dt{ color: var(--text-faint); font-size: 14px; }
.req-list dd{ margin:0; color: var(--text); font-size: 15px; }

/* ============ Responsive ============ */
@media (max-width: 980px){
  .nav{ display:none; }
  .header-cta{ display:none; }
  .topbar-inner{ font-size: 11.5px; gap: 6px; height:auto; padding-block: 8px; text-align:center; }
  .topbar-item.topbar-link{ display:none; }
  .burger{
    display:flex; flex-direction:column; justify-content:center; gap:5px;
    width: 34px; height: 34px; background:none; border:none; cursor:pointer; padding:0;
  }
  .burger span{ display:block; width:100%; height:2px; background: var(--text); transition: transform .2s, opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
  .burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

  .hero-stats{ grid-template-columns: repeat(2,1fr); }
  .stat{ border-bottom: 1px solid var(--surface-line); padding-bottom:24px; }


  .catalog-grid{ grid-template-columns: repeat(2,1fr); }
  .category-grid{ grid-template-columns: repeat(2, 1fr); }

  .why-inner{ grid-template-columns: 1fr; }
  .why-visual{ order:-1; }

  .reviews-track{ grid-template-columns: 1fr; }

  .cta-inner{ grid-template-columns: 1fr; padding: 40px 28px; }

  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: span 2; }

  .trust-row{ grid-template-columns: repeat(2,1fr); }
  .faq-inner{ grid-template-columns: 1fr; }

  .promo-inner{ grid-template-columns: 1fr; padding: 40px 32px; }
  .promo-timer{ justify-content:flex-start; }

  .newsletter-inner{ flex-direction:column; align-items:flex-start; }
  .newsletter-form{ width:100%; }
  .newsletter-form input[type=email]{ flex:1; min-width:0; }
  .split{ grid-template-columns: 1fr; gap: 32px; }
  .svc-cats{ grid-template-columns: repeat(2, 1fr); }
  .svc-grid{ grid-template-columns: repeat(2, 1fr); }
  .channel-grid{ grid-template-columns: 1fr; }
  .pay-methods{ grid-template-columns: repeat(2, 1fr); }
  .rating-grid{ grid-template-columns: 1fr 1fr; }
  .rating-card--main{ grid-column: span 2; }
  .dash{ grid-template-columns: 1fr; }
  .dash-side{ position: static; }
  .docs{ grid-template-columns: 1fr; gap: 24px; }
  .docs-nav{ position: static; flex-direction:row; flex-wrap:wrap; border-left:none; gap: 8px; }
  .docs-nav a{ border: 1px solid var(--surface-line); border-radius: 999px; padding: 7px 14px; margin:0; }
  .docs-nav a.is-active{ border-color: var(--red); }
}

@media (max-width: 620px){
  .hero-stats{ grid-template-columns: repeat(2,1fr); }
  .process-item{ grid-template-columns: 60px 1fr; }
  .process-num{ font-size: 28px; }
  .footer-bottom{ flex-direction:column; gap:8px; }
  .catalog-grid{ grid-template-columns: 1fr; }
  .category-grid{ grid-template-columns: 1fr; }
  .category-card:first-child{ grid-column: auto; }
  .category-card{ min-height: 0; }
  .catalog-bar{ flex-direction:column; align-items:flex-start; }
  .promo-unit{ min-width:0; flex:1; padding: 12px 8px; }
  .promo-num{ font-size: 24px; }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-brand{ grid-column: span 1; }
  .svc-cats{ grid-template-columns: 1fr 1fr; gap: 8px; }
  .svc-cat{ padding: 16px; }
  .svc-cat-desc{ display:none; }
  .svc-grid{ grid-template-columns: 1fr; }
  .svc-controls{ width:100%; flex-direction:column; }
  .svc-controls .field{ width:100%; }
  .pay-methods{ grid-template-columns: 1fr; }
  .time-row{ grid-template-columns: 1fr auto; }
  .time-row .time-bar{ grid-column: 1 / -1; grid-row: 2; }
  .inline-form{ flex-direction:column; }
  .card-form{ padding: 22px; }
  .modal-box{ padding: 28px 22px; }
  .stepper li{ font-size: 10px; }
  .req-list{ grid-template-columns: 1fr; gap: 2px 0; }
  .req-list dd{ margin-bottom: 10px; }
}

/* ============ PHP site additions ============ */
.skip-link{ position:absolute; left:-9999px; top: 8px; z-index: 2000; background: var(--red); color:#171310; padding: 10px 16px; border-radius: 6px; font-weight:700; }
.skip-link:focus{ left: 12px; }
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.btn-sm{ padding: 9px 14px; font-size: 13px; }
.btn-danger{ background: #5A0F14; color: #FFD9DC; border-color: #7A1017; }
.btn-danger:hover{ background: var(--red); color:#171310; }
.link-btn{ background:none; border:none; padding:0; color: var(--text); font: inherit; font-weight:700; cursor:pointer; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.optional{ font-style: normal; font-weight: 500; color: var(--text-faint); margin-left: 6px; }
.form-row{ display:grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.card-h{ font-size: 18px; }

.flashes{ display:flex; flex-direction:column; gap: 8px; padding-top: 18px; }
.flash{ border-radius: 8px; padding: 12px 16px; font-size: 14px; border: 1px solid; }
.flash--success{ background: rgba(76,175,109,0.08); border-color: rgba(76,175,109,0.35); color: #9FE0B4; }
.flash--error{ background: rgba(227,30,44,0.08); border-color: rgba(227,30,44,0.4); color: #FFB3B9; }

.search-panel .btn-sm{ flex-shrink:0; }

.footer-h{ font-family: var(--font-body); font-size: 12px; font-weight:800; color: var(--text); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.footer-social a{ width:auto; padding: 0 14px; font-size: 13px; }
.footer-bottom{ gap: 24px; }
.footer-bottom span:last-child{ text-align:right; max-width: 520px; }

.newsletter-title{ font-size: 20px; margin-bottom: 6px; }
.newsletter-form{ flex-direction:column; gap: 10px; max-width: 460px; width:100%; }
.newsletter-row{ display:flex; gap: 10px; }
.newsletter-row .field{ flex:1; }
.newsletter .check{ display:flex; gap: 10px; font-size: 13px; color: var(--text-muted); }

.review-stars{ color: #F5B544; letter-spacing: 2px; font-size: 14px; }
.reviews-track{ margin-top: 16px; }

.order-summary{ background: var(--surface); border: 1px solid var(--surface-line); border-radius: 10px; padding: 28px; margin-bottom: 24px; display:flex; flex-direction:column; gap: 10px; }
.order-summary .catalog-tag{ margin:0; }
.done-card{ max-width: 640px; background: var(--surface); border: 1px solid var(--surface-line); border-radius: 12px; padding: 40px; display:flex; flex-direction:column; gap: 14px; }
.done-number{ font-family: var(--font-display); font-weight:700; font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.03em; color: var(--text); }
.done-actions{ display:flex; flex-wrap:wrap; gap: 12px; margin-top: 8px; }

.svc-details{ border-top: 1px solid var(--surface-line); padding-top: 10px; }
.svc-details summary{ cursor:pointer; font-size: 13px; font-weight:700; color: var(--text-muted); list-style:none; }
.svc-details summary::-webkit-details-marker{ display:none; }
.svc-details summary::after{ content:" +"; color: var(--red); }
.svc-details[open] summary::after{ content:" −"; }
.svc-details .plain-list{ margin-top: 10px; }
.history{ display:flex; flex-direction:column; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.history span{ font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); margin-right: 6px; }
.order-cancelled{ color: #FFB3B9; font-weight: 700; font-size: 14px; }
.order-pay{ display:flex; align-items:center; gap: 12px; flex-wrap:wrap; font-size: 14px; padding-top: 6px; }
.channel-value--sm{ font-size: 15px !important; word-break: break-all; }

/* auth */
.auth-page{ padding: 72px 0 110px; }
.auth-wrap{ display:flex; justify-content:center; }
.auth-card{ width:100%; max-width: 460px; background: var(--surface); border: 1px solid var(--surface-line); border-radius: 14px; padding: 40px; display:flex; flex-direction:column; gap: 14px; position:relative; overflow:hidden; }
.auth-card::before{ content:""; position:absolute; top:-120px; right:-120px; width: 260px; height: 260px; border-radius:50%; background: radial-gradient(closest-side, rgba(227,30,44,0.22), transparent 70%); pointer-events:none; }
.auth-title{ font-size: 28px; position:relative; }
.auth-form{ display:flex; flex-direction:column; gap: 14px; margin-top: 8px; position:relative; }
.auth-form label{ display:flex; flex-direction:column; gap: 8px; font-size: 13px; font-weight:600; color: var(--text-muted); }
.auth-form label.check{ flex-direction:row; align-items:flex-start; gap: 10px; font-weight:500; }
.auth-links{ display:flex; justify-content:space-between; gap: 12px; flex-wrap:wrap; font-size: 14px; color: var(--text-faint); padding-top: 12px; border-top: 1px solid var(--surface-line); margin-top: 6px; }
.auth-links a{ color: var(--text); font-weight:700; }
.auth-links a:hover{ color: var(--red); }
.field--code{ font-family: var(--font-mono); font-size: 26px; letter-spacing: 12px; text-align:center; }

/* account */
.role-badge{ font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); margin-bottom: 6px; }
.dash-gap{ margin-top: 40px; }
.mini-table{ display:flex; flex-direction:column; border: 1px solid var(--surface-line); border-radius: 8px; overflow:hidden; }
.mini-row{ display:grid; grid-template-columns: 110px 1fr auto auto; gap: 14px; align-items:center; padding: 14px 18px; border-bottom: 1px solid var(--surface-line); font-size: 14px; }
.mini-row:last-child{ border-bottom:none; }
.status{ font-size: 12px; font-weight:700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--surface-line); }
.status--open{ color: var(--red); border-color: rgba(227,30,44,0.4); }
.status--answered{ color: #9FE0B4; border-color: rgba(76,175,109,0.4); }
.settings-card{ border: 1px solid var(--surface-line); border-radius: 10px; overflow:hidden; }
.setting-row{ display:flex; align-items:center; justify-content:space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--surface-line); }
.setting-row:last-child{ border-bottom:none; }
.setting-row p{ font-size: 13px; margin-top: 2px; }
details.setting-row{ display:block; }
details.setting-row summary{ display:flex; flex-direction:column; gap: 4px; cursor:pointer; list-style:none; }
details.setting-row summary::-webkit-details-marker{ display:none; }
details.setting-row summary .muted{ font-size: 13px; }
details.setting-row .inline-form{ margin-top: 16px; }
.setting-row--danger summary b{ color: #FFB3B9; }

/* documents */
.doc--single{ max-width: 820px; }
.table-scroll{ overflow-x:auto; margin: 12px 0 16px; }
.doc-table{ width:100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.doc-table th, .doc-table td{ text-align:left; padding: 12px 14px; border-bottom: 1px solid var(--surface-line); vertical-align: top; color: var(--text-muted); }
.doc-table th{ color: var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.doc a, .page-hero p a, .section-head p a{ color: var(--text); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }

/* cookie */
.cookie{
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 900; max-width: 720px; margin: 0 auto;
  display:flex; align-items:center; gap: 20px; justify-content:space-between;
  background: rgba(28,24,21,0.96); backdrop-filter: blur(10px);
  border: 1px solid var(--surface-line); border-radius: 12px; padding: 16px 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5); font-size: 13.5px; color: var(--text-muted);
}
.cookie[hidden]{ display:none; }
.cookie a{ color: var(--text); text-decoration: underline; }
.cookie-actions{ display:flex; gap: 8px; flex-shrink:0; }

/* 404 */
.notfound{ min-height: 60vh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding: 80px 28px; gap: 20px; }
.notfound-code{ font-family: var(--font-display); font-weight: 700; font-size: clamp(72px, 14vw, 140px); line-height: 1; letter-spacing: -0.05em; }
.notfound-code .dot{ color: var(--red); }
.notfound p{ color: var(--text-muted); max-width: 440px; }

@media (max-width: 980px){
  .form-row{ grid-template-columns: 1fr; }
  .footer-bottom span:last-child{ text-align:left; }
}
@media (max-width: 620px){
  .auth-card{ padding: 28px 22px; }
  .cookie{ flex-direction:column; align-items:stretch; left: 12px; right: 12px; bottom: 12px; }
  .cookie-actions .btn{ flex:1; }
  .mini-row{ grid-template-columns: 1fr auto; }
  .newsletter-row{ flex-direction:column; }
  .setting-row{ flex-direction:column; align-items:flex-start; }
}
.newsletter .check{ align-items:flex-start; line-height: 1.45; cursor:pointer; }
.newsletter .check input{ flex: 0 0 16px; width:16px; height:16px; margin-top: 2px; accent-color: var(--red); }
.live-flash{ animation: liveFlash 1.4s ease; border-radius: 8px; }
@keyframes liveFlash{ 0%{ box-shadow: 0 0 0 1px rgba(227,30,44,.7), 0 0 24px rgba(227,30,44,.25); } 100%{ box-shadow: 0 0 0 1px transparent; } }
@media (prefers-reduced-motion: reduce){ .live-flash{ animation: none; } }

/* Обращения с ответами в личном кабинете */
.ticket-list{display:grid;gap:10px}
.ticket-card{background:var(--surface);border:1px solid var(--surface-line);border-radius:14px;overflow:hidden}
.ticket-card>summary{cursor:pointer;list-style:none;border:0}
.ticket-card>summary::-webkit-details-marker{display:none}
.ticket-card[open]>summary{border-bottom:1px solid var(--surface-line)}
.ticket-thread{display:grid;gap:10px;padding:14px 16px}
.ticket-msg{border:1px solid var(--surface-line);border-radius:12px;padding:12px 14px}
.ticket-msg p{margin:6px 0 0;overflow-wrap:anywhere}
.ticket-msg .muted{font-size:.85em}
.ticket-msg--staff{border-color:rgba(227,30,44,.45);background:rgba(227,30,44,.06)}

/* Длинные названия категорий не распирают сетку на телефоне */
.svc-cats{ grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 980px){ .svc-cats{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
.svc-cat{ min-width:0; }
.svc-cat-name{ overflow-wrap:anywhere; hyphens:auto; }
@media (max-width: 420px){ .svc-cat-name{ font-size:14px; } }
.ticket-reply{display:flex;gap:8px;align-items:flex-end}
.ticket-reply textarea{flex:1;min-width:0;resize:vertical}
@media (max-width:620px){.ticket-reply{flex-direction:column;align-items:stretch}}

/* ============ Живой фон ============ */
body{ background:#060505; }
.liquid-bg{ position:fixed; inset:0; width:100%; height:100%; z-index:-2; opacity:0; transition:opacity 1.2s ease; filter: saturate(1.15); }
.liquid-bg.is-on{ opacity:1; }
/* Затемнение к центру, чтобы текст оставался читаемым */
.liquid-shade{ position:fixed; inset:0; z-index:-1; pointer-events:none;
  background: linear-gradient(90deg, rgba(6,5,5,.55), rgba(6,5,5,.2) 55%, rgba(6,5,5,0)); }

/* ============ Показатели и быстрые категории (редизайн) ============ */
.hero-stats{ display:flex; flex-wrap:wrap; gap:12px; border-top:0; padding-block: 8px 28px; }
.stat{ flex:0 1 240px; padding:18px 22px; border:1px solid rgba(255,255,255,.08); border-radius:16px;
  background: rgba(18,15,14,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.stat:last-child{ border-right:1px solid rgba(255,255,255,.08); }
.stat-val{ display:flex; align-items:baseline; gap:6px; }
.stat-num{ font-size:38px; line-height:1; }
.stat-suffix{ font-size:16px; margin:0; }
.stat-label{ margin-top:8px; color: var(--text-muted); }

.quick-cats{ border-bottom:0; }
.quick-cats-row{ display:grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap:10px; padding-block: 8px 40px; overflow:visible; }
.quick-cat{ width:auto; position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:6px;
  padding:16px 16px 14px; text-align:left; border-radius:16px; color: var(--text);
  background: rgba(18,15,14,.6); border:1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.quick-cat::after{ content:""; position:absolute; right:14px; top:18px; width:8px; height:8px;
  border-top:2px solid currentColor; border-right:2px solid currentColor; transform: rotate(45deg); opacity:.35; transition: opacity .2s, transform .2s; }
.quick-cat-icon{ width:44px; height:44px; border-radius:12px; margin-bottom:6px;
  background: rgba(227,30,44,.12); border:1px solid rgba(227,30,44,.3); }
.quick-cat-name{ font-family: var(--font-display); font-weight:700; font-size:13.5px; line-height:1.25; overflow-wrap:anywhere; }
.quick-cat-meta{ font-size:12px; color: var(--text-faint); margin-top:auto; }
.quick-cat:hover, .quick-cat:focus-visible{ transform: translateY(-3px); border-color: rgba(227,30,44,.6);
  background: rgba(40,14,16,.7); box-shadow: 0 10px 30px -12px rgba(227,30,44,.55); }
.quick-cat:hover::after, .quick-cat:focus-visible::after{ opacity:1; color: var(--red); transform: translateX(3px) rotate(45deg); }
.quick-cat:hover .quick-cat-icon{ transform:none; background: var(--red); color:#fff; border-color: var(--red); }
@media (max-width: 1100px){ .quick-cats-row{ grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 620px){
  .quick-cats-row{ display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; scroll-padding-inline:16px; }
  .quick-cat{ flex:0 0 42%; scroll-snap-align:start; }
  .stat{ flex:1 1 140px; padding:14px 16px; }
  .stat-num{ font-size:30px; }
}
@media (prefers-reduced-motion: reduce){ .quick-cat, .quick-cat::after{ transition:none; } .quick-cat:hover{ transform:none; } }
.quick-cat-name{ font-size:13px; overflow-wrap:normal; word-break:normal; hyphens:auto; -webkit-hyphens:auto; padding-right:14px; }
@media (max-width: 1280px){ .quick-cats-row{ grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* Страница блокировки */
.ban-card{ border-color: rgba(227,30,44,.45); }
.ban-icon{ display:inline-flex; width:56px; height:56px; align-items:center; justify-content:center; border-radius:16px; color: var(--red); background: rgba(227,30,44,.12); border:1px solid rgba(227,30,44,.35); margin-bottom:14px; }
.ban-facts{ display:grid; gap:0; margin:20px 0; border:1px solid var(--surface-line); border-radius:14px; overflow:hidden; }
.ban-facts>div{ display:grid; grid-template-columns: 150px 1fr; gap:12px; padding:12px 16px; border-top:1px solid var(--surface-line); }
.ban-facts>div:first-child{ border-top:0; }
.ban-facts dt{ color: var(--text-faint); font-size:13px; }
.ban-facts dd{ margin:0; font-weight:600; overflow-wrap:anywhere; }
.ban-facts .mono{ font-family: var(--font-mono); }
.ban-note{ font-size:14px; }
@media (max-width:520px){ .ban-facts>div{ grid-template-columns:1fr; gap:2px; } }
