/* =========================================================
   Hapkido Academy — English home page
   ساختار: توکن‌ها ← پایه ← هدر ← هیرو ← بخش‌ها ← فوتر ← دسترس‌پذیری
   ========================================================= */

/* ---------- فونت‌ها (self-host، متغیر وزن + عرض) ---------- */
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../vendor/fonts/archivo-latin-wdth.woff2") format("woff2-variations"), url("../vendor/fonts/archivo-latin-wdth.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../vendor/fonts/archivo-latin-ext-wdth.woff2") format("woff2-variations"), url("../vendor/fonts/archivo-latin-ext-wdth.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* زیرمجموعه ۴KB فقط برای 合氣道 و 화원유 */
@font-face {
  font-family: "Hapkido KR"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../vendor/fonts/hapkido-glyphs-kr.woff2") format("woff2");
}

/* ---------- توکن‌های طراحی ---------- */
:root {
  --ink: #0F1B2D;          /* سرمه‌ای تیره دوبوک */
  --ink-2: #172A44;
  --red: #C8102E;          /* قرمز تگوک */
  --red-dark: #A00C24;
  --red-on-dark: #FF6273;  /* قرمز خوانا روی زمینه تیره */
  --blue: #0047A0;         /* آبی تگوک (لینک‌ها) */
  --paper: #F2F4F7;
  --line: #DCE1E8;
  --text: #1B2433;
  --muted: #566275;
  --white: #fff;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ko: "Hapkido KR", "Noto Serif KR", serif;

  --header-h: 76px;
  --radius-s: 4px;
  --radius-m: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px -12px rgba(15, 27, 45, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* بازنویسی متغیرهای بوت‌استرپ */
  --bs-body-font-family: var(--font);
  --bs-body-color: var(--text);
  --bs-link-color-rgb: 0, 71, 160;
  --bs-border-color: var(--line);
}

/* ---------- پایه ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, .h5 { font-family: var(--font); font-stretch: 112%; font-weight: 800; letter-spacing: -.015em; color: inherit; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: var(--red); }
.ico { width: 1.05em; height: 1.05em; flex: none; vertical-align: -.15em; margin-inline-end: .45em; }
main:focus { outline: none; }

/* ---------- دکمه‌ها ---------- */
.btn { --bs-btn-font-weight: 700; font-stretch: 105%; border-radius: var(--radius-s); padding: .7rem 1.25rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.0625rem; }
.btn-brand { --bs-btn-color: #fff; --bs-btn-bg: var(--red); --bs-btn-border-color: var(--red);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--red-dark); --bs-btn-hover-border-color: var(--red-dark);
  --bs-btn-active-bg: var(--red-dark); --bs-btn-active-color: #fff; }
.btn-ghost { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.55); --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff; }
.btn-outline-ink { --bs-btn-color: var(--ink); --bs-btn-border-color: var(--ink); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--ink); --bs-btn-hover-border-color: var(--ink); border-width: 2px; }

/* ---------- لینک پرش ---------- */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 2000; background: #fff; color: var(--ink); padding: .75rem 1rem; font-weight: 700; border-radius: var(--radius-s); }
.skip-link:focus { top: 1rem; }

