/* ==========================================================================
   مرکز طراحی لباس ایران — نسخه ۳
   هویت: برگه الگوی خیاطی + آرشیو آتلیه
   ========================================================================== */

:root {
  --paper: #ffffff;
  --ink: #0b0b0d;
  --graphite: #100d0b;
  --charcoal: #1a1613;
  --ash: #f4f4f6;
  --stone: #ececef;
  --line: rgba(21, 17, 14, 0.16);
  --line-soft: rgba(21, 17, 14, 0.08);
  --line-dark: rgba(255, 255, 255, 0.14);
  --muted: #70707a;
  --muted-dark: #aaa196;
  --accent: #7c2230;
  --accent-soft: rgba(124, 34, 48, 0.08);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --blur: blur(24px) saturate(140%);
  --r-lg: 30px;
  --r-md: 22px;
  --r-sm: 14px;
  --shadow: 0 34px 70px -46px rgba(21, 17, 14, 0.55);
  --shadow-sm: 0 18px 40px -32px rgba(21, 17, 14, 0.45);
  --inset: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

html {
  background: #f4f4f6;
}

body {
  background:
    radial-gradient(1000px 620px at 92% -6%, rgba(214, 216, 224, 0.6), transparent 62%),
    radial-gradient(760px 520px at -4% 30%, rgba(230, 231, 236, 0.8), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f9 46%, #ffffff 100%);
  color: var(--ink);
}

body::before {
  display: none;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.04em;
}

.lead {
  color: var(--muted);
  line-height: 1.95;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  gap: 0.6rem;
}
.eyebrow::before {
  width: 9px;
  height: 9px;
  border: 1px solid var(--muted);
  background: transparent;
}

.wrap {
  max-width: 1180px;
}

.section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.section-head {
  align-items: flex-end;
  border-bottom: 1px dashed rgba(21, 17, 14, 0.24);
  padding-bottom: 1.1rem;
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.9vw, 3.2rem);
  font-weight: 700;
  line-height: 1.24;
}
.section-head .more {
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(21, 17, 14, 0.32);
  border-radius: 999px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: none;
  font-size: 0.74rem;
}
.section-head .more:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---------- دکمه‌ها ---------- */

.btn {
  min-height: 50px;
  padding: 0.68rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
  box-shadow: none;
  font-size: 0.84rem;
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border: 1px dashed rgba(21, 17, 14, 0.36);
  box-shadow: none;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.btn.ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  border-style: solid;
  color: var(--paper);
}
.btn.light {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--ink);
}
.btn.light:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.outline-light {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.42);
  color: #ffffff;
}
.btn.outline-light:hover {
  background: #ffffff;
  border-style: solid;
  border-color: #ffffff;
  color: var(--ink);
}

/* ---------- هدر ---------- */

.site-header {
  padding-block: 9px;
}
.header-inner {
  min-height: 64px;
  padding: 7px 10px 7px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(21, 17, 14, 0.12);
  box-shadow: 0 18px 45px -38px rgba(21, 17, 14, 0.65);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.site-header.is-scrolled .header-inner {
  background: rgba(255, 255, 255, 0.9);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ink);
  border: 0;
}
.brand-name {
  font-weight: 700;
}
.brand-sub {
  color: var(--muted);
  font-size: 0.48rem;
  letter-spacing: 0.16em;
}
.main-nav {
  background: transparent;
  border: 0;
  box-shadow: none;
  gap: 0;
}
.main-nav a {
  border-radius: 999px;
  color: #574f45;
  font-size: 0.79rem;
}
.main-nav a:hover {
  background: rgba(21, 17, 14, 0.06);
}
.main-nav a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

/* ---------- هیرو ---------- */

