/* ==========================================================================
   مرکز طراحی لباس ایران — استایل پایه
   ========================================================================== */

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

:root {
  --paper: #ffffff;
  --ink: #0b0b0b;
  --graphite: #141414;
  --charcoal: #1d1d1d;
  --ash: #f5f5f2;
  --stone: #eaeae6;
  --line: #dedeD8;
  --line-dark: #2e2e2e;
  --muted: #71716b;
  --muted-dark: #a3a39c;
  --font: "Estedad", "Segoe UI", Tahoma, sans-serif;
  --wrap: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  transition: top 0.2s;
}
.skip:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

/* ---------- تایپوگرافی کمکی ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.on-dark .eyebrow,
.dark .eyebrow {
  color: var(--muted-dark);
}

.latin {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--muted);
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 2;
  color: var(--muted);
  max-width: 52ch;
}

.section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.section-head .more {
  flex: none;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.15rem;
  transition: opacity 0.2s;
}
.section-head .more:hover {
  opacity: 0.55;
}

.dark {
  background: var(--graphite);
  color: var(--paper);
}
.dark .lead,
.dark .muted {
  color: var(--muted-dark);
}
.dark .section-head h2,
.dark h3 {
  color: var(--paper);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.7rem 1.75rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s;
}
.btn:hover {
  background: transparent;
  color: var(--ink);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.btn.light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.btn.light:hover {
  background: transparent;
  color: var(--paper);
}
.btn.outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--paper);
}
.btn.outline-light:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.btn.block {
  width: 100%;
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(-4px);
}

.link-underline {
  font-size: 0.85rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
}
.brand-mark svg {
  width: 22px;
  height: 22px;
}
.brand-name {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
}
.brand-sub {
  display: block;
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  color: var(--muted);
  direction: ltr;
  text-align: right;
  line-height: 1.6;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  font-size: 0.85rem;
}
.main-nav a {
  position: relative;
  padding-block: 0.4rem;
  color: #3a3a36;
  transition: color 0.2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: none;
}
.header-actions .btn {
  min-height: 42px;
  padding: 0.4rem 1.3rem;
  font-size: 0.8rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 130;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  margin: 4px auto;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

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

.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(1.95rem, 3.9vw, 3.4rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin: 1.4rem 0 1.5rem;
}
.hero-copy h1 .thin {
  font-weight: 400;
  color: var(--muted);
}
.hero-copy h1 em {
  font-style: normal;
  white-space: nowrap;
  background-image: linear-gradient(var(--stone), var(--stone));
  background-repeat: no-repeat;
  background-size: 100% 0.32em;
  background-position: 0 88%;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.4;
}
.stat span {
  font-size: 0.74rem;
  color: var(--muted);
}

.hero-art {
  position: relative;
  padding-inline-start: 1.5rem;
  padding-bottom: 1.5rem;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 62%;
  height: 62%;
  border: 1px solid var(--line);
  z-index: 0;
}
.hero-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--stone);
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}
.hero-frame:hover img {
  transform: scale(1.06);
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.32));
}
.hero-tag {
  position: absolute;
  z-index: 2;
  inset-inline-start: 0;
  bottom: 2.5rem;
  background: var(--paper);
  padding: 1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 240px;
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.5);
}
.hero-tag .dot {
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 50%;
  flex: none;
  animation: pulse 2.4s infinite;
}
.hero-tag b {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.6;
}
.hero-tag span {
  font-size: 0.7rem;
  color: var(--muted);
}
.hero-side {
  position: absolute;
  z-index: 2;
  inset-inline-end: 0;
  top: 0;
  writing-mode: vertical-rl;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  direction: ltr;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

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

.marquee {
  background: var(--ink);
  color: var(--paper);
  border-block: 1px solid var(--ink);
  overflow: hidden;
  padding-block: 0.95rem;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding-inline: 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  direction: ltr;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track span::after {
  content: "◆";
  font-size: 0.5rem;
  color: var(--muted-dark);
}
@keyframes marquee {
  to { transform: translateX(50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- کارت دوره ---------- */

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.course-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.course-card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
}
.course-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--stone);
}
.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.9s var(--ease), filter 0.5s;
}
.course-card:hover .course-media img {
  transform: scale(1.05);
  filter: grayscale(0.15);
}
.course-badge {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.66rem;
  padding: 0.3rem 0.7rem;
  letter-spacing: 0.02em;
}
.course-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.3rem, 2.5vw, 2rem);
}
.course-body h3 {
  font-size: 1.32rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.course-body > p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.9;
}
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 1.2rem 0;
  padding-block: 0.9rem;
  border-block: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--muted);
}
.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.course-features {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  margin-bottom: 1.4rem;
}
.course-features li {
  display: flex;
  gap: 0.55rem;
}
.course-features li::before {
  content: "—";
  color: var(--muted);
  flex: none;
}
.course-foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.price {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
}
.price small {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--muted);
}
.course-card.featured {
  background: var(--graphite);
  border-color: var(--graphite);
  color: var(--paper);
}
.course-card.featured .course-body > p,
.course-card.featured .course-meta,
.course-card.featured .price small {
  color: var(--muted-dark);
}
.course-card.featured .course-meta,
.course-card.featured .course-foot {
  border-color: var(--line-dark);
}
.course-card.featured .btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.course-card.featured .btn:hover {
  background: transparent;
  color: var(--paper);
}
.course-card.featured .course-badge {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- مدرک ---------- */

.cert-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.cert-copy h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.4;
  margin: 1.2rem 0 1.1rem;
}
.cert-points {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
}
.cert-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-dark);
}
.cert-points .n {
  font-size: 0.68rem;
  color: var(--muted-dark);
  direction: ltr;
  padding-top: 0.2rem;
}
.cert-points b {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.cert-points p {
  font-size: 0.8rem;
  color: var(--muted-dark);
  line-height: 1.9;
}

.cert-visual {
  position: relative;
  padding: 1.5rem;
}
.cert-paper {
  position: relative;
  background: #fbfaf6;
  color: var(--ink);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  aspect-ratio: 1.32;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.7);
  border: 1px solid #e2dfd5;
}
.cert-paper::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid #d8d4c8;
  pointer-events: none;
}
.cert-paper .latin {
  color: #8b877a;
  font-size: 0.56rem;
}
.cert-paper h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-weight: 700;
  color: var(--ink) !important;
  margin-top: auto;
}
.cert-paper .who {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 400;
  border-bottom: 1px solid #c9c4b5;
  padding-bottom: 0.3rem;
  margin-top: 0.5rem;
  max-width: 70%;
}
.cert-paper .meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 1.4rem;
  font-size: 0.58rem;
  color: #777;
}
.cert-seal {
  width: 58px;
  height: 58px;
  border: 1px dashed #a9a394;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.5rem;
  text-align: center;
  line-height: 1.5;
  color: #8b877a;
  flex: none;
}
.cert-note {
  margin-top: 1.6rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.cert-visual .stamp {
  position: absolute;
  top: -0.5rem;
  inset-inline-end: 0.5rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.62rem;
  padding: 0.35rem 0.8rem;
  z-index: 2;
}

/* ---------- نمونه‌کار ---------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.work {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--stone);
  aspect-ratio: 3 / 4;
  cursor: pointer;
  border: 0;
  padding: 0;
  text-align: right;
}
.work:nth-child(3n + 2) {
  aspect-ratio: 3 / 4;
}
.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.9s var(--ease), filter 0.4s;
}
.work::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
  opacity: 0.85;
  transition: opacity 0.3s;
}
.work:hover img,
.work:focus-visible img {
  transform: scale(1.06);
  filter: grayscale(0.1);
}
.work:hover::after {
  opacity: 1;
}
.work-info {
  position: absolute;
  z-index: 2;
  inset-inline: 1.1rem;
  bottom: 1.1rem;
  color: #fff;
}
.work-info .cat {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}
.work-info b {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.15rem;
}
.work-info .student {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.65);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter {
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.4rem 1.05rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter:hover {
  border-color: var(--ink);
}
.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.work.is-hidden {
  display: none;
}

/* ---------- درباره و آمار ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.about-media .tall {
  aspect-ratio: 3 / 4;
}
.about-media .short {
  aspect-ratio: 3 / 4;
  margin-top: 2.5rem;
}
.about-copy h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.4;
  margin: 1.2rem 0 1.1rem;
}
.about-copy p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  padding-block: 1.5rem;
  border-block: 1px solid var(--line);
}
.about-facts b {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
}
.about-facts span {
  font-size: 0.7rem;
  color: var(--muted);
}

/* ---------- فرایند ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: 1.8rem 1.4rem 0 1.4rem;
  border-inline-start: 1px solid var(--line);
}
.step:first-child {
  border-inline-start: 0;
  padding-inline-start: 0;
}
.step .n {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  direction: ltr;
}
.step h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0.9rem 0 0.4rem;
}
.step p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.9;
}

/* ---------- تماس ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.contact-info {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}
.contact-item {
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}
.contact-item .label {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.3rem;
}
.contact-item b,
.contact-item a.value {
  font-size: 0.95rem;
  font-weight: 500;
}
.contact-item a.value:hover {
  opacity: 0.6;
}
.contact-item a[href^="tel:"] {
  display: block;
  text-align: right;
}
.contact-item p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.field {
  display: grid;
  gap: 0.35rem;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.74rem;
  color: var(--muted);
}
.field label .req {
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.72rem 0.9rem;
  font-size: 0.88rem;
  border-radius: 0;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--ash);
}
.field input::placeholder,
.field textarea::placeholder {
  color: #b0b0a9;
}
.field .error {
  font-size: 0.7rem;
  color: #a3231d;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #a3231d;
}
.field.has-error .error {
  display: block;
}
.form-note {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.8rem;
}
.form-success {
  display: none;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--ink);
  padding: 1rem 1.2rem;
  font-size: 0.84rem;
  margin-top: 1rem;
}
.form-success.is-visible {
  display: flex;
}
.form-success .tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  flex: none;
}

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

.site-footer {
  background: var(--graphite);
  color: var(--paper);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.8rem;
  color: var(--muted-dark);
  max-width: 34ch;
  margin-top: 1rem;
}
.footer-title {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--muted-dark);
  margin-bottom: 1rem;
}
.footer-links {
  display: grid;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.footer-links a {
  color: #d4d4ce;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fff;
}
.footer-contact {
  display: grid;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: #d4d4ce;
}
a[href^="tel:"],
a[href^="mailto:"] {
  direction: ltr;
  unicode-bidi: isolate;
}
.footer-contact a[href^="tel:"] {
  display: block;
  text-align: right;
}
.footer-contact a[href^="mailto:"] {
  text-align: right;
}
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.68rem;
  color: var(--muted-dark);
}
.footer-bottom .latin {
  color: var(--muted-dark);
}
.socials {
  display: flex;
  gap: 0.6rem;
}
.socials a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-dark);
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.socials a:hover {
  background: var(--paper);
  color: var(--ink);
}
.socials svg {
  width: 16px;
  height: 16px;
}

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

.page-head {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a:hover {
  color: var(--ink);
}
.page-head h1 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.page-head .lead {
  margin-top: 1rem;
}
.page-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

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

.accordion {
  border-top: 1px solid var(--line);
}
.accordion details {
  border-bottom: 1px solid var(--line);
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-size: 0.92rem;
  font-weight: 500;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary .plus {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
}
.accordion summary .plus::before,
.accordion summary .plus::after {
  content: "";
  position: absolute;
  inset: 50% 3px auto;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}
.accordion summary .plus::after {
  transform: rotate(90deg);
}
.accordion details[open] summary .plus::after {
  transform: rotate(0);
}
.accordion .panel {
  padding-bottom: 1.3rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 2;
}
.accordion .panel ul {
  display: grid;
  gap: 0.35rem;
}
.accordion .panel li {
  display: flex;
  gap: 0.5rem;
}
.accordion .panel li::before {
  content: "—";
  color: var(--muted);
}
.dark .accordion,
.dark .accordion details,
.dark .accordion summary .plus::before,
.dark .accordion summary .plus::after {
  border-color: var(--line-dark);
  background-color: transparent;
}
.dark .accordion summary .plus::before,
.dark .accordion summary .plus::after {
  background: #fff;
}

/* ---------- صفحه دوره‌ها ---------- */

.course-detail {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--line);
}
.course-detail:last-child {
  border-bottom: 0;
}
.course-detail .kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.68rem;
  color: var(--muted);
}
.course-detail h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 600;
  margin: 0.6rem 0 0.8rem;
}
.course-detail > div > p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 60ch;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
}
.tag {
  font-size: 0.7rem;
  border: 1px solid var(--line);
  padding: 0.25rem 0.7rem;
  color: var(--muted);
}
.course-aside {
  border: 1px solid var(--line);
  padding: 1.5rem;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.course-aside .price {
  font-size: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.course-aside dl {
  display: grid;
  gap: 0.6rem;
  font-size: 0.78rem;
  margin: 0 0 1.3rem;
}
.course-aside dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.course-aside dt {
  color: var(--muted);
}
.course-aside dd {
  margin: 0;
  font-weight: 500;
}
.course-aside .btn + .btn {
  margin-top: 0.5rem;
}
.course-body-block {
  grid-column: 1 / -1;
}
.course-body-block h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.7rem;
}

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

.enroll-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.stepper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.stepper .s {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stepper .num {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  direction: ltr;
}
.stepper .s.is-active .num {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.stepper .s.is-active {
  color: var(--ink);
}
.stepper .bar {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.step-panel {
  display: none;
}
.step-panel.is-active {
  display: block;
  animation: fadeUp 0.35s var(--ease);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.step-panel h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.step-panel > p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.choice-grid {
  display: grid;
  gap: 0.8rem;
}
.choice {
  border: 1px solid var(--line);
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.choice:hover {
  border-color: var(--ink);
}
.choice:has(input:checked) {
  border-color: var(--ink);
  background: var(--ash);
}
.choice input {
  margin-top: 0.35rem;
  accent-color: var(--ink);
  flex: none;
}
.choice b {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
}
.choice span {
  font-size: 0.75rem;
  color: var(--muted);
}
.choice .choice-price {
  margin-inline-start: auto;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  padding-top: 0.1rem;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}
.summary-card {
  border: 1px solid var(--line);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.summary-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.9rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  padding-block: 0.35rem;
  color: var(--muted);
}
.summary-row b {
  color: var(--ink);
  font-weight: 500;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  border-top: 1px solid var(--line);
  margin-top: 0.8rem;
  padding-top: 1rem;
}
.summary-total b {
  font-size: 1.15rem;
  font-weight: 600;
}
.summary-total span {
  font-size: 0.7rem;
  color: var(--muted);
}
.discount-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 1rem;
}
.discount-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  padding: 0.5rem 0.7rem;
  font-size: 0.78rem;
  background: transparent;
}
.discount-row button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.9rem;
  font-size: 0.74rem;
  cursor: pointer;
}
.discount-row button:hover {
  background: transparent;
  color: var(--ink);
}
.summary-help {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.9;
}
.installment-note {
  border: 1px dashed var(--line);
  padding: 0.8rem 1rem;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 0.12rem;
}
.choice.agree.has-error {
  border-color: #a3231d;
}

/* مودال درگاه */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.is-open {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(4px);
}
.modal-box {
  position: relative;
  background: var(--paper);
  width: 100%;
  max-width: 420px;
  padding: clamp(1.4rem, 4vw, 2rem);
  max-height: 90vh;
  overflow: auto;
  animation: fadeUp 0.3s var(--ease);
}
.modal-box .gateway-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
}
.modal-box .gateway-head b {
  font-size: 0.9rem;
}
.modal-box .gateway-head span {
  font-size: 0.62rem;
  color: var(--muted);
}
.gateway-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.gateway-logo i {
  width: 26px;
  height: 26px;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.6rem;
  color: var(--ink);
}
.gateway-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ash);
  padding: 0.7rem 0.9rem;
  font-size: 0.76rem;
  margin-bottom: 1.2rem;
}
.gateway-amount b {
  font-size: 0.95rem;
}
.gateway-fields {
  display: grid;
  gap: 0.8rem;
}
.gateway-fields label {
  font-size: 0.7rem;
  color: var(--muted);
  display: grid;
  gap: 0.3rem;
}
.gateway-fields input {
  border: 1px solid var(--line);
  padding: 0.65rem 0.8rem;
  font-size: 0.85rem;
  direction: ltr;
  text-align: left;
  background: #fff;
}
.gateway-demo {
  font-size: 0.64rem;
  color: var(--muted);
  margin-top: 0.9rem;
  line-height: 1.8;
}
.modal-close {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.2rem;
}