/* ---------- نوار بالا ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.75); font-size: .875rem; position: relative; z-index: 1031; }
.topbar .container-xl { min-height: 40px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__info { gap: 1.5rem; }
.topbar__info li { display: flex; align-items: center; }
.social { gap: .25rem; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: inherit; transition: background-color .2s, color .2s; }
.social a:hover { background: rgba(255,255,255,.1); color: #fff; }
.social svg { width: 18px; height: 18px; }
.lang { display: flex; border-inline-start: 1px solid rgba(255,255,255,.2); padding-inline-start: .75rem; gap: .25rem; }
.lang a { padding: .25rem .5rem; border-radius: var(--radius-s); font-weight: 600; }
.lang a[aria-current="true"] { color: #fff; background: rgba(255,255,255,.1); }
.lang a[lang="fa"] { font-family: Vazirmatn, Tahoma, sans-serif; }

/* ---------- هدر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  transition: box-shadow .3s var(--ease);
}
/* پس‌زمینه روی شبه‌عنصر: backdrop-filter روی خود هدر، offcanvas (position:fixed) داخلش را خراب می‌کند */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(15, 27, 45, .96); opacity: 0;
  transition: opacity .3s var(--ease);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header::before { background: rgba(15, 27, 45, .85); backdrop-filter: blur(12px) saturate(140%); }
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -10px rgba(0,0,0,.5); }
.site-header.is-scrolled::before { opacity: 1; }
.site-header .navbar { min-height: var(--header-h); padding-block: 0; }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; margin-inline-end: 2rem; }
.brand:hover { color: #fff; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-stretch: 118%; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand__text small { font-size: .8rem; opacity: .7; margin-top: .25rem; letter-spacing: .02em; }

.navbar-toggler { border: 0; padding: 0; width: 44px; height: 44px; color: #fff; display: grid; place-items: center; }
.navbar-toggler svg { width: 26px; height: 26px; }
.navbar-toggler:focus { box-shadow: none; }

.site-header .nav-link { color: rgba(255,255,255,.88); font-weight: 600; font-size: .975rem; padding: .5rem .8rem !important; border-radius: var(--radius-s); }
.site-header .nav-link:hover, .site-header .nav-link:focus-visible, .site-header .nav-link.show { color: #fff; background: rgba(255,255,255,.08); }
.dropdown-menu { --bs-dropdown-border-radius: var(--radius-m); --bs-dropdown-border-color: transparent; --bs-dropdown-link-active-bg: var(--red);
  box-shadow: 0 18px 40px -12px rgba(15,27,45,.35); padding: .5rem; min-width: 15rem; }
.dropdown-item { border-radius: var(--radius-s); padding: .55rem .85rem; font-weight: 500; }
.dropdown-item:hover { background: var(--paper); color: var(--red); }

/* منوی موبایل */
@media (max-width: 1199.98px) {
  .offcanvas { background: var(--ink); color: #fff; --bs-offcanvas-width: min(360px, 88vw); }
  .offcanvas-header { border-bottom: 1px solid rgba(255,255,255,.1); }
  .offcanvas .nav-link { font-size: 1.1rem; padding: .8rem .5rem !important; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0; }
  .offcanvas .dropdown-menu { background: rgba(255,255,255,.04); box-shadow: none; margin-bottom: .5rem; }
  .offcanvas .dropdown-item { color: rgba(255,255,255,.8); }
  .offcanvas .dropdown-item:hover { background: rgba(255,255,255,.08); color: #fff; }
}

/* ---------- هیرو ---------- */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);       /* زیر هدر شفاف قرار می‌گیرد */
  min-height: clamp(620px, calc(100svh - 40px), 880px); /* منهای ارتفاع نوار بالا تا سه اصل در دید اول باشند */
  display: flex; flex-direction: column;
  color: #fff; background: var(--ink);
  overflow: hidden; isolation: isolate;
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; }
.hero__media img { object-fit: cover; object-position: 60% 30%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(15,27,45,.94) 0%, rgba(15,27,45,.78) 42%, rgba(15,27,45,.25) 100%),
    linear-gradient(0deg, rgba(15,27,45,.9) 0%, rgba(15,27,45,0) 40%);
}
.hero__inner { flex: 1; display: flex; align-items: center; padding-top: calc(var(--header-h) + 3rem); padding-bottom: 3rem; }
.hero__content { max-width: 40rem; }
.hero__kicker { font-weight: 600; color: var(--red-on-dark); margin-bottom: 1rem; font-size: 1.05rem; display: flex; align-items: center; gap: .75rem; }
.hero__kicker::before { content: ""; width: 2.5rem; height: 3px; background: currentColor; border-radius: 2px; }
.hero__title { font-size: clamp(2.75rem, 1.6rem + 5vw, 5.75rem); line-height: .95; font-stretch: 125%; letter-spacing: -.03em; margin-bottom: 1.5rem; text-wrap: balance; }
.hero__lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: rgba(255,255,255,.85); max-width: 34rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* عنصر امضا: هانجا عمودی + دایره */
.hero__glyph {
  position: absolute; z-index: -1; pointer-events: none;
  right: max(2vw, calc((100vw - 1320px) / 2)); top: 50%;
  transform: translateY(-46%);
  display: grid; place-items: center;
  width: clamp(260px, 34vw, 520px); aspect-ratio: 1 / 1.5;
}
.hero__glyph span {
  font-family: var(--font-ko); font-weight: 700;
  writing-mode: vertical-rl; text-orientation: upright;
  font-size: clamp(5rem, 12vw, 11rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.45);
  letter-spacing: .05em;
}
.hero__circle { position: absolute; width: 100%; top: 50%; left: 0; transform: translateY(-50%) rotate(-90deg); overflow: visible; }
.hero__circle circle { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 591; stroke-dashoffset: 591; animation: draw-circle 1.8s .3s var(--ease) forwards; }
@keyframes draw-circle { to { stroke-dashoffset: 30; } }

/* سه اصل */
.principles { border-top: 1px solid rgba(255,255,255,.14); background: linear-gradient(0deg, rgba(15,27,45,.6), rgba(15,27,45,0)); }
.principles__list { display: grid; grid-template-columns: repeat(3, 1fr); }
.principles__list li { display: flex; gap: 1rem; align-items: center; padding: 1.4rem 1.5rem 1.6rem 0; }
.principles__list li + li { border-inline-start: 1px solid rgba(255,255,255,.14); padding-inline-start: 1.5rem; }
.principles__ko { font-family: var(--font-ko); font-size: 2.25rem; line-height: 1; color: var(--red-on-dark); flex: none; width: 2.75rem; }
.principles__list strong { display: block; font-stretch: 112%; font-size: 1.05rem; }
.principles__list span:not(.principles__ko) { color: rgba(255,255,255,.72); font-size: .95rem; }

/* ---------- بخش‌های عمومی ---------- */
.section { padding-block: clamp(4rem, 3rem + 4vw, 7rem); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #fff; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.section__title { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); line-height: 1.02; margin-bottom: 0; text-wrap: balance; }
.section__sub { color: var(--muted); max-width: 36rem; margin: .85rem 0 0; font-size: 1.075rem; }
.section__tools { display: flex; align-items: center; gap: 1.25rem; }

.link-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; padding-block: .5rem; }
.link-more svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-more:hover { color: var(--red); }
.link-more:hover svg { transform: translateX(4px); }
.section--ink .link-more { color: #fff; }
.section--ink .link-more:hover { color: var(--red-on-dark); }

/* ---------- اخبار ---------- */
.slider-nav { display: flex; gap: .5rem; }
.slider-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; transition: all .2s; }
.slider-btn:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; }
.slider-btn:disabled { opacity: .35; cursor: default; }
.slider-btn svg { width: 20px; height: 20px; }

/* اسلایدر بومی با scroll-snap (بدون کتابخانه) */
.news-track {
  --gap: 1.75rem; --per: 3;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--gap) * (var(--per) - 1)) / var(--per));
  gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: 4px; margin: -4px;
}
.news-track::-webkit-scrollbar { display: none; }
.news-track > * { scroll-snap-align: start; }
.news-progress { height: 3px; background: var(--line); border-radius: 2px; margin-top: 2rem; overflow: hidden; }
.news-progress span { display: block; height: 100%; width: 33%; background: var(--red); border-radius: 2px; transform-origin: left; transition: transform .2s linear, width .2s; }
@media (max-width: 1199.98px) { .news-track { --per: 2.2; --gap: 1.25rem; } }
@media (max-width: 767.98px)  { .news-track { --per: 1.15; --gap: 1rem; } }
.news-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.news-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.date-badge { position: absolute; top: 1rem; left: 1rem; background: var(--red); color: #fff; border-radius: var(--radius-s); text-align: center; padding: .45rem .7rem .5rem; line-height: 1.1; display: flex; flex-direction: column; min-width: 3.6rem; box-shadow: 0 6px 16px -6px rgba(200,16,46,.6); }
.date-badge span { font-size: .72rem; font-weight: 600; opacity: .9; }
.date-badge b { font-size: 1.5rem; font-stretch: 112%; font-weight: 800; }
.news-card__body { padding: 1.35rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.news-card__tag { font-size: .85rem; font-weight: 700; color: var(--red); margin-bottom: .5rem; }
.news-card__title { font-size: 1.2rem; line-height: 1.3; font-stretch: 105%; margin-bottom: .65rem; }
.news-card__title a { color: var(--ink); text-decoration: none; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; } /* کل کارت قابل کلیک */
.news-card__title a:hover { color: var(--red); }
.news-card__excerpt { color: var(--muted); font-size: .97rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- برنامه‌ها ---------- */
.program { position: relative; height: 100%; min-height: 440px; border-radius: var(--radius-m); overflow: hidden; background: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; }
.program__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.program::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,27,45,0) 35%, rgba(15,27,45,.35) 100%); }
.program:hover .program__img { transform: scale(1.05); }
.program__panel { position: relative; z-index: 1; margin: 1rem; background: #fff; border-radius: var(--radius-s); padding: 1.1rem 1.2rem 1.25rem; border-top: 4px solid var(--red); transition: transform .35s var(--ease); }
.program:hover .program__panel { transform: translateY(-6px); }
.program__meta { font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: .3rem; }
.program__title { font-size: 1.3rem; margin-bottom: .4rem; font-stretch: 110%; }
.program__title a { color: var(--ink); text-decoration: none; }
.program:hover .program__title a { color: var(--red); }
.program__text { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- مسیر کمربند ---------- */
.belt-bar { display: flex; height: 22px; border-radius: 4px; overflow: hidden; margin-bottom: 2.5rem; box-shadow: inset 0 0 0 1px rgba(15,27,45,.12); }
.belt-bar span {
  flex: 1; background-color: var(--belt);
  /* بافت دوخت کمربند */
  background-image:
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(0,0,0,.08) 4px 5px),
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.12));
}
.belt-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: belt; margin: 0; }
.belt-steps li { counter-increment: belt; display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: #fff; position: relative; }
.belt-steps li::after { content: counter(belt); position: absolute; top: .7rem; right: .9rem; font-size: .8rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.belt-steps__swatch { width: 14px; align-self: stretch; min-height: 44px; border-radius: 3px; background: var(--belt); box-shadow: inset 0 0 0 1px rgba(15,27,45,.15); flex: none; }
.belt-steps h3 { font-size: 1.05rem; margin: 0 0 .2rem; font-stretch: 108%; }
.belt-steps p { margin: 0; font-size: .93rem; color: var(--muted); }
.belt-steps li:last-child { background: var(--ink); color: #fff; border-color: var(--ink); }
.belt-steps li:last-child p, .belt-steps li:last-child::after { color: rgba(255,255,255,.7); }
.belt-steps li:last-child .belt-steps__swatch { box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }

/* ---------- رویدادها ---------- */
.events { border-top: 1px solid rgba(255,255,255,.14); }
.event { position: relative; display: grid; grid-template-columns: 10rem 1fr auto; gap: 1.5rem 2rem; align-items: center; padding: 1.75rem .5rem; border-bottom: 1px solid rgba(255,255,255,.14); transition: background-color .25s; }
.event:hover { background: rgba(255,255,255,.04); }
.event__date { display: flex; flex-direction: column; line-height: 1; }
.event__date b { white-space: nowrap; font-size: 2.4rem; font-stretch: 120%; font-weight: 800; letter-spacing: -.02em; }
.event__date span { color: rgba(255,255,255,.65); font-weight: 600; margin-top: .4rem; }
.event__type { color: var(--red-on-dark); font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.event__title { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); margin-bottom: .4rem; font-stretch: 110%; }
.event__title a { color: #fff; text-decoration: none; }
.event:hover .event__title a { text-decoration: underline; text-decoration-color: var(--red-on-dark); text-decoration-thickness: 2px; }
.event__place { margin: 0; color: rgba(255,255,255,.7); display: flex; align-items: center; }
.event__status { font-size: .85rem; font-weight: 700; padding: .4rem .8rem; border-radius: 999px; background: rgba(46,158,91,.18); color: #7BE0A3; white-space: nowrap; }
.event__status--soon { background: rgba(242,194,48,.16); color: #F5D370; }

/* ---------- درباره ---------- */
.about__figure { position: relative; }
.about__figure img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--radius-m); }
.about__figure figcaption { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; background: rgba(15,27,45,.88); color: #fff; padding: 1rem 1.2rem; border-radius: var(--radius-s); font-size: .95rem; border-inline-start: 4px solid var(--red); }
@supports (backdrop-filter: blur(6px)) { .about__figure figcaption { background: rgba(15,27,45,.72); backdrop-filter: blur(8px); } }
#about .section__title { margin-bottom: 1.25rem; }
.about__lead { font-size: 1.2rem; color: var(--ink); font-weight: 500; }
#about p { max-width: 36rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 2rem 0; border-top: 1px solid var(--line); }
.facts > div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts > div:nth-child(odd) { padding-inline-end: 1rem; }
.facts dt { font-size: .85rem; color: var(--muted); font-weight: 600; }
.facts dd { margin: .15rem 0 0; font-weight: 700; font-stretch: 108%; font-size: 1.1rem; color: var(--ink); }

/* ---------- همکاران ---------- */
.partners { padding-block: 3rem; border-top: 1px solid var(--line); }
.partners__title { font-size: 1rem; font-stretch: 100%; font-weight: 700; color: var(--muted); text-align: center; margin-bottom: 1.5rem; letter-spacing: 0; }
.partners__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3rem; }
.partners__list li { font-weight: 800; font-stretch: 120%; font-size: 1.15rem; color: #9AA4B2; filter: grayscale(1); transition: color .2s, filter .2s; }
.partners__list li:hover { color: var(--ink); filter: none; }
.partners__list img { height: 48px; width: auto; }

/* ---------- کلاس آزمایشی ---------- */
.trial { background: var(--red); color: #fff; padding-block: clamp(4rem, 3rem + 3vw, 6rem); position: relative; overflow: hidden; isolation: isolate; }
.trial::before { /* دایره نمادین Won، تکرار نقش هیرو */
  content: ""; position: absolute; z-index: -1; width: 640px; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.16); right: -260px; top: -380px;
}
.trial__title { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.5rem); line-height: 1; font-stretch: 122%; margin-bottom: 1rem; }
.trial__text { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 30rem; }
.trial__contact { margin: 1.5rem 0 0; display: grid; gap: .5rem; }
.trial__contact a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.trial__contact a:hover { text-decoration: underline; color: #fff; }
.trial-form { background: #fff; color: var(--text); border-radius: var(--radius-m); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.trial-form .form-label { font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.trial-form .form-control, .trial-form .form-select { min-height: 50px; border-radius: var(--radius-s); border-color: #C5CCD6; font-size: 1rem; }
.trial-form .form-control:focus, .trial-form .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 .2rem rgba(0,71,160,.18); }
.trial-form .btn-brand { margin-top: .5rem; }
.trial-form__note { font-size: .85rem; color: var(--muted); margin: .75rem 0 0; text-align: center; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- فوتر ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-top: 4.5rem; font-size: .975rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.brand--footer { margin-bottom: 1.25rem; }
.brand--footer:hover { text-decoration: none !important; }
.site-footer__about { max-width: 22rem; margin-bottom: 1.25rem; }
.site-footer__title { color: #fff; font-size: 1rem; font-stretch: 110%; margin-bottom: 1rem; }
.site-footer__links li { margin-bottom: .6rem; }
.site-footer__links a { display: inline-block; padding-block: .15rem; }
.site-footer__address { font-style: normal; }
.site-footer__address p { display: flex; align-items: flex-start; margin-bottom: .7rem; }
.site-footer__address .ico { margin-top: .3em; color: var(--red-on-dark); }
.site-footer__bottom { margin-top: 3.5rem; padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .875rem; }

/* ---------- بازگشت به بالا ---------- */
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1020; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background-color .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); color: #fff; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- عملکرد: رندر تنبل بخش‌های پایین صفحه ---------- */
#belts, #events, #about, .partners { content-visibility: auto; contain-intrinsic-size: auto 800px; }

/* ---------- دسترس‌پذیری: فوکوس قابل مشاهده ---------- */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .section--ink :focus-visible, .site-header :focus-visible, .topbar :focus-visible,
.site-footer :focus-visible, .trial :focus-visible, .offcanvas :focus-visible { outline-color: #fff; }
.trial-form :focus-visible { outline-color: var(--blue); }
.news-card:focus-within { box-shadow: 0 0 0 3px var(--blue); }
.news-card__title a:focus-visible { outline: none; }
.program:focus-within { box-shadow: 0 0 0 3px var(--blue); }
.program__title a:focus-visible, .event__title a:focus-visible { outline: none; }
.event:focus-within { outline: 3px solid #fff; outline-offset: -3px; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 991.98px) {
  .hero__glyph { opacity: .55; right: -4vw; }
  .principles__list { grid-template-columns: 1fr; }
  .principles__list li { padding: .9rem 0; }
  .principles__list li + li { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .event { grid-template-columns: 8rem 1fr; }
  .event__date b { font-size: 2rem; }
  .belt-steps { grid-template-columns: repeat(2, 1fr); }
  .event__status { grid-column: 2; justify-self: start; }
}
@media (max-width: 767.98px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__text strong { font-size: 1.02rem; }
  .hero { min-height: auto; }
  .hero__inner { padding-top: calc(var(--header-h) + 2.5rem); padding-bottom: 2.5rem; }
  .hero__glyph { width: 220px; top: 26%; right: -40px; opacity: .3; }
  .hero__actions .btn { flex: 1 1 100%; }
  .principles__list strong { font-size: 1rem; }
  .principles__ko { font-size: 1.75rem; width: 2.25rem; }
  .section__tools .link-more { display: none; }
  .program { min-height: 380px; }
  .belt-bar { height: 16px; margin-bottom: 1.75rem; }
  .belt-steps { grid-template-columns: 1fr; gap: .6rem; }
  .belt-steps li { padding: .8rem 1rem; }
  .event { grid-template-columns: 1fr; gap: .75rem; padding-inline: 0; }
  .event__date { flex-direction: row; align-items: baseline; gap: .6rem; }
  .event__date b { font-size: 1.9rem; }
  .event__date span { margin: 0; }
  .event__status { grid-column: 1; }
  .facts { grid-template-columns: 1fr; }
  .facts > div:nth-child(odd) { padding-inline-end: 0; }
  .partners__list { gap: .75rem 1.75rem; }
  .partners__list li { font-size: 1rem; }
}

/* ---------- حرکت کمتر برای کاربرانی که خواسته‌اند ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__circle circle { stroke-dashoffset: 30; }
}

/* ---------- چاپ ---------- */
@media print {
  .topbar, .site-header, .to-top, .slider-nav, .trial-form, .hero__glyph { display: none !important; }
  .hero { min-height: auto; color: #000; background: none; }
  .hero::before, .hero__media { display: none; }
}
