/* قرار بهار، صفحه‌ی پیش‌فروش دنیای ماموت (mammutworld.com/bahar). اول گوشی؛ رنگ‌ها: گرافیتی و قرمز دنیای ماموت، سرمه‌ای فیلم */
@font-face { font-family: 'QB'; src: url('/wp-content/uploads/2024/06/IRANSansXFaNum-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'QB'; src: url('/wp-content/uploads/2024/06/IRANSansXFaNum-DemiBold.ttf') format('truetype'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'QB'; src: url('/wp-content/uploads/2024/06/IRANSansXFaNum-Bold.ttf') format('truetype'); font-weight: 700 900; font-display: swap; }

:root {
  --ink: #1c2230;
  --ink-2: #4a5265;
  --ink-3: #7a8293;
  --paper: #f6f4ef;
  --card: #ffffff;
  --line: #e4e0d6;
  --red: #e30613;
  --red-2: #b8040f;
  --navy: #1f2a44;
  --green: #2f9e5f;
  --r: 18px;
  --gut: 16px;
  --shadow: 0 1px 0 rgba(28, 34, 48, 0.04), 0 14px 34px -18px rgba(28, 34, 48, 0.28);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font: 400 16px/1.85 'QB', Tahoma, sans-serif; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, p { margin: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; padding: 8px 14px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid #4c8dff; outline-offset: 2px; }

/* نوار بالا: روی تصویر */
.top { position: absolute; z-index: 5; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) var(--gut) 12px; }
.brand img { width: 132px; height: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35)); }
.top-cta { padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.34); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* دکمه‌ها */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 14px; border: 0; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: background-color 0.15s ease, transform 0.15s ease; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(227, 6, 19, 0.7); }
.btn-red:hover { background: var(--red-2); }
.btn-glass { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.36); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.24); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-full { width: 100%; }
.btn[disabled] { opacity: 0.65; cursor: progress; }

/* سرصفحه: تصویر جاده‌ی «قرار بهار» */
.hero { position: relative; min-height: min(92svh, 820px); display: flex; align-items: flex-end; color: #fff; background: #20271f; overflow: hidden; }
.hero-pic, .hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-pic img { object-fit: cover; object-position: 50% 45%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(14, 18, 28, 0.6) 0%, rgba(14, 18, 28, 0) 18%, rgba(14, 18, 28, 0) 50%, rgba(14, 18, 28, 0.88) 86%, rgba(14, 18, 28, 0.94) 100%); }
.hero-txt { position: relative; z-index: 2; width: 100%; padding: 0 var(--gut) max(26px, env(safe-area-inset-bottom)); display: grid; gap: 6px; }
.kicker { font-size: 14px; font-weight: 600; opacity: 0.92; letter-spacing: 0.2px; }
.hero h1 { font-size: 44px; line-height: 1.25; font-weight: 900; }
.lead { font-size: 18px; font-weight: 500; opacity: 0.95; }
.hero-acts { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 14px; }
.hero-acts .btn { white-space: nowrap; padding: 0 18px; }

