:root {
  --brand-50: #ecfeff;
  --brand-100: #cffafe;
  --brand-200: #a5f3fc;
  --brand-300: #67e8f9;
  --brand-400: #22d3ee;
  --brand-500: #06b6d4;
  --brand-600: #0891b2;
  --brand-700: #0e7490;
  --brand-800: #155e75;
  --brand-900: #164e63;
  --brand-950: #083344;

  --primary: var(--brand-700);
  --primary-strong: var(--brand-800);
  --primary-deep: var(--brand-900);
  --primary-soft: rgba(14, 116, 144, .09);
  --accent: var(--brand-400);

  --ink: #0f172a;
  --body: #334155;
  --muted: #475569;
  --bg: #f6fafc;
  --surface: #ffffff;
  --line: #e2e8f0;
  --success: #059669;
  --danger: #dc2626;

  --font: "Vazirmatn", "Segoe UI", Tahoma, Arial, sans-serif;

  --fs-xs: .78rem;
  --fs-sm: .875rem;
  --fs-md: .95rem;
  --fs-lg: clamp(1.05rem, .98rem + .35vw, 1.185rem);
  --fs-xl: clamp(1.28rem, 1.14rem + .7vw, 1.55rem);
  --fs-2xl: clamp(1.45rem, 1.22rem + 1.15vw, 2rem);
  --fs-3xl: clamp(1.9rem, 1.32rem + 2.9vw, 2.9rem);
  --lh-tight: 1.35;
  --lh-body: 1.8;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-18: 4.5rem;
  --space-20: 5rem;

  --container: 1140px;
  --gutter: 1.25rem;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --touch: 44px;

  --shadow-sm: 0 4px 14px -6px rgba(2, 44, 56, .12);
  --shadow-md: 0 12px 30px -12px rgba(2, 44, 56, .18);
  --shadow-lg: 0 24px 50px -20px rgba(2, 44, 56, .28);
  --ring: 0 0 0 3px var(--primary-soft);

  --z-header: 50;
  --z-skip: 100;

  --dur-fast: .18s;
  --dur: .25s;
  --ease: cubic-bezier(.33, 1, .68, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: var(--lh-body);
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: var(--lh-tight);
  margin: 0 0 .6em;
  overflow-wrap: break-word;
}
h1 { font-weight: 800; }
h2 { font-weight: 700; font-size: var(--fs-2xl); }
h3 { font-weight: 700; font-size: var(--fs-lg); }
h4 { font-weight: 700; font-size: 1rem; }

p { overflow-wrap: break-word; }

[hidden] { display: none !important; }

::selection { background: var(--brand-200); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--primary-strong);
  outline-offset: 2px;
  border-radius: 4px;
}
.site-footer :focus-visible,
.cta-band :focus-visible,
.stats-band :focus-visible,
.hero-art :focus-visible {
  outline-color: var(--accent);
}

.container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-4);
  top: -100%;
  z-index: var(--z-skip);
  background: var(--ink);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 0; }

.section { padding-block: var(--space-16); }
.section-surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.product-detail + .section { margin-top: var(--space-12); }

.section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto var(--space-12);
}
.eyebrow {
  display: inline-block;
  color: var(--primary);
  background: var(--primary-soft);
  padding: .22rem .95rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: var(--space-3);
}
.section-head p { color: var(--muted); margin: 0; }
.section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: var(--space-3) auto 0;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent), var(--primary-strong));
}
.section-cta { text-align: center; margin-top: var(--space-10); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--touch);
  padding: var(--space-2) 1.6rem;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.6;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur), color var(--dur), background-color var(--dur);
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-600), var(--primary-strong));
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(14, 116, 144, .65);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  inset-inline-start: -80%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-14deg);
  transition: inset-inline-start .7s var(--ease);
  pointer-events: none;
}
.btn-primary:hover::after { inset-inline-start: 135%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(14, 116, 144, .7); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary-strong); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { min-height: var(--touch); padding: var(--space-1) 1.15rem; font-size: var(--fs-sm); }

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: .65rem;
}
.brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text strong { color: var(--ink); font-size: 1.02rem; }
.brand-text small { color: var(--muted); font-size: var(--fs-xs); }

