/* ── Brand tokens ─────────────────────────────────────────────────── */
:root {
  --tsg:      #00A8AE;
  --tsg-dark: #008F95;
  --tsg-glow: rgba(0,168,174,0.12);

  /* Charcoal base with grey surfaces. */
  --bg:       #1C1F26;
  --surface:  #262A33;
  --surface2: #2F3440;
  --deep:     #14161C;
  --border:   rgba(255,255,255,0.08);
  --border2:  rgba(255,255,255,0.16);
  --t1:       #F3F5F8;
  --t2:       #B9BFCC;
  --t3:       #858C9B;

  --ease: cubic-bezier(.16,1,.3,1);
  --latin: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--t1);
  overflow-x: hidden;
}

[dir="rtl"] body { font-family: 'Vazirmatn', sans-serif; }
[dir="ltr"] body { font-family: 'Inter', sans-serif; }

a { color: inherit; }
img { max-width: 100%; }
button { font-family: inherit; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--tsg); border-radius: 2px; }

.site { min-height: 100vh; background: var(--bg); color: var(--t1); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 900px; }

/* ── Keyframes ────────────────────────────────────────────────────── */
@keyframes splashLogoIn { 0% { opacity:0; transform:scale(.85) translateY(24px); } 100% { opacity:1; transform:scale(1) translateY(0); } }
@keyframes splashOut    { to { opacity:0; visibility:hidden; } }
@keyframes loadBar      { 0% { width:0; } 100% { width:100%; } }
@keyframes revealUp     { from { opacity:0; transform:translateY(44px); } to { opacity:1; transform:translateY(0); } }
@keyframes revealFade   { from { opacity:0; } to { opacity:1; } }
@keyframes breathe      { 0%,100% { opacity:.45; transform:scale(1); } 50% { opacity:.75; transform:scale(1.07); } }
@keyframes pulseRing    { 0% { box-shadow:0 0 0 0 rgba(0,168,174,.45); } 70% { box-shadow:0 0 0 10px rgba(0,168,174,0); } 100% { box-shadow:0 0 0 0 rgba(0,168,174,0); } }
@keyframes marqueeLTR   { 0% { transform:translateX(0); } 100% { transform:translateX(-50%); } }
@keyframes marqueeRTL   { 0% { transform:translateX(-50%); } 100% { transform:translateX(0); } }
@keyframes cursorPulse  { 0%,100% { transform:translate(-50%,-50%) scale(1); opacity:.8; } 50% { transform:translate(-50%,-50%) scale(1.4); opacity:.4; } }
@keyframes float        { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }

.animate-breathe    { animation: breathe 7s ease-in-out infinite; }
.animate-pulse-ring { animation: pulseRing 2.5s ease-out infinite; }
.animate-float      { animation: float 4s ease-in-out infinite; }

.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.rule-light { height: 1px; background: linear-gradient(90deg,transparent,var(--border2) 40%,var(--border2) 60%,transparent); }

/* ── Scroll reveal (only hides content when JS is running) ────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s var(--ease) var(--delay, 0ms), transform .7s var(--ease) var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Custom cursor ────────────────────────────────────────────────── */
.cursor-dot, .cursor-ring { display: none; position: fixed; left: -200px; top: -200px; border-radius: 50%; pointer-events: none; }
.has-cursor body, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor .cursor-dot {
  display: block; z-index: 99999; width: 8px; height: 8px; background: var(--tsg);
  transform: translate(-50%,-50%); animation: cursorPulse 1.6s ease-in-out infinite;
}
.has-cursor .cursor-ring {
  display: block; z-index: 99998; width: 28px; height: 28px; border: 1.5px solid var(--tsg); opacity: .45;
  transform: translate(-50%,-50%);
  transition: width .25s var(--ease), height .25s var(--ease), opacity .2s;
  animation: pulseRing 2s ease-out infinite;
}
.has-cursor .cursor-ring.is-hover { width: 48px; height: 48px; opacity: .9; }

/* ── Splash ───────────────────────────────────────────────────────── */
.splash {
  position: fixed; inset: 0; z-index: 9999; background: #1E2128;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  animation: splashOut .65s ease 2s forwards;
}
.splash ~ .site { animation: revealFade .5s ease 2s both; }
.no-splash .splash { display: none; }
.no-splash .splash ~ .site { animation: none; }
.splash-orb-1 { width: 700px; height: 700px; background: rgba(0,168,174,0.18); top: -25%; right: -15%; }
.splash-orb-2 { width: 450px; height: 450px; background: rgba(0,168,174,0.10); bottom: -15%; left: -10%; animation-delay: 2.5s; }
.splash-inner { animation: splashLogoIn .9s var(--ease) both; text-align: center; position: relative; z-index: 1; }
.splash-logo-wrap { position: relative; display: inline-block; margin-bottom: 28px; }
.splash-logo-ring { position: absolute; inset: -10px; border-radius: 22px; background: rgba(0,168,174,0.18); }
.splash-logo {
  width: 130px; height: 130px; border-radius: 22px; border: 1px solid rgba(0,168,174,0.25);
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.splash-logo img { width: 106px; height: 106px; object-fit: contain; mix-blend-mode: screen; }
.splash-title { color: #fff; font-size: 19px; font-weight: 800; margin-bottom: 6px; font-family: 'Vazirmatn', sans-serif; }
.splash-sub { color: rgba(255,255,255,0.42); font-size: 11px; letter-spacing: .28em; font-family: var(--latin); margin-bottom: 36px; }
.splash-bar { width: 200px; height: 2px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; margin: 0 auto; }
.splash-bar div { height: 100%; background: var(--tsg); border-radius: 2px; animation: loadBar 2s ease forwards; }

/* ── Buttons, pills, badges ───────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; transition: all .2s; white-space: nowrap; }
.btn-primary { background: var(--tsg); color: #fff; font-weight: 700; }
.btn-primary:hover { background: var(--tsg-dark); transform: translateY(-1px); }
.btn-outline { color: var(--t1); font-weight: 600; border: 1.5px solid var(--border2); }
.btn-outline:hover { border-color: var(--tsg); color: var(--tsg); }
.btn-lg { padding: 14px 28px; border-radius: 12px; font-size: 15px; }
.btn-primary.btn-lg { box-shadow: 0 6px 22px rgba(0,168,174,0.35); }
.btn-primary.btn-lg:hover { background: var(--tsg); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,168,174,0.45); }
.btn-xl { padding: 15px 32px; border-radius: 14px; font-size: 16px; box-shadow: 0 8px 28px rgba(0,168,174,0.4); }
.btn-primary.btn-xl:hover { background: var(--tsg); transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,168,174,0.5); }

.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--tsg-glow);
  border: 1px solid rgba(0,168,174,0.22); border-radius: 100px; padding: 5px 16px;
  font-size: 12px; color: var(--tsg); font-weight: 700;
}
.pill--dark { border-color: rgba(0,168,174,0.3); padding: 5px 18px; margin-bottom: 24px; }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tsg); display: inline-block; }

.badge {
  display: inline-flex; background: color-mix(in srgb, var(--c) 9%, transparent); color: var(--c);
  border-radius: 6px; padding: 3px 10px; font-size: 11px; font-weight: 800; font-family: var(--latin); margin-bottom: 14px;
}
.badge--lg { padding: 4px 14px; font-size: 12px; margin-bottom: 16px; }

/* ── Language switcher ────────────────────────────────────────────── */
.lang-switch { display: flex; gap: 4px; }
.lang-btn {
  background: transparent; color: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px; padding: 2px 8px; font-size: 11px; text-decoration: none; transition: all .2s;
  font-family: 'Vazirmatn', sans-serif;
}
.lang-btn[data-lang="en"] { font-family: var(--latin); }
.lang-btn.is-active { background: var(--tsg); color: #fff; border-color: var(--tsg); }
.lang-switch--mobile { display: none; gap: 3px; }
.lang-switch--mobile .lang-btn { color: var(--t3); border-color: var(--border2); padding: 2px 7px; font-size: 10px; }
.lang-switch--mobile .lang-btn.is-active { color: #fff; border-color: var(--tsg); }

/* ── Utility bar ──────────────────────────────────────────────────── */
.utility-bar { background: var(--t1); font-size: 12px; }
.utility-inner { padding-top: 7px; padding-bottom: 7px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.utility-socials { display: flex; gap: 14px; }
.utility-socials a { color: rgba(255,255,255,0.45); display: flex; align-items: center; transition: color .2s; }
.utility-socials a:hover { color: var(--tsg); }
.utility-end { display: flex; gap: 16px; align-items: center; }
.utility-phone { color: rgba(255,255,255,0.65); direction: ltr; font-family: var(--latin); }

/* ── Sticky nav ───────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.96);
  backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); transition: box-shadow .3s;
}
/* Keep the sticky nav below the WordPress admin bar for logged-in users. */
.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-nav { top: 0; } }
.site-nav.is-scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.07); }
.nav-inner { display: flex; align-items: center; gap: 12px; height: 68px; }
.nav-brand { text-decoration: none; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo-wrap { position: relative; display: block; }
.nav-logo-ring { position: absolute; inset: -4px; border-radius: 14px; background: var(--tsg-glow); }
.nav-logo {
  width: 50px; height: 50px; border-radius: 10px; background: var(--tsg-glow); display: flex; align-items: center;
  justify-content: center; overflow: hidden; position: relative; border: 1.5px solid rgba(0,168,174,0.2);
}
.nav-logo img { width: 44px; height: 44px; object-fit: contain; mix-blend-mode: multiply; }
.nav-name { font-weight: 800; font-size: 15px; color: var(--t1); white-space: nowrap; }
.site-nav .nav-links { flex: 1; display: flex; gap: 2px; justify-content: center; }
.site-nav .nav-links a {
  text-decoration: none; color: var(--t2); font-size: 13.5px; font-weight: 500; padding: 6px 13px;
  border-radius: 8px; transition: all .18s;
}
.site-nav .nav-links a:hover { color: var(--tsg); background: var(--tsg-glow); }
.nav-cta { padding: 9px 20px; border-radius: 10px; font-size: 13px; flex-shrink: 0; box-shadow: 0 4px 14px rgba(0,168,174,0.28); }
.nav-club { padding: 8px 18px; border-radius: 10px; font-size: 13px; font-weight: 700; flex-shrink: 0; border-color: var(--tsg); color: var(--tsg); }
.nav-club:hover { background: var(--tsg-glow); }
.nav-drawer > a.nav-drawer-club { color: var(--tsg); }
.nav-spacer { display: none; flex: 1; }
.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border2); background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; flex-shrink: 0;
}
.nav-toggle span { width: 18px; height: 2px; border-radius: 1px; background: var(--t1); display: block; transition: all .25s; }
.nav-toggle.is-open { background: var(--tsg-glow); }
.nav-toggle.is-open span { background: var(--tsg); }
.nav-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-drawer { display: none; border-top: 1px solid var(--border); background: var(--surface); padding: 12px 16px 20px; }
.nav-drawer > a {
  display: block; padding: 13px 12px; font-size: 16px; font-weight: 600; color: var(--t1);
  text-decoration: none; border-radius: 10px; transition: background .15s;
}
.nav-drawer > a:hover { background: var(--tsg-glow); }
.nav-drawer-call { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.nav-drawer-call a {
  display: flex; align-items: center; gap: 8px; padding: 12px; background: var(--tsg); color: #fff;
  text-decoration: none; border-radius: 12px; font-weight: 700; font-size: 15px; justify-content: center;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; padding: 80px 0; }
.hero-orb-1 { width: 700px; height: 700px; background: var(--tsg-glow); top: -20%; right: -12%; }
.hero-orb-2 { width: 450px; height: 450px; background: rgba(201,24,24,0.06); bottom: 0; left: -8%; animation-delay: 3s; }
.hero-orb-3 { width: 240px; height: 240px; background: rgba(212,144,10,0.07); top: 28%; left: 40%; filter: blur(55px); }
.hero-deco { position: absolute; pointer-events: none; color: var(--tsg); }
.hero-deco-1 { top: 10%; inset-inline-start: 5%; opacity: .1; }
.hero-deco-2 { bottom: 20%; inset-inline-end: 4%; opacity: .09; animation-delay: 2s; }
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-tag { margin-bottom: 24px; animation: revealFade .8s ease both; }
.hero-title { font-size: clamp(44px,5vw,78px); font-weight: 900; line-height: 1.1; color: var(--t1); margin-bottom: 24px; animation: revealUp .9s var(--ease) .1s both; }
.hero-title span { color: var(--tsg); }
.hero-sub { font-size: 16px; line-height: 1.85; color: var(--t2); max-width: 440px; margin-bottom: 40px; animation: revealUp .9s var(--ease) .2s both; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; animation: revealUp .9s var(--ease) .3s both; }
.hero-side { animation: revealUp 1s var(--ease) .25s both; }
.hero-companies { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.hero-company {
  background: var(--surface); border-radius: 18px; padding: 16px 20px; display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border); transition: all .28s; text-decoration: none; width: 100%;
}
.hero-company:hover { border-color: var(--c); box-shadow: 0 8px 32px var(--glow); }
[dir="rtl"] .hero-company:hover { transform: translateX(-4px); }
[dir="ltr"] .hero-company:hover { transform: translateX(4px); }
.hero-company-logo {
  width: 46px; height: 46px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--c) 19%, transparent); background: color-mix(in srgb, var(--c) 8%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.hero-company-logo img { width: 38px; height: 38px; object-fit: contain; mix-blend-mode: multiply; }
.hero-company-text { flex: 1; }
.hero-company-name { display: block; font-weight: 700; font-size: 14px; color: var(--t1); }
.hero-company-desc { display: block; font-size: 12px; color: var(--t3); margin-top: 3px; }
.hero-company-product { width: 64px; height: 64px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-block: -6px; }
.hero-company-product img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.14)); transition: transform .28s var(--ease); }
.hero-company:hover .hero-company-product img { transform: scale(1.08) rotate(-4deg); }
.hero-company-arrow { font-size: 16px; color: var(--c); flex-shrink: 0; }
.hero-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.hero-stat { background: var(--tsg-glow); border-radius: 12px; padding: 12px 6px; text-align: center; border: 1px solid rgba(0,168,174,0.14); }
.hero-stat-n { font-size: 20px; font-weight: 900; color: var(--tsg); font-family: var(--latin); line-height: 1; }
.hero-stat-label { font-size: 10px; color: var(--t3); margin-top: 4px; }

/* ── Stats bar ────────────────────────────────────────────────────── */
.stats-bar { background: var(--t1); padding: 52px 0; position: relative; overflow: hidden; }
.stats-orb { width: 700px; height: 200px; background: var(--tsg-glow); top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: .4; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); position: relative; z-index: 1; }
.stat { text-align: center; padding: 8px 16px; border-right: 1px solid rgba(255,255,255,0.07); }
.stat:last-child { border-right: none; }
.stat-n { font-size: clamp(40px,4.5vw,60px); font-weight: 900; color: var(--tsg); font-family: var(--latin); line-height: 1; }
.stat-label { font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 10px; font-weight: 500; }

/* ── Sections ─────────────────────────────────────────────────────── */
.section { padding: 96px 0; position: relative; }
.section--surface { background: var(--surface); }
.section--tight { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head--wide { margin-bottom: 70px; }
.section-head h2 { font-size: clamp(24px,3.5vw,46px); font-weight: 900; color: var(--t1); margin-bottom: 12px; }
.section-head p { font-size: 16px; color: var(--t3); }

/* ── Companies ────────────────────────────────────────────────────── */
.companies-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.company-card {
  display: block; background: var(--surface); border-radius: 24px; padding: 36px; border: 1px solid var(--border);
  position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s; text-decoration: none; width: 100%;
}
.company-card:hover { transform: translateY(-6px); box-shadow: 0 24px 64px var(--glow); }
.company-card-orb { width: 220px; height: 220px; background: var(--glow); top: -70px; inset-inline-start: -70px; opacity: .9; }
.company-card-body { display: block; position: relative; z-index: 1; }
.company-card-logo {
  width: 68px; height: 68px; border-radius: 18px; background: color-mix(in srgb, var(--c) 8%, transparent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
  border: 2px solid color-mix(in srgb, var(--c) 19%, transparent); overflow: hidden;
}
.company-card-logo img { width: 56px; height: 56px; object-fit: contain; mix-blend-mode: multiply; }
.company-card h3 { font-size: 22px; font-weight: 800; color: var(--t1); margin-bottom: 10px; }
.company-card p { font-size: 14px; color: var(--t2); line-height: 1.75; margin-bottom: 20px; }
.company-card-more { display: flex; align-items: center; gap: 6px; color: var(--c); font-size: 13px; font-weight: 700; }
.company-card-rule { display: block; margin-top: 16px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--c), transparent); }
[dir="rtl"] .company-card-rule { background: linear-gradient(270deg, var(--c), transparent); }