.success-box {
  text-align: center;
  padding: 1rem 0;
}
.success-box .big-tick {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  margin: 0 auto 1.2rem;
  font-size: 1.4rem;
}
.success-box h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.success-box p {
  font-size: 0.8rem;
  color: var(--muted);
}
.tracking {
  border: 1px dashed var(--line);
  padding: 0.8rem;
  margin: 1.2rem 0;
  font-size: 0.8rem;
}
.tracking b {
  display: block;
  direction: ltr;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, 0.92);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open {
  display: flex;
}
.lightbox figure {
  max-width: 900px;
  width: 100%;
  margin: 0;
}
.lightbox img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  background: #111;
}
.lightbox figcaption {
  color: #ddd;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  padding-top: 0.9rem;
}
.lightbox figcaption span {
  color: #999;
}
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  inset-inline-end: 1.4rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.1rem;
}

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

.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.cta::before {
  content: "";
  position: absolute;
  inset-inline-end: -8%;
  top: 50%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transform: translateY(-50%);
}
.cta::after {
  content: "";
  position: absolute;
  inset-inline-end: 4%;
  top: 50%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transform: translateY(-50%);
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 500;
  line-height: 1.45;
}
.cta p {
  color: var(--muted-dark);
  font-size: 0.85rem;
  margin-top: 0.6rem;
}
.cta-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