.site-nav { display: flex; align-items: center; gap: var(--space-4); }
.site-nav ul { display: flex; gap: var(--space-1); list-style: none; margin: 0; }
.site-nav ul a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: .35rem .9rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--body);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.site-nav ul a:hover { background: var(--primary-soft); color: var(--primary-strong); }
.site-nav ul a.active { color: var(--primary); background: var(--primary-soft); font-weight: 700; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--touch);
  height: var(--touch);
  padding: .55rem;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bar { width: 24px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform var(--dur) var(--ease), opacity var(--dur); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  background:
    radial-gradient(900px 480px at 88% -12%, rgba(34, 211, 238, .18), transparent),
    linear-gradient(180deg, #effbfd, var(--bg));
  padding-block: var(--space-18) var(--space-16);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.hero::before {
  width: 430px;
  height: 430px;
  inset-inline-start: -150px;
  top: -130px;
  background: radial-gradient(circle, rgba(34, 211, 238, .32), transparent 65%);
  animation: hero-drift 15s ease-in-out infinite alternate;
}
.hero::after {
  width: 380px;
  height: 380px;
  inset-inline-end: -130px;
  bottom: -150px;
  background: radial-gradient(circle, rgba(14, 116, 144, .25), transparent 65%);
  animation: hero-drift 19s ease-in-out -7s infinite alternate-reverse;
}
@keyframes hero-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(42px, 30px, 0) scale(1.14); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--space-12);
  align-items: center;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.hero-copy > * { animation: rise-in .75s var(--ease) backwards; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(4) { animation-delay: .32s; }
.hero-copy > :nth-child(5) { animation-delay: .44s; }

.hero h1 { font-size: var(--fs-3xl); margin-bottom: .5em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(115deg, var(--brand-500), var(--primary-strong));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { font-size: var(--fs-lg); color: var(--muted); max-width: 33rem; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  list-style: none;
  margin: var(--space-10) 0 0;
  padding: 0;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: .5rem 1rem;
  border-radius: var(--radius-full);
}
.hero-points svg { color: var(--primary); flex-shrink: 0; }
.hero-art { animation: rise-in .9s var(--ease) .25s backwards; }
.hero-art img {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  filter: drop-shadow(0 30px 40px rgba(8, 51, 68, .35));
  border-radius: 28px;
  animation: hero-bob 7s ease-in-out 1.4s infinite alternate;
}
@keyframes hero-bob {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}
.hero-cue {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: var(--space-12);
}
.hero-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .4rem 1rem;
  border-radius: var(--radius-full);
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  transition: color var(--dur-fast);
}
.hero-scroll:hover { color: var(--primary-strong); }
.hero-scroll svg { animation: cue-bob 1.7s ease-in-out infinite; }
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); opacity: .7; }
  50% { transform: translateY(5px); opacity: 1; }
}

.grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--brand-50); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.badge {
  position: absolute;
  top: .85rem;
  inset-inline-start: .85rem;
  z-index: 2;
  background: var(--primary-strong);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: .2rem .8rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.card-body { display: flex; flex-direction: column; gap: .45rem; flex: 1; padding: var(--space-5) var(--space-5) var(--space-6); }
.card-title { font-size: 1.05rem; margin: 0; }
.card-title a { transition: color var(--dur-fast); }
.card-title a:hover { color: var(--primary); }
.card-text { margin: 0; color: var(--muted); font-size: .89rem; flex: 1; }
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--space-2);
}
.card-more { color: var(--primary); font-weight: 700; font-size: .87rem; transition: gap var(--dur-fast); }
.card-more span { display: inline-block; transition: transform var(--dur-fast); }
.card-more:hover span { transform: translateX(-4px); }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem;
  text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto var(--space-4);
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(14, 116, 144, .16));
  color: var(--primary);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feature-card:hover .feature-icon {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 26px -14px rgba(14, 116, 144, .55);
}
.feature-card h3 { margin-bottom: .35em; }
.feature-card p { margin: 0; font-size: .88rem; color: var(--muted); }

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary) 55%, var(--brand-600));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 3.4rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -60px -20px auto auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .35), transparent 70%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .92); max-width: 34rem; margin: 0 auto 1.6rem; }