/* ── Products ─────────────────────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.product-card { background: var(--bg); border-radius: 18px; padding: 28px 24px; border: 1px solid var(--border); transition: all .28s; }
.product-card:hover { background: var(--tsg-glow); border-color: rgba(0,168,174,0.22); transform: translateY(-4px); }
.product-icon { font-size: 34px; margin-bottom: 14px; }
.product-title { font-weight: 700; font-size: 16px; color: var(--t1); margin-bottom: 6px; }
.product-desc { font-size: 13px; color: var(--t3); line-height: 1.65; }

/* ── Monitors ─────────────────────────────────────────────────────── */
.monitors { background: var(--bg); overflow: hidden; }
.monitors-orb { width: 700px; height: 400px; background: var(--tsg-glow); top: 10%; left: 50%; margin-left: -350px; }
.monitors-inner { position: relative; z-index: 1; }
.monitors-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.monitor {
  border-radius: 22px; overflow: hidden; border: 1.5px solid var(--border); background: var(--surface);
  transition: all .55s var(--ease); box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.is-active > .monitor { border-color: var(--tsg); transform: scale(1.035); box-shadow: 0 20px 56px rgba(0,168,174,0.18); }
.monitor-bar { background: var(--t1); padding: 11px 18px; display: flex; align-items: center; gap: 8px; transition: background .55s; }
.is-active > .monitor .monitor-bar { background: var(--tsg); }
.monitor-dots { display: flex; gap: 5px; }
.monitor-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.monitor-url { flex: 1; background: rgba(255,255,255,0.15); border-radius: 5px; height: 22px; display: flex; align-items: center; padding: 0 10px; }
.monitor-url span { font-size: 11px; color: rgba(255,255,255,0.8); font-family: var(--latin); }
.monitor-body { padding: 20px 22px 22px; }
.monitor-title { font-size: 13px; font-weight: 700; color: var(--t3); margin-bottom: 14px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.is-active > .monitor .monitor-title { color: var(--tsg); }
.monitor-items { display: flex; flex-direction: column; gap: 12px; }
.monitor-item { display: flex; gap: 10px; align-items: flex-start; opacity: .32; transition: opacity .4s ease; font-size: 13px; color: var(--t2); line-height: 1.55; }
.monitor-item.is-current { opacity: 1; }
.monitor-bullet { width: 6px; height: 6px; border-radius: 50%; background: var(--t3); flex-shrink: 0; margin-top: 6px; }
.is-active > .monitor .monitor-bullet { background: var(--tsg); }
.monitor-stand { text-align: center; padding-bottom: 14px; }
.monitor-stand span { display: block; margin: 0 auto; }
.monitor-stand span:first-child { width: 28px; height: 7px; background: #dde0e8; border-radius: 3px; margin-bottom: 3px; }
.monitor-stand span:last-child { width: 56px; height: 4px; background: #ccc; border-radius: 2px; }
.monitor-nav { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.monitor-nav button { width: 8px; height: 8px; border-radius: 4px; background: var(--border2); border: none; transition: all .3s; }
.monitor-nav button.is-active { width: 24px; background: var(--tsg); }

/* ── Order steps ──────────────────────────────────────────────────── */
.steps { position: relative; }
.steps-line { position: absolute; top: 35px; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, var(--tsg), rgba(0,168,174,0.1)); z-index: 0; }
[dir="rtl"] .steps-line { background: linear-gradient(270deg, var(--tsg), rgba(0,168,174,0.1)); }
.steps-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; position: relative; z-index: 1; }
.step { text-align: center; }
.step-n {
  width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 18px; background: var(--surface); border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 22px; color: var(--tsg);
  font-family: var(--latin); transition: all .28s;
}
.step-n.is-first { background: var(--tsg); border-color: var(--tsg); color: #fff; box-shadow: 0 6px 20px rgba(0,168,174,0.35); }
.step-n:hover { background: var(--tsg); color: #fff; border-color: var(--tsg); transform: scale(1.1); box-shadow: 0 8px 24px rgba(0,168,174,0.4); }
.step-title { font-weight: 700; font-size: 14px; color: var(--t1); margin-bottom: 8px; }
.step-desc { font-size: 12px; color: var(--t3); line-height: 1.6; }

/* ── Founders ─────────────────────────────────────────────────────── */
.founders-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.founder-card {
  background: var(--surface); border-radius: 24px; padding: 40px 32px; text-align: center; border: 1px solid var(--border);
  transition: all .3s; box-shadow: 0 4px 20px rgba(0,0,0,0.05); position: relative; overflow: hidden;
}
.founder-card:hover { transform: translateY(-6px); border-color: var(--tsg); box-shadow: 0 20px 48px rgba(0,168,174,0.14); }
.founder-orb { width: 200px; height: 200px; background: var(--tsg-glow); top: -60px; inset-inline-start: -60px; opacity: .7; }
.founder-body { position: relative; z-index: 1; }
.founder-photo {
  width: 110px; height: 110px; border-radius: 50%; background: rgba(0,168,174,0.09); border: 3px solid rgba(0,168,174,0.19);
  margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 800;
  color: var(--tsg); overflow: hidden;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.founder-name { font-weight: 800; font-size: 20px; color: var(--t1); margin-bottom: 8px; }
.founder-role { font-size: 13px; color: var(--tsg); font-weight: 600; margin-bottom: 12px; }
.founder-rule { height: 1px; background: linear-gradient(90deg,transparent,rgba(0,168,174,0.3),transparent); margin: 0 auto; width: 60%; }
.founder-place { margin-top: 12px; font-size: 12px; color: var(--t3); }

/* ── Certifications ───────────────────────────────────────────────── */
.certs { padding: 72px 0; background: var(--surface); }
.certs-head { text-align: center; margin-bottom: 42px; }
.certs-head h2 { font-size: 28px; font-weight: 800; color: var(--t1); }
.certs-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.cert { background: var(--bg); border-radius: 18px; padding: 22px 30px; text-align: center; border: 1px solid var(--border); min-width: 165px; transition: all .28s; }
.cert:hover { border-color: var(--tsg); transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,168,174,0.1); }
.cert-icon { font-size: 30px; margin-bottom: 10px; }
.cert-label { font-weight: 800; font-size: 14px; color: var(--t1); font-family: var(--latin); margin-bottom: 4px; }
.cert-desc { font-size: 12px; color: var(--t3); }

/* ── Partners marquee ─────────────────────────────────────────────── */
.partners { padding: 52px 0; background: var(--bg); overflow: hidden; }
.partners-head { text-align: center; margin-bottom: 32px; }
.partners-head h2 { font-size: 22px; font-weight: 700; color: var(--t3); }
.partners-mask {
  overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg,transparent,black 14%,black 86%,transparent);
  mask-image: linear-gradient(90deg,transparent,black 14%,black 86%,transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee-ltr { animation: marqueeLTR 28s linear infinite; }
.marquee-rtl { animation: marqueeRTL 28s linear infinite; }
.partner { padding: 0 40px; flex-shrink: 0; display: flex; align-items: center; }
.partner > div {
  width: 90px; height: 58px; display: flex; align-items: center; justify-content: center; background: #EAEDF2;
  border-radius: 10px; padding: 6px; border: 1px solid rgba(0,0,0,0.07);
}
.partner img { max-height: 44px; max-width: 76px; object-fit: contain; filter: grayscale(.15); opacity: .7; transition: all .3s; mix-blend-mode: multiply; }
.partner img:hover { filter: grayscale(0); opacity: 1; }

/* ── Consultation CTA ─────────────────────────────────────────────── */
.cta { padding: 100px 0; background: var(--t1); position: relative; overflow: hidden; }
.cta-orb-1 { width: 900px; height: 500px; background: var(--tsg-glow); top: 50%; left: 50%; margin: -250px 0 0 -450px; }
.cta-orb-2 { width: 300px; height: 300px; background: rgba(201,24,24,0.07); top: -5%; right: 8%; }
.cta-inner { max-width: 680px; margin: 0 auto; padding: 0 24px; text-align: center; position: relative; z-index: 1; }
.cta h2 { font-size: clamp(28px,3.5vw,50px); font-weight: 900; color: #fff; margin-bottom: 18px; line-height: 1.25; }
.cta p { font-size: 16px; color: rgba(255,255,255,0.52); margin-bottom: 44px; line-height: 1.85; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-contacts { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cta-contact {
  background: rgba(255,255,255,0.07); backdrop-filter: blur(10px); color: rgba(255,255,255,0.85); text-decoration: none;
  padding: 10px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid rgba(255,255,255,0.12);
  font-family: var(--latin); display: flex; align-items: center; gap: 8px; transition: all .2s;
}
.cta-contact--mail { color: rgba(255,255,255,0.75); font-weight: 500; font-size: 14px; border-color: rgba(255,255,255,0.1); }
.cta-contact:hover { background: rgba(255,255,255,0.12); }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer { background: #06060F; color: rgba(255,255,255,0.5); padding: 68px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 52px; margin-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-brand img { width: 40px; height: 40px; object-fit: contain; mix-blend-mode: screen; }
.footer-brand-name { color: rgba(255,255,255,0.88); font-weight: 700; font-size: 14px; }
.footer-desc { font-size: 14px; line-height: 1.85; max-width: 320px; }
.footer-socials { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.07); display: flex; align-items: center;
  justify-content: center; color: rgba(255,255,255,0.6); transition: all .2s;
}
.footer-socials a:hover { background: var(--tsg); color: #fff; }
.footer-title { color: rgba(255,255,255,0.88); font-weight: 700; font-size: 15px; margin-bottom: 20px; }
.footer-link { display: block; font-size: 14px; margin-bottom: 12px; color: rgba(255,255,255,0.46); text-decoration: none; transition: color .2s; }
.footer-link:hover { color: var(--tsg); }
.footer-contact { font-size: 14px; line-height: 2.4; }
.footer-contact a { display: block; color: rgba(255,255,255,0.5); text-decoration: none; transition: color .2s; }
.footer-contact a:hover { color: var(--tsg); }
.footer-phone { direction: ltr; font-family: var(--latin); }
[dir="rtl"] .footer-phone { text-align: right; }
.footer-rights { padding: 22px 0; text-align: center; font-size: 12px; }

/* ── Sub pages: back bar ──────────────────────────────────────────── */
.back-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 24px; }
.back-bar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.back-bar-inner--wide { max-width: 1380px; }
.back-btn {
  border: 1px solid var(--border2); border-radius: 10px; padding: 8px 18px; font-size: 14px; font-weight: 600; color: var(--t2);
  display: flex; align-items: center; gap: 8px; transition: all .2s; text-decoration: none;
}
.back-btn:hover { border-color: var(--c, var(--tsg)); color: var(--c, var(--tsg)); }
.back-bar-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--t1); }
.back-bar-title img { width: 30px; height: 30px; object-fit: contain; mix-blend-mode: multiply; }

/* ── Company page ─────────────────────────────────────────────────── */
.company-hero { padding: 72px 0; position: relative; overflow: hidden; background: var(--surface); }
.company-hero-orb-1 { width: 600px; height: 600px; background: var(--glow); top: -20%; right: -10%; }
.company-hero-orb-2 { width: 300px; height: 300px; background: var(--glow); bottom: -10%; left: -5%; filter: blur(60px); opacity: .5; }
.company-hero-inner { max-width: 1000px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; text-align: center; }
.company-hero-logo {
  display: inline-flex; width: 140px; height: 140px; border-radius: 32px; background: color-mix(in srgb, var(--c) 7%, transparent);
  align-items: center; justify-content: center; margin-bottom: 32px; border: 2px solid color-mix(in srgb, var(--c) 16%, transparent);
  box-shadow: 0 16px 48px var(--glow); overflow: hidden; position: relative;
}
.company-hero-ring { position: absolute; inset: -8px; border-radius: 36px; background: var(--glow); }
.company-hero-logo img { width: 110px; height: 110px; object-fit: contain; position: relative; mix-blend-mode: multiply; }
.company-hero h1 { font-size: clamp(32px,4vw,56px); font-weight: 900; color: var(--t1); margin-bottom: 14px; animation: revealUp .8s var(--ease) both; }
.company-hero p { font-size: 16px; color: var(--t2); max-width: 560px; margin: 0 auto; line-height: 1.8; }
.company-facts { display: flex; justify-content: center; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.company-fact { background: var(--bg); border-radius: 16px; padding: 16px 28px; text-align: center; border: 1px solid var(--border); min-width: 140px; }
.company-fact-icon { font-size: 22px; margin-bottom: 6px; }
.company-fact-value { font-size: 18px; font-weight: 800; color: var(--c); font-family: var(--latin); margin-bottom: 4px; }
.company-fact-label { font-size: 12px; color: var(--t3); }
.company-section { padding: 72px 0; }
.company-section--flush { padding: 0 0 72px; }
.company-container { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.company-container h2 { font-size: 26px; font-weight: 800; color: var(--t1); margin-bottom: 24px; text-align: center; }
.company-about { background: var(--surface); border-radius: 24px; padding: 36px 40px; border: 1px solid var(--border); line-height: 2; font-size: 15px; color: var(--t2); }
.company-about-rule { width: 40px; height: 4px; border-radius: 2px; background: var(--c); margin-bottom: 20px; }
.company-products { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.company-product {
  background: var(--surface); border-radius: 16px; padding: 18px 22px; border: 1px solid var(--border); display: flex;
  align-items: center; gap: 14px; transition: all .25s; font-weight: 600; font-size: 14px; color: var(--t1);
}
.company-product:hover { border-color: var(--c); transform: translateX(-3px); }
.company-product-icon {
  width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--c) 9%, transparent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.company-product-icon span { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.company-team-wrap { padding-top: 48px; }
.company-container .company-team-title { margin-bottom: 8px; }
.company-team-sub { font-size: 14px; color: var(--t3); text-align: center; margin-bottom: 32px; }
.company-team { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }
.team-card { background: var(--surface); border-radius: 18px; padding: 22px 12px; text-align: center; border: 1px solid var(--border); transition: all .28s; }
.team-card:hover { border-color: var(--c); transform: translateY(-4px); box-shadow: 0 12px 32px var(--glow); }
.team-avatar {
  width: 58px; height: 58px; border-radius: 50%; background: color-mix(in srgb, var(--c) 9%, transparent); display: flex;
  align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 22px; font-weight: 800; color: var(--c);
  border: 2px solid color-mix(in srgb, var(--c) 16%, transparent);
}
.team-name { font-weight: 700; font-size: 12px; color: var(--t1); margin-bottom: 4px; line-height: 1.3; }
.team-role { font-size: 11px; color: var(--c); font-weight: 600; }
.company-cta { padding: 64px 0; background: var(--t1); text-align: center; position: relative; overflow: hidden; }
.company-cta-orb { width: 600px; height: 300px; background: color-mix(in srgb, var(--c) 9%, transparent); top: 0; left: 50%; margin-left: -300px; }
.company-cta-inner { position: relative; z-index: 1; padding: 0 24px; }
.company-cta h2 { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 24px; }
.company-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.company-cta-phone {
  background: var(--c); color: #fff; text-decoration: none; padding: 13px 28px; border-radius: 12px; font-weight: 700;
  font-size: 15px; display: flex; align-items: center; gap: 8px; box-shadow: 0 6px 20px var(--glow); transition: all .2s;
}
.company-cta-phone:hover { transform: translateY(-2px); }
.company-cta-mail {
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); text-decoration: none; padding: 13px 28px;
  border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid rgba(255,255,255,0.12); transition: all .2s;
}
.company-cta-mail:hover { background: rgba(255,255,255,0.14); }

/* ── Customers map page ───────────────────────────────────────────── */
.customers-head { text-align: center; padding: 52px 24px 36px; max-width: 700px; margin: 0 auto; }
.customers-head .pill { padding: 5px 18px; margin-bottom: 20px; }
.customers-head h1 { font-size: clamp(24px,3vw,42px); font-weight: 900; color: var(--t1); margin-bottom: 12px; }
.customers-head p { font-size: 15px; color: var(--t3); line-height: 1.8; }
.customers-layout { max-width: 1380px; margin: 0 auto; padding: 0 24px 80px; display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.map-card { background: var(--surface); border-radius: 24px; padding: 20px; border: 1px solid var(--border); box-shadow: 0 8px 40px rgba(0,0,0,0.06); }
.map-hover { height: 28px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.map-hover span { font-size: 13px; color: var(--tsg); font-weight: 700; background: var(--tsg-glow); padding: 3px 14px; border-radius: 20px; }
.map-svg { width: 100%; height: auto; display: block; direction: ltr; }
.province { cursor: pointer; }
.province path { fill: #C8D6E8; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; transition: fill .18s; }
.province:hover path { fill: rgba(0,168,174,0.32); }
.province.is-selected path { fill: var(--tsg); }
.province-label { font-size: 9px; font-weight: 500; fill: #4A5568; pointer-events: none; font-family: 'Vazirmatn', sans-serif; user-select: none; }
.province-label--two { font-size: 8px; }
.province-label.is-selected { font-weight: 700; fill: #fff; }
.sea-label { font-size: 13px; font-weight: 700; fill: #5B9BC8; pointer-events: none; user-select: none; }
[dir="rtl"] .sea-label { font-family: 'Vazirmatn', sans-serif; }
.map-legend { margin-top: 14px; display: flex; justify-content: center; gap: 20px; }
.map-legend > div { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--t3); }
.map-legend-box { width: 14px; height: 14px; border-radius: 3px; background: #C8D6E8; border: 1.5px solid #fff; }
.map-legend-box--sel { background: var(--tsg); border: none; }
.map-panel {
  background: var(--surface); border-radius: 24px; border: 1px solid var(--border); overflow: hidden;
  position: sticky; top: 24px; box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}
.map-panel-empty { padding: 64px 32px; text-align: center; }
.map-panel-empty-icon { font-size: 52px; margin-bottom: 16px; opacity: .2; }
.map-panel-empty p { font-size: 14px; color: var(--t3); line-height: 1.8; }
.map-panel-head { background: linear-gradient(135deg, var(--tsg), var(--tsg-dark)); padding: 22px 24px; position: relative; overflow: hidden; }
.map-panel-orb { width: 150px; height: 150px; background: rgba(255,255,255,0.12); top: -40px; right: -30px; }
.map-panel-head-body { position: relative; z-index: 1; }
.map-panel-en { color: rgba(255,255,255,0.65); font-size: 11px; margin-bottom: 4px; font-family: var(--latin); }
.map-panel-head h2 { color: #fff; font-weight: 900; font-size: 20px; }
.map-panel-count { color: rgba(255,255,255,0.8); font-size: 12px; margin-top: 6px; }
.map-panel-list { max-height: 480px; overflow-y: auto; padding: 8px 0; }
.map-panel-none { padding: 32px 24px; text-align: center; color: var(--t3); font-size: 14px; }
.map-city { padding: 12px 20px; border-bottom: 1px solid var(--border); }
.map-city:last-child { border-bottom: none; }
.map-city-name { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 700; font-size: 14px; color: var(--t1); }
.map-city-name::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tsg); flex-shrink: 0; }
.map-rep { background: var(--bg); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
.map-rep:last-child { margin-bottom: 0; }
.map-rep-name { font-size: 13px; color: var(--t2); font-weight: 600; }
.map-rep a { font-size: 12px; color: var(--tsg); text-decoration: none; font-family: var(--latin); direction: ltr; display: inline-block; font-weight: 600; margin-top: 4px; }

/* ── Installers club login ────────────────────────────────────────── */
.club { position: relative; overflow: hidden; padding: 72px 24px 96px; display: flex; justify-content: center; }
.club-orb-1 { width: 600px; height: 600px; background: var(--tsg-glow); top: -20%; right: -10%; }
.club-orb-2 { width: 320px; height: 320px; background: rgba(212,144,10,0.07); bottom: -10%; left: -5%; filter: blur(60px); }
.club-card {
  position: relative; z-index: 1; width: 100%; max-width: 440px; background: var(--surface); border-radius: 24px;
  padding: 40px 36px; border: 1px solid var(--border); box-shadow: 0 8px 40px rgba(0,0,0,0.06); text-align: center;
}
.club-logo {
  width: 84px; height: 84px; border-radius: 20px; background: var(--tsg-glow); border: 1.5px solid rgba(0,168,174,0.2);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; overflow: hidden;
}
.club-logo img { width: 70px; height: 70px; object-fit: contain; mix-blend-mode: multiply; }
.club-card h1 { font-size: 24px; font-weight: 900; color: var(--t1); margin: 18px 0 8px; }
.club-sub { font-size: 14px; color: var(--t3); margin-bottom: 26px; }
.club-note { font-size: 14px; color: var(--t2); margin-bottom: 26px; line-height: 1.8; }
.club-error {
  background: rgba(201,24,24,0.07); border: 1px solid rgba(201,24,24,0.2); color: #B01515; border-radius: 12px;
  padding: 11px 14px; font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.club-form { text-align: start; }
.club-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.club-field { display: block; margin-bottom: 16px; }
.club-field span { display: block; font-size: 13px; font-weight: 700; color: var(--t2); margin-bottom: 7px; }
.club-field input {
  width: 100%; height: 48px; border-radius: 12px; border: 1.5px solid var(--border2); background: var(--bg);
  padding: 0 14px; font-size: 15px; font-family: inherit; color: var(--t1); outline: none; transition: all .2s;
}
.club-field input:focus { border-color: var(--tsg); background: var(--surface); box-shadow: 0 0 0 4px var(--tsg-glow); }
.club-robot {
  display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--border2); background: var(--bg);
  border-radius: 12px; padding: 14px 16px; margin: 6px 0 22px; position: relative; transition: border-color .2s;
}
.club-robot:hover { border-color: var(--tsg); }
.club-robot input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; }
.club-robot-box {
  width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--border2); background: var(--surface);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.club-robot-box::after {
  content: ''; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0); margin-top: -3px; transition: transform .2s var(--ease);
}
.club-robot input:checked + .club-robot-box { background: var(--tsg); border-color: var(--tsg); }
.club-robot input:checked + .club-robot-box::after { transform: rotate(45deg) scale(1); }
.club-robot input:focus-visible + .club-robot-box { box-shadow: 0 0 0 4px var(--tsg-glow); }
.club-robot-text { flex: 1; font-size: 14px; font-weight: 600; color: var(--t1); }
.club-robot-icon { color: var(--t3); display: flex; }
.club-submit { width: 100%; justify-content: center; height: 50px; border-radius: 12px; font-size: 15px; border: none; }
.btn-primary.club-submit { box-shadow: 0 6px 22px rgba(0,168,174,0.35); }
.btn-outline.club-submit { border: 1.5px solid var(--border2); }

/* ── Generic WordPress content (posts, plain pages) ───────────────── */
.content { padding: 72px 0; }
.content-inner { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.entry { background: var(--surface); border-radius: 24px; padding: 36px 40px; border: 1px solid var(--border); margin-bottom: 24px; }
.entry-title { font-size: clamp(24px,3vw,38px); font-weight: 900; color: var(--t1); margin-bottom: 12px; }
.entry-title a { text-decoration: none; }
.entry-title a:hover { color: var(--tsg); }
.entry-meta { font-size: 13px; color: var(--t3); margin-bottom: 20px; }
.entry-content { font-size: 15px; line-height: 2; color: var(--t2); }
.entry-content > * + * { margin-top: 1em; }
.entry-content a { color: var(--tsg); }
.entry-content ul, .entry-content ol { padding-inline-start: 24px; }
.pagination .page-numbers { padding: 6px 12px; }

/* ── Tablet ───────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .companies-grid { grid-template-columns: repeat(2,1fr); }
}

/* ── Mobile ───────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .container { padding: 0 16px; }

  .utility-bar, .nav-name, .site-nav .nav-links, .nav-cta, .nav-club { display: none; }
  .club { padding: 40px 16px 64px; }
  .club-card { padding: 32px 22px; }
  .nav-spacer { display: block; }
  .lang-switch--mobile, .nav-toggle { display: flex; }
  .nav-inner { height: 60px; }
  .nav-brand { gap: 8px; }
  .nav-logo { width: 42px; height: 42px; }
  .nav-logo img { width: 36px; height: 36px; }
  .nav-drawer.is-open { display: block; }

  .hero { min-height: 100svh; padding: 60px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-stat { padding: 10px 4px; }

  .stats-bar { padding: 40px 0; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat { padding: 20px 12px; border-right: none; }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.07); }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.07); }

  .section { padding: 56px 0; }
  .section#companies { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head--wide { margin-bottom: 36px; }
  .section-head p { font-size: 14px; }

  .companies-grid { grid-template-columns: 1fr; gap: 16px; }
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .monitors-grid { grid-template-columns: 1fr; gap: 16px; }
  .monitor-wrap:not(.is-active) { display: none; }
  .steps-line { display: none; }
  .steps-grid { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .founders-grid { grid-template-columns: 1fr; gap: 16px; }

  .cta { padding: 64px 0; }
  .site-footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .company-products { grid-template-columns: 1fr; }
  .company-team { grid-template-columns: repeat(2,1fr); }
  .company-about { padding: 28px 22px; }

  .customers-layout { grid-template-columns: 1fr; padding: 0 14px 80px; }
  .map-panel { position: static; }
  .map-panel:not(.has-selection) { display: none; }

  .entry { padding: 28px 22px; }
}

/* ── Province picker (customers map) ──────────────────────────────── */
.map-select { display: none; margin-bottom: 12px; }
.map-select span { display: block; font-size: 13px; font-weight: 700; color: var(--t2); margin-bottom: 7px; }
.map-select select {
  width: 100%; height: 48px; border-radius: 12px; border: 1.5px solid var(--border2); background: var(--bg);
  padding: 0 14px; font-size: 16px; font-family: inherit; color: var(--t1); outline: none;
}
.map-select select:focus { border-color: var(--tsg); box-shadow: 0 0 0 4px var(--tsg-glow); }

/* ── Touch devices ────────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }
a, button, select, label { -webkit-tap-highlight-color: rgba(0,168,174,0.15); touch-action: manipulation; }

/* Hover lifts stay "stuck" after a tap on touch screens, so drop them there. */
@media (hover: none) {
  .hero-company:hover, .company-card:hover, .product-card:hover, .founder-card:hover, .cert:hover,
  .team-card:hover, .company-product:hover, .step-n:hover, .btn:hover, .company-cta-phone:hover { transform: none; }
  .hero-company:hover .hero-company-product img { transform: none; }
  .step-n:not(.is-first):hover { background: var(--surface); color: var(--tsg); border-color: var(--border2); box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
}

/* ── Phones ───────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* Large blurred, animated glows are costly on phone GPUs: keep them static and lighter. */
  .orb { filter: blur(48px); }
  .animate-breathe { animation: none; opacity: .55; }
  .site-nav { backdrop-filter: none; background: #fff; }
  .cta-contact { backdrop-filter: none; }

  /* Comfortable tap targets (about 40px or more). */
  .lang-switch--mobile { gap: 4px; }
  .lang-switch--mobile .lang-btn { min-width: 40px; min-height: 36px; padding: 0 8px; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
  .nav-toggle { width: 44px; height: 44px; }
  .nav-drawer { max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); overflow-y: auto; overscroll-behavior: contain; }
  .monitor-nav { gap: 0; margin-top: 24px; }
  .monitor-nav button { width: 40px; height: 40px; background: transparent; position: relative; }
  .monitor-nav button::after { content: ''; position: absolute; top: 16px; left: 16px; width: 8px; height: 8px; border-radius: 4px; background: var(--border2); transition: all .3s; }
  .monitor-nav button.is-active { width: 40px; background: transparent; }
  .monitor-nav button.is-active::after { left: 8px; width: 24px; background: var(--tsg); }
  .footer-link { margin-bottom: 0; padding: 10px 0; }
  .footer-contact { line-height: 1.9; }
  .footer-contact > div, .footer-contact a { padding: 8px 0; }
  .back-btn { min-height: 40px; padding: 8px 14px; flex-shrink: 0; }

  /* Hero */
  .hero { min-height: 0; padding: 36px 0 40px; }
  .hero-title { font-size: clamp(38px, 12vw, 52px); margin-bottom: 18px; }
  .hero-sub { font-size: 15px; margin-bottom: 28px; max-width: none; }
  .hero-actions .btn { flex: 1; justify-content: center; padding: 14px 16px; }
  .hero-company { padding: 14px 14px; gap: 12px; }
  .hero-company-product { width: 56px; height: 56px; }
  .hero-stats { gap: 6px; }
  .hero-stat-n { font-size: 18px; }
  .hero-stat-label { font-size: 11px; line-height: 1.4; }
  .hero-deco { display: none; }

  /* Sections */
  .section, .section--tight { padding: 48px 0; }
  .section#companies { padding: 48px 0; }
  .section-head h2 { font-size: 26px; }
  .company-card { padding: 26px 22px; }
  .product-card { padding: 20px 14px; }
  .product-icon { font-size: 28px; margin-bottom: 10px; }
  .product-title { font-size: 15px; }
  .is-active > .monitor { transform: none; }
  .steps-grid { gap: 22px 12px; }
  .steps-grid .step:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .step-n { width: 60px; height: 60px; font-size: 20px; margin-bottom: 12px; }
  .founder-card { padding: 30px 22px; }
  .certs { padding: 48px 0; }
  .certs .container { padding: 0 16px; }
  .certs-head { margin-bottom: 28px; }
  .certs-head h2 { font-size: 24px; }
  .certs-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cert { min-width: 0; padding: 18px 10px; }
  .partners { padding: 40px 0; }
  .partner { padding: 0 20px; }
  .cta { padding: 56px 0; }
  .cta h2 { font-size: 26px; }
  .cta p { font-size: 15px; margin-bottom: 30px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { justify-content: center; }
  .cta-contacts { align-items: stretch; }
  .cta-contact { justify-content: center; min-height: 46px; }
  .footer-rights { line-height: 1.8; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }

  /* Company page */
  .back-bar { padding: 0 16px; }
  .back-bar-inner { height: 60px; gap: 12px; }
  .back-bar-title { min-width: 0; }
  .back-bar-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .company-hero { padding: 44px 0; }
  .company-hero-inner { padding: 0 16px; }
  .company-hero-logo { width: 112px; height: 112px; border-radius: 26px; margin-bottom: 24px; }
  .company-hero-logo img { width: 88px; height: 88px; }
  .company-hero p { font-size: 15px; }
  .company-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 28px; }
  .company-fact { min-width: 0; padding: 14px 6px; }
  .company-fact-value { font-size: 15px; }
  .company-fact-label { font-size: 11px; }
  .company-section { padding: 48px 0; }
  .company-section--flush { padding: 0 0 48px; }
  .company-container { padding: 0 16px; }
  .company-container h2 { font-size: 22px; margin-bottom: 18px; }
  .company-about { font-size: 15px; line-height: 1.95; text-align: start; }
  .company-team-wrap { padding-top: 0; }
  .company-team { gap: 10px; }
  .company-team .team-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .team-name { font-size: 13px; }
  .team-role { font-size: 12px; }
  .company-cta { padding: 48px 0; }
  .company-cta-actions { flex-direction: column; align-items: stretch; max-width: 340px; margin: 0 auto; }
  .company-cta-phone, .company-cta-mail { justify-content: center; text-align: center; }

  /* Customers map: the picker is the main control; shape names are too small to read here. */
  .customers-head { padding: 32px 16px 22px; }
  .customers-head p { font-size: 14px; }
  .map-select { display: block; }
  .map-card { padding: 14px; border-radius: 20px; }
  .province-label { display: none; }
  .sea-label { font-size: 24px; }
  .province path { stroke-width: 2; }
  .map-hover span { font-size: 14px; }
  .map-legend > div { font-size: 12px; }
  .map-panel { border-radius: 20px; scroll-margin-top: 12px; }
  .map-panel-list { max-height: none; }
  .map-rep a { padding: 8px 0; font-size: 14px; }

  /* Forms: 16px inputs stop iOS from zooming the page on focus. */
  .club-field input { font-size: 16px; height: 50px; }
  .club-card h1 { font-size: 22px; }
  .club-robot { padding: 14px; }

  .content { padding: 40px 0; }
  .content-inner { padding: 0 16px; }
  .entry-content { font-size: 16px; }
}

/* ── Very small phones ────────────────────────────────────────────── */
@media (max-width: 359px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .lang-switch--mobile .lang-btn { min-width: 34px; padding: 0 5px; font-size: 11px; }
  .company-facts { grid-template-columns: 1fr; }
}

/* ── Background video (home hero, company heroes) ─────────────────── */
.bg-video { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.bg-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The veil keeps the dark text readable over the footage. */
.bg-video-veil { position: absolute; inset: 0; }
.hero .bg-video-veil {
  background:
    linear-gradient(to bottom, rgba(241,242,246,0) 70%, var(--bg) 100%),
    linear-gradient(to left, rgba(241,242,246,0.90) 0%, rgba(241,242,246,0.80) 45%, rgba(241,242,246,0.52) 100%);
}
[dir="ltr"] .hero .bg-video-veil {
  background:
    linear-gradient(to bottom, rgba(241,242,246,0) 70%, var(--bg) 100%),
    linear-gradient(to right, rgba(241,242,246,0.90) 0%, rgba(241,242,246,0.80) 45%, rgba(241,242,246,0.52) 100%);
}
.company-hero .bg-video-veil {
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.90) 0%, rgba(255,255,255,0.80) 55%, rgba(255,255,255,0.62) 100%);
}
/* The coloured glows would muddy the footage, so they are dropped where a video plays. */
.has-bg-video > .orb, .has-bg-video > .hero-deco { display: none; }
.hero-company { box-shadow: 0 6px 24px rgba(11,12,20,0.08); }
.hero-stat { background: rgba(255,255,255,0.86); backdrop-filter: blur(6px); }

@media (max-width: 767px) {
  .hero .bg-video-veil, [dir="ltr"] .hero .bg-video-veil {
    background: linear-gradient(to bottom, rgba(241,242,246,0.86) 0%, rgba(241,242,246,0.78) 60%, var(--bg) 100%);
  }
  .hero-stat { backdrop-filter: none; }
}

/* Visitors who asked for less motion get the still poster image instead. */
@media (prefers-reduced-motion: reduce) {
  .bg-video video { display: none; }
  .bg-video { background-size: cover; background-position: center; }
}

/* Customers page uses the main sticky header, so the province list sticks below it. */
@media (min-width: 768px) {
  .customers-page .map-panel { top: 92px; }
  .admin-bar .customers-page .map-panel { top: 124px; }
}

/* ── Price list by SMS (products section) ─────────────────────────── */
.price-box {
  position: relative; overflow: hidden; margin-top: 28px; padding: 28px 32px; border-radius: 22px;
  background: var(--t1); color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
}
.price-box-orb { width: 420px; height: 260px; background: rgba(0,168,174,0.28); top: -90px; inset-inline-start: -80px; }
.price-box-intro { position: relative; z-index: 1; display: flex; gap: 16px; align-items: flex-start; }
.price-box-icon {
  width: 56px; height: 56px; border-radius: 16px; background: rgba(0,168,174,0.18); color: var(--tsg);
  border: 1px solid rgba(0,168,174,0.35); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.price-box h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.price-box p { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.62); }
.price-box-form { position: relative; z-index: 1; }
.price-step label { display: block; font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.75); margin-bottom: 8px; }
.price-step label bdi { color: #fff; font-family: var(--latin); margin-inline-start: 4px; }
.price-row { display: flex; gap: 10px; }
.price-row input {
  flex: 1; min-width: 0; height: 50px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07); color: #fff; padding: 0 14px; font-size: 17px; font-family: var(--latin);
  letter-spacing: .04em; outline: none; transition: all .2s; text-align: left;
}
.price-row input::placeholder { color: rgba(255,255,255,0.3); }
.price-row input:focus { border-color: var(--tsg); background: rgba(255,255,255,0.11); box-shadow: 0 0 0 4px rgba(0,168,174,0.22); }
#price-code { letter-spacing: .5em; text-align: center; font-weight: 700; }
.price-row .btn { height: 50px; padding: 0 22px; border-radius: 12px; font-size: 14px; border: none; flex-shrink: 0; justify-content: center; }
.price-row .btn[disabled] { opacity: .6; pointer-events: none; }
.price-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.price-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.price-link { background: none; border: none; color: var(--tsg); font-size: 13px; font-weight: 600; padding: 8px 0; }
.price-link[disabled] { color: rgba(255,255,255,0.4); }
.price-done { display: flex; align-items: center; gap: 14px; }
.price-done[hidden] { display: none; }
.price-done-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--tsg); color: #fff; font-size: 24px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 6px 20px rgba(0,168,174,0.45);
}
.price-done strong { display: block; font-size: 16px; margin-bottom: 4px; }
.price-done span { font-size: 14px; color: rgba(255,255,255,0.65); }
.price-note { margin-top: 12px; font-size: 13px; line-height: 1.7; border-radius: 10px; padding: 9px 12px; word-break: break-word; }
.price-note.is-error { background: rgba(201,24,24,0.16); border: 1px solid rgba(201,24,24,0.4); color: #FFB4B4; }
.price-note.is-info { background: rgba(212,144,10,0.14); border: 1px solid rgba(212,144,10,0.4); color: #F5CE82; }
.price-note a { color: #fff; }

@media (max-width: 900px) {
  .price-box { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 767px) {
  .price-box { padding: 22px 18px; border-radius: 20px; margin-top: 20px; }
  .price-box h3 { font-size: 18px; }
  .price-row { flex-direction: column; }
  .price-row input { flex: none; width: 100%; }
  .price-row .btn { width: 100%; }
}

/* ── AI assistant chat widget ─────────────────────────────────────── */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 900; direction: inherit; }
.chat-fab {
  display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border: none; border-radius: 28px;
  background: var(--tsg); color: #fff; font-family: inherit; font-size: 14px; font-weight: 700; margin-left: auto;
  box-shadow: 0 10px 30px rgba(0,168,174,0.45); transition: transform .2s, box-shadow .2s, background .2s;
}
.chat-fab:hover { background: var(--tsg-dark); transform: translateY(-2px); }
.chat-fab-close { display: none; }
.chat.is-open .chat-fab { width: 56px; padding: 0; justify-content: center; background: var(--t1); box-shadow: 0 10px 30px rgba(11,12,20,0.35); }
.chat.is-open .chat-fab-open, .chat.is-open .chat-fab-label { display: none; }
.chat.is-open .chat-fab-close { display: block; }

.chat-panel {
  position: absolute; right: 0; bottom: 70px; width: 372px; max-width: calc(100vw - 32px); height: min(560px, calc(100vh - 120px));
  background: var(--surface); border-radius: 22px; border: 1px solid var(--border); overflow: hidden;
  box-shadow: 0 24px 70px rgba(11,12,20,0.28); display: flex; flex-direction: column; animation: revealUp .3s var(--ease) both;
}
.chat-panel[hidden] { display: none; }
.chat-head { background: linear-gradient(135deg, var(--tsg), var(--tsg-dark)); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.chat-head-logo { width: 42px; height: 42px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.chat-head-logo img { width: 36px; height: 36px; object-fit: contain; }
.chat-head-text { flex: 1; min-width: 0; }
.chat-head-text strong { display: block; font-size: 15px; font-weight: 800; }
.chat-head-text span { display: block; font-size: 12px; color: rgba(255,255,255,0.82); margin-top: 2px; }
.chat-head-close { display: none; background: rgba(255,255,255,0.16); border: none; color: #fff; width: 36px; height: 36px; border-radius: 10px; align-items: center; justify-content: center; }

.chat-gate { padding: 20px 18px; overflow-y: auto; }
.chat-gate-intro { font-size: 14px; line-height: 1.8; color: var(--t2); margin-bottom: 16px; }
.chat-gate label { display: block; font-size: 13px; font-weight: 700; color: var(--t2); margin-bottom: 7px; }
.chat-gate label bdi { color: var(--t1); font-family: var(--latin); margin-inline-start: 4px; }
.chat-gate input[type="tel"], .chat-gate input#chat-code {
  width: 100%; height: 50px; border-radius: 12px; border: 1.5px solid var(--border2); background: var(--bg); padding: 0 14px;
  font-size: 17px; font-family: var(--latin); color: var(--t1); outline: none; transition: all .2s; text-align: left; letter-spacing: .04em;
}
.chat-gate input#chat-code { text-align: center; letter-spacing: .5em; font-weight: 700; }
.chat-gate input:focus { border-color: var(--tsg); background: var(--surface); box-shadow: 0 0 0 4px var(--tsg-glow); }
.chat-gate .btn { width: 100%; height: 50px; justify-content: center; border: none; border-radius: 12px; font-size: 14px; margin-top: 12px; }
.chat-gate .btn[disabled] { opacity: .6; pointer-events: none; }
.chat-gate-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.chat-link { background: none; border: none; color: var(--tsg); font-size: 13px; font-weight: 600; padding: 8px 0; font-family: inherit; }
.chat-link[disabled] { color: var(--t3); }
.chat-note { margin: 12px 0 0; font-size: 13px; line-height: 1.7; border-radius: 10px; padding: 9px 12px; }
.chat-note.is-error { background: rgba(201,24,24,0.07); border: 1px solid rgba(201,24,24,0.22); color: #B01515; }
.chat-note.is-info { background: rgba(212,144,10,0.10); border: 1px solid rgba(212,144,10,0.3); color: #8A5C00; }

.chat-room { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-room[hidden] { display: none; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); overscroll-behavior: contain; }
.chat-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.chat-msg--assistant { align-self: flex-start; background: var(--surface); color: var(--t1); border: 1px solid var(--border); border-start-start-radius: 6px; }
.chat-msg--user { align-self: flex-end; background: var(--tsg); color: #fff; border-end-end-radius: 6px; }
.chat-msg--typing { display: flex; gap: 5px; align-items: center; padding: 14px 16px; }
.chat-msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--t3); animation: chatDot 1.2s ease-in-out infinite; }
.chat-msg--typing span:nth-child(2) { animation-delay: .15s; }
.chat-msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.chat-room .chat-note { margin: 0; border-radius: 0; border-inline: none; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.chat-form textarea {
  flex: 1; min-width: 0; resize: none; border: 1.5px solid var(--border2); border-radius: 14px; background: var(--bg); padding: 11px 14px;
  font-family: inherit; font-size: 15px; line-height: 1.6; color: var(--t1); outline: none; max-height: 110px; transition: border-color .2s;
}
.chat-form textarea:focus { border-color: var(--tsg); }
.chat-send { width: 46px; height: 46px; border-radius: 14px; border: none; background: var(--tsg); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s; }
.chat-send:hover { background: var(--tsg-dark); }
.chat-send[disabled] { background: var(--border2); pointer-events: none; }
.chat-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 14px 8px; background: var(--surface); font-size: 11px; color: var(--t3); flex-shrink: 0; }
.chat-foot .chat-link { font-size: 12px; padding: 4px 0; flex-shrink: 0; }

@media (max-width: 767px) {
  .chat { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .chat-fab { width: 56px; padding: 0; justify-content: center; }
  .chat-fab-label { display: none; }
  /* On phones the open chat fills the screen like a sheet. */
  .chat.is-open { inset: 0; right: 0; bottom: 0; }
  .chat.is-open .chat-fab { display: none; }
  .chat.is-open .chat-panel { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; border-radius: 0; border: none; }
  .chat-head-close { display: flex; }
  .chat-head { padding-top: calc(14px + env(safe-area-inset-top)); }
  .chat-form textarea, .chat-gate input[type="tel"], .chat-gate input#chat-code { font-size: 16px; }
  .chat-foot { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
}

/* ── Customers page: side column with the dealer request button ───── */
.customers-side { display: flex; flex-direction: column; gap: 14px; }
.dealer-cta { justify-content: center; height: 54px; border-radius: 16px; font-size: 15px; box-shadow: 0 6px 22px rgba(0,168,174,0.35); }
@media (min-width: 768px) {
  .customers-side { position: sticky; top: 92px; }
  .admin-bar .customers-side { top: 124px; }
  .customers-page .customers-side .map-panel, .admin-bar .customers-page .customers-side .map-panel { position: static; }
}

/* ── Dealer request form ──────────────────────────────────────────── */
.dealer { position: relative; overflow: hidden; padding: 56px 24px 96px; }
.dealer-orb { width: 620px; height: 620px; background: var(--tsg-glow); top: -22%; right: -12%; }
.dealer-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.dealer-head { text-align: center; margin-bottom: 28px; }
.dealer-head h1 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 900; color: var(--t1); margin: 16px 0 10px; }
.dealer-head p { font-size: 15px; color: var(--t3); line-height: 1.8; }
.dealer-card { background: var(--surface); border-radius: 24px; padding: 32px 34px; border: 1px solid var(--border); box-shadow: 0 8px 40px rgba(0,0,0,0.06); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
.form-field { display: block; margin-bottom: 18px; border: none; min-width: 0; }
.form-field > span, .form-field > legend { display: block; font-size: 13px; font-weight: 700; color: var(--t2); margin-bottom: 7px; padding: 0; }
.form-field small { font-weight: 500; color: var(--t3); font-size: 12px; }
.form-field input[type="text"], .form-field input[type="tel"], .form-field select, .form-field textarea {
  width: 100%; border-radius: 12px; border: 1.5px solid var(--border2); background: var(--bg); padding: 0 14px;
  font-size: 15px; font-family: inherit; color: var(--t1); outline: none; transition: all .2s;
}
.form-field input[type="text"], .form-field input[type="tel"], .form-field select { height: 48px; }
.form-field textarea { padding: 12px 14px; line-height: 1.8; resize: vertical; min-height: 110px; }
.form-field input[dir="ltr"] { text-align: left; font-family: var(--latin); letter-spacing: .03em; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--tsg); background: var(--surface); box-shadow: 0 0 0 4px var(--tsg-glow); }
.form-field select:disabled { opacity: .6; }
.form-error { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #B01515; }
.form-error[hidden] { display: none; }
.form-alert { background: rgba(201,24,24,0.07); border: 1px solid rgba(201,24,24,0.2); color: #B01515; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; font-weight: 600; margin-bottom: 20px; line-height: 1.8; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; }
.choice span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 21px; border: 1.5px solid var(--border2);
  background: var(--bg); font-size: 14px; font-weight: 600; color: var(--t2); transition: all .18s;
}
.choice input:hover + span { border-color: var(--tsg); }
.choice input:checked + span { background: var(--tsg); border-color: var(--tsg); color: #fff; box-shadow: 0 4px 14px rgba(0,168,174,0.3); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px var(--tsg-glow); }
.file-drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 22px 16px; border-radius: 14px;
  border: 1.5px dashed var(--border2); background: var(--bg); color: var(--tsg); transition: all .2s;
}
.file-drop:hover { border-color: var(--tsg); background: var(--tsg-glow); }
.file-drop strong { font-size: 14px; color: var(--t1); }
.file-drop em { font-style: normal; font-size: 12px; color: var(--t3); }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-input:focus-visible + .file-list, .file-drop:focus-within { outline: none; }
.file-list { list-style: none; margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; background: var(--bg); border-radius: 10px; padding: 8px 12px; font-size: 13px; color: var(--t2); }
.file-list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }
.file-list li span:last-child { color: var(--t3); flex-shrink: 0; font-family: var(--latin); }
.dealer-form .club-robot { margin: 4px 0 8px; }
.dealer-submit { width: 100%; justify-content: center; height: 54px; border-radius: 14px; font-size: 16px; border: none; margin-top: 14px; box-shadow: 0 6px 22px rgba(0,168,174,0.35); }
.dealer-submit[disabled] { opacity: .6; pointer-events: none; }
.dealer-done { text-align: center; padding: 48px 28px; }
.dealer-done-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--tsg); color: #fff; font-size: 36px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 8px 26px rgba(0,168,174,0.45); }
.dealer-done h2 { font-size: 24px; font-weight: 900; color: var(--t1); margin-bottom: 12px; }
.dealer-done p { font-size: 15px; color: var(--t2); line-height: 1.9; }
.dealer-done p strong { color: var(--tsg); font-family: var(--latin); font-size: 18px; }
.dealer-done .btn { margin-top: 22px; }

@media (max-width: 767px) {
  .dealer { padding: 32px 16px 64px; }
  .dealer-card { padding: 24px 18px; border-radius: 20px; }
  .form-grid, .form-grid--3 { grid-template-columns: 1fr; }
  .form-field input[type="text"], .form-field input[type="tel"], .form-field select, .form-field textarea { font-size: 16px; }
  .form-field input[type="text"], .form-field input[type="tel"], .form-field select { height: 50px; }
  .choice span { min-height: 44px; }
  /* On phones the request button comes first, above the province picker and map. */
  .customers-side { order: -1; }
}

/* ── Built-in captcha ─────────────────────────────────────────────── */
.captcha { margin: 6px 0 20px; text-align: start; }
.captcha-label { display: block; font-size: 13px; font-weight: 700; color: var(--t2); margin-bottom: 7px; }
.captcha-row { display: flex; align-items: center; gap: 8px; direction: ltr; }
.captcha-img { width: 160px; height: 51px; border-radius: 12px; border: 1.5px solid var(--border2); background: var(--bg); display: block; flex-shrink: 0; }
.captcha-new {
  width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--border2); background: var(--surface); color: var(--tsg);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s;
}
.captcha-new:hover { border-color: var(--tsg); background: var(--tsg-glow); }
.captcha-row .captcha-input {
  flex: 1; min-width: 0; height: 48px; border-radius: 12px; border: 1.5px solid var(--border2); background: var(--bg); padding: 0 12px;
  font-size: 17px; font-family: var(--latin); font-weight: 700; letter-spacing: .35em; text-align: center; color: var(--t1); outline: none; transition: all .2s;
}
.captcha-row .captcha-input::placeholder { letter-spacing: 0; font-weight: 400; font-family: 'Vazirmatn', sans-serif; font-size: 13px; }
.captcha-row .captcha-input:focus { border-color: var(--tsg); background: var(--surface); box-shadow: 0 0 0 4px var(--tsg-glow); }
@media (max-width: 767px) {
  .captcha-row { flex-wrap: wrap; }
  .captcha-row .captcha-input { flex: 1 1 100%; height: 50px; }
}

/* ── Map: the Caspian Sea, Persian Gulf and Sea of Oman in blue ───── */
.seas path { fill: #BFDDF4; }
.sea-label { fill: #2F7FB8; }

/* ── Form errors: the field itself turns red ──────────────────────── */
.form-field.is-invalid > span, .form-field.is-invalid > legend, .form-field.is-invalid .captcha-label { color: #B01515; }
.form-field.is-invalid input[type="text"], .form-field.is-invalid input[type="tel"], .form-field.is-invalid select, .form-field.is-invalid textarea,
.form-field.is-invalid .captcha-input { border-color: #C91818; background: rgba(201,24,24,0.04); }
.form-field.is-invalid .choice span { border-color: rgba(201,24,24,0.55); }
.form-field.is-invalid .choice input:checked + span { border-color: var(--tsg); }
.form-field.is-invalid .file-drop { border-color: #C91818; }
.form-field--captcha { margin-bottom: 0; }
.form-field--captcha .captcha { margin-bottom: 8px; }

/* ══ Dark base (charcoal and grey) ═══════════════════════════════════
   The colour tokens at the top of this file are dark now; the rules below
   fix the places that were written for a light page. */
html { color-scheme: dark; }
.form-error, .club-error, .form-alert, .chat-note.is-error { color: #FF9C9C; }
.form-alert, .club-error { background: rgba(201,24,24,0.14); border-color: rgba(255,120,120,0.3); }
.chat-note.is-info { color: #F5CE82; }
.form-field.is-invalid > span, .form-field.is-invalid > legend, .form-field.is-invalid .captcha-label { color: #FF9C9C; }
::placeholder { color: var(--t3); opacity: 1; }

/* Blocks that used the old dark text colour as their background. */
.utility-bar, .stats-bar, .company-cta, .price-box, .monitor-bar { background: var(--deep); }
.price-box { border: 1px solid var(--border); }
.chat.is-open .chat-fab { background: var(--surface2); border: 1px solid var(--border2); }
.monitor-stand span:first-child { background: #3A404D; }
.monitor-stand span:last-child { background: #2F3440; }

/* Logos have white backgrounds, so each sits on its own light tile. */
.hero-company-logo, .company-card-logo, .company-hero-logo, .club-logo, .chat-head-logo { background: #fff; border-color: rgba(255,255,255,0.5); }
.hero-company-logo img, .company-card-logo img, .company-hero-logo img, .club-logo img { mix-blend-mode: normal; }
.back-bar-title img { mix-blend-mode: normal; background: #fff; border-radius: 8px; padding: 3px; width: 34px; height: 34px; }
.footer-brand img { mix-blend-mode: normal; width: 64px; height: auto; }
.club-logo img { width: 64px; height: auto; }

/* ── Item 7: taller top bar ───────────────────────────────────────── */
.utility-inner { padding-top: 12px; padding-bottom: 12px; }
.utility-bar { font-size: 13px; border-bottom: 1px solid var(--border); }
.utility-socials { gap: 18px; }
.utility-socials a { color: rgba(255,255,255,0.55); }
.lang-btn { padding: 4px 11px; font-size: 12px; border-radius: 6px; }

/* ── Item 3: logo without a box, small heartbeat mark ─────────────── */
.site-nav { background: rgba(28,31,38,0.90); }
.nav-logo { width: auto; height: auto; background: none; border: none; border-radius: 0; overflow: visible; }
.nav-logo img { width: 76px; height: auto; mix-blend-mode: normal; border-radius: 9px; display: block; }
.nav-logo-ring {
  inset: auto; top: -3px; inset-inline-end: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--tsg); z-index: 1;
  animation: heartbeat 1.6s ease-in-out infinite; box-shadow: 0 0 0 3px rgba(28,31,38,0.9);
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.5); }
  28% { transform: scale(1); }
  42% { transform: scale(1.35); }
  56% { transform: scale(1); }
}

/* ── Item 8: installers club button ───────────────────────────────── */
.nav-club {
  position: relative; gap: 8px; padding: 8px 16px 8px 14px; border: none; border-radius: 12px; color: #F3F5F8; font-weight: 700;
  background: linear-gradient(var(--surface2), var(--surface2)) padding-box, linear-gradient(120deg, #E9B44C, var(--tsg)) border-box;
  border: 1.5px solid transparent; transition: transform .2s, box-shadow .2s;
}
.nav-club svg { color: #E9B44C; flex-shrink: 0; }
.nav-club:hover { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, #F3C96B, #19C4CA) border-box; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(233,180,76,0.18); }
.nav-drawer > a.nav-drawer-club { color: #E9B44C; }
.club-badge {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; color: #1C1F26;
  background: linear-gradient(135deg, #F3C96B, #E9B44C 45%, var(--tsg)); box-shadow: 0 12px 34px rgba(233,180,76,0.25);
}

/* ── Hero on the dark base ────────────────────────────────────────── */
.hero .bg-video-veil, [dir="ltr"] .hero .bg-video-veil {
  background:
    linear-gradient(to bottom, rgba(28,31,38,0.35) 0%, rgba(28,31,38,0) 30%, rgba(28,31,38,0) 68%, var(--bg) 100%),
    linear-gradient(to left, rgba(28,31,38,0.86) 0%, rgba(28,31,38,0.66) 48%, rgba(28,31,38,0.42) 100%);
}
[dir="ltr"] .hero .bg-video-veil {
  background:
    linear-gradient(to bottom, rgba(28,31,38,0.35) 0%, rgba(28,31,38,0) 30%, rgba(28,31,38,0) 68%, var(--bg) 100%),
    linear-gradient(to right, rgba(28,31,38,0.86) 0%, rgba(28,31,38,0.66) 48%, rgba(28,31,38,0.42) 100%);
}
.company-hero .bg-video-veil { background: radial-gradient(ellipse at center, rgba(28,31,38,0.84) 0%, rgba(28,31,38,0.70) 55%, rgba(28,31,38,0.52) 100%); }
.hero-sub { color: #D5D9E2; }
.btn-outline { border-color: rgba(255,255,255,0.28); }

/* ── Item 4: moving headline ──────────────────────────────────────── */
.hero-title { text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.hero-title span {
  display: inline-block; color: transparent; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-image: linear-gradient(100deg, var(--tsg) 0%, var(--tsg) 35%, #A8FBFD 50%, var(--tsg) 65%, var(--tsg) 100%);
  background-size: 250% 100%; animation: titleShine 4.5s linear infinite, titleFloat 5s ease-in-out infinite; text-shadow: none;
  filter: drop-shadow(0 4px 18px rgba(0,168,174,0.35));
}
.hero-title .hero-word { display: inline-block; animation: titleFloat 5s ease-in-out infinite; }
.hero-title .hero-word:nth-child(2) { animation-delay: .5s; }
@keyframes titleShine { from { background-position: 125% 0; } to { background-position: -125% 0; } }
@keyframes titleFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ── Item 5: glass company cards, product moves on hover ──────────── */
.hero-company {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); box-shadow: none;
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.hero-company:hover { background: rgba(255,255,255,0.12); border-color: var(--c); box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px var(--c) inset; }
.hero-company-desc { color: #C3C8D3; }
.hero-company-product { position: relative; }
.hero-company-product::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.34), rgba(255,255,255,0) 68%); }
.hero-company-product img { position: relative; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.4)); transform-origin: 50% 80%; }
.hero-company:hover .hero-company-product img { animation: productWiggle .9s ease-in-out infinite; transform: none; }
@keyframes productWiggle {
  0%, 100% { transform: rotate(0) scale(1.12); }
  20% { transform: rotate(-11deg) scale(1.14) translateY(-2px); }
  50% { transform: rotate(9deg) scale(1.16) translateY(-3px); }
  80% { transform: rotate(-5deg) scale(1.14); }
}
.hero-stat { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.14); }
.hero-stat-label { color: #C3C8D3; }

/* ── Road, map and other pieces on the dark base ──────────────────── */
.province path { fill: #3A4150; stroke: var(--surface); }
.province:hover path { fill: rgba(0,168,174,0.45); }
.province-label { fill: #C9CFDB; }
.seas path { fill: #1F4A6C; }
.sea-label { fill: #8CC8F2; }
.map-legend-box { background: #3A4150; border-color: var(--surface); }
.captcha-img { background: #F1F2F6; }

/* ══ Item 1 and 9: opening screen ═══════════════════════════════════ */
.splash { background: radial-gradient(ellipse at 50% 38%, #262B36 0%, #171A20 70%); }
.splash-mark { position: relative; width: 190px; height: 190px; margin: 0 auto 30px; display: flex; align-items: center; justify-content: center; }
.splash-logo-img { width: 118px; height: auto; border-radius: 12px; position: relative; z-index: 1; animation: logoAct 1.5s var(--ease) both; filter: drop-shadow(0 10px 30px rgba(0,168,174,0.45)); }
@keyframes logoAct {
  0% { opacity: 0; transform: scale(.3) rotate(-18deg); filter: blur(10px); }
  55% { opacity: 1; transform: scale(1.12) rotate(4deg); filter: blur(0); }
  75% { transform: scale(.96) rotate(-1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.splash-orbit { position: absolute; inset: 0; border-radius: 50%; animation: orbitSpin 7s linear infinite; }
.splash-orbit--2 { inset: 22px; animation-duration: 4.5s; animation-direction: reverse; }
.splash-orbit span { position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--tsg); box-shadow: 0 0 12px rgba(0,196,202,0.9); }
.splash-orbit span:nth-child(1) { transform: rotate(0deg) translateY(-95px); }
.splash-orbit span:nth-child(2) { transform: rotate(60deg) translateY(-95px) scale(.6); opacity: .7; }
.splash-orbit span:nth-child(3) { transform: rotate(120deg) translateY(-95px) scale(.85); background: #E9B44C; box-shadow: 0 0 12px rgba(233,180,76,0.8); }
.splash-orbit span:nth-child(4) { transform: rotate(180deg) translateY(-95px) scale(.5); opacity: .6; }
.splash-orbit span:nth-child(5) { transform: rotate(240deg) translateY(-95px); }
.splash-orbit span:nth-child(6) { transform: rotate(300deg) translateY(-95px) scale(.7); opacity: .8; }
.splash-orbit--2 span { width: 6px; height: 6px; margin: -3px; background: #9FF4F6; }
.splash-orbit--2 span:nth-child(1) { transform: rotate(20deg) translateY(-73px); }
.splash-orbit--2 span:nth-child(2) { transform: rotate(140deg) translateY(-73px); }
.splash-orbit--2 span:nth-child(3) { transform: rotate(260deg) translateY(-73px); background: #9FF4F6; box-shadow: 0 0 10px rgba(159,244,246,0.8); }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.splash-title { font-size: 21px; animation: revealUp .8s var(--ease) .5s both; }
.splash-sub { animation: revealFade .8s ease .8s both; margin-bottom: 30px; }

.splash-loader { width: 250px; margin: 0 auto; animation: revealFade .6s ease .9s both; }
.splash-loader-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.09); overflow: hidden; position: relative; }
.splash-loader-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--tsg), #9FF4F6, #E9B44C); background-size: 200% 100%; animation: loadBar 2s ease forwards, titleShine 1.2s linear infinite; box-shadow: 0 0 14px rgba(0,196,202,0.7); }
.splash-loader-text { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; color: rgba(255,255,255,0.6); font-size: 12.5px; font-family: 'Vazirmatn', sans-serif; }
.splash-loader-text strong { color: #fff; font-family: var(--latin); font-size: 18px; font-weight: 800; }
.splash-loader-dots::after { content: ''; animation: loaderDots 1.2s steps(4, end) infinite; }
@keyframes loaderDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* First visit: the visitor picks a language here, so the screen waits instead of fading out. */
.splash--pick, .no-splash .splash--pick { animation: none; display: flex; }
.splash--pick ~ .site, .no-splash .splash--pick ~ .site { animation: none; opacity: 0; pointer-events: none; height: 100vh; overflow: hidden; }
.splash-pick-title { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 14px; animation: revealFade .6s ease 1.1s both; font-family: 'Vazirmatn', sans-serif; }
.splash-langs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; animation: revealUp .8s var(--ease) 1.1s both; }
.splash-lang {
  min-width: 132px; padding: 14px 18px; border-radius: 16px; text-decoration: none; color: #fff; text-align: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); transition: all .25s var(--ease);
}
.splash-lang strong { display: block; font-size: 17px; font-weight: 800; font-family: 'Vazirmatn', sans-serif; }
.splash-lang[data-lang="en"] strong { font-family: var(--latin); }
.splash-lang span { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,0.45); font-family: var(--latin); }
.splash-lang:hover, .splash-lang:focus-visible { background: var(--tsg); border-color: var(--tsg); transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,168,174,0.45); outline: none; }
.splash-lang:hover span, .splash-lang:focus-visible span { color: rgba(255,255,255,0.85); }

/* ══ Item 6: "Need help?" with icons joined by dashed lines ═════════ */
.help { padding: 96px 0; background: var(--deep); position: relative; overflow: hidden; }
.help-orb { width: 900px; height: 460px; background: var(--tsg-glow); top: 50%; left: 50%; margin: -230px 0 0 -450px; }
.help-inner { position: relative; z-index: 1; }
.help-head { text-align: center; margin-bottom: 56px; }
.help-head h2 { font-size: clamp(26px, 3.4vw, 46px); font-weight: 900; color: #fff; margin: 18px 0 12px; }
.help-head p { font-size: 16px; color: rgba(255,255,255,0.58); line-height: 1.9; max-width: 560px; margin: 0 auto; }
.help-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
/* The dashed path that runs behind the icons. */
.help-line { position: absolute; top: 4px; left: 12.5%; right: 12.5%; height: 80px; pointer-events: none; }
.help-line path { fill: none; stroke: rgba(0,196,202,0.55); stroke-width: 2; stroke-dasharray: 7 9; stroke-linecap: round; animation: dashMove 1.4s linear infinite; }
@keyframes dashMove { to { stroke-dashoffset: -32; } }
[dir="rtl"] .help-line path { animation-direction: reverse; }
.help-step { position: relative; text-align: center; text-decoration: none; color: inherit; display: block; padding: 0 8px; background: none; border: none; font-family: inherit; }
.help-icon {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; position: relative;
  background: var(--surface); border: 2px dashed rgba(0,196,202,0.6); color: var(--tsg); transition: all .3s var(--ease);
}
.help-icon::after { content: attr(data-n); position: absolute; top: -6px; inset-inline-end: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--tsg); color: #fff; font-size: 12px; font-weight: 800; font-family: var(--latin); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,168,174,0.5); }
.help-step:hover .help-icon { background: var(--tsg); border-style: solid; border-color: var(--tsg); color: #fff; transform: translateY(-6px) scale(1.06); box-shadow: 0 16px 40px rgba(0,168,174,0.4); }
.help-step h3 { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.help-step p { font-size: 13.5px; color: rgba(255,255,255,0.55); line-height: 1.8; }
.help-step strong { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--tsg); font-family: var(--latin); direction: ltr; }
[dir="rtl"] .help-step strong.is-text { font-family: 'Vazirmatn', sans-serif; direction: rtl; }

/* ══ Item 10: assistant button appears after scrolling ══════════════ */
.chat { transition: opacity .35s ease, transform .35s var(--ease); }
.chat:not(.is-shown):not(.is-open) { opacity: 0; transform: translateY(24px); pointer-events: none; }

@media (max-width: 900px) {
  .help-steps { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
  .help-line { display: none; }
}
@media (max-width: 767px) {
  .site-nav { background: rgba(28,31,38,0.97); }
  .nav-logo img { width: 62px; }
  .help { padding: 56px 0; }
  .help-head { margin-bottom: 36px; }
  .help-icon { width: 74px; height: 74px; }
  .help-step h3 { font-size: 15px; }
  .splash-mark { width: 160px; height: 160px; }
  .splash-logo-img { width: 100px; }
  .splash-orbit:not(.splash-orbit--2) span:nth-child(1) { transform: rotate(0deg) translateY(-80px); }
  .splash-orbit:not(.splash-orbit--2) span:nth-child(2) { transform: rotate(60deg) translateY(-80px) scale(.6); }
  .splash-orbit:not(.splash-orbit--2) span:nth-child(3) { transform: rotate(120deg) translateY(-80px) scale(.85); }
  .splash-orbit:not(.splash-orbit--2) span:nth-child(4) { transform: rotate(180deg) translateY(-80px) scale(.5); }
  .splash-orbit:not(.splash-orbit--2) span:nth-child(5) { transform: rotate(240deg) translateY(-80px); }
  .splash-orbit:not(.splash-orbit--2) span:nth-child(6) { transform: rotate(300deg) translateY(-80px) scale(.7); }
  .splash-orbit--2 span:nth-child(1) { transform: rotate(20deg) translateY(-60px); }
  .splash-orbit--2 span:nth-child(2) { transform: rotate(140deg) translateY(-60px); }
  .splash-orbit--2 span:nth-child(3) { transform: rotate(260deg) translateY(-60px); }
  .splash-langs { flex-direction: column; align-items: stretch; padding: 0 32px; gap: 10px; }
  .splash-lang { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; }
  .splash-lang span { margin-top: 0; }
  /* Phones keep the shine but not the floating, which is tiring on a small screen. */
  .hero-title span { animation: titleShine 4.5s linear infinite; }
  .hero-title .hero-word { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .splash-orbit, .hero-title span, .hero-title .hero-word, .help-line path, .nav-logo-ring { animation: none; }
}

/* Glass cards over bright video frames: a darker tint keeps their text readable. */
.hero-company { background: rgba(20,23,30,0.46); }
.hero-company:hover { background: rgba(20,23,30,0.62); }
.hero-stat { background: rgba(20,23,30,0.46); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (max-width: 767px) { .hero-stat { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(20,23,30,0.66); } }

/* ══ Inner pages: products, about, news, contact ════════════════════ */
.page-hero { position: relative; overflow: hidden; padding: 84px 0 64px; text-align: center; background: var(--deep); border-bottom: 1px solid var(--border); }
.page-hero-orb { width: 760px; height: 420px; background: var(--tsg-glow); top: -40%; left: 50%; margin-left: -380px; }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(28px, 4vw, 52px); font-weight: 900; color: #fff; margin: 18px 0 12px; line-height: 1.3; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.62); line-height: 1.9; max-width: 640px; margin: 0 auto; }
.page-hero.has-bg-video { padding: 120px 0 96px; }
.page-hero .bg-video-veil { background: linear-gradient(to bottom, rgba(20,22,28,0.78), rgba(20,22,28,0.66) 60%, var(--deep)); }
.site-nav .nav-links a { padding: 6px 10px; }

/* Products */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.filter-chip {
  min-height: 42px; padding: 0 18px; border-radius: 21px; border: 1.5px solid var(--border2); background: var(--bg); color: var(--t2);
  font-family: inherit; font-size: 14px; font-weight: 700; transition: all .2s;
}
.filter-chip:hover { border-color: var(--c, var(--tsg)); color: var(--t1); }
.filter-chip.is-active { background: var(--c, var(--tsg)); border-color: var(--c, var(--tsg)); color: #fff; }
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.catalog-company { background: var(--bg); border: 1px solid var(--border); border-radius: 22px; padding: 24px; position: relative; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.catalog-company:hover { border-color: var(--c); box-shadow: 0 18px 50px var(--glow); }
.catalog-company[hidden] { display: none; }
.catalog-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.catalog-logo { width: 58px; height: 58px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.catalog-logo img { width: 48px; height: 48px; object-fit: contain; }
.catalog-title { flex: 1; min-width: 0; }
.catalog-title .badge { margin-bottom: 6px; }
.catalog-title h3 { font-size: 18px; font-weight: 800; color: var(--t1); margin-bottom: 4px; }
.catalog-title p { font-size: 13px; color: var(--t3); line-height: 1.7; }
.catalog-photo { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.45)); }
.catalog-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.catalog-list li { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; font-size: 14px; font-weight: 600; color: var(--t1); }
.catalog-list li span { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.catalog-more { display: inline-block; color: var(--c, var(--tsg)); font-size: 13px; font-weight: 700; text-decoration: none; }
.catalog-more:hover { text-decoration: underline; }

/* About */
.timeline { position: relative; display: flex; flex-direction: column; gap: 22px; }
.timeline::before { content: ''; position: absolute; top: 12px; bottom: 12px; inset-inline-start: 43px; border-inline-start: 2px dashed rgba(0,196,202,0.4); }
.timeline-item { display: flex; gap: 22px; align-items: flex-start; position: relative; }
.timeline-year {
  width: 88px; height: 88px; border-radius: 50%; background: var(--surface); border: 2px solid var(--c); color: var(--c); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; position: relative; z-index: 1;
}
.timeline-card { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px 26px; }
.timeline-card h3 { font-size: 19px; font-weight: 800; color: var(--t1); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.timeline-card h3 .badge { margin-bottom: 0; }
.timeline-card p { font-size: 14.5px; line-height: 2; color: var(--t2); margin-bottom: 12px; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; text-decoration: none; transition: transform .3s, border-color .3s, box-shadow .3s; }
.news-card:hover { transform: translateY(-5px); border-color: var(--tsg); box-shadow: 0 18px 46px rgba(0,168,174,0.16); }
.news-thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: var(--deep); overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb img.news-thumb-logo { width: 96px; height: auto; object-fit: contain; opacity: .85; }
.news-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.news-date { font-size: 12px; color: var(--tsg); font-weight: 700; font-family: var(--latin); direction: ltr; text-align: start; }
[dir="rtl"] .news-date { text-align: right; }
.news-title { font-size: 17px; font-weight: 800; color: var(--t1); line-height: 1.6; }
.news-excerpt { font-size: 13.5px; color: var(--t3); line-height: 1.9; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination .page-numbers { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border2); color: var(--t2); text-decoration: none; font-family: var(--latin); }
.pagination .page-numbers.current { background: var(--tsg); border-color: var(--tsg); color: #fff; }
.empty-note { text-align: center; padding: 56px 24px; background: var(--surface); border: 1px dashed var(--border2); border-radius: 22px; color: var(--t3); font-size: 15px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 12px; }
.contact-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; text-decoration: none; color: var(--t2); font-size: 13.5px; line-height: 1.8; transition: border-color .25s, transform .25s; }
a.contact-card:hover { border-color: var(--tsg); transform: translateY(-2px); }
.contact-icon { width: 50px; height: 50px; border-radius: 50%; border: 2px dashed rgba(0,196,202,0.55); color: var(--tsg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card strong { display: block; color: var(--t1); font-size: 15px; font-weight: 800; }
.contact-card bdi { font-family: var(--latin); font-weight: 600; color: var(--tsg); }

@media (max-width: 1100px) {
  .catalog, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav .nav-name { display: none; }
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .page-hero { padding: 48px 0 40px; }
  .page-hero.has-bg-video { padding: 64px 0 56px; }
  .page-hero p { font-size: 14.5px; }
  .catalog, .news-grid { grid-template-columns: 1fr; gap: 14px; }
  .timeline::before { inset-inline-start: 29px; }
  .timeline-item { gap: 12px; }
  .timeline-year { width: 60px; height: 60px; font-size: 14px; }
  .timeline-card { padding: 18px; border-radius: 18px; }
  .filter-chip { min-height: 44px; }
}

/* Grid children may shrink below their content width, so nothing pushes the page sideways on phones. */
.contact-grid > *, .catalog > *, .news-grid > * { min-width: 0; }
.contact-card > span:last-child { min-width: 0; overflow-wrap: anywhere; }

/* Hidden anti-bot fields: clipped in place. Pushing them far off-screen made right-to-left
   pages scroll sideways. */
.contact-form, .dealer-form, .club-form, .price-step { position: relative; }
.price-hp, .club-hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }

/* ══ Order steps: a pinned road travelled sideways while the page scrolls ══ */
.hroad-section { background: var(--surface); }
.hroad-head { text-align: center; padding-top: 34px; padding-bottom: 6px; flex-shrink: 0; }
.hroad-head h2 { font-size: clamp(24px, 3.2vw, 42px); font-weight: 900; color: var(--t1); margin-bottom: 8px; }
.hroad-head p { font-size: 15px; color: var(--t3); }
.hroad-steps { list-style: none; }
.hroad-card { background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; }
.hroad-card-title { font-weight: 800; font-size: 17px; color: var(--t1); margin-bottom: 6px; }
.hroad-card-desc { font-size: 13.5px; color: var(--t2); line-height: 1.8; }
.hroad-card-more { font-size: 13.5px; color: var(--t2); line-height: 1.9; }
.hroad-svg, .hroad-marker, .hroad-flag, .hroad-dots { display: none; }

/* Without the script the steps are a plain list. */
.hroad:not(.is-live) .hroad-steps { max-width: 760px; margin: 0 auto; padding: 24px 24px 56px; display: flex; flex-direction: column; gap: 14px; }
.hroad:not(.is-live) .hroad-step { display: flex; gap: 14px; align-items: flex-start; }
.hroad:not(.is-live) .hroad-pin { width: 46px; height: 46px; border-radius: 50%; background: var(--tsg); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; flex-shrink: 0; }
.hroad:not(.is-live) .hroad-card { flex: 1; }
.hroad:not(.is-live) .hroad-card-more { margin-top: 8px; }

/* With the script: the stage sticks under the header and the track slides sideways. */
.hroad.is-live .hroad-stage { position: sticky; top: 68px; height: calc(100vh - 68px); min-height: 540px; display: flex; flex-direction: column; overflow: hidden; }
.admin-bar .hroad.is-live .hroad-stage { top: 100px; height: calc(100vh - 100px); }
.hroad.is-live .hroad-viewport { flex: 1; min-height: 0; position: relative; direction: ltr; }
.hroad.is-live .hroad-track { position: absolute; top: 0; left: 0; height: 100%; will-change: transform; }
.hroad.is-live .hroad-svg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hroad-svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hroad-shadow { stroke: rgba(0,0,0,0.35); stroke-width: 46; }
.hroad-base { stroke: #3D4351; stroke-width: 34; }
.hroad-progress { stroke: var(--tsg); stroke-width: 34; }
.hroad-dash { stroke: rgba(255,255,255,0.85); stroke-width: 2.5; stroke-dasharray: 12 14; stroke-linecap: butt; }

.hroad.is-live .hroad-step { position: absolute; top: 0; left: var(--x); width: 0; height: 100%; }
.hroad.is-live .hroad-pin {
  position: absolute; top: var(--y); left: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; z-index: 2;
  background: var(--surface); border: 3px solid #6A7283; color: var(--t1); display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 20px; font-family: var(--latin);
  transition: background .35s, border-color .35s, color .35s, transform .45s var(--ease), box-shadow .35s;
}
/* Dashed drop line from the stop down to its card. */
.hroad.is-live .hroad-step::before { content: ''; position: absolute; left: -1px; top: calc(var(--y) + 30px); height: calc(var(--card-top) - var(--y) - 30px); border-left: 2px dashed rgba(255,255,255,0.16); transition: border-color .35s; }
.hroad.is-live .hroad-card {
  position: absolute; top: var(--card-top); left: 0; width: var(--card-w); margin-left: calc(var(--card-w) / -2); direction: inherit;
  opacity: .42; transform: scale(.88); transform-origin: 50% 0;
  transition: opacity .45s ease, transform .55s var(--ease), border-color .35s, box-shadow .35s, background .35s;
}
[dir="rtl"] .hroad.is-live .hroad-card { direction: rtl; text-align: right; }
[dir="ltr"] .hroad.is-live .hroad-card { direction: ltr; text-align: left; }
/* The extra text opens as the road reaches the step (grid rows animate the height). */
.hroad.is-live .hroad-card-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .55s var(--ease), opacity .4s ease, margin-top .4s; }
.hroad.is-live .hroad-card-more > div { overflow: hidden; }

.hroad-step.is-reached .hroad-pin { background: var(--tsg); border-color: #fff; color: #fff; box-shadow: 0 8px 24px rgba(0,168,174,0.45); }
.hroad-step.is-reached::before { border-color: rgba(0,196,202,0.6); }
.hroad.is-live .hroad-step.is-reached .hroad-card { opacity: .7; }
.hroad.is-live .hroad-step.is-active .hroad-pin { transform: scale(1.22); }
.hroad.is-live .hroad-step.is-active .hroad-card {
  opacity: 1; transform: scale(1.12); z-index: 3; background: var(--surface2); border-color: var(--tsg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,196,202,0.35);
}
.hroad.is-live .hroad-step.is-active .hroad-card-title { color: var(--tsg); font-size: 19px; }
.hroad.is-live .hroad-step.is-active .hroad-card-more { grid-template-rows: 1fr; opacity: 1; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border2); }

.hroad.is-live .hroad-marker {
  display: flex; position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; z-index: 3;
  background: #fff; color: var(--tsg); border: 3px solid var(--tsg); align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4); will-change: transform; pointer-events: none;
}
[dir="rtl"] .hroad-marker svg { transform: scaleX(-1); }
.hroad.is-live .hroad-flag { display: block; position: absolute; left: 0; top: 0; font-size: 28px; line-height: 1; margin: -30px 0 0 -14px; z-index: 2; pointer-events: none; }
.hroad.is-live .hroad-dots { display: flex; justify-content: center; gap: 8px; padding: 10px 0 18px; flex-shrink: 0; }
.hroad-dots span { width: 8px; height: 8px; border-radius: 4px; background: var(--border2); transition: all .3s; }
.hroad-dots span.is-done { background: rgba(0,196,202,0.55); }
.hroad-dots span.is-current { width: 26px; background: var(--tsg); }

@media (max-width: 767px) {
  .hroad.is-live .hroad-stage { top: 60px; height: calc(100vh - 60px); height: calc(100dvh - 60px); min-height: 480px; }
  .hroad-head { padding-top: 20px; }
  .hroad-head h2 { font-size: 23px; }
  .hroad-head p { font-size: 13.5px; }
  .hroad-shadow { stroke-width: 34; }
  .hroad-base, .hroad-progress { stroke-width: 24; }
  .hroad-dash { stroke-width: 2; stroke-dasharray: 9 11; }
  .hroad.is-live .hroad-pin { width: 46px; height: 46px; margin: -23px 0 0 -23px; font-size: 17px; }
  .hroad.is-live .hroad-marker { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  .hroad.is-live .hroad-marker svg { width: 20px; height: 20px; }
  .hroad-card { padding: 14px 16px; }
  .hroad.is-live .hroad-step.is-active .hroad-card { transform: scale(1.06); }
  .hroad.is-live .hroad-step.is-active .hroad-card-title { font-size: 17px; }
}

/* ══ Latest events: three monitors on a desk, the middle one larger ══ */
.monitors-grid { grid-template-columns: 1fr 1.42fr 1fr; gap: 26px; align-items: end; perspective: 1600px; }
.monitor-wrap { order: 1; cursor: pointer; --tilt: 9deg; }
.monitor-wrap.is-active { order: 2; cursor: default; --tilt: 0deg; }
.monitor-wrap.is-active ~ .monitor-wrap { order: 3; --tilt: -9deg; }
[dir="rtl"] .monitor-wrap { --tilt: -9deg; }
[dir="rtl"] .monitor-wrap.is-active { --tilt: 0deg; }
[dir="rtl"] .monitor-wrap.is-active ~ .monitor-wrap { --tilt: 9deg; }
.monitor {
  border: 10px solid #0C0E12; border-bottom-width: 22px; border-radius: 16px; background: var(--surface); position: relative;
  transform: rotateY(var(--tilt)); opacity: .82; overflow: visible;
  box-shadow: 0 0 0 1.5px #3A404D, 0 22px 44px rgba(0,0,0,0.45);
}
.monitor::after { content: ''; position: absolute; bottom: -13px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #4B5262; }
.monitor-bar { border-radius: 5px 5px 0 0; padding: 8px 14px; }
.monitor-body { min-height: 190px; padding: 16px 18px 18px; }
.monitor-wrap:not(.is-active):hover .monitor { opacity: 1; }
.is-active > .monitor {
  transform: none; opacity: 1; border-color: #0C0E12;
  box-shadow: 0 0 0 1.5px var(--tsg), 0 30px 70px rgba(0,168,174,0.22), 0 24px 50px rgba(0,0,0,0.5);
}
.is-active > .monitor::after { background: var(--tsg); box-shadow: 0 0 8px var(--tsg); }
.is-active > .monitor .monitor-bar { padding: 11px 18px; }
.is-active > .monitor .monitor-body { min-height: 280px; padding: 24px 28px 28px; }
.is-active > .monitor .monitor-title { font-size: 16px; margin-bottom: 18px; padding-bottom: 14px; }
.is-active > .monitor .monitor-items { gap: 16px; }
.is-active > .monitor .monitor-item { font-size: 15.5px; }
.monitor-stand { padding: 0; }
.monitor-stand span:first-child { width: 46px; height: 30px; border-radius: 0; margin: 0 auto; background: linear-gradient(90deg, #2A2F3A, #474E5D 50%, #2A2F3A); }
.monitor-stand span:last-child { width: 130px; height: 9px; border-radius: 9px 9px 3px 3px; background: linear-gradient(#474E5D, #2A2F3A); }
.is-active > .monitor-stand span:first-child { width: 64px; height: 42px; }
.is-active > .monitor-stand span:last-child { width: 190px; height: 11px; }
.monitor-nav { display: none; }

@media (max-width: 1023px) and (min-width: 768px) {
  .monitors-grid { grid-template-columns: 1fr 1.3fr 1fr; gap: 14px; }
  .monitor { border-width: 7px; border-bottom-width: 16px; }
  .monitor::after { bottom: -10px; }
  .is-active > .monitor .monitor-body { padding: 18px; min-height: 240px; }
  .is-active > .monitor .monitor-item { font-size: 14px; }
}
@media (max-width: 767px) {
  .monitors-grid { grid-template-columns: 1fr; perspective: none; }
  .monitor-wrap { cursor: default; }
  .is-active > .monitor .monitor-body { min-height: 220px; padding: 18px 18px 22px; }
  .is-active > .monitor .monitor-item { font-size: 14px; }
  .monitor-nav { display: flex; }
}

/* ══ Back to top button, opposite the assistant button ══════════════ */
.to-top {
  position: fixed; left: 20px; bottom: 20px; z-index: 890; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff; background: var(--surface2);
  border: 1.5px solid var(--tsg); box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: opacity .35s ease, transform .35s var(--ease), background .2s;
}
.to-top:hover { background: var(--tsg); transform: translateY(-2px); }
.to-top:not(.is-shown) { opacity: 0; transform: translateY(24px); pointer-events: none; }
@media (max-width: 767px) {
  .to-top { left: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* ══ Company cards: the company's street sign, faded into the background ══ */
.company-card-photo {
  position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center;
  opacity: .26; filter: saturate(.85); transition: opacity .5s ease, transform .9s var(--ease);
}
.company-card-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(38,42,51,0.15) 0%, rgba(38,42,51,0.72) 62%, var(--surface) 100%);
}
.company-card:hover .company-card-photo { opacity: .42; transform: scale(1.05); }

/* ══ Purchase request page ══════════════════════════════════════════ */
.order-gate { max-width: 460px; margin: 0 auto; text-align: center; }
.order-gate h2 { font-size: 22px; font-weight: 900; color: var(--t1); margin-bottom: 10px; }
.order-gate > p { font-size: 14px; color: var(--t2); line-height: 1.9; margin-bottom: 22px; }
.order-gate-icon { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; color: var(--tsg); background: var(--tsg-glow); }
.order-gate form { text-align: start; }
.order-gate .dealer-submit, .order-side .dealer-submit { width: 100%; justify-content: center; }
.order-form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.order-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.order-user { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--t2); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 6px 16px; }
.order-user bdi { color: var(--t1); font-weight: 700; font-family: var(--latin); margin-inline-start: 6px; }
.order-company { padding: 22px 24px; min-width: 0; border-top: 3px solid var(--c); }
.order-company-head { display: flex; align-items: center; gap: 14px; padding: 0; margin-bottom: 14px; float: inline-start; width: 100%; }
.order-company-head strong { display: block; font-size: 18px; font-weight: 800; color: var(--t1); }
.order-company-head small { display: block; font-size: 12.5px; color: var(--t3); margin-top: 3px; }
.order-rows { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); transition: border-color .2s, background .2s; }
.order-row.is-picked { border-color: var(--c); background: color-mix(in srgb, var(--c) 9%, var(--bg)); }
.order-row label { font-size: 13.5px; color: var(--t1); line-height: 1.6; min-width: 0; }
.order-qty { display: flex; align-items: center; flex-shrink: 0; border: 1px solid var(--border2); border-radius: 10px; overflow: hidden; direction: ltr; }
.order-qty button { width: 34px; height: 38px; border: none; background: var(--surface2); color: var(--t1); font-size: 18px; font-weight: 700; line-height: 1; }
.order-qty button:hover { background: var(--c); color: #fff; }
.order-qty input { width: 58px; height: 38px; border: none; background: transparent; color: var(--t1); text-align: center; font-family: var(--latin); font-size: 15px; font-weight: 700; outline: none; }
.order-side { position: sticky; top: 92px; padding: 24px; }
.order-side h2 { font-size: 18px; font-weight: 800; color: var(--t1); margin-bottom: 10px; }
.order-count { font-size: 13.5px; color: var(--t2); margin-bottom: 10px; }
.order-picked { list-style: none; margin: 0 0 18px; padding: 0; max-height: 220px; overflow-y: auto; }
.order-picked li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--t2); padding: 7px 0; border-bottom: 1px dashed var(--border); }
.order-picked b { color: var(--tsg); font-family: var(--latin); flex-shrink: 0; }
@media (max-width: 1023px) {
  .order-form { grid-template-columns: 1fr; }
  .order-side { position: static; }
}
@media (max-width: 767px) {
  .order-rows { grid-template-columns: 1fr; }
  .order-company { padding: 18px 16px; }
  .order-side { padding: 20px 16px; }
}

/* ══ Price list: download buttons and the highlight when it is called ══ */
.price-downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.price-downloads .btn { justify-content: center; }
.price-box.is-called { animation: priceCalled 1.6s ease; }
@keyframes priceCalled {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,168,174,0); }
  30% { box-shadow: 0 0 0 4px var(--tsg), 0 0 60px rgba(0,168,174,0.45); }
}
@media (max-width: 767px) {
  .price-downloads .btn { width: 100%; }
}
.price-downloads[hidden] { display: none; }
.price-downloads .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-size: 14px; text-decoration: none; box-shadow: 0 6px 20px rgba(0,168,174,0.35); }

/* ══ Mouse pointer: a larger arrow in the brand colour, pulsing over clickable things ══ */
.cursor-arrow { display: none; position: fixed; left: 0; top: 0; z-index: 100000; pointer-events: none; will-change: transform; }
.cursor-arrow svg { display: block; transform-origin: 12.5% 7%; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.45)); }
.has-cursor .cursor-arrow { display: block; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .has-cursor textarea { cursor: text !important; }
.has-cursor select { cursor: default !important; }
.cursor-arrow.is-text { display: none; }
.cursor-arrow.is-hover svg { animation: cursorBeat .7s ease-in-out infinite; }
@keyframes cursorBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.4); } }

/* ══ Order page: the first question, and the clickable first order step ══ */
.order-choice { max-width: 860px; margin: 0 auto; text-align: center; }
.order-choice h2 { font-size: 26px; font-weight: 900; color: var(--t1); margin-bottom: 10px; }
.order-choice > p { font-size: 15px; color: var(--t2); line-height: 1.9; margin-bottom: 28px; }
.order-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.order-choice-grid form { display: flex; }
.order-option {
  display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; padding: 32px 26px; text-align: center;
  font-family: inherit; text-decoration: none; color: var(--t2); transition: transform .3s, border-color .3s, box-shadow .3s;
}
.order-option:hover { transform: translateY(-5px); border-color: var(--tsg); box-shadow: 0 20px 50px rgba(0,168,174,0.2); }
.order-option strong { font-size: 18px; font-weight: 800; color: var(--t1); }
.order-option > span:last-child { font-size: 13.5px; line-height: 1.9; }
.order-option-icon { width: 68px; height: 68px; border-radius: 22px; display: flex; align-items: center; justify-content: center; color: var(--tsg); background: var(--tsg-glow); }
.order-gate bdi { color: var(--t1); font-weight: 700; font-family: var(--latin); }
.hroad-card--link { display: block; text-decoration: none; color: inherit; }
.hroad-card--link .hroad-card-title::after { content: ' ←'; color: var(--tsg); font-family: var(--latin); }
[dir="ltr"] .hroad-card--link .hroad-card-title::after { content: ' →'; }
.hroad-card--link:hover { border-color: var(--tsg); }
@media (max-width: 767px) {
  .order-choice h2 { font-size: 22px; }
  .order-choice-grid { grid-template-columns: 1fr; gap: 14px; }
  .order-option { padding: 24px 18px; }
}

/* ══ Sign-in page and the sign-in links ═════════════════════════════ */
.signin-section { position: relative; overflow: hidden; padding: 72px 0 96px; min-height: 62vh; }
.signin-section .order-wrap { position: relative; z-index: 1; }
.order-gate h1 { font-size: 24px; font-weight: 900; color: var(--t1); margin-bottom: 10px; }
.chat-signin { display: flex; justify-content: center; width: 100%; padding: 13px 18px; border-radius: 12px; text-decoration: none; }
.price-row a.btn { text-decoration: none; padding: 13px 24px; border-radius: 12px; }
button.nav-cta { border: none; font-family: inherit; }
@media (max-width: 767px) {
  .signin-section { padding: 40px 0 64px; }
}

/* ══ Founders section: the founders' photo, faded, behind the whole section ══ */
.founders-section { position: relative; overflow: hidden; }
.founders-section::before {
  content: ''; position: absolute; inset: 0; z-index: 0; opacity: .34;
  background: url('../img/founders-bg.jpg') center 30% / cover no-repeat;
}
.founders-section::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(28,31,38,0.55) 28%, rgba(28,31,38,0.55) 72%, var(--bg) 100%);
}
.founders-section > .container { position: relative; z-index: 1; }
.founders-section .founder-card { background: rgba(38,42,51,0.74); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }

/* Price list box for a signed-in visitor: the text on one side, the button at the far edge. */
.price-step--session .price-row { justify-content: flex-end; }
.price-step--session .btn { flex: 0 0 auto; padding: 14px 30px; border-radius: 12px; }
.price-box-phone { color: var(--t1); font-weight: 700; font-family: var(--latin); margin: 0 4px; }
@media (max-width: 767px) {
  .price-step--session .btn { width: 100%; justify-content: center; }
}

/* ══ Price list page and links inside the assistant's answers ═══════ */
.pricelist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); justify-content: center; gap: 20px; }
.pricelist-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 22px; text-align: center; text-decoration: none; transition: transform .3s, border-color .3s, box-shadow .3s; }
.pricelist-card:hover { transform: translateY(-5px); border-color: var(--tsg); box-shadow: 0 20px 50px rgba(0,168,174,0.2); }
.pricelist-card strong { font-size: 17px; font-weight: 800; color: var(--t1); line-height: 1.7; }
.pricelist-card .btn { padding: 11px 22px; border-radius: 12px; font-size: 14px; }
.pricelist-note { margin-top: 26px; text-align: center; font-size: 13.5px; color: var(--t3); line-height: 1.9; }
.chat-msg a { color: inherit; text-decoration: underline; word-break: break-all; direction: ltr; unicode-bidi: plaintext; }
.chat-msg { white-space: pre-line; }

/* Customers page: the map on the left, the buttons and the list panel on the right. */
@media (min-width: 768px) {
  [dir="rtl"] .customers-layout { grid-template-columns: 360px 1fr; }
  [dir="rtl"] .customers-side { order: -1; }
}

/* Contact page: the factory on the map. */
.contact-map { margin-top: 24px; padding: 22px; }
.contact-map-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.contact-map-head h2 { font-size: 20px; font-weight: 800; color: var(--t1); margin-bottom: 6px; }
.contact-map-head p { font-size: 13.5px; color: var(--t2); line-height: 1.8; }
.contact-map-head .btn { padding: 12px 22px; border-radius: 12px; font-size: 14px; text-decoration: none; flex-shrink: 0; }
.contact-map-frame { display: block; width: 100%; height: 380px; border: 0; border-radius: 16px; background: var(--surface2); }
@media (max-width: 767px) {
  .contact-map { padding: 16px; }
  .contact-map-frame { height: 300px; }
  .contact-map-head .btn { width: 100%; justify-content: center; }
}
/* Signed-in price list box: the sentence gets the room, the button only what it needs. */
@media (min-width: 768px) {
  .price-box--session { grid-template-columns: minmax(0, 1fr) auto; }
  .price-box--session .price-box-intro p { max-width: none; }
  .price-box--session .price-box-form { max-width: 420px; }
}
.pricelist-date { font-size: 12.5px; color: var(--t3); }
/* Eitaa and Bale icons: the logo shape filled with the link's own colour. */
.social-mark { display: inline-block; background: currentColor; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; vertical-align: middle; }
.order-choice { scroll-margin-top: 110px; }

/* Mouse pointer while a link is opening: a yellow hourglass. */
.cursor-arrow .cursor-wait { display: none; transform-origin: 50% 50%; margin: -11px 0 0 -10px; animation: cursorHourglass 1.1s ease-in-out infinite; }
.cursor-arrow.is-wait svg:first-child { display: none; }
.cursor-arrow.is-wait .cursor-wait { display: block; }
.cursor-arrow.is-wait.is-text { display: block; }
@keyframes cursorHourglass { 0%, 55% { transform: rotate(0deg); } 100% { transform: rotate(180deg); } }

/* Splash: finer orbit dots. */
.splash-orbit span { width: 5px; height: 5px; margin: -2.5px; box-shadow: 0 0 7px rgba(0,196,202,0.85); }
.splash-orbit--2 span { width: 3.5px; height: 3.5px; margin: -1.75px; }
/* A hovered province is filled with a solid colour, so the sea drawn underneath never shows through. */
.province:hover path { fill: #15636A; }

/* The browser's own pointer is the same green arrow from the first frame, so there is no white
   arrow before the mouse first moves and the animated pointer takes over. */
@media (pointer: fine) {
  html, html * {
    cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2730%27%20height%3D%2730%27%20viewBox%3D%270%200%2030%2030%27%3E%3Cg%20transform%3D%27translate(5%205)%20rotate(-135)%27%20fill%3D%27none%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20stroke%3D%27%23fff%27%20stroke-width%3D%278%27%20d%3D%27M-11%2C-11L0%2C0L-11%2C11%27%2F%3E%3Cpath%20stroke%3D%27%230B4FA8%27%20stroke-width%3D%275%27%20d%3D%27M-11%2C-11L0%2C0L-11%2C11%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") 5 5, auto;
  }
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), textarea { cursor: text; }
}

/* ══ Light / dark switch ════════════════════════════════════════════ */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; background: none; border: none; padding: 2px; color: rgba(255,255,255,0.55); transition: color .2s, transform .2s; }
.theme-toggle:hover { color: var(--tsg); transform: scale(1.12); }
.theme-toggle .theme-pupil { transition: transform .3s var(--ease); }
[data-theme="light"] .theme-toggle .theme-pupil { transform: translate(-3px, -2px); }
.theme-toggle--nav { display: none; color: var(--t2); }
@media (max-width: 1023px) { .theme-toggle--nav { display: inline-flex; padding: 6px; } }

/* ══ Light theme ════════════════════════════════════════════════════
   The page turns light; the panels that are dark by design (top bar, hero over the video,
   figures bar, price list box, help section, footer, monitors, order road) keep the dark palette. */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F6F9; --surface: #FFFFFF; --surface2: #EBEEF3;
  --border: rgba(15,23,42,0.09); --border2: rgba(15,23,42,0.18);
  --t1: #161A22; --t2: #4B5466; --t3: #7C8598;
}
html[data-theme="light"] :is(.utility-bar, .hero, .stats-bar, .page-hero, .company-hero, .company-cta, .price-box, .help, .site-footer, .splash, .monitor, .hroad-section, .chat-head) {
  --bg: #1C1F26; --surface: #262A33; --surface2: #2F3440;
  --border: rgba(255,255,255,0.08); --border2: rgba(255,255,255,0.16);
  --t1: #F3F5F8; --t2: #B9BFCC; --t3: #858C9B;
}
html[data-theme="light"] .hroad-section { background: var(--bg); }
html[data-theme="light"] .site-nav { background: rgba(255,255,255,0.93); box-shadow: 0 1px 0 rgba(15,23,42,0.08); }
html[data-theme="light"] .to-top { color: var(--t1); }
html[data-theme="light"] .lang-switch--mobile .lang-btn.is-active { color: var(--tsg); }
html[data-theme="light"] .form-error, html[data-theme="light"] .club-error, html[data-theme="light"] .form-alert, html[data-theme="light"] .chat-note.is-error { color: #B01515; }
html[data-theme="light"] .form-alert, html[data-theme="light"] .club-error { background: rgba(201,24,24,0.07); border-color: rgba(201,24,24,0.22); }
html[data-theme="light"] .chat-note.is-info { color: #8A5C00; }
html[data-theme="light"] .form-field.is-invalid > span, html[data-theme="light"] .form-field.is-invalid > legend, html[data-theme="light"] .form-field.is-invalid .captcha-label { color: #B01515; }
html[data-theme="light"] .price-box .price-note.is-info, html[data-theme="light"] .price-box .chat-note.is-info { color: #F5CE82; }
html[data-theme="light"] .province path { fill: #C8D6E8; stroke: #fff; }
html[data-theme="light"] .province:hover path { fill: #7FCFD2; }
html[data-theme="light"] .province.is-selected path { fill: var(--tsg); }
html[data-theme="light"] .map-legend-box { background: #C8D6E8; border-color: #fff; }
html[data-theme="light"] .seas path { fill: #BFDDF4; }
html[data-theme="light"] .sea-label { fill: #2F7FB8; }
html[data-theme="light"] .province-label { fill: #334155; }
html[data-theme="light"] .company-card-photo::after { background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.8) 62%, var(--surface) 100%); }
html[data-theme="light"] .founders-section::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(244,246,249,0.6) 28%, rgba(244,246,249,0.6) 72%, var(--bg) 100%); }
html[data-theme="light"] .founders-section .founder-card { background: rgba(255,255,255,0.8); }
html[data-theme="light"] .dealer-card, html[data-theme="light"] .company-card, html[data-theme="light"] .map-card { box-shadow: 0 8px 30px rgba(15,23,42,0.07); }
@media (max-width: 767px) {
  html[data-theme="light"] .site-nav { background: rgba(255,255,255,0.98); }
}
html[data-theme="light"] .nav-club, html[data-theme="light"] .nav-club:hover { color: var(--t1); }

/* Price list page: one block per company, in the company's own colour. */
.pricelist-group { --c: var(--tsg); --glow: var(--tsg-glow); margin-bottom: 26px; padding: 22px 24px 24px; border-radius: 24px; border: 1px solid var(--border); border-inline-start: 4px solid var(--c); background: linear-gradient(135deg, var(--glow), transparent 55%), var(--surface); }
.pricelist-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pricelist-group-head h2 { font-size: 20px; font-weight: 800; color: var(--t1); }
.pricelist-group-head p { font-size: 13px; color: var(--t3); margin-top: 3px; }
.pricelist-group .pricelist-grid { justify-content: start; }
.pricelist-group .pricelist-card { background: var(--bg); padding: 24px 20px; }
.pricelist-group .pricelist-card:hover { border-color: var(--c); box-shadow: 0 16px 40px var(--glow); }
.pricelist-group .order-option-icon { color: var(--c); background: var(--glow); }
.pricelist-group .pricelist-card .btn { background: var(--c); }
@media (max-width: 767px) { .pricelist-group { padding: 18px 16px; } }

/* ══ Page not found ═════════════════════════════════════════════════ */
.error-section { position: relative; overflow: hidden; padding: 90px 0 110px; min-height: 64vh; text-align: center; }
.error-inner { position: relative; z-index: 1; max-width: 640px; }
.error-code { font-family: var(--latin); font-size: clamp(96px, 18vw, 180px); font-weight: 900; line-height: 1; color: var(--t1); letter-spacing: .02em; margin-bottom: 14px; }
.error-code span { color: var(--tsg); text-shadow: 0 0 60px rgba(0,168,174,0.5); }
.error-section h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; color: var(--t1); margin-bottom: 14px; }
.error-section p { font-size: 15px; color: var(--t2); line-height: 1.9; margin-bottom: 28px; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.error-actions .btn { padding: 13px 26px; border-radius: 12px; font-size: 14px; text-decoration: none; }

/* Signed-in price list box: "get the list" and "text it to me" side by side. */
.price-step--session .price-row { gap: 10px; flex-wrap: wrap; }
.price-step--session a.btn { display: inline-flex; align-items: center; height: 50px; padding: 0 26px; text-decoration: none; }
.price-step--session .btn-outline { height: 50px; padding: 0 22px; color: #fff; border: 1.5px solid rgba(255,255,255,0.3); background: transparent; }
.price-step--session .btn-outline:hover { border-color: var(--tsg); color: var(--tsg); }
.price-step--session .btn-outline[disabled] { opacity: .6; }

/* Price list page: the three companies side by side (Tak Setareh in the middle), downloads under each. */
.pricelist-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.pricelist-columns .pricelist-group { margin-bottom: 0; padding: 26px 20px 22px; border-inline-start-width: 1px; border-top: 4px solid var(--c); background: linear-gradient(180deg, var(--glow), transparent 45%), var(--surface); }
.pricelist-group[data-company="NGS"] { order: 1; }
.pricelist-group[data-company="TSG"] { order: 2; }
.pricelist-group[data-company="ALS"] { order: 3; }
.pricelist-group--other { order: 4; grid-column: 1 / -1; }
.pricelist-columns .pricelist-group-head { flex-direction: column; text-align: center; gap: 12px; margin-bottom: 20px; }
.pricelist-columns .pricelist-group-head .catalog-logo { width: 76px; height: 76px; border-radius: 20px; }
.pricelist-columns .pricelist-group-head .catalog-logo img { width: 62px; height: 62px; }
.pricelist-columns .pricelist-grid { grid-template-columns: 1fr; gap: 12px; }
.pricelist-columns .pricelist-card { padding: 18px 16px; gap: 10px; }
.pricelist-columns .pricelist-card .order-option-icon { display: none; }
.pricelist-columns .pricelist-card .btn { width: 100%; justify-content: center; text-align: center; }
.pricelist-group--other .pricelist-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 300px)); justify-content: center; }
.pricelist-empty { font-size: 13.5px; color: var(--t3); text-align: center; padding: 14px 0; }
@media (max-width: 900px) {
  .pricelist-columns { grid-template-columns: 1fr; }
  .pricelist-group[data-company="TSG"] { order: 0; }
}

/* Monitor lines that are news posts are links. */
a.monitor-item { text-decoration: none; }
a.monitor-item:hover { opacity: 1; color: var(--tsg); }

/* A button inside a page heading, such as the price list button on the products page. */
.page-hero-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 13px 28px; border-radius: 14px; font-size: 15px; text-decoration: none; box-shadow: 0 6px 22px rgba(0,168,174,0.35); }

/* Buttons under a page heading, side by side. */
.page-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.page-hero-actions .page-hero-cta { margin-top: 0; }
.page-hero-actions .btn-outline { box-shadow: none; }

/* ══ Installers club: the mascot beside the card, and the joining steps ══ */
.club-stage { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 48px; width: 100%; max-width: 980px; }
.club-stage .club-card { flex: 0 1 440px; }
.club-mascot { flex: 0 0 auto; margin: 0; width: 340px; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.45)); animation: mascotFloat 4.5s ease-in-out infinite; }
.club-mascot img { display: block; width: 100%; height: auto; }
@keyframes mascotFloat { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.help-steps--five { grid-template-columns: repeat(5, 1fr); }
.help-steps--five .help-line { left: 10%; right: 10%; }
.club-steps .help-step { cursor: default; }
.club-steps .help-step:hover .help-icon { animation: stepJelly .7s ease; }
@media (max-width: 900px) {
  .club-stage { flex-direction: column; gap: 10px; }
  .club-mascot { width: 220px; }
}
@media (max-width: 767px) {
  .help-steps--five { grid-template-columns: repeat(2, 1fr); }
  .help-steps--five .help-step:last-child { grid-column: 1 / -1; }
}

/* ══ Things that wobble under the mouse ═════════════════════════════ */
/* Latest events: a monitor grows a little and gives a short shake. */
.monitor-wrap { transition: transform .35s var(--ease); }
.monitor-wrap:hover > .monitor { box-shadow: 0 0 0 2px var(--tsg), 0 26px 60px rgba(0,168,174,0.25); opacity: 1; }
.monitor-wrap:hover .monitor-title { font-weight: 900; color: var(--tsg); }
.monitor-wrap:hover .monitor-item { font-weight: 700; opacity: 1; color: var(--t1); }
@keyframes monitorShake {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  20% { translate: -3px 0; rotate: -1.2deg; }
  40% { translate: 3px 0; rotate: 1.2deg; }
  60% { translate: -2px 0; rotate: -.6deg; }
  80% { translate: 2px 0; rotate: .6deg; }
}
/* Home page title: each word gives a playful jelly wobble. */
.hero-title span { display: inline-block; }
.hero-title .hero-word:hover { animation: titleJelly .8s ease; }
.hero-title span:hover { animation: titleShine 4.5s linear infinite, titleJelly .8s ease; }
@keyframes titleJelly {
  0%, 100% { transform: scale(1, 1) rotate(0); }
  25% { transform: scale(1.08, .92) rotate(-2deg); }
  50% { transform: scale(.94, 1.06) rotate(2deg); }
  75% { transform: scale(1.03, .97) rotate(-1deg); }
}
@keyframes stepJelly {
  0%, 100% { transform: translateY(-6px) scale(1.06) rotate(0); }
  30% { transform: translateY(-6px) scale(1.12) rotate(-6deg); }
  60% { transform: translateY(-6px) scale(1.02) rotate(5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .club-mascot, .monitor-wrap:hover > .monitor, .hero-title .hero-word:hover, .hero-title span:hover, .club-steps .help-step:hover .help-icon { animation: none; }
}
.club-steps .help-steps .help-step { text-align: center; }
.club-steps .help-step p { margin-left: auto; margin-right: auto; }

/* ══ Mouse pointer: three chevrons whose colours run towards the tip ══ */
.cursor-arrow .cursor-chevrons { transform-origin: 13% 13%; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.45)); }
.cursor-chevrons .chev { animation: chevronRun 1.2s linear infinite; }
.cursor-chevrons .chev-3 { animation-delay: 0s; }
.cursor-chevrons .chev-2 { animation-delay: -.4s; }
.cursor-chevrons .chev-1 { animation-delay: -.8s; }
@keyframes chevronRun {
  0%, 100% { stroke: #A9E3F7; }
  33% { stroke: #16AEE6; }
  66% { stroke: #0B4FA8; }
}

/* ══ Home title: one line, with a light passing across it ══════════ */
.hero-title { white-space: nowrap; font-size: clamp(40px, 4.6vw, 70px); }
.hero-title .hero-word {
  color: transparent; -webkit-text-fill-color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(100deg, #F3F5F8 0%, #F3F5F8 38%, #FFFFFF 46%, #BFFBFD 50%, #FFFFFF 54%, #F3F5F8 62%, #F3F5F8 100%);
  background-size: 250% 100%; animation: titleShine 4.5s linear infinite; text-shadow: none;
  filter: drop-shadow(0 2px 18px rgba(0,0,0,0.35));
}
.hero-title span { animation: titleShine 4.5s linear infinite; }
/* The light enters on the left word and carries on into the right one. */
[dir="rtl"] .hero-title .hero-word { animation-delay: .9s; }
[dir="ltr"] .hero-title span { animation-delay: .9s; }
.hero-title .hero-word:hover { animation: titleShine 4.5s linear infinite, titleJelly .8s ease; }
@media (max-width: 767px) {
  .hero-title { font-size: clamp(28px, 9.4vw, 44px); }
}

/* ══ The TSG character around the site ═════════════════════════════ */
.mascot { position: absolute; z-index: 1; width: auto; pointer-events: none; animation: mascotBob 5s ease-in-out infinite; filter: drop-shadow(0 24px 30px rgba(0,0,0,0.4)); }
@keyframes mascotBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.page-hero-inner, .help-inner, .signin-section .order-wrap { position: relative; z-index: 2; }
.page-hero .mascot { top: 22px; bottom: 0; height: calc(100% - 22px); max-height: 340px; inset-inline-end: max(16px, calc(50% - 640px)); }
.help .mascot { top: 36px; height: 320px; inset-inline-end: max(16px, calc(50% - 680px)); }
.signin-section .mascot { bottom: 30px; height: 460px; inset-inline-end: max(16px, calc(50% - 620px)); }
@media (max-width: 1100px) { .mascot { display: none; } }
@media (prefers-reduced-motion: reduce) { .mascot, .cursor-chevrons .chev { animation: none; } }

/* The pointer keeps its size over clickable things; only its colours run. */
.cursor-arrow.is-hover svg { animation: none; }

/* Club button: a small picture of the character in place of the icon. */
.nav-club-mascot { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: rgba(0,168,174,0.15); }

/* Pointer: one chevron whose light runs towards the tip. */
.cursor-arrow .cursor-chevrons { transform-origin: 17% 17%; }

/* ══ Club page: the joining road with an explanation box ══════════ */
.hroad--club.is-live .hroad-row { flex: 1; min-height: 0; display: flex; align-items: stretch; gap: 0; }
.hroad--club.is-live .hroad-viewport { flex: 1; min-width: 0; }
.hroad--club .hroad-card-desc { display: none; }
.hroad--club.is-live .hroad-step.is-active .hroad-card-desc { display: block; }
.hroad-info { display: none; }
.hroad--club.is-live .hroad-info {
  display: flex; flex-direction: column; justify-content: center; flex: 0 0 320px; margin: 26px 24px; padding: 28px 26px;
  border-radius: 22px; background: linear-gradient(160deg, rgba(0,168,174,0.14), transparent 60%), var(--bg); border: 1px solid rgba(0,168,174,0.35);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3); align-self: center; min-height: 260px;
}
.hroad-info-n { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--tsg); color: #fff; font-weight: 900; font-size: 20px; font-family: var(--latin); margin-bottom: 16px; box-shadow: 0 8px 22px rgba(0,168,174,0.45); }
.hroad-info h3 { font-size: 21px; font-weight: 900; color: var(--t1); margin-bottom: 12px; }
.hroad-info p { font-size: 15px; color: var(--t2); line-height: 2; }
.hroad-info.is-new { animation: infoIn .45s var(--ease); }
@keyframes infoIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .hroad--club.is-live .hroad-row { flex-direction: column-reverse; }
  .hroad--club.is-live .hroad-info { flex: 0 0 auto; min-height: 0; margin: 0 16px 10px; padding: 16px 18px; align-self: stretch; }
  .hroad--club.is-live .hroad-info .hroad-info-n { width: 34px; height: 34px; font-size: 16px; margin-bottom: 8px; }
  .hroad--club.is-live .hroad-info h3 { font-size: 17px; margin-bottom: 6px; }
  .hroad--club.is-live .hroad-info p { font-size: 13.5px; line-height: 1.8; }
}

/* Download cards with one or two buttons (view and download for catalogues). */
.pricelist-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.pricelist-actions .btn { width: 100%; justify-content: center; text-align: center; text-decoration: none; padding: 11px 16px; border-radius: 12px; font-size: 14px; }
.pricelist-group .pricelist-actions .btn-outline { background: transparent; border: 1.5px solid var(--c); color: var(--t1); }
.pricelist-group .pricelist-actions .btn-outline:hover { background: var(--glow); }

/* ══ Quality control and laboratories ══════════════════════════════ */
.quality-labs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.quality-company { --c: var(--tsg); --glow: var(--tsg-glow); padding: 24px 20px; border-radius: 24px; border: 1px solid var(--border); border-top: 4px solid var(--c); background: linear-gradient(180deg, var(--glow), transparent 45%), var(--surface); }
.quality-company[data-company="NGS"] { order: 1; }
.quality-company[data-company="TSG"] { order: 2; }
.quality-company[data-company="ALS"] { order: 3; }
.quality-company .pricelist-group-head { flex-direction: column; text-align: center; gap: 10px; margin-bottom: 18px; }
.quality-company .pricelist-group-head h3 { font-size: 19px; font-weight: 800; color: var(--t1); }
.quality-company .pricelist-group-head p { font-size: 13px; color: var(--t3); }
.quality-lab { background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 14px; margin-bottom: 14px; }
.quality-lab img { display: block; width: 100%; height: 180px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.quality-lab h4 { font-size: 16px; font-weight: 800; color: var(--t1); margin-bottom: 6px; }
.quality-lab p { font-size: 13.5px; color: var(--t2); line-height: 1.9; }
.quality-shared { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.quality-certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.quality-cert { --c: var(--tsg); padding: 16px; text-align: center; }
.quality-cert-img { display: block; background: #fff; border-radius: 12px; padding: 8px; margin-bottom: 12px; }
.quality-cert-img img { display: block; width: 100%; height: 220px; object-fit: contain; }
.quality-cert-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border-radius: 20px; padding: 3px 12px; margin-bottom: 8px; }
.quality-cert h4 { font-size: 16px; font-weight: 800; color: var(--t1); margin-bottom: 6px; }
.quality-cert p { font-size: 13.5px; color: var(--t2); line-height: 1.8; }
@media (max-width: 900px) {
  .quality-labs { grid-template-columns: 1fr; }
  .quality-company[data-company="TSG"] { order: 0; }
}

/* ══ Careers form ═══════════════════════════════════════════════════ */
.careers-wrap { max-width: 860px; }
.careers-form .form-field input[type="file"] { display: block; width: 100%; padding: 10px; border: 1.5px dashed var(--border2); border-radius: 12px; background: var(--bg); color: var(--t2); font-family: inherit; }

/* Contact page: the two direction buttons side by side. */
.contact-map-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-map-actions .btn { padding: 12px 22px; border-radius: 12px; font-size: 14px; text-decoration: none; }
.footer-contact a[href*="neshan"] { color: inherit; text-decoration: none; }
.footer-contact a[href*="neshan"]:hover { color: var(--tsg); }

/* A catalogue shared by the whole group sits alone in the middle. */
.pricelist-group--other:only-child { grid-column: 1 / -1; max-width: 520px; margin: 0 auto; width: 100%; }
.pricelist-group--other:only-child .pricelist-grid { grid-template-columns: 1fr; }

/* Home page scrolls in steps: each section settles whole under the sticky nav. */
html:has(body.home) { scroll-snap-type: y proximity; scroll-padding-top: 69px; }
@media (min-width: 768px) and (min-height: 560px) {
  html:has(body.home) { scroll-snap-type: y mandatory; }
}
body.home .utility-bar { scroll-snap-align: start; }
body.home .site > section:not(.hero) { scroll-snap-align: start; }
body.home .site-footer { scroll-snap-align: end; }
@media (prefers-reduced-motion: reduce) {
  html:has(body.home) { scroll-snap-type: y proximity; }
}

/* Lottery at the exhibition stand: built for entering on a tablet, so fields and buttons
   are large and touch-friendly, and the list turns into cards on narrow screens. */
body:has(.page-lottery) .chat, body:has(.page-lottery) .to-top, .page-lottery .mascot { display: none !important; }
.lottery-wrap { max-width: 1100px; }
.lottery-head { padding: 26px 0 14px; background: var(--deep); border-bottom: 1px solid var(--border); }
.lottery-head h1 { font-size: 24px; margin: 0 0 14px; }
.lottery-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.lottery-tabs a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 14px; border: 1.5px solid var(--border2); color: var(--t1); font-weight: 700; font-size: 15.5px; text-decoration: none; background: var(--surface); }
.lottery-tabs a.is-active { background: var(--tsg); border-color: var(--tsg); color: #fff; }
.lottery-body { padding: 24px 0 64px; }
.page-lottery .dealer-card { padding: 26px 26px; margin-bottom: 18px; }
.page-lottery .dealer-card h2 { font-size: 18px; margin: 0 0 14px; }
.page-lottery .form-grid { grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.page-lottery .form-field > span { font-size: 15px; }
.page-lottery .form-field input[type="text"], .page-lottery .form-field input[type="tel"], .page-lottery .form-field select { height: 58px; font-size: 18px; border-radius: 14px; }
.lottery-body .btn { min-height: 52px; font-size: 16px; padding-inline: 22px; }
.page-lottery .dealer-submit { width: 100%; min-height: 60px; font-size: 18px; }
.lottery-form { max-width: 900px; margin: 0 auto; }
.lottery-form-title { font-size: 20px; }
.lottery-hint { color: var(--t3); font-size: 14px; margin: 0 0 14px; line-height: 1.9; }
.form-alert--ok { background: rgba(0,168,174,0.09); border-color: rgba(0,168,174,0.3); color: var(--tsg); font-size: 15.5px; }
.form-alert--warn { background: rgba(230,150,0,0.1); border-color: rgba(230,150,0,0.35); color: #E0A030; font-size: 15.5px; }
html[data-theme="light"] .form-alert--warn { color: #9A5C00; }
.lottery-confirm { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.lottery-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.lottery-draw-btn { font-size: 17px !important; }
.lottery-search { display: flex; gap: 8px; margin-inline-start: auto; }
.lottery-search input { height: 52px; min-width: 280px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--border2); background: var(--surface); color: var(--t1); font: inherit; font-size: 16px; }
.lottery-count { color: var(--t3); font-size: 14px; margin-bottom: 8px; }
.lottery-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.lottery-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lottery-table th, .lottery-table td { padding: 14px 12px; text-align: start; border-bottom: 1px solid var(--border); white-space: nowrap; }
.lottery-table th { font-size: 13px; color: var(--t3); font-weight: 700; background: var(--deep); }
.lottery-table tr:last-child td { border-bottom: none; }
.lottery-date { font-family: var(--latin); }
.lottery-actions { display: flex; gap: 18px; align-items: center; }
.lottery-actions a, .lottery-actions button { color: var(--tsg); font: inherit; font-weight: 700; background: none; border: none; cursor: pointer; padding: 8px 0; text-decoration: none; }
.lottery-actions button { color: #E04848; }
.lottery-denied { max-width: 520px; margin: 0 auto; text-align: center; }
.lottery-gift-row { display: grid; grid-template-columns: 1fr 140px auto auto; gap: 12px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--border); }
.lottery-gift-row .form-field { margin-bottom: 0; }
.lottery-gift-row--new { border-bottom: none; padding-top: 18px; }
.lottery-remove { background: none; border: none; color: #E04848; font: inherit; font-weight: 700; cursor: pointer; min-height: 52px; padding: 0 8px; }
.lottery-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 24px; }
.lottery-date-pick { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--border2); border-radius: 16px; cursor: pointer; background: var(--bg); }
.lottery-date-pick input { width: 26px; height: 26px; accent-color: var(--tsg); flex-shrink: 0; }
.lottery-date-pick strong { display: block; font-family: var(--latin); font-size: 17px; }
.lottery-date-pick small { color: var(--t3); font-size: 13px; }
.lottery-date-pick:has(input:checked) { border-color: var(--tsg); background: rgba(0,168,174,0.08); }
.lottery-date-pick.is-empty { opacity: .5; cursor: default; }
.lottery-count-field { max-width: 200px; }
.lottery-winners { list-style: none; margin: 0 0 18px; padding: 0; }
.lottery-winners li { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--border); }
.lottery-place { width: 44px; height: 44px; border-radius: 50%; background: var(--tsg); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lottery-who { flex: 1; min-width: 200px; }
.lottery-who strong { display: block; font-size: 17px; }
.lottery-who small { color: var(--t3); font-size: 13px; }
.lottery-winners select { height: 54px; min-width: 260px; font-size: 16px; border-radius: 14px; border: 1px solid var(--border2); background: var(--bg); color: var(--t1); padding: 0 12px; font-family: inherit; }
.lottery-gift { font-weight: 700; color: var(--tsg); }
.lottery-sms { color: var(--t3); font-size: 13px; }
.lottery-bar { height: 12px; border-radius: 99px; background: var(--border); overflow: hidden; }
.lottery-bar span { display: block; height: 100%; background: var(--tsg); transition: width .4s; }
.lottery-progress p { margin: 10px 0 0; font-weight: 700; }
.lottery-others summary { cursor: pointer; font-weight: 700; font-size: 16px; min-height: 32px; }
.lottery-others ul { margin: 12px 0 0; padding: 0 18px; line-height: 2.1; color: var(--t2); }
@media (max-width: 900px) {
  .lottery-search { margin-inline-start: 0; width: 100%; }
  .lottery-search input { min-width: 0; flex: 1; }
  .lottery-table--cards thead { display: none; }
  .lottery-table--cards, .lottery-table--cards tbody, .lottery-table--cards td { display: block; width: 100%; }
  .lottery-table--cards tr { padding: 12px 16px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
  .lottery-table--cards td { border: none; padding: 4px 0; white-space: normal; }
  .lottery-table--cards td[data-label]::before { content: attr(data-label) "\003A\0020"; color: var(--t3); font-size: 12.5px; }
  .lottery-table--cards .lottery-actions { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .page-lottery .form-grid { grid-template-columns: 1fr; }
  .lottery-gift-row { grid-template-columns: 1fr 100px; }
  .lottery-winners select { min-width: 0; width: 100%; }
}

/* Tablets: the full menu does not fit beside the buttons, so it opens from the menu button. */
@media (min-width: 768px) and (max-width: 1100px) {
  .site-nav .nav-links, .nav-club { display: none; }
  .nav-spacer { display: block; }
  .nav-toggle { display: flex; }
  .nav-drawer.is-open { display: block; }
}

/* Products page: the full product table */
.ptable-filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.ptable-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ptable-tools { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ptable-tools select, .ptable-tools input { height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border2); background: var(--surface); color: var(--t1); font: inherit; font-size: 14.5px; }
.ptable-tools input { min-width: 280px; }
.ptable-count { text-align: center; color: var(--t3); font-size: 13.5px; margin: 0 0 10px; }
.ptable-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th, .ptable td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--border); }
.ptable th { position: sticky; top: 0; background: var(--deep); color: var(--t3); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ptable tbody tr:hover { background: var(--tsg-glow); }
.ptable tr:last-child td { border-bottom: none; }
.ptable-code, .ptable-price { font-family: var(--latin); white-space: nowrap; color: var(--t2); }
.ptable-name { font-weight: 700; color: var(--t1); }
.ptable-price { font-weight: 700; color: var(--tsg); }
.ptable-more { display: flex; margin: 16px auto 0; }
.ptable-note { text-align: center; color: var(--t3); font-size: 13px; margin-top: 12px; }
.ptable-note a { color: var(--tsg); font-weight: 700; }
@media (max-width: 700px) {
  .ptable-tools select, .ptable-tools input { width: 100%; min-width: 0; }
  .ptable th:nth-child(3), .ptable td:nth-child(3) { display: none; }
  .ptable th, .ptable td { padding: 9px 10px; font-size: 13px; }
}

/* Product order: details, pre-invoice builder and the saved pre-invoice */
.page-hero--compact { padding: 54px 0 40px; }
.porder-wrap { max-width: 1100px; }
.porder-steps { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; list-style: none; margin: 18px 0 0; padding: 0; }
.porder-steps li { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--border2); color: var(--t3); font-size: 13.5px; font-weight: 700; }
.porder-steps li.is-current { background: var(--tsg); border-color: var(--tsg); color: #fff; }
.porder-customer { max-width: 760px; margin: 0 auto; }
.porder-signed { color: var(--t3); margin: 0 0 16px; }
.porder-signed strong { font-family: var(--latin); color: var(--t1); }
.porder-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.porder-head strong { display: block; font-size: 17px; }
.porder-head span { color: var(--t3); font-size: 13.5px; }
.porder-head a { color: var(--tsg); font-weight: 700; font-size: 13.5px; }
.porder-table-wrap { overflow-x: auto; }
.porder-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.porder-table th, .porder-table td { padding: 10px 8px; text-align: start; border-bottom: 1px solid var(--border); vertical-align: middle; }
.porder-table th { color: var(--t3); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.porder-table select, .porder-table input { height: 44px; border-radius: 10px; border: 1px solid var(--border2); background: var(--bg); color: var(--t1); font: inherit; font-size: 14px; padding: 0 10px; width: 100%; }
.porder-table .porder-cat { min-width: 140px; }
.porder-table .porder-product { min-width: 260px; }
.porder-table .porder-qty { width: 90px; text-align: center; font-family: var(--latin); }
.porder-n { width: 34px; color: var(--t3); text-align: center !important; }
.porder-pack { display: block; color: var(--t3); font-size: 12px; margin-top: 4px; }
.porder-price, .porder-line { font-family: var(--latin); white-space: nowrap; }
.porder-line { font-weight: 700; }
.porder-remove { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border2); background: none; color: #E04848; font-size: 20px; line-height: 1; cursor: pointer; }
.porder-remove:hover { background: rgba(224,72,72,0.1); }
.porder-empty { text-align: center; color: var(--t3); padding: 22px 0 6px; margin: 0; }
.porder-empty.is-warning { color: #E04848; font-weight: 700; }
.porder-add { display: flex; margin: 14px auto 6px; min-height: 48px; }
.porder-sums { display: grid; grid-template-columns: auto auto; justify-content: end; gap: 6px 22px; margin: 18px 0; font-size: 14.5px; }
.porder-sums dt { color: var(--t3); }
.porder-sums dd { margin: 0; font-family: var(--latin); font-weight: 700; text-align: left; }
.porder-sums dt:last-of-type, .porder-sums dd:last-of-type { font-size: 17px; color: var(--tsg); }
.porder-invoice-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.porder-invoice-head h2 { margin: 0; }
.porder-invoice-head p { margin: 4px 0 0; color: var(--t3); }
.porder-invoice-meta { display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--t2); }
.porder-note, .porder-fine { color: var(--t3); font-size: 13.5px; }
.porder-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
@media print {
  body:has(.page-porder) .site-header, body:has(.page-porder) .site-nav, body:has(.page-porder) .utility-bar,
  body:has(.page-porder) .page-hero, body:has(.page-porder) .site-footer, body:has(.page-porder) .chat,
  body:has(.page-porder) .to-top, .porder-actions { display: none !important; }
  body:has(.page-porder) { background: #fff; color: #000; }
  .porder-invoice { box-shadow: none; border: none; }
}

/* Quality page: lab photos and documents open large on a click */
.quality-lab-img { display: block; width: 100%; padding: 0; border: none; background: none; cursor: zoom-in; }
.quality-lab-img img { display: block; width: 100%; height: 180px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.quality-docs-title { font-size: 15px; font-weight: 800; color: var(--t1); margin: 18px 0 10px; }
.quality-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.section .quality-docs { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.quality-doc { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; padding: 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); color: var(--t1); font: inherit; cursor: zoom-in; transition: border-color .2s, transform .2s; }
.quality-doc:hover { border-color: var(--c); transform: translateY(-2px); }
.quality-doc--text { cursor: default; }
.quality-doc--text:hover { transform: none; border-color: var(--border); }
.quality-doc-img { display: block; width: 100%; background: #fff; border-radius: 10px; padding: 6px; }
.quality-doc-img img { display: block; width: 100%; height: 130px; object-fit: contain; }
.quality-doc-icon { font-size: 28px; line-height: 1; }
.quality-doc strong { font-size: 13px; font-weight: 800; line-height: 1.7; }
.quality-doc small { font-size: 12px; color: var(--t3); line-height: 1.7; }
.quality-zoom { position: fixed; inset: 0; z-index: 1000; background: rgba(8,10,14,0.88); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.quality-zoom[hidden] { display: none; }
.quality-zoom figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.quality-zoom img { max-width: min(1100px, 100%); max-height: calc(100vh - 110px); object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,0.5); cursor: default; }
.quality-zoom figcaption { color: #fff; font-weight: 700; font-size: 15px; text-align: center; }
.quality-zoom-close { position: absolute; top: 16px; inset-inline-end: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.1); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.quality-zoom-close:hover { background: var(--tsg); border-color: var(--tsg); }