/* شرایط */
.facts { max-width: 1180px; margin: -2px auto 0; padding: 20px var(--gut) 8px; display: grid; gap: 10px; }
.fact { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.fact svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fact small { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.fact b { display: block; font-size: 16.5px; font-weight: 700; line-height: 1.6; }
.cap { display: flex; align-items: center; gap: 8px; padding: 2px 6px; font-weight: 700; color: var(--red); font-size: 15px; }
.cap span { font-size: 10px; }

/* بخش‌ها */
.sec-h { display: grid; gap: 2px; margin-bottom: 14px; }
.sec-h h2 { font-size: 22px; font-weight: 800; line-height: 1.5; }
.sec-h p { font-size: 14px; color: var(--ink-3); }
.trailers, .steps, .form-wrap { max-width: 1180px; margin: 0 auto; padding: 30px var(--gut) 6px; }
.tr-row { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: 0 calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; }
.tr-row::-webkit-scrollbar { display: none; }
.tr { scroll-snap-align: start; display: grid; grid-template-rows: 1fr auto; align-items: center; justify-items: center; gap: 10px; min-height: 168px; padding: 18px 14px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.tr img { width: 100%; max-height: 104px; object-fit: contain; }
.tr b { font-size: 16px; font-weight: 700; }
.tr:hover { border-color: #cfc8b8; }
.tr.on { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.14), var(--shadow); }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; display: grid; gap: 2px; padding: 14px 64px 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 16px; }
.steps b { font-size: 16px; }
.steps span { font-size: 14px; color: var(--ink-2); }

/* فرم */
.form-wrap { padding-bottom: 30px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 22px 18px; }
.grid { display: grid; gap: 14px; }
.fld { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.fld > span, .fld > legend { font-size: 14.5px; font-weight: 600; color: var(--ink); padding: 0; }
.fld i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.fld input, .fld select { width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 13px; background: #fbfaf7; font-size: 16px; transition: border-color 0.15s ease, background-color 0.15s ease; }
.fld select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8293' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: left 14px center; padding-inline-end: 14px; padding-inline-start: 40px; }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--navy); background: #fff; }
.fld input[dir='ltr'] { text-align: right; letter-spacing: 0.5px; }
.fld input[dir='ltr']::placeholder { text-align: right; }
.fld.bad input, .fld.bad select { border-color: var(--red); background: #fff6f6; }
.err { font-style: normal; font-size: 13px; color: var(--red); min-height: 0; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fbfaf7; font-size: 15px; font-weight: 500; transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease; }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid #4c8dff; outline-offset: 2px; }
.fld.bad .chips span { border-color: rgba(227, 6, 19, 0.5); }
/* خانه‌ی پنهان برای ربات‌ها: بی جابه‌جایی به چپ (در صفحه‌ی راست‌به‌چپ پهنای صفحه را بزرگ می‌کند) */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
#qb-form .btn-full { margin-top: 20px; }
.note { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); text-align: center; }
.form-err { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fff1f1; color: var(--red-2); font-size: 14px; font-weight: 600; text-align: center; }
.done { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 34px 20px; }
.done[hidden] { display: none; }
.done svg { width: 64px; height: 64px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.done h2 { font-size: 21px; font-weight: 800; }
.done p { color: var(--ink-2); }
.done .hours { font-size: 14px; color: var(--ink-3); }
.done .btn { margin-top: 12px; }

/* پایین صفحه */
.foot { display: grid; justify-items: center; gap: 4px; padding: 26px var(--gut) max(30px, env(safe-area-inset-bottom)); color: var(--ink-2); font-size: 14px; border-top: 1px solid var(--line); }
.foot img { width: 140px; margin-bottom: 6px; }
.foot a { text-decoration: none; }

/* فیلم */
.film { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; }
.film::backdrop { background: rgba(8, 10, 16, 0.92); }
.film[open] { display: grid; place-items: center; }
.film video { width: auto; height: min(88svh, 1280px); max-width: 94vw; aspect-ratio: 9 / 16; object-fit: contain; border-radius: 16px; background: #000; }
.film-x { position: fixed; top: max(14px, env(safe-area-inset-top)); left: 14px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; }
.film-x svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; fill: none; }

/* تبلت و میز */
@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cap { grid-column: 1 / -1; }
  .tr-row { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 4px 0 14px; }
  .steps ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li { padding: 64px 18px 18px; }
  .steps li::before { top: 18px; transform: none; inset-inline-start: 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fld.wide { grid-column: 1 / -1; }
  .card { padding: 30px 30px; }
  .form-wrap { max-width: 760px; }
}
@media (min-width: 960px) {
  :root { --gut: 28px; }
  .hero { min-height: auto; max-width: 1180px; margin: 84px auto 0; border-radius: 28px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: center; background: var(--navy); }
  .hero::after { display: none; }
  .hero-pic { position: relative; grid-column: 2; grid-row: 1; height: auto; aspect-ratio: 9 / 16; }
  .hero-pic img { position: absolute; }
  .hero-txt { grid-column: 1; grid-row: 1; padding: 48px 56px; gap: 10px; }
  .hero h1 { font-size: 76px; }
  .lead { font-size: 22px; }
  .kicker { font-size: 16px; }
  .hero-acts { grid-template-columns: auto auto; justify-content: start; margin-top: 22px; }
  .top { position: absolute; top: 0; left: 0; right: 0; padding: 18px max(var(--gut), calc((100vw - 1180px) / 2)); }
  .brand img { width: 150px; filter: none; }
  .top-cta { background: var(--red); border-color: var(--red); }
  .tr-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts { padding: 20px 0 8px; }
  .trailers, .steps { padding-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tr, .chips span, .fld input, .fld select { transition: none; }
}