.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-10);
}
.page-head h1 { font-size: var(--fs-2xl); margin-bottom: .25em; }
.page-head .page-intro { color: var(--muted); max-width: 42rem; margin: 0; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  list-style: none;
  margin: 0 0 .8rem;
  padding: 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.breadcrumbs li + li::before { content: "‹"; margin-inline-end: .45rem; color: #94a3b8; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

.back-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--primary); font-weight: 700; font-size: .9rem; margin-bottom: var(--space-6); }
.back-link:hover { color: var(--primary-strong); }

.products-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.products-count { color: var(--muted); font-size: .9rem; }

.empty-state {
  text-align: center;
  background: var(--surface);
  border: 1.5px dashed var(--line);
  border-radius: 18px;
  padding: 3.6rem 1.5rem;
}
.empty-state svg { color: #cbd5e1; margin: 0 auto var(--space-4); }
.empty-state h2 { font-size: var(--fs-xl); }
.empty-state p { color: var(--muted); max-width: 26rem; margin: 0 auto var(--space-6); }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-12);
  padding-block: var(--space-12);
  align-items: start;
}
.gallery-main {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: .7rem; margin-top: .85rem; }
.thumb {
  width: 76px;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
}
.thumb:hover { border-color: var(--primary); transform: translateY(-2px); }
.thumb.active { border-color: var(--primary); box-shadow: var(--ring); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd-info h1 { font-size: var(--fs-2xl); margin-bottom: .35em; }
.pd-lead { color: var(--muted); font-size: 1.02rem; margin: 0 0 var(--space-6); }
.pd-info h2 { font-size: var(--fs-lg); margin: var(--space-8) 0 .6em; }
.pd-desc p { margin: 0 0 1em; }
.checklist { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .6rem; }
.checklist li { display: flex; align-items: flex-start; gap: .6rem; }
.checklist svg { color: var(--success); flex-shrink: 0; margin-top: .38rem; }
.pd-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

.notfound { text-align: center; padding-block: var(--space-20); }
.notfound svg { color: #cbd5e1; margin: 0 auto var(--space-5); }
.notfound h2 { font-size: var(--fs-xl); }
.notfound p { color: var(--muted); margin: 0 auto var(--space-6); max-width: 26rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding-block: var(--space-12);
}
.about-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.about-copy p { color: var(--body); }
.stats-band {
  background: linear-gradient(135deg, var(--brand-950), var(--primary-strong));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4.5vw, 3rem) clamp(1.25rem, 4vw, 3rem);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); text-align: center; }
.stat b { display: block; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--accent); line-height: 1.3; }
.stat span { font-size: .86rem; color: rgba(255, 255, 255, .88); }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-10);
  align-items: start;
  padding-block: var(--space-12);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.contact-list { list-style: none; display: grid; gap: var(--space-5); margin: 0; padding: 0; }
.contact-item { display: flex; align-items: flex-start; gap: .85rem; }
.contact-item svg { color: var(--primary); flex-shrink: 0; margin-top: .32rem; }
.contact-item b { display: block; color: var(--ink); font-size: .92rem; }
.contact-item span { color: var(--muted); font-size: .88rem; }
.contact-item a:hover { color: var(--primary); }
.socials-row { display: flex; gap: .7rem; margin-top: var(--space-6); }
.socials-row a {
  width: var(--touch);
  height: var(--touch);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-strong);
  transition: background-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.socials-row a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.field { display: grid; gap: .35rem; margin-bottom: var(--space-4); }