.hero {
  padding: clamp(2.2rem, 4.5vw, 4rem) 0 clamp(3rem, 5.5vw, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: url("../img/pattern-light.svg") left -110px bottom -90px / 620px 620px no-repeat;
  filter: none;
  opacity: 0.9;
  pointer-events: none;
}
.hero::after {
  display: none;
}
.hero-copy h1 {
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.05em;
}
.hero-copy h1 em {
  background: linear-gradient(transparent 72%, rgba(10, 10, 15, 0.07) 72%);
  color: var(--ink);
  font-style: normal;
}
.hero-copy h1 .thin {
  color: #86868f;
  font-weight: 400;
}
.hero-actions {
  gap: 0.6rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  counter-reset: stat;
}
.stat {
  position: relative;
  padding: 1rem 1rem 1.05rem 0;
  border: 0;
  border-inline-start: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  min-width: 0;
}
.stat:first-child {
  border-inline-start: 0;
  padding-inline-start: 0;
}
.stat::before {
  counter-increment: stat;
  content: "0" counter(stat);
  display: block;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  direction: ltr;
  margin-bottom: 0.5rem;
}
.stat b {
  font-size: 1.28rem;
  font-weight: 700;
}

.hero-art {
  padding-inline-start: 1rem;
  padding-bottom: 1rem;
}
.hero-art::before {
  display: block;
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 64%;
  height: 64%;
  border: 1px dashed rgba(21, 17, 14, 0.28);
}
.hero-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -60px rgba(21, 17, 14, 0.75);
}
.hero-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  z-index: 2;
  pointer-events: none;
}
.hero-frame img {
  filter: grayscale(1) contrast(1.03);
}
.hero-tag {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(21, 17, 14, 0.14);
  border-radius: 10px;
  box-shadow: 0 18px 45px -32px rgba(21, 17, 14, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.hero-tag .dot {
  background: var(--ink);
  border-radius: 0;
  width: 7px;
  height: 7px;
}
.hero-side {
  color: var(--muted);
  letter-spacing: 0.22em;
  font-size: 0.56rem;
}

/* ---------- نوار متحرک ---------- */

.marquee {
  margin-inline: clamp(8px, 1.6vw, 20px);
  margin-top: 18px;
  border-radius: 4px;
  background: var(--ink);
  border: 1px solid var(--ink);
  padding-block: 0.75rem;
}
.marquee-track span {
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  color: #e8e0d4;
}
.marquee-track span::after {
  content: "✂";
  color: #b0b0b8;
}

/* ---------- کارت‌های دوره مثل برگه الگو ---------- */

.courses-grid {
  gap: 16px;
}
.course-card {
  position: relative;
  border-radius: 26px;
  border: 1px solid rgba(21, 17, 14, 0.2);
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 26px 50px -46px rgba(21, 17, 14, 0.6);
  overflow: hidden;
}
.course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 17, 14, 0.4);
  box-shadow: 0 36px 60px -46px rgba(21, 17, 14, 0.7);
}
.course-body {
  position: relative;
  padding: clamp(1.4rem, 2.5vw, 2rem);
}
.course-body::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(21, 17, 14, 0.14);
  border-radius: 18px;
  pointer-events: none;
}
.course-body > * {
  position: relative;
  z-index: 1;
}
.course-media {
  aspect-ratio: 16 / 9.5;
  border-bottom: 1px solid rgba(21, 17, 14, 0.18);
}
.course-media img {
  filter: grayscale(1) contrast(1.02);
}
.course-badge {
  top: 0.8rem;
  inset-inline-start: 0.8rem;
  background: #ffffff;
  border: 1px solid rgba(21, 17, 14, 0.2);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  box-shadow: none;
  backdrop-filter: none;
}
.course-meta {
  border-top: 1px dashed rgba(21, 17, 14, 0.2);
  border-bottom: 1px dashed rgba(21, 17, 14, 0.2);
  font-size: 0.7rem;
  color: var(--muted);
}
.course-features li::before {
  content: "—";
  color: var(--muted);
}
.price {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
}
.price small {
  color: var(--muted);
}
.course-foot {
  border-top: 1px dashed rgba(21, 17, 14, 0.24);
}
.course-card.featured {
  background:
    radial-gradient(420px 240px at 88% 0%, rgba(124, 34, 48, 0.25), transparent 70%),
    linear-gradient(160deg, #1c1714 0%, #0d0a09 78%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 34px 60px -46px rgba(0, 0, 0, 0.8);
}
.course-card.featured .course-body::after {
  border-color: rgba(255, 255, 255, 0.16);
}
.course-card.featured .course-badge {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.course-card.featured .course-foot,
.course-card.featured .course-meta {
  border-color: rgba(255, 255, 255, 0.16);
}
.course-card.featured .btn {
  background: #ffffff;
  color: var(--ink);
  border-color: #ffffff;
}
.course-card.featured .btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- بخش تیره ---------- */

.dark {
  margin-inline: clamp(8px, 1.6vw, 20px);
  border-radius: var(--r-md);
  background:
    radial-gradient(600px 380px at 90% 0%, rgba(255, 255, 255, 0.06), transparent 66%),
    url("../img/pattern-dark.svg") right -60px top -70px / 620px 620px no-repeat,
    linear-gradient(165deg, #1b1613 0%, #0c0a09 72%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.dark::after {
  display: none;
}
.cert-points li {
  border-color: rgba(255, 255, 255, 0.14);
}
.cert-points .n {
  color: var(--muted-dark);
  font-weight: 600;
}
.cert-paper {
  border-radius: 8px;
  box-shadow: 0 30px 60px -46px rgba(0, 0, 0, 0.9);
}
.cert-visual .stamp {
  background: #0b0b0d;
  color: #fff;
  border-radius: 999px;
  font-size: 0.6rem;
}
.cert-seal {
  border-color: rgba(10, 10, 15, 0.4);
  color: var(--muted);
}
.dark .btn.outline-light {
  border-radius: 999px;
}

/* ---------- نمونه‌کار: آرشیو ---------- */

.portfolio-grid {
  counter-reset: archive;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, 1fr);
  gap: 14px;
  border: 0;
  background: transparent;
}
.work {
  position: relative;
  height: 100%;
  min-width: 0;
  min-height: 180px;
  border-radius: 18px;
  border: 1px solid rgba(21, 17, 14, 0.2);
  box-shadow: none;
  overflow: hidden;
}
.portfolio-grid .work,
.portfolio-grid .work:nth-child(3n + 2) {
  aspect-ratio: auto;
}
.work:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.work:nth-child(4) {
  grid-column: span 2;
}
.work::before {
  counter-increment: archive;
  content: "ARCHIVE / " counter(archive, decimal-leading-zero);
  position: absolute;
  z-index: 3;
  top: 10px;
  inset-inline-start: 10px;
  padding: 3px 7px;
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  direction: ltr;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(21, 17, 14, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
}
.work::after {
  background: linear-gradient(180deg, transparent 55%, rgba(10, 8, 7, 0.78));
}
.work-info {
  inset-inline: 0.9rem;
  bottom: 0.85rem;
}
.work-info .cat {
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border: 0;
  font-size: 0.55rem;
}
.work-info b {
  font-size: 0.92rem;
  font-weight: 600;
}
.work-info .student {
  font-size: 0.6rem;
}
.filters {
  gap: 3px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(21, 17, 14, 0.14);
  box-shadow: 0 12px 30px -26px rgba(21, 17, 14, 0.6);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 2rem;
}
.filter {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font-size: 0.74rem;
  white-space: nowrap;
  color: #5c5449;
  background: transparent;
  position: static;
}
.filter:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
}
.filter.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.filter.is-active::after {
  display: none;
}

/* ---------- کارت‌های محتوایی ---------- */

.benefits {
  border: 0;
  gap: 14px;
  background: transparent;
}
.benefit {
  position: relative;
  border-radius: var(--r-md);
  border: 1px solid rgba(21, 17, 14, 0.18);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: none;
  padding: 1.7rem;
}
.benefit::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(21, 17, 14, 0.12);
  border-radius: 8px;
  pointer-events: none;
}
.benefit > * {
  position: relative;
  z-index: 1;
}
.benefit .n {
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
}
.benefit h3 {
  font-weight: 700;
}

.dark .benefit,
.dark .step,
.dark .member {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--r-md);
  box-shadow: none;
  backdrop-filter: none;
}
.dark .step {
  padding: 1.5rem;
}
.process {
  gap: 12px;
  border-top: 0;
}
.step {
  border: 0;
}
.step .n {
  color: var(--muted);
  letter-spacing: 0.16em;
}
.dark .step .n {
  color: #c67986;
}
.team {
  gap: 12px;
  border: 0;
  background: transparent;
}
.member {
  border-radius: var(--r-md);
  border: 1px solid rgba(21, 17, 14, 0.18);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: none;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.avatar {
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(10, 10, 15, 0.3);
  color: var(--ink);
}
.about-media img {
  border-radius: 4px;
  box-shadow: none;
  border: 1px solid rgba(21, 17, 14, 0.18);
}
.about-facts {
  border-color: var(--line);
}
.about-facts b {
  color: var(--ink);
}
.editorial img {
  border-radius: 4px;
  box-shadow: none;
  border: 1px solid rgba(21, 17, 14, 0.18);
}
.soon {
  border-radius: 24px;
  border: 1px dashed rgba(21, 17, 14, 0.28);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.soon .badge {
  border-radius: 999px;
  background: var(--ink);
}

/* ---------- فرم‌ها ---------- */

.field input,
.field select,
.field textarea {
  border-radius: 14px;
  border: 1px solid rgba(21, 17, 14, 0.2);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #ffffff;
}
.form-success {
  border-radius: var(--r-sm);
  border: 1px dashed rgba(21, 17, 14, 0.3);
}
.contact-item {
  border-color: var(--line);
}
.map-card {
  border-radius: 24px;
  border: 1px solid rgba(21, 17, 14, 0.18);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}
.map-pin .pin {
  background: var(--ink);
}
.map-pin .pin::after {
  background: var(--paper);
}

/* ---------- آکاردئون ---------- */

.accordion {
  gap: 6px;
}
.accordion details {
  border: 1px solid rgba(21, 17, 14, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
  backdrop-filter: none;
}
.accordion details[open] {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(21, 17, 14, 0.28);
}
.accordion summary {
  font-weight: 500;
}
.accordion details[open] summary {
  border-color: rgba(21, 17, 14, 0.14);
}
.accordion summary .plus::before,
.accordion summary .plus::after {
  background: var(--accent);
}
.dark .accordion details {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}
.dark .accordion details[open] {
  background: rgba(255, 255, 255, 0.07);
}
.dark .accordion summary .plus::before,
.dark .accordion summary .plus::after {
  background: #fff;
}

/* ---------- صفحات داخلی ---------- */

.page-head {
  padding: clamp(2rem, 3.5vw, 3.2rem) 0 clamp(2rem, 3vw, 2.8rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-head::before {
  background: url("../img/pattern-light.svg") left -120px top -100px / 560px 560px no-repeat;
  opacity: 0.8;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  filter: none;
}
.page-head h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.05em;
}
.breadcrumb {
  color: var(--muted);
  letter-spacing: 0.04em;
}
.breadcrumb a:hover {
  color: var(--ink);
}
.latin {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
}

.course-aside,
.summary-card {
  border-radius: 24px;
  border: 1px solid rgba(21, 17, 14, 0.2);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: none;
}
.course-aside .price {
  border-color: rgba(21, 17, 14, 0.16);
}
.course-detail {
  border-color: rgba(21, 17, 14, 0.14);
}
.tag {
  border: 1px solid rgba(21, 17, 14, 0.2);
  background: transparent;
  border-radius: 999px;
  color: var(--muted);
}

/* ---------- ثبت‌نام ---------- */

.stepper .num {
  border-radius: 50%;
  border: 1px solid rgba(21, 17, 14, 0.25);
  background: transparent;
  color: var(--muted);
}
.stepper .s.is-active .num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.stepper .bar {
  background: rgba(21, 17, 14, 0.14);
}
.choice {
  border-radius: 18px;
  border: 1px solid rgba(21, 17, 14, 0.18);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
  backdrop-filter: none;
}
.choice:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.discount-row input {
  border-radius: 4px;
  border: 1px solid rgba(21, 17, 14, 0.2);
  background: rgba(255, 255, 255, 0.7);
}
.discount-row button {
  border-radius: 999px;
  background: var(--accent);
  border-color: var(--accent);
}
.discount-row button:hover {
  background: transparent;
  color: var(--accent);
}
.installment-note {
  border-radius: 4px;
  border: 1px dashed rgba(21, 17, 14, 0.25);
  background: transparent;
}
.modal-box {
  border-radius: var(--r-md);
  border: 1px solid rgba(21, 17, 14, 0.2);
  background: rgba(255, 255, 255, 0.94);
}
.gateway-fields input {
  border-radius: 4px;
}
.gateway-amount {
  border-radius: 4px;
  background: rgba(10, 10, 15, 0.05);
}
.tracking {
  border-radius: 4px;
}

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

.cta {
  margin-inline: clamp(8px, 1.6vw, 20px);
  border-radius: var(--r-md);
  background:
    radial-gradient(520px 320px at 92% 0%, rgba(255, 255, 255, 0.10), transparent 64%),
    url("../img/pattern-dark.svg") left -80px bottom -60px / 560px 560px no-repeat,
    linear-gradient(150deg, #1b1613 0%, #0b0807 78%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.cta h2 {
  font-weight: 700;
}
.cta p {
  color: #b0b0b8;
}

/* ---------- پاورقی ---------- */

.site-footer {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-radius: var(--r-md) var(--r-md) 0 0;
  background:
    url("../img/pattern-dark.svg") right -60px top -40px / 520px 520px no-repeat,
    #0b0908;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand .brand-mark {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 7px;
}
.footer-links a:hover {
  color: #fff;
}
.socials a {
  border-radius: 50%;
}
.footer-bottom {
  border-color: rgba(255, 255, 255, 0.12);
}
.footer-contact a[href^="tel:"] {
  color: #e8e8ee;
}

/* ---------- لایت‌باکس ---------- */

.lightbox {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox img {
  border-radius: 4px;
}
.lightbox-close {
  border-radius: 50%;
}
.lightbox figcaption b {
  letter-spacing: 0.02em;
}

/* ---------- ریسپانسیو ---------- */

@media (max-width: 1024px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(3) {
    border-inline-start: 0;
    padding-inline-start: 0;
    border-top: 1px solid var(--line);
  }
  .stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  .header-inner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.94);
  }
  .main-nav {
    background: rgba(249, 249, 251, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
  }
  .main-nav a {
    border-radius: 18px;
    border: 1px solid rgba(21, 17, 14, 0.16);
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink);
  }
  .main-nav a[aria-current="page"] {
    background: var(--accent);
    border-color: var(--accent);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .work:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .work:nth-child(4) {
    grid-column: span 2;
  }
  .course-aside,
  .summary-card {
    position: static;
  }
  .hero::before {
    background-size: 480px 480px;
    opacity: 0.65;
  }
}

@media (max-width: 620px) {
  .hero-copy h1 {
    font-size: clamp(1.85rem, 8.6vw, 2.6rem);
    line-height: 1.24;
  }
  .hero-actions .btn {
    flex: 1;
  }
  .hero-stats {
    margin-top: 1.8rem;
  }
  .stat {
    padding-block: 0.85rem;
  }
  .stat b {
    font-size: 1.05rem;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
    gap: 8px;
  }
  .work {
    min-height: 0;
  }
  .work:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .work:nth-child(4) {
    grid-column: span 2;
  }
  .work::before {
    font-size: 0.48rem;
    top: 7px;
    inset-inline-start: 7px;
  }
  .course-body::after {
    inset: 7px;
  }
  .marquee {
    border-radius: 2px;
    margin-top: 12px;
  }
  .page-head::before {
    background-size: 460px 460px;
    opacity: 0.55;
  }
  .site-footer {
    border-radius: 12px 12px 0 0;
  }
  .cta {
    border-radius: 12px;
  }
  .dark {
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-card,
  .btn,
  .work img {
    transition: none;
  }
}
