/* ===== Royal Turning Workshop — base stylesheet ===== */

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

:root {
  --navy-900: #10161f;
  --navy-800: #171f2e;
  --navy-700: #1e2a3f;
  --navy-600: #2a3a54;
  --gold-500: #c79a4b;
  --gold-600: #a97e38;
  --gold-100: #f3e6c9;
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-alt: #f0f1ee;
  --text: #1c2130;
  --text-muted: #5b6472;
  --text-on-dark: #eef1f6;
  --text-on-dark-muted: #aab3c2;
  --border: #e4e5e2;
  --header-bg: rgba(255, 255, 255, 0.92);
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(16, 22, 31, 0.18);
  --max-width: 1160px;
  --font: 'Vazirmatn', -apple-system, 'Segoe UI', Tahoma, sans-serif;
  color-scheme: light;
}

/* دارک‌مود: وقتی کاربر آن را فعال کند (دکمه هدر)، یا در اولین بازدید طبق تنظیمات سیستم کاربر */
:root[data-theme="dark"] {
  --bg: #0b0f16;
  --surface: #141b26;
  --surface-alt: #101724;
  --text: #e6e9f0;
  --text-muted: #97a1b3;
  --border: #232c3d;
  --header-bg: rgba(11, 15, 22, 0.88);
  --shadow: 0 10px 34px -12px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}