.field label { font-weight: 600; color: var(--ink); font-size: .9rem; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fbfeff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .6rem .95rem;
  min-height: var(--touch);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--ring);
}
.field input::placeholder, .field textarea::placeholder { color: #7c8aa0; }
.field-hint { color: var(--muted); font-size: .8rem; margin: -.4rem 0 var(--space-4); }
.error-msg { display: none; color: var(--danger); font-size: var(--fs-xs); font-weight: 600; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .error-msg { display: block; }
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.btn-submit { width: 100%; }
.btn-submit .spinner { display: none; width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: btn-spin .7s linear infinite; }
.btn-submit.is-loading { opacity: .8; cursor: progress; transform: none; box-shadow: none; }
.btn-submit.is-loading:hover { transform: none; box-shadow: none; }
.btn-submit.is-loading .spinner { display: inline-block; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
.form-error {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 12px;
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-4);
}
.form-error svg { color: var(--danger); flex-shrink: 0; margin-top: .3rem; }
.form-error b { display: block; }
.form-success {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 12px;
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-4);
}
.form-success svg { color: var(--success); flex-shrink: 0; margin-top: .3rem; }
.form-success b { display: block; }
.map-placeholder {
  position: relative;
  height: 210px;
  margin-top: var(--space-6);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .88rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(148, 163, 184, .22) 39px 40px),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(148, 163, 184, .22) 39px 40px),
    #eef6f8;
}
.map-placeholder span {
  position: absolute;
  inset-inline: 0;
  bottom: var(--space-4);
  text-align: center;
}

.site-footer {
  background: #0b1f26;
  color: #cbd5e1;
  margin-top: var(--space-18);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: var(--space-10);
  padding-block: var(--space-12);
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; display: grid; gap: .55rem; margin: 0; padding: 0; font-size: .9rem; }
.site-footer a { transition: color var(--dur-fast); }
.site-footer a:hover { color: var(--brand-300); }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: #94a3b8; }
.footer-brand > p { font-size: .88rem; color: #94a3b8; margin: var(--space-4) 0 0; max-width: 24rem; }
.site-footer .socials-row a { background: rgba(255, 255, 255, .07); color: #cbd5e1; }
.site-footer .socials-row a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-contact li { display: flex; align-items: flex-start; gap: .6rem; }
.footer-contact svg { color: var(--brand-300); flex-shrink: 0; margin-top: .3rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-block: var(--space-5);
  text-align: center;
  font-size: .83rem;
  color: #a8b6c5;
}

@media (max-width: 960px) {
  .hero { padding-block: var(--space-12); }
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero-art { order: 2; }
  .product-detail { grid-template-columns: 1fr; gap: var(--space-8); }
  .about-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    inset-inline: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4) var(--space-5) var(--space-5);
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: .15rem; }
  .site-nav ul a { display: flex; width: 100%; }
  .site-nav .btn { justify-content: center; }
}