/* ---------- انیمیشن ورود ---------- */

.reveal {
  opacity: 1;
}

/* ---------- لیست مزایا ---------- */

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.benefit {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-inline-start: 1px solid var(--line);
}
.benefit:first-child {
  border-inline-start: 0;
}
.benefit .n {
  font-size: 0.64rem;
  color: var(--muted);
  direction: ltr;
  letter-spacing: 0.1em;
}
.benefit h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.7rem 0 0.3rem;
}
.benefit p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.9;
}

/* ---------- صفحه درباره ---------- */

.editorial {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.editorial img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1);
}
.editorial h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.45;
  margin: 1.1rem 0;
}
.editorial p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.member {
  background: var(--paper);
  padding: 1.6rem;
}
.avatar {
  width: 54px;
  height: 54px;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.member b {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}
.member span {
  font-size: 0.7rem;
  color: var(--muted);
}
.member p {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.9;
}

.map-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--ash);
  min-height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--stone) 1px, transparent 1px),
    linear-gradient(90deg, var(--stone) 1px, transparent 1px);
  background-size: 34px 34px;
}
.map-pin {
  position: relative;
  z-index: 1;
  text-align: center;
}
.map-pin .pin {
  width: 42px;
  height: 42px;
  border-radius: 50% 50% 50% 0;
  background: var(--ink);
  transform: rotate(-45deg);
  margin: 0 auto 1.2rem;
  position: relative;
}
.map-pin .pin::after {
  content: "";
  position: absolute;
  inset: 12px;
  background: var(--paper);
  border-radius: 50%;
}
.map-pin b {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
}
.map-pin span {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ---------- بنر به‌زودی ---------- */

.soon {
  border: 1px solid var(--line);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
  flex-wrap: wrap;
}
.soon .badge {
  font-size: 0.62rem;
  border: 1px solid var(--ink);
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}
.soon h3 {
  font-size: 1.05rem;
  font-weight: 600;
}
.soon p {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

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

@media (max-width: 1024px) {
  .main-nav {
    gap: 1.2rem;
  }
  .header-actions .btn {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr 0.85fr;
    gap: 2.5rem;
  }
  .process {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .step {
    padding-bottom: 1.8rem;
  }
  .step:nth-child(3) {
    border-inline-start: 0;
    padding-inline-start: 0;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
  .course-detail {
    grid-template-columns: 1fr 0.7fr;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 68px;
  }
  .nav-toggle {
    display: block;
  }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 5rem 2rem 2rem;
    font-size: 1.15rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 120;
  }
  .nav-open .main-nav {
    transform: none;
  }
  .main-nav a {
    width: 100%;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }
  .main-nav a::after {
    display: none;
  }
  .header-actions {
    margin-inline-start: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-art {
    max-width: 520px;
    padding-inline-start: 1.2rem;
  }
  .hero-side {
    display: none;
  }
  .hero-copy h1 {
    margin-top: 1rem;
  }
  .courses-grid,
  .cert-grid,
  .about-grid,
  .contact-grid,
  .course-detail,
  .editorial,
  .enroll-layout {
    grid-template-columns: 1fr;
  }
  .course-aside,
  .summary-card {
    position: static;
  }
  .course-aside {
    max-width: 460px;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team,
  .benefits {
    grid-template-columns: 1fr;
  }
  .benefit,
  .member {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
  .benefit:first-child,
  .member:first-child {
    border-top: 0;
  }
  .cert-visual {
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: auto;
  }
  .editorial img {
    aspect-ratio: 16 / 10;
  }
  .page-head-row {
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 0.95rem;
  }
  .header-inner {
    gap: 0.5rem;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .brand-name {
    font-size: 0.87rem;
  }
  .brand-sub {
    font-size: 0.48rem;
    letter-spacing: 0.16em;
  }
  .hero-copy h1 {
    font-size: clamp(1.9rem, 8.4vw, 2.6rem);
  }
  .hero-copy h1 br {
    display: none;
  }
  .hero-actions .btn {
    flex: 1;
    min-height: 46px;
    padding-inline: 1rem;
    font-size: 0.8rem;
  }
  .hero-stats {
    gap: 1rem 2rem;
  }
  .stat b {
    font-size: 1.2rem;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }
  .work-info {
    inset-inline: 0.8rem;
    bottom: 0.8rem;
  }
  .work-info b {
    font-size: 0.8rem;
  }
  .work-info .cat {
    font-size: 0.58rem;
  }
  .process {
    grid-template-columns: 1fr;
  }
  .step {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
    padding: 1.2rem 0;
  }
  .step:first-child {
    border-top: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .about-facts {
    gap: 0.6rem;
  }
  .about-facts b {
    font-size: 1.1rem;
  }
  .cert-paper {
    aspect-ratio: 1.1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .stepper {
    gap: 0.35rem;
    font-size: 0.64rem;
  }
  .stepper .label {
    display: none;
  }
  .choice {
    flex-wrap: wrap;
  }
  .choice .choice-price {
    width: 100%;
    margin-inline-start: 1.8rem;
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-actions .btn {
    flex: 1;
  }
  .soon {
    flex-direction: column;
    align-items: flex-start;
  }
  .lightbox figcaption {
    flex-direction: column;
    gap: 0.2rem;
  }
}

@media (max-width: 400px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .work {
    aspect-ratio: 4 / 5;
  }
  .brand-sub {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