:root[data-theme="dark"] .about-figure,
:root[data-theme="dark"] .article-cover {
  border-color: var(--border);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

a, button { -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
}

html[dir="rtl"] body { direction: rtl; }
html[dir="ltr"] body { direction: ltr; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.35; }
p { margin: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; scroll-margin-top: 76px; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--navy-800); color: var(--text-on-dark); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-600);
  background: var(--gold-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-dark .eyebrow {
  color: var(--gold-500);
  background: rgba(199, 154, 75, 0.14);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center { margin-inline: auto; text-align: center; }

.section-title {
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 16.5px;
}
.section-dark .section-desc { color: var(--text-on-dark-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #1a1200;
  box-shadow: 0 10px 24px -10px rgba(169, 126, 56, 0.6);
}
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--text-on-dark);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-navy {
  background: var(--navy-800);
  color: #fff;
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-outline-navy {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline-navy:hover { border-color: var(--gold-500); color: var(--gold-600); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
}
.brand img { height: 46px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  padding: 6px 2px;
  position: relative;
}
.main-nav a:hover { color: var(--gold-600); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
}
.lang-toggle:hover { border-color: var(--gold-500); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  color: var(--text);
  padding: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { border-color: var(--gold-500); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease;
}
/* آیکون همبرگری هنگام باز شدن منوی موبایل به ضربدر تبدیل می‌شود */
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(circle at 20% -10%, #223250 0%, var(--navy-900) 55%);
  color: var(--text-on-dark);
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 30% 20%, black, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-title {
  font-size: clamp(32px, 4.6vw, 52px);
  letter-spacing: -0.01em;
}
.hero-title .accent { color: var(--gold-500); }
.hero-sub {
  margin-top: 22px;
  font-size: 18px;
  color: var(--text-on-dark-muted);
  max-width: 520px;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-stats {
  margin-top: 46px;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.hero-stat b {
  display: block;
  font-size: 26px;
  color: var(--gold-500);
}
.hero-stat span {
  font-size: 13px;
  color: var(--text-on-dark-muted);
}
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg { width: 100%; max-width: 400px; height: auto; }
.hero-art img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.55);
}

/* Cards grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(199,154,75,0.4);
}
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; stroke: var(--gold-500); }
.card h3 { font-size: 18.5px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.about-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.about-figure svg { width: 100%; height: auto; }
.about-figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.about-points {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}
.about-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}
.about-point svg {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 3px;
  stroke: var(--gold-600);
}

/* Why us (dark band) */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.why-item .card-icon { background: rgba(199,154,75,0.14); }
.why-item h3 { color: #fff; font-size: 16.5px; margin-bottom: 8px; }
.why-item p { color: var(--text-on-dark-muted); font-size: 14px; }

/* Clients */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.client-plate {
  position: relative;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 14px;
  background: linear-gradient(155deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.5;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.client-plate::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-500);
  opacity: 0.7;
}
.client-plate:hover {
  transform: translateY(-3px);
  border-color: rgba(199,154,75,0.45);
  box-shadow: var(--shadow);
}

/* Process */
.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.process-step {
  position: relative;
  padding: 26px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.process-step .num {
  width: 38px; height: 38px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.process-step h4 { font-size: 14.5px; margin-bottom: 6px; }
.process-step p { font-size: 13px; color: var(--text-muted); }

/* Articles */
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-cover {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  display: flex; align-items: center; justify-content: center;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover svg { width: 40px; height: 40px; stroke: var(--gold-500); opacity: 0.8; }
.article-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-date { font-size: 12.5px; color: var(--text-muted); }
.article-body h3 { font-size: 17px; }
.article-body p { font-size: 14px; color: var(--text-muted); flex: 1; }
.article-link { font-size: 13.5px; font-weight: 700; color: var(--gold-600); margin-top: 6px; }

.empty-note {
  color: var(--text-muted);
  font-size: 14.5px;
  padding: 20px 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.contact-row:first-child { border-top: none; padding-top: 0; }
.contact-row .ic {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--gold-100);
  display: flex; align-items: center; justify-content: center;
}
.contact-row .ic svg { width: 20px; height: 20px; stroke: var(--gold-600); }
.contact-row .label { font-size: 12.5px; color: var(--text-muted); margin-bottom: 3px; }
.contact-row .value { font-weight: 700; font-size: 15px; }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 340px;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
.map-placeholder { color: var(--text-muted); font-size: 14px; text-align: center; padding: 20px; }

.map-link-card {
  width: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(199,154,75,0.12) 0%, transparent 60%), var(--surface-alt);
  transition: background-color 0.25s ease;
}
.map-link-card:hover { background-color: var(--surface); }
.map-link-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.map-link-card:hover .map-link-icon { transform: translateY(-4px); }
.map-link-icon svg { width: 26px; height: 26px; color: var(--gold-500); }
.map-link-title { font-weight: 700; font-size: 15.5px; color: var(--text); }
.map-link-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Footer */
.site-footer {
  position: relative;
  background: var(--navy-900);
  color: var(--text-on-dark-muted);
  padding: 60px 0 26px;
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  width: 640px;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(199,154,75,0.16) 0%, transparent 70%);
  pointer-events: none;
  animation: footer-glow-breathe 7s ease-in-out infinite alternate;
}
@keyframes footer-glow-breathe {
  0% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .footer-glow { animation: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 40px; }
.footer-brand span { color: #fff; font-weight: 800; font-size: 16px; }
.footer-col h4 { color: #fff; font-size: 14.5px; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 14px; }
.footer-col a:hover { color: var(--gold-500); }
.footer-bottom {
  padding-top: 22px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.back-to-top {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--text-on-dark-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.back-to-top svg { width: 18px; height: 18px; }
.back-to-top:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: #1a1200;
  transform: translateY(-3px);
}

/* Blog listing / article page */
.page-hero {
  background: var(--navy-900);
  color: var(--text-on-dark);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(26px, 3.6vw, 38px); }
.page-hero p { color: var(--text-on-dark-muted); margin-top: 12px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.article-page {
  max-width: 760px;
  margin: 0 auto;
}
.article-page .meta { color: var(--text-muted); font-size: 13.5px; margin-bottom: 14px; }
.article-page h1 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 20px; }
.article-page .cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; }
.article-content { font-size: 16.5px; line-height: 2; color: var(--text); }
.article-content p { margin-bottom: 18px; }
.article-content h2, .article-content h3 { margin: 32px 0 14px; }
.article-content img { border-radius: 10px; margin: 20px 0; }
.article-content ul, .article-content ol { margin: 0 0 18px; padding-inline-start: 24px; }
.article-content a { color: var(--gold-600); text-decoration: underline; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.back-link:hover { color: var(--gold-600); }

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
}
.pagination a:hover { border-color: var(--gold-500); }
.pagination .active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* Cursor glow (desktop, fine-pointer only) */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199,154,75,0.16) 0%, rgba(199,154,75,0) 70%);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}
.cursor-glow.is-active { opacity: 1; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
}

/* Magnetic buttons */
.magnetic {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* نوار پیشرفت اسکرول — بالای صفحه، همه دستگاه‌ها از جمله موبایل */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  z-index: 200;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-500));
  transform-origin: right;
  transform: scaleX(0);
  will-change: transform;
}
html[dir="ltr"] .scroll-progress { transform-origin: left; }
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
}

/* افکت ripple لمسی روی دکمه‌ها و کارت‌ها — مخصوص کاربران موبایل/لمسی */
.btn, .card, .client-plate, .article-card {
  position: relative;
  overflow: hidden;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(199, 154, 75, 0.35);
  transform: scale(0);
  animation: ripple-anim 0.55s ease-out;
  pointer-events: none;
}
:root[data-theme="dark"] .ripple { background: rgba(199, 154, 75, 0.28); }
@keyframes ripple-anim {
  to { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ripple { display: none; }
}

/* Sticky call button (mobile) */
.mobile-cta {
  display: none;
}
@media (max-width: 760px) {
  .mobile-cta .btn-gold {
    animation: mobile-cta-pulse 2.6s ease-in-out infinite;
  }
  @keyframes mobile-cta-pulse {
    0%, 100% { box-shadow: 0 10px 24px -10px rgba(169, 126, 56, 0.6), 0 0 0 0 rgba(199, 154, 75, 0.45); }
    50% { box-shadow: 0 10px 24px -10px rgba(169, 126, 56, 0.6), 0 0 0 8px rgba(199, 154, 75, 0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .mobile-cta .btn-gold { animation: none; }
  }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .grid-3, .why-grid, .process-list, .blog-grid, .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .footer-grid, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { gap: 30px; }
}

@media (max-width: 760px) {
  body { padding-bottom: 78px; }

  .container { padding: 0 18px; }

  .header-row { gap: 10px; padding: 10px 0; }
  .brand img { height: 36px; }

  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 22px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .site-header.nav-open .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15.5px; }

  .header-actions { gap: 6px; }
  .header-actions .btn span.label { display: none; }
  .header-actions .btn { padding: 12px; border-radius: 10px; min-width: 44px; min-height: 44px; }
  .header-actions .btn svg { width: 17px; height: 17px; }
  .lang-toggle { padding: 12px 14px; min-height: 44px; }
  .theme-toggle { width: 44px; height: 44px; }
  .nav-toggle { padding: 12px; min-width: 44px; min-height: 44px; }

  .grid-3, .why-grid, .process-list, .blog-grid, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; scroll-margin-top: 66px; }
  .hero { padding: 48px 0 68px; }
  .hero-stats { gap: 22px; margin-top: 34px; }
  .hero-actions .btn { flex: 1; min-width: 150px; }

  .mobile-cta {
    display: flex;
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    inset-inline: 16px;
    z-index: 90;
    gap: 10px;
  }
  .mobile-cta .btn { flex: 1; }

  .back-to-top { width: 46px; height: 46px; }
}

@media (max-width: 480px) {
  .why-grid, .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-step { padding: 20px 12px; }
  .hero-stats { gap: 16px 26px; }
}