@media (max-width: 620px) {
  :root { --gutter: 1rem; }
  .section { padding-block: var(--space-12); }
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .products-toolbar { flex-direction: column; align-items: flex-start; }
  .thumbs { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero-actions, .pd-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .pd-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Blog ---------- */
.page-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 40px;
  padding: .3rem 1.05rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.lang-toggle svg { color: var(--primary); flex-shrink: 0; }

.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.blog-count { color: var(--muted); font-size: .9rem; margin: 0; }

.blog-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--brand-50);
}
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.07); }
.post-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 51, 68, .38));
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.post-card:hover .post-media::after { opacity: 1; }
.post-shine {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 45%;
  inset-inline-start: -80%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .30), transparent);
  transform: skewX(-14deg);
  transition: inset-inline-start .75s var(--ease);
  pointer-events: none;
}
.post-card:hover .post-shine { inset-inline-start: 135%; }
.post-cat {
  position: absolute;
  top: .9rem;
  inset-inline-start: .9rem;
  z-index: 3;
  background: rgba(255, 255, 255, .95);
  color: var(--primary-strong);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: .22rem .85rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.post-body { display: flex; flex-direction: column; gap: .5rem; flex: 1; padding: var(--space-5) var(--space-5) var(--space-6); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.1rem; color: #64748b; font-size: var(--fs-xs); margin: 0; padding: 0; list-style: none; }
.post-meta li { display: inline-flex; align-items: center; gap: .38rem; }
.post-meta svg { color: var(--primary); opacity: .8; flex-shrink: 0; }
.post-cat-static {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: .18rem .85rem;
  border-radius: var(--radius-full);
}
.post-title { font-size: 1.08rem; line-height: 1.6; margin: 0; }
.post-title a { transition: color var(--dur-fast); }
.post-title a:hover { color: var(--primary); }
.post-excerpt { margin: 0; color: var(--muted); font-size: .89rem; flex: 1; }
.post-actions { margin-top: auto; padding-top: var(--space-2); }
.post-more {
  --arrow-shift: -5px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--primary);
  font-weight: 700;
  font-size: .87rem;
}
html[dir="ltr"] .post-more { --arrow-shift: 5px; }
.post-more span { display: inline-block; transition: transform var(--dur-fast) var(--ease); }
.post-more:hover { color: var(--primary-strong); }
.post-card:hover .post-more span { transform: translateX(var(--arrow-shift)); }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

.post-detail { max-width: 840px; margin-inline: auto; padding-block: var(--space-12); }
.post-hero {
  margin: 0 0 var(--space-6);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--brand-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-meta-lg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem 1.25rem;
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.post-meta-lg li { display: inline-flex; align-items: center; gap: .42rem; }
.post-meta-lg svg { color: var(--primary); flex-shrink: 0; }
.post-detail h1 { font-size: var(--fs-2xl); margin-bottom: .4em; }
.post-content p { margin: 0 0 1.15em; font-size: 1.02rem; color: var(--body); }
.source-box {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1rem;
  background: var(--surface);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-10);
  font-size: .92rem;
}
.source-box b { color: var(--ink); white-space: nowrap; }
.source-box svg { color: var(--primary); flex-shrink: 0; align-self: center; }
.source-box a { color: var(--primary); font-weight: 700; overflow-wrap: anywhere; transition: color var(--dur-fast); }
.source-box a:hover { color: var(--primary-strong); }

@media (max-width: 620px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-toolbar { flex-direction: column; align-items: flex-start; }
  .post-detail { padding-block: var(--space-8); }
}

/* ---------- Tooth 3D (scroll-driven) ---------- */
.tooth3d { margin-block: var(--space-16); }
.tooth3d-track { position: relative; height: 330vh; }
.tooth3d-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 5.5rem var(--space-10);
}
.tooth3d-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-12);
  align-items: center;
  width: 100%;
}
.tooth3d-lead { color: var(--muted); margin: 0; max-width: 30rem; }

.tooth3d-steps { display: grid; margin-top: var(--space-8); }
.tooth3d-step {
  grid-area: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.tooth3d-step:first-child,
.tooth3d-step.is-active { opacity: 1; transform: none; }
.tooth3d-step.is-active {
  border-color: rgba(34, 211, 238, .5);
  box-shadow: 0 18px 40px -18px rgba(8, 51, 68, .38);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-500), var(--primary-strong));
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: var(--space-3);
  box-shadow: 0 10px 20px -10px rgba(14, 116, 144, .8);
}
.tooth3d-step h3 { margin-bottom: .3em; }
.tooth3d-step p { margin: 0; color: var(--muted); font-size: .95rem; }

.tooth3d-progress {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.tooth3d-bar {
  flex: 1;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--brand-100);
  overflow: hidden;
}
.tooth3d-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--primary-strong));
  transform: scaleX(0);
  transform-origin: 100% 50%;
}
.tooth3d-percent {
  min-width: 3.4em;
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--primary-strong);
}
.tooth3d-hint {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: var(--fs-sm);
  margin: var(--space-4) 0 0;
}

.tooth3d-scene {
  --glow: #22d3ee;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 10 / 11;
  justify-self: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(103, 232, 249, .18);
  background: radial-gradient(120% 90% at 70% 8%, #0d3542, #06202b 55%, #03141d);
  box-shadow: var(--shadow-lg);
  will-change: transform;
}
.tooth3d-scene[data-step="1"] { --glow: #2dd4bf; }
.tooth3d-scene[data-step="2"] { --glow: #60a5fa; }
.tooth3d-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(103, 232, 249, .13) 1px, transparent 1.6px);
  background-size: 26px 26px;
  opacity: .55;
}
.tooth3d-floor {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 64%;
  aspect-ratio: 2.4 / 1;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, var(--glow), transparent 72%);
  opacity: .4;
  animation: floor-pulse 4.5s ease-in-out infinite alternate;
}
.tooth3d-viewport {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  perspective: 1150px;
}

