@font-face {
  font-family: "Vazirmatn";
  src: url("Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #08101d;
  --ink-soft: #101c2e;
  --panel: #14243a;
  --paper: #f6f3ec;
  --paper-soft: #ebe8e0;
  --white: #ffffff;
  --blue: #0867e8;
  --blue-dark: #0649a5;
  --amber: #ffb423;
  --muted: #aab5c5;
  --line: rgba(255, 255, 255, .12);
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .22);
  --container: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { width: 100%; max-width: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  width: 100%; max-width: 100%;
  color: var(--ink);
  background: var(--paper);
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  font-feature-settings: "ss01";
  line-height: 1.8;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: var(--container); margin-inline: auto; }
.skip-link {
  position: fixed; inset-block-start: 10px; inset-inline-start: 10px; z-index: 200;
  padding: 10px 14px; background: var(--amber); color: var(--ink); border-radius: 10px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  color: var(--white); background: rgba(8, 16, 29, .82);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(18px);
}
.nav-wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; line-height: 1.35; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  color: var(--white); background: var(--blue); border-radius: 12px 4px 12px 4px;
  box-shadow: 0 8px 26px rgba(8, 103, 232, .36);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.main-nav a { color: #dce4ee; transition: .2s ease; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--amber); }
.nav-call { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; direction: ltr; }
.nav-call svg { width: 17px; }
.menu-btn { display: none; color: var(--white); background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn svg { display: block; width: 28px; }

.hero {
  position: relative; min-height: 760px; display: flex; align-items: center;
  padding: 116px 0 64px; color: var(--ink); background: var(--paper); overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 18% 28%, rgba(8, 103, 232, .08), transparent 32%),
              radial-gradient(circle at 83% 70%, rgba(255, 180, 35, .08), transparent 28%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .45; pointer-events: none;
  background-image: linear-gradient(rgba(8,16,29,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(8,16,29,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
.hero-grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr;
  align-items: stretch; gap: 0; direction: ltr; overflow: hidden;
  background: var(--white); border: 1px solid rgba(8,16,29,.06); border-radius: 30px;
  box-shadow: 0 26px 75px rgba(8,16,29,.13);
}
.hero-grid > * { min-width: 0; }
.hero-copy { direction: rtl; display: flex; flex-direction: column; justify-content: center; padding: 50px 48px; }
.hero-visual { direction: rtl; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.hero .eyebrow { color: var(--blue); }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.hero h1 { margin: 0; max-width: 650px; font-size: clamp(38px, 4.3vw, 58px); line-height: 1.45; letter-spacing: 0; }
.hero h1 strong { color: var(--blue); font-weight: 900; }
.hero-lead { max-width: 590px; margin: 16px 0 22px; color: #5f6a7d; font-size: 15px; line-height: 2; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border: 1px solid transparent; border-radius: 12px; font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--ink); background: var(--amber); }
.btn-secondary { color: var(--white); border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.05); }
.hero .btn-secondary { color: var(--ink); border-color: #d6dbe3; background: var(--white); }
.btn-blue { color: var(--white); background: var(--blue); }
.btn svg { width: 20px; height: 20px; }
.hero-visual { position: relative; min-height: 610px; }
.hero-frame {
  position: relative; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0;
  background: #edf0f4; border: 0; border-radius: 0; box-shadow: none;
}
.hero-frame img { width: 100%; height: 100%; min-height: 610px; object-fit: cover; border-radius: 0; }
.hero-price {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin: 22px 0; padding: 16px 18px; color: var(--white); background: var(--ink);
  border-radius: 15px;
}
.hero-price span { display: block; color: var(--muted); font-size: 11px; }
.hero-price strong { color: var(--amber); font-size: 21px; white-space: nowrap; }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 2px; overflow: hidden; background: #e1e5eb; border: 1px solid #e1e5eb; border-radius: 12px; color: #566174; font-size: 12px; }
.hero-meta span { display: flex; min-height: 54px; align-items: center; justify-content: center; gap: 7px; padding: 9px; background: #f7f8fa; }
.hero-meta i { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; box-shadow: 0 0 0 4px rgba(8,103,232,.08); }

.section { padding: 104px 0; }
.section-dark { color: var(--white); background: var(--ink-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.section-head h2 { max-width: 720px; margin: 0; font-size: clamp(30px, 4vw, 50px); line-height: 1.45; letter-spacing: 0; }
.section-head p { max-width: 470px; margin: 0; color: #647084; }
.section-dark .section-head p { color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 28px; background: var(--white); border: 1px solid #dedbd3; border-radius: var(--radius); }
.feature-card .num { display: block; margin-bottom: 28px; color: var(--blue); font-size: 13px; font-weight: 800; }
.feature-card h3 { margin: 0 0 9px; font-size: 20px; }
.feature-card p { margin: 0; color: #657084; font-size: 14px; }
.feature-card.accent { color: var(--white); background: var(--blue); border-color: var(--blue); }
.feature-card.accent .num, .feature-card.accent p { color: #d5e5ff; }

.product-panel { display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; background: var(--white); border-radius: 30px; box-shadow: 0 18px 60px rgba(17,27,45,.1); }
.product-image img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; }
.product-copy { padding: clamp(34px, 6vw, 72px); align-self: center; }
.product-copy h2 { margin: 0 0 18px; font-size: clamp(32px, 4vw, 48px); line-height: 1.35; }
.product-copy > p { color: #5e6a7c; }
.spec-list { margin: 28px 0; padding: 0; list-style: none; border-top: 1px solid #e5e1da; }
.spec-list li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid #e5e1da; }
.spec-list span { color: #687385; }
.price-block { margin: 30px 0; padding: 22px; background: var(--ink); color: var(--white); border-radius: 17px; }
.price-block small { display: block; color: var(--muted); }
.price-block strong { color: var(--amber); font-size: 28px; }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.process-item { min-height: 240px; padding: 28px; background: var(--ink-soft); }
.process-item b { display: block; color: var(--amber); font-size: 38px; line-height: 1; }
.process-item h3 { margin: 54px 0 10px; font-size: 18px; }
.process-item p { margin: 0; color: var(--muted); font-size: 13px; }

.gallery-grid { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: 290px 290px; gap: 16px; }
.gallery-item { position: relative; overflow: hidden; padding: 0; border: 0; border-radius: 20px; background: #d9dce1; cursor: zoom-in; }
.gallery-item:first-child { grid-row: 1 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item::after { content: "مشاهده تصویر"; position: absolute; inset-block-end: 16px; inset-inline-start: 16px; padding: 7px 12px; color: var(--white); background: rgba(8,16,29,.78); border-radius: 9px; font: 500 12px "Vazirmatn", Tahoma, sans-serif; }
.video-showcase {
  display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: center; gap: 28px;
  margin-top: 16px; padding: 28px; color: var(--white); background: var(--ink); border-radius: 20px;
}
.video-copy h3 { margin: 0 0 10px; font-size: 25px; }
.video-copy p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.video-showcase video { display: block; width: 100%; max-height: 620px; background: #000; border-radius: 14px; }

.about-band { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; }
.about-copy h2 { margin: 0 0 20px; font-size: clamp(34px, 4vw, 52px); line-height: 1.35; }
.about-copy p { color: #5f6a7d; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 28px 0 34px; }
.tick { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.tick::before { content: "✓"; display: grid; place-items: center; width: 27px; height: 27px; color: var(--white); background: var(--blue); border-radius: 8px; font-size: 14px; }

.cta { padding: 0 0 104px; background: var(--paper); }
.cta-inner { position: relative; overflow: hidden; padding: 64px; color: var(--white); background: var(--ink); border-radius: 30px; }
.cta-inner::after { content: ""; position: absolute; width: 330px; height: 330px; inset-block-start: -140px; inset-inline-start: -90px; background: var(--blue); filter: blur(100px); opacity: .45; }
.cta-content { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 50px; }
.cta h2 { max-width: 650px; margin: 0 0 10px; font-size: clamp(30px, 4vw, 48px); line-height: 1.4; }
.cta p { margin: 0; color: var(--muted); }

.page-hero { padding: 160px 0 85px; color: var(--white); background: var(--ink); }
.breadcrumbs { margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--amber); }
.page-hero h1 { margin: 0; max-width: 800px; font-size: clamp(40px, 6vw, 68px); line-height: 1.3; }
.page-hero p { max-width: 700px; margin: 22px 0 0; color: #c8d2df; font-size: 18px; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.story-grid h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.35; }
.story-text p { margin: 0 0 18px; color: #5f6a7d; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
.value { padding: 26px; background: var(--white); border-radius: 18px; border: 1px solid #dfdbd3; }
.value h3 { margin: 0 0 8px; }
.value p { margin: 0; color: #667184; font-size: 14px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; }
.contact-card { padding: 36px; background: var(--white); border: 1px solid #dedbd3; border-radius: 22px; }
.contact-card.blue { color: var(--white); background: var(--blue); border-color: var(--blue); }
.contact-card h2 { margin: 0 0 28px; font-size: 28px; }
.contact-row { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 25px; }
.contact-icon { flex: 0 0 42px; display: grid; place-items: center; width: 42px; height: 42px; color: var(--blue); background: #e9f2ff; border-radius: 12px; }
.contact-row strong { display: block; margin-bottom: 2px; }
.contact-row p, .contact-row a { margin: 0; color: #667184; }
.contact-card.blue .contact-row p, .contact-card.blue .contact-row a { color: #dbe9ff; }
.contact-card.blue .contact-icon { color: var(--white); background: rgba(255,255,255,.16); }
.map-card { min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; color: var(--white); background: linear-gradient(rgba(8,16,29,.3), rgba(8,16,29,.92)), url('foam-grinder-details.jpg') center/cover; border-radius: 22px; }
.map-card h2 { margin: 0 0 12px; font-size: 30px; }
.map-card p { max-width: 680px; margin: 0 0 22px; color: #d3dce8; }

.site-footer { padding: 70px 0 28px; color: var(--white); background: #060c15; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 60px; }
.footer-about p { max-width: 500px; color: var(--muted); font-size: 14px; }
.footer-title { margin: 0 0 18px; color: var(--amber); font-size: 14px; }
.footer-links { display: grid; gap: 10px; color: #d4dce7; font-size: 14px; }
.footer-contact { color: #d4dce7; font-size: 14px; }
.footer-contact p { margin: 0 0 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 52px; padding-top: 22px; color: #7f8b9d; border-top: 1px solid var(--line); font-size: 12px; }
.mobile-actions { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 30px; background: rgba(3,7,13,.94); }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(100%, 1050px); max-height: 88vh; border-radius: 16px; }
.lightbox button { position: absolute; inset-block-start: 20px; inset-inline-end: 20px; width: 44px; height: 44px; color: var(--white); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-size: 24px; cursor: pointer; }

@media (max-width: 920px) {
  .main-nav { position: fixed; inset: 76px 0 auto; display: none; flex-direction: column; align-items: stretch; padding: 25px; background: var(--ink); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .menu-btn { display: block; }
  .nav-call { display: none; }
  .hero { min-height: auto; }
  .hero-grid, .product-panel, .about-band, .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 0; }
  .hero-copy { order: 1; padding: 42px; }
  .hero-visual { order: 2; width: 100%; max-width: none; }
  .feature-grid, .values { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .product-image img { min-height: 470px; }
  .about-band { gap: 42px; }
  .about-photo { max-width: 600px; }
  .cta-content { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --container: min(100% - 28px, 1160px); --radius: 18px; }
  body { padding-bottom: 68px; }
  .nav-wrap { width: calc(100% - 28px); max-width: 100%; height: 68px; gap: 12px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand { min-width: 0; max-width: calc(100% - 58px); gap: 8px; font-size: 13px; white-space: nowrap; }
  .brand small { display: none; }
  .main-nav { inset-block-start: 68px; }
  .hero { padding: 88px 0 46px; }
  .hero .container { width: calc(100% - 28px); max-width: 100%; }
  .hero-grid { width: 100%; max-width: 100%; border-radius: 22px; }
  .hero-copy { order: 2; width: 100%; max-width: 100%; padding: 27px 22px 25px; overflow: hidden; }
  .hero-visual { order: 1; }
  .hero h1 { font-size: 32px; line-height: 1.5; }
  .hero-lead { margin: 10px 0 18px; font-size: 14px; line-height: 1.9; }
  .hero-visual, .hero-frame img { min-height: 340px; height: 340px; }
  .hero-frame img { object-position: center 42%; }
  .hero-meta { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-meta span { min-height: 50px; padding: 7px 4px; font-size: 10px; text-align: center; }
  .hero-price { margin: 16px 0; padding: 14px 15px; }
  .hero-price strong { font-size: 19px; white-space: normal; }
  .hero .actions { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .hero .btn { min-width: 0; min-height: 48px; padding: 9px 7px; font-size: 12px; line-height: 1.6; text-align: center; white-space: normal; }
  .section { padding: 72px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .feature-grid, .values, .process { grid-template-columns: 1fr; }
  .product-image img { min-height: 400px; }
  .product-copy { padding: 30px 22px 36px; }
  .spec-list li { display: block; }
  .spec-list strong { display: block; margin-top: 2px; }
  .process-item { min-height: auto; }
  .process-item h3 { margin-top: 24px; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: 400px 250px 320px; }
  .gallery-item:first-child { grid-row: auto; }
  .video-showcase { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .video-copy h3 { font-size: 21px; }
  .ticks { grid-template-columns: 1fr; }
  .cta { padding-bottom: 72px; }
  .cta-inner { padding: 38px 24px; }
  .page-hero { padding: 125px 0 65px; }
  .contact-card, .map-card { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-about { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .mobile-actions { position: fixed; inset: auto 0 0; z-index: 150; display: grid; grid-template-columns: 1fr 1fr; height: 68px; color: var(--white); box-shadow: 0 -10px 30px rgba(0,0,0,.18); }
  .mobile-actions a { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; }
  .mobile-actions a:first-child { background: #1cac54; }
  .mobile-actions a:last-child { background: var(--blue); direction: ltr; }
}

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