/* ==========================================================================
   JI9 Design System — کافی‌نت آنلاین جی ناین
   Tokens → Base → Components → Sections → Responsive
   ========================================================================== */

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

:root {
  --font: Vazirmatn, Tahoma, system-ui, sans-serif;

  --crimson: #9f1d23;
  --crimson-hover: #7f171c;
  --crimson-pressed: #6a1218;
  --crimson-soft: #f6ecec;
  --crimson-line: #e7c9cb;

  --ink: #141414;
  --charcoal: #2c2c2c;
  --muted: #5e5a56;
  --faint: #8a847c;
  --line: #e6e1da;
  --line-strong: #d4cec5;
  --paper: #f7f5f2;
  --paper-2: #efebe4;
  --white: #ffffff;
  --dark: #161513;
  --dark-2: #1f1d1b;
  --cream: #f4efe6;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.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-20: 5rem;
  --space-24: 6rem;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.25rem;

  --leading-tight: 1.2;
  --leading-snug: 1.4;
  --leading-body: 1.8;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.04);
  --shadow-md: 0 10px 30px rgba(20, 20, 20, 0.06);
  --shadow-float: 0 18px 40px rgba(20, 20, 20, 0.1);

  --header-h: 4.25rem;
  --container: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 220ms;
  --focus: 0 0 0 2px var(--white), 0 0 0 4px var(--crimson);

  --telegram: #229ed9;
  --instagram: #c13584;
}

/* -------------------------------------------------------------------------- */
/* Reset / Base                                                                */
/* -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

html, body { margin: 0; }

body {
  font-family: var(--font);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
address { font-style: normal; }

:focus { outline: none; }
:focus-visible { box-shadow: var(--focus); border-radius: 6px; }

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--crimson);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

body.is-locked { overflow: hidden; }

/* -------------------------------------------------------------------------- */
/* Layout                                                                      */
/* -------------------------------------------------------------------------- */

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-16);
}

.section--tight { padding-block: var(--space-12); }

.section-header {
  max-width: 38rem;
  margin-bottom: var(--space-10);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--crimson);
  margin-bottom: var(--space-3);
}

.eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  background: var(--crimson);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(1.6rem, 2.4vw + 1rem, var(--text-3xl));
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-lead {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--text-lg);
}

/* -------------------------------------------------------------------------- */
/* Buttons / Badge                                                             */
/* -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease),
    border-color var(--duration) var(--ease), transform 160ms var(--ease);
  white-space: nowrap;
}

.btn svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--crimson);
  color: var(--white);
}
.btn--primary:hover { background: var(--crimson-hover); }

.btn--secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--secondary:hover { background: var(--paper-2); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.08); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--white); }

.btn--lg { min-height: 3.35rem; padding-inline: 1.5rem; font-size: var(--text-md); }
.btn--full { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--crimson-soft);
  color: var(--crimson);
  border: 1px solid var(--crimson-line);
}

.badge--dark {
  background: rgba(159, 29, 35, 0.16);
  color: #ffd4d4;
  border-color: rgba(255, 180, 180, 0.18);
}

.badge__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 0 rgba(159, 29, 35, 0.55);
  animation: pulse 2.2s ease-out infinite;
}

.badge--dark .badge__dot { background: #ff7a7a; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(159, 29, 35, 0.45); }
  70% { box-shadow: 0 0 0 0.45rem rgba(159, 29, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(159, 29, 35, 0); }
}

.icon-btn {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
}
.icon-btn svg { width: 1.25rem; height: 1.25rem; }

/* -------------------------------------------------------------------------- */
/* Header                                                                      */
/* -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(247, 245, 242, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 245, 242, 0.94);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand__logo {
  width: 44px;
  height: 44px;
  max-width: 44px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  display: block;
}

.brand__logo--foot {
  width: 160px;
  max-width: 160px;
  height: auto;
  background: var(--white);
  border-radius: 12px;
  padding: 0.2rem;
}

.hero__logo {
  width: 200px;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  object-fit: contain;
}

.brand__name {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.15;
}

.brand__sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--faint);
  margin-top: 0.1rem;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  padding: 0.45rem 0.75rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(20, 20, 20, 0.04); }

.header__cta { display: none; }
.header__menu { display: grid; }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
}
.drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.42);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }

.drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(20.5rem, 88vw);
  background: var(--white);
  padding: 1.25rem;
  transform: translateX(100%);
  transition: transform 280ms var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-inline-end: 1px solid var(--line);
}
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.drawer a, .drawer .drawer-link {
  display: block;
  padding: 0.85rem 0.4rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.drawer .btn { margin-top: 1rem; }

/* -------------------------------------------------------------------------- */
/* Hero                                                                        */
/* -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: 2.5rem 3.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to left, rgba(20, 20, 20, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 20, 20, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 20%, transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.2vw + 0.6rem, 3.35rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0.85rem 0 1rem;
}

.hero__lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36ch;
  margin-bottom: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.35rem;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  color: var(--faint);
  font-size: var(--text-sm);
  font-weight: 500;
}

.trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-line span::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--crimson);
  opacity: 0.7;
}

.hero-visual {
  position: relative;
  min-height: 22rem;
}

.ui-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.job-card {
  position: relative;
  z-index: 2;
  padding: 1.15rem 1.2rem 1.25rem;
  max-width: 21rem;
  margin-inline-start: auto;
}

.job-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}

.job-card__kicker {
  font-size: 0.72rem;
  color: var(--faint);
  font-weight: 600;
}

.job-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.meta-row {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.meta-row div {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 0.55rem 0.65rem;
  background: var(--paper);
  border-radius: 8px;
}
.meta-row dt { color: var(--faint); }
.meta-row dd { font-weight: 600; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--crimson);
  font-size: 0.78rem;
  font-weight: 600;
}

.progress {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.9rem;
}
.progress i {
  height: 4px;
  flex: 1;
  border-radius: 99px;
  background: var(--line);
}
.progress i.is-on { background: var(--crimson); }

.float-note,
.bot-card {
  position: absolute;
  z-index: 3;
}

.float-note {
  top: 0.4rem;
  inset-inline-end: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.8rem;
  max-width: 13.5rem;
  animation: floaty 5.5s var(--ease) infinite;
}

.float-note__ico {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: var(--crimson-soft);
  color: var(--crimson);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.float-note strong { display: block; font-size: 0.78rem; }
.float-note span { font-size: 0.7rem; color: var(--faint); }

.bot-card {
  bottom: 0;
  inset-inline-start: 0;
  width: min(16.5rem, 78%);
  overflow: hidden;
  animation: floaty 6.5s 0.4s var(--ease) infinite;
}

.bot-card__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  background: var(--dark);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
}

.bot-card__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #3ddc84;
}

.bot-card__body { padding: 0.85rem; background: #f3f0ea; }

.bubble {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px;
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
  margin-bottom: 0.55rem;
}

.chip-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--crimson);
  color: var(--white);
  border-radius: 8px;
  padding: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* -------------------------------------------------------------------------- */
/* Cards                                                                       */
/* -------------------------------------------------------------------------- */

.grid-6 {
  display: grid;
  gap: 0.9rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.2rem 1.3rem;
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.service-card__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--crimson-soft);
  color: var(--crimson);
}
.service-card__icon svg { width: 1.2rem; height: 1.2rem; }

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.service-card p {
  color: var(--muted);
  font-size: var(--text-sm);
}

.why-grid {
  display: grid;
  gap: 1rem;
}

.why-item {
  padding: 1.4rem 1.2rem;
  border-top: 1px solid var(--line-strong);
  transition: border-color var(--duration) var(--ease);
}
.why-item:hover { border-top-color: var(--crimson); }

.why-item__num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--crimson);
  margin-bottom: 0.7rem;
  letter-spacing: 0.04em;
}

.why-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.why-item p {
  color: var(--muted);
  font-size: var(--text-sm);
}

/* -------------------------------------------------------------------------- */
/* CTA Banner                                                                  */
/* -------------------------------------------------------------------------- */

.cta-banner {
  background: var(--dark);
  color: var(--white);
  border-radius: 0;
  padding-block: 4rem;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(159, 29, 35, 0.28), transparent 46%),
    linear-gradient(to left, rgba(20, 20, 20, 0.08) 1px, transparent 1px);
  background-size: auto, 64px 64px;
  pointer-events: none;
}