.holo-tooth {
  position: relative;
  width: min(58%, 290px);
  aspect-ratio: 200 / 240;
  transform-style: preserve-3d;
  transform: rotateX(9deg) rotateY(-32deg);
  will-change: transform;
}
.holo-layer,
.holo-gloss {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
}
.holo-layer { transform: translateZ(calc((var(--i) - 6) * 3px)); }
.holo-gloss { transform: translateZ(21px); opacity: .85; }
.holo-layer svg,
.holo-gloss svg { display: block; width: 100%; height: 100%; overflow: visible; }
.holo-layer:nth-child(1) { color: #10394a; opacity: .32; }
.holo-layer:nth-child(2) { color: #124153; opacity: .36; }
.holo-layer:nth-child(3) { color: #144a5d; opacity: .40; }
.holo-layer:nth-child(4) { color: #175469; opacity: .45; }
.holo-layer:nth-child(5) { color: #1a6077; opacity: .50; }
.holo-layer:nth-child(6) { color: #1e6d87; opacity: .55; }
.holo-layer:nth-child(7) { color: #237c99; opacity: .60; }
.holo-layer:nth-child(8) { color: #2a8dad; opacity: .66; }
.holo-layer:nth-child(9) { color: #33a1c1; opacity: .72; }
.holo-layer:nth-child(10) { color: #43b7d6; opacity: .78; }
.holo-layer:nth-child(11) { color: #5ccde8; opacity: .84; }
.holo-layer:nth-child(12) { color: #8ce2f4; opacity: .90; }
.holo-layer:nth-child(13) { color: #c8f4fd; opacity: .96; }

.tooth3d-spark {
  position: absolute;
  z-index: 3;
  left: var(--x);
  top: var(--y);
  width: 9px;
  height: 9px;
  background: var(--glow);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 6px var(--glow));
  transform: translateZ(var(--z, 0px));
  animation: spark-twinkle 3s ease-in-out var(--td, 0s) infinite;
}
.tooth3d-float {
  position: absolute;
  z-index: 1;
  will-change: transform;
}
.tooth3d-float svg { display: block; width: 100%; height: auto; animation: float-bob 6s ease-in-out infinite alternate; }
.tooth3d-float-sm { width: 42px; color: rgba(103, 232, 249, .55); }
.tooth3d-float-lg { width: 72px; color: rgba(94, 203, 229, .4); }
.tooth3d-float-lg svg { animation-duration: 7.5s; animation-delay: -3s; }

@keyframes spark-twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }
@keyframes floor-pulse { from { opacity: .28; } to { opacity: .5; } }
@keyframes float-bob { from { transform: translateY(-7px) rotate(-5deg); } to { transform: translateY(8px) rotate(6deg); } }

/* حالت بدون حرکت / بدون جاوااسکریپت */
.tooth3d.is-static .tooth3d-track { height: auto; }
.tooth3d.is-static .tooth3d-sticky { position: static; min-height: 0; padding-block: var(--space-12); }
.tooth3d.is-static .tooth3d-step { grid-area: auto; opacity: 1; transform: none; }
.tooth3d.is-static .tooth3d-bar-fill { transform: scaleX(1); }
.tooth3d.is-static .tooth3d-spark { animation: none; opacity: .7; }

@media (max-width: 960px) {
  .tooth3d-inner { grid-template-columns: 1fr; gap: var(--space-10); }
  .tooth3d-scene { order: 2; }
  /* در صفحه‌های کوچک محتوای پین‌شده در ۱۰۰vh جا نمی‌شود؛
     پین شدن را غیرفعال می‌کنیم — پیشرفت اسکرول همچنان انیمیشن را می‌رانَد. */
  .tooth3d-track { height: auto; }
  .tooth3d-sticky {
    position: static;
    min-height: 0;
    padding-block: 0;
  }
}
@media (max-width: 620px) {
  .tooth3d { margin-block: var(--space-12); }
  .tooth3d-scene { aspect-ratio: 1 / 1.12; }
  .tooth3d-float-lg { width: 56px; }
}

/* ---------- Reveal on scroll (نیازمند جاوااسکریپت) ---------- */
html.js .io-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js .io-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .io-reveal { opacity: 1; transform: none; }
}