.cta-banner .container {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.7rem 0 0.7rem;
  max-width: 16ch;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 36ch;
  margin-bottom: 1.4rem;
}

.bot-mock {
  background: #1c1a18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 22rem;
  margin-inline-start: auto;
}

.bot-mock__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  font-weight: 600;
}

.bot-mock__msgs { padding: 1rem; display: grid; gap: 0.55rem; }

.msg {
  max-width: 92%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.6;
}

.msg--in {
  background: #2a2724;
  color: rgba(255, 255, 255, 0.88);
  border-end-start-radius: 4px;
}

.msg--out {
  margin-inline-start: auto;
  background: var(--crimson);
  color: var(--white);
  border-end-end-radius: 4px;
}

/* -------------------------------------------------------------------------- */
/* Trust / License                                                             */
/* -------------------------------------------------------------------------- */

.trust-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.license-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.license-card__trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
  cursor: zoom-in;
}

.license-card img,
.license-card__fallback {
  width: 100%;
  aspect-ratio: 1000 / 707;
  object-fit: contain;
  background: #f3f1ec;
}

.license-card__cta {
  position: absolute;
  inset-inline-end: 0.8rem;
  bottom: 0.8rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.trust-copy h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.trust-copy p { color: var(--muted); margin-bottom: 1.25rem; }

.fact-list {
  display: grid;
  gap: 0.75rem;
}

.fact {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.85rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.fact svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--crimson);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.fact strong { display: block; font-size: 0.92rem; }
.fact span, .fact a { color: var(--muted); font-size: 0.88rem; }
.fact a:hover { color: var(--crimson); }

/* -------------------------------------------------------------------------- */
/* Contact hub / Ads / Location                                                */
/* -------------------------------------------------------------------------- */

.hub-grid {
  display: grid;
  gap: 0.9rem;
}

.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.2rem 1.2rem;
  border-inline-start: 3px solid var(--crimson);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  min-height: 100%;
}
.hub-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.hub-card--tg { border-inline-start-color: var(--telegram); }
.hub-card--ig { border-inline-start-color: var(--instagram); }
.hub-card--ch { border-inline-start-color: var(--charcoal); }

.hub-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--faint);
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}

.hub-card h3 { font-size: 1.05rem; font-weight: 700; }
.hub-card p { color: var(--muted); font-size: 0.9rem; margin: 0.25rem 0 1rem; }
.hub-card .btn { margin-top: auto; }

.ads {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.ads-box {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
}

.ads-box h2 { margin: 0.35rem 0 0.55rem; }
.ads-box p { color: var(--muted); margin-bottom: 1.1rem; max-width: 36ch; }

.ads-aside {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  background: var(--paper);
}

.ads-aside small {
  display: block;
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.ads-aside strong {
  font-size: 1.15rem;
  direction: ltr;
  display: inline-block;
}

.location-grid {
  display: grid;
  gap: 1.25rem;
}

.place-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.4rem;
}

.place-card .section-title { margin-bottom: 0.6rem; }

.phone-xl {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  direction: ltr;
  text-align: right;
  margin: 0.9rem 0 1.2rem;
}

.map-ph {
  min-height: 18rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, #efebe4, #e7e1d7);
  position: relative;
  overflow: hidden;
}

.map-ph svg { width: 100%; height: 100%; position: absolute; inset: 0; }

.map-pin {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.map-pin i {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--crimson);
  border-radius: 50%;
}

/* -------------------------------------------------------------------------- */
/* FAQ / Final CTA / Footer                                                    */
/* -------------------------------------------------------------------------- */

.faq-list {
  display: grid;
  gap: 0.55rem;
  max-width: 46rem;
  margin-inline: auto;
}

.accordion {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: right;
  padding: 1rem 1.1rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.accordion__icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease);
}
.accordion__icon svg { width: 0.85rem; height: 0.85rem; }
.accordion.is-open .accordion__icon {
  transform: rotate(45deg);
  background: var(--crimson-soft);
  color: var(--crimson);
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms var(--ease);
}
.accordion.is-open .accordion__panel { grid-template-rows: 1fr; }

.accordion__content {
  overflow: hidden;
}

.accordion__content p {
  padding: 0 1.1rem 1.05rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.final-cta {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding-block: 5rem;
  position: relative;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(159, 29, 35, 0.22), transparent 55%);
  pointer-events: none;
}

.final-cta .container { position: relative; }

.final-cta h2 {
  font-size: clamp(1.8rem, 3vw + 0.8rem, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.7rem;
}

.final-cta p {
  color: #f2ece6;
  margin-bottom: 1.6rem;
}

.final-cta .hero__actions { justify-content: center; }

.footer {
  background: #1c1a18;
  color: #f3efe9;
  padding: 3rem 0 2.5rem;
  font-size: 0.9rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer .brand__name { color: var(--white); }
.footer .brand { margin-bottom: 0.85rem; }

.footer h3 {
  color: var(--white);
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
}

.footer a { color: #ffffff; }
.footer a:hover { color: #ffffff; opacity: 0.85; }
.footer ul { display: grid; gap: 0.45rem; }

.footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.1rem;
  font-size: 0.78rem;
  color: #d9d3cb;
}

/* -------------------------------------------------------------------------- */
/* Mobile sticky CTA / Lightbox / Reveal                                       */
/* -------------------------------------------------------------------------- */

.mobile-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(247, 245, 242, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 1.25rem;
}
.lightbox.is-open { display: grid; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 14, 12, 0.82);
}

.lightbox__dialog {
  position: relative;
  width: min(52rem, 100%);
  max-height: min(90vh, 52rem);
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: auto;
  padding: 0.75rem;
}

.lightbox__dialog img {
  width: 100%;
  height: auto;
  max-height: min(82vh, 42rem);
  object-fit: contain;
  border-radius: 8px;
  background: #f3f1ec;
}

.lightbox__close {
  position: absolute;
  top: 0.85rem;
  inset-inline-start: 0.85rem;
  z-index: 2;
  background: var(--white);
}

.drawer[hidden],
.lightbox[hidden],
.sheet[hidden] { display: none !important; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                  */
/* -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  .hero { padding-block: 3.5rem 4.5rem; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 2rem; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .service-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.25rem; align-items: start; }
  .service-card--featured .service-card__icon { margin-bottom: 0; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .ads-box { grid-template-columns: 1.4fr 0.8fr; padding: 2.25rem; }
  .location-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner .container { grid-template-columns: 1.1fr 0.9fr; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .mobile-cta { display: none; }
  .footer { padding-bottom: 2.5rem; }
}

@media (min-width: 1024px) {
  :root { --header-h: 4.5rem; }
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .header__menu { display: none; }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .service-card--featured { grid-column: auto; display: block; }
  .service-card--featured .service-card__icon { margin-bottom: 1rem; }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .section { padding-block: var(--space-20); }
}

@media (min-width: 1280px) {
  .hero { padding-block: 4.5rem 5.5rem; }
}

@media (max-width: 767px) {
  html, body {
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
  }

  .header,
  .drawer,
  main,
  .footer,
  .mobile-cta,
  .skip-link {
    display: none !important;
  }

  .m-app { display: block !important; }
}

.m-app {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100svh;
  background: #f6f4f1;
  padding: env(safe-area-inset-top) 0 7.25rem;
  color: #161513;
}

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

.m-app a { color: inherit; text-decoration: none; }

.m-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 8px 16px;
  background: #f6f4f1;
  border-bottom: 1px solid #e6e1da;
  position: sticky;
  top: 0;
  z-index: 20;
}

.m-logo {
  display: block;
  width: 36px;
  height: 36px;
  max-width: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.m-brand {
  font-size: 15px;
  font-weight: 800;
  margin-inline-end: auto;
}

.m-head__side {
  display: flex;
  gap: 8px;
  align-self: auto;
  justify-content: flex-end;
  margin-bottom: 0;
  flex-shrink: 0;
}

.m-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e6e1da;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  color: inherit;
}

.m-icon svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.m-page {
  padding: 0 16px 16px;
}

.m-hero {
  background: #fff;
  border: 1px solid #e6e1da;
  border-radius: 18px;
  padding: 18px 16px 16px;
  margin-bottom: 20px;
}

.m-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #9f1d23;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.m-kicker svg {
  width: 14px;
  height: 14px;
}

.m-hero h1 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.45;
}

.m-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
}

.m-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.m-btn--main {
  background: #9f1d23;
  color: #fff;
  margin-bottom: 8px;
}

.m-btn--ghost {
  background: #fff;
  color: #161513;
  border: 1px solid #d4cec5;
}

.m-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.m-points span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #5e5a56;
  background: #f6f4f1;
  border: 1px solid #e6e1da;
  border-radius: 999px;
  padding: 5px 9px;
}

.m-points svg {
  width: 13px;
  height: 13px;
  color: #9f1d23;
}

.m-h {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #8a847c;
}

.m-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.m-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 92px;
  padding: 14px 8px 12px;
  text-align: center;
  background: #fff;
  color: #161513;
  border: 1px solid #e6e1da;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.m-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #f6ecec;
  color: #9f1d23;
  flex-shrink: 0;
}

.m-ico svg {
  width: 18px;
  height: 18px;
}

.m-ico--tg { background: #e8f6fc; color: #1a8bb8; }
.m-ico--ig { background: #fdeef6; color: #c13584; }
.m-ico--ch { background: #eef1f4; color: #2c2c2c; }

.m-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.m-list a {
  display: grid;
  grid-template-columns: 38px 1fr 16px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e6e1da;
  border-radius: 14px;
}

.m-list__txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.m-list__txt strong {
  font-size: 14px;
  font-weight: 700;
}

.m-list__txt b {
  font-size: 12px;
  font-weight: 600;
  color: #8a847c;
}

.m-chev {
  width: 16px;
  height: 16px;
  color: #c4bfb6;
}

.m-license {
  display: block;
  width: 100%;
  padding: 8px;
  background: #fff;
  border: 1px solid #e6e1da;
  border-radius: 16px;
  position: relative;
  font-family: inherit;
}

.m-license img {
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 707;
  object-fit: contain;
  background: #f3f1ec;
  border-radius: 10px;
}

.m-license span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: #fff;
  border: 1px solid #e6e1da;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.m-license span svg {
  width: 14px;
  height: 14px;
}

.m-meta { margin-top: 10px; }

.m-addr,
.m-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 4px 0;
  font-size: 14px;
  color: #5e5a56;
  line-height: 1.6;
}

.m-addr svg,
.m-phone svg {
  width: 16px;
  height: 16px;
  color: #9f1d23;
  flex-shrink: 0;
}

.m-phone {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #161513;
  direction: ltr;
  unicode-bidi: isolate;
}

.m-ads {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 16px;
  margin-bottom: 8px;
  background: #fff;
  color: #161513;
  border: 1px solid #e6e1da;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 14px 12px;
}

.m-bar {
  position: fixed;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #f6f4f1;
  border-top: 1px solid #e6e1da;
}

.m-bar .m-btn { margin: 0; min-height: 46px; font-size: 14px; color: inherit; }
.m-bar .m-btn--main { color: #fff; }
.m-bar .m-btn--ghost { color: #161513; background: #fff; }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
}

.sheet.is-open { display: block; }

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 14, 12, 0.45);
}

.sheet__panel {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  max-height: 78dvh;
  background: #f6f4f1;
  border-radius: 18px 18px 0 0;
  padding: 14px 14px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sheet__head h2 {
  font-size: 16px;
  font-weight: 800;
}

.sheet__body {
  overflow: auto;
  display: grid;
  gap: 8px;
}

.sheet__body details {
  background: #fff;
  border: 1px solid #e6e1da;
  border-radius: 12px;
  padding: 2px 12px;
}

.sheet__body summary {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 0;
}

.sheet__body summary::-webkit-details-marker { display: none; }

.sheet__body p {
  color: #5e5a56;
  font-size: 13px;
  padding-bottom: 12px;
}

@media (min-width: 768px) {
  .m-app,
  .sheet {
    display: none !important;
  }
}

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