/* ============================================================
   Offic.ir — public design system
   RTL first, mobile first, Vazirmatn
   ============================================================ */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --navy: #0b1220;
  --navy-2: #0f1a2e;
  --navy-3: #16233c;
  --primary: #14b8a6;
  --primary-dark: #0d9488;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-dark: rgba(255, 255, 255, .12);
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --success: #10b981;
  --danger: #ef4444;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -25px rgba(15, 23, 42, .35);

  --container: 1200px;
  --header-h: 78px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--body);
  background: var(--surface);
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; font-weight: 800; letter-spacing: -.01em; }
::selection { background: var(--primary); color: #fff; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.icon { width: 22px; height: 22px; flex: 0 0 auto; }

.skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 999;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid rgba(20, 184, 166, .45);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(20, 184, 166, .1);
  border: 1px solid rgba(20, 184, 166, .18);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow.is-light {
  color: #5eead4;
  background: rgba(45, 212, 191, .1);
  border-color: rgba(45, 212, 191, .2);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin-bottom: 14px;
}
.section-lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.03rem;
}
.section-head { margin-bottom: 48px; }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }

.gradient-text {
  background: linear-gradient(100deg, var(--primary) 10%, #67e8f9 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(20, 184, 166, .7);
}
.btn--primary:hover { box-shadow: 0 18px 36px -12px rgba(20, 184, 166, .8); }

.btn--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(245, 158, 11, .6);
}

.btn--ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

.btn--outline {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--primary); color: var(--primary-dark); }

.btn--sm { min-height: 42px; padding: 0 18px; font-size: .85rem; border-radius: 11px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary-dark);
}
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(-4px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s, box-shadow .3s, height .3s, backdrop-filter .3s;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(11, 18, 32, .86);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7);
  height: 68px;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary), #0891b2);
  box-shadow: 0 10px 24px -8px rgba(20, 184, 166, .8);
  position: relative;
  overflow: hidden;
}
.brand__mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, .35), transparent 55%);
}
.brand__mark span {
  position: relative;
  z-index: 1;
  font-weight: 900;
  font-size: 1.35rem;
  color: #fff;
  line-height: 1;
  transform: translateY(-1px);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-weight: 900; font-size: 1.25rem; letter-spacing: -.02em; }
.brand__tag { font-size: .66rem; color: rgba(255, 255, 255, .55); letter-spacing: .02em; }
.brand--dark { color: var(--ink); }
.brand--dark .brand__tag { color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  position: relative;
  color: rgba(255, 255, 255, .78);
  font-size: .93rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.main-nav a.is-active { color: #fff; }
.main-nav a.is-active::after {
  content: '';
  position: absolute;
  inset-inline: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .78);
  font-size: .85rem;
  font-weight: 600;
  direction: ltr;
}
.header-phone .icon { color: var(--primary); width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  place-items: center;
}

/* mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
  transition: visibility .35s;
}
.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, .62);
  opacity: 0;
  transition: opacity .3s;
}
.mobile-nav__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(86vw, 360px);
  background: var(--navy);
  border-inline-end: 1px solid rgba(255, 255, 255, .08);
  padding: 22px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(102%);
  transition: transform .35s var(--ease);
  overflow-y: auto;
}
html[dir="ltr"] .mobile-nav__panel { transform: translateX(-102%); }
.mobile-nav.is-open { pointer-events: auto; visibility: visible; }
.mobile-nav.is-open .mobile-nav__backdrop { opacity: 1; }
.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }

.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mobile-nav__close {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  color: #fff; display: grid; place-items: center;
}
.mobile-nav a.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 12px;
  color: rgba(255, 255, 255, .85);
  font-weight: 600;
  border: 1px solid transparent;
}
.mobile-nav a.mobile-link:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .08); color: #fff; }
.mobile-nav__cta { margin-top: 18px; }
.mobile-nav__contact { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; color: rgba(255, 255, 255, .6); font-size: .85rem; }
.mobile-nav__contact a { display: flex; align-items: center; gap: 10px; direction: ltr; justify-content: flex-end; }

/* ============================================================
   Hero slider
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: calc(var(--header-h) + 48px) 0 120px;
  min-height: min(920px, 100vh);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% 8%, rgba(20, 184, 166, .22), transparent 60%),
    radial-gradient(700px 500px at 10% 95%, rgba(245, 158, 11, .12), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0d1728 60%, #0b1220 100%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

.hero-slider { position: relative; }
.slides-track { position: relative; }
.slide {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  min-height: 440px;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s;
  pointer-events: none;
}
.slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.slide-copy { max-width: 610px; }
.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  color: #99f6e4;
  background: rgba(45, 212, 191, .1);
  border: 1px solid rgba(45, 212, 191, .25);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.slide-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .18);
}
.slide-title {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.55rem);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -.03em;
  margin-bottom: 18px;
  max-width: 18ch;
}
.slide-title .grad {
  display: inline;
  background: linear-gradient(100deg, #2dd4bf 10%, #67e8f9 55%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.slide-desc {
  color: rgba(255, 255, 255, .68);
  font-size: clamp(.95rem, 1.2vw, 1.08rem);
  line-height: 1.9;
  max-width: 56ch;
  margin-bottom: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.slide-features { display: flex; flex-wrap: wrap; gap: 20px; }
.slide-feature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .62);
}
.slide-feature .icon { width: 17px; height: 17px; color: var(--primary); }

.slide-media { position: relative; }
.slide-media__frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #0e1a2d;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .04);
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
  transition: transform .7s var(--ease);
}
.slide.is-active .slide-media__frame { transform: perspective(1400px) rotateY(-2deg) rotateX(0); }
.slide-media__bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: 14px;
  background: #101d33;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.slide-media__bar span { width: 9px; height: 9px; border-radius: 50%; background: #334155; }
.slide-media__bar span:nth-child(1) { background: #f87171; }
.slide-media__bar span:nth-child(2) { background: #fbbf24; }
.slide-media__bar span:nth-child(3) { background: #34d399; }
.slide-media__bar i {
  flex: 1;
  height: 8px;
  margin-inline-start: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .06);
}
.slide-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10.4;
  object-fit: cover;
  object-position: top center;
}
.slide-media__glow {
  position: absolute;
  inset: auto -10% -14% -10%;
  height: 140px;
  background: linear-gradient(90deg, rgba(20, 184, 166, .35), rgba(245, 158, 11, .25));
  filter: blur(60px);
  z-index: -1;
}
.slide-float {
  position: absolute;
  inset-inline-start: auto;
  inset-inline-end: -22px;
  bottom: -22px;
  background: rgba(15, 26, 46, .9);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}
.slide-float__icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(20, 184, 166, .15);
  color: #5eead4;
}
.slide-float strong { display: block; color: #fff; font-size: .9rem; line-height: 1.3; }
.slide-float span { font-size: .72rem; color: rgba(255, 255, 255, .55); }

/* slider controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  position: relative;
  z-index: 3;
}
.slider-dots { display: flex; align-items: center; gap: 8px; }
.slider-dot {
  width: 28px;
  height: 5px;
  border-radius: 99px;
  border: 0;
  background: rgba(255, 255, 255, .16);
  padding: 0;
  transition: width .3s var(--ease), background .3s;
}
.slider-dot.is-active { width: 54px; background: var(--primary); }
.slider-nav { display: flex; align-items: center; gap: 10px; }
.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: background .2s, border-color .2s, transform .2s;
}
.slider-btn:hover { background: rgba(20, 184, 166, .18); border-color: rgba(45, 212, 191, .4); transform: translateY(-2px); }
.slider-btn .icon { width: 20px; height: 20px; }
.slider-counter {
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .1em;
  direction: ltr;
  min-width: 62px;
  text-align: center;
}
.slider-counter b { color: #fff; font-size: 1rem; }

.slider-progress {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, .08);
  z-index: 4;
  overflow: hidden;
}
.slider-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width .1s linear;
}

/* ============================================================
   Trust / stats bar
   ============================================================ */
.stats-bar {
  position: relative;
  z-index: 6;
  margin-top: -66px;
}
.stats-bar__inner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.stat {
  padding: 28px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.stat + .stat::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block: 22px;
  width: 1px;
  background: var(--line);
}
.stat__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(20, 184, 166, .1);
  color: var(--primary-dark);
  flex: 0 0 auto;
}
.stat__icon .icon { width: 25px; height: 25px; }
.stat strong {
  display: block;
  direction: ltr;
  unicode-bidi: bidi-override;
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
}
.stat span { font-size: .82rem; color: var(--muted); }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--soft { background: var(--surface-2); }
.section--dark { background: var(--navy); color: rgba(255, 255, 255, .72); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section-lead { color: rgba(255, 255, 255, .6); }

/* services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  padding: 30px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(320px 160px at 90% 0%, rgba(20, 184, 166, .12), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, .35);
  box-shadow: var(--shadow);
}
.service-card:hover::before { opacity: 1; }
.service-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(20, 184, 166, .16), rgba(20, 184, 166, .06));
  color: var(--primary-dark);
  margin-bottom: 20px;
  border: 1px solid rgba(20, 184, 166, .15);
  position: relative;
  z-index: 1;
}
.service-card__icon .icon { width: 27px; height: 27px; }
.service-card h3 { font-size: 1.12rem; margin-bottom: 10px; position: relative; z-index: 1; }
.service-card p { font-size: .9rem; color: var(--muted); line-height: 1.85; position: relative; z-index: 1; }
.service-card__more {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.service-card__more .icon { width: 16px; height: 16px; transition: transform .2s; }
.service-card:hover .service-card__more .icon { transform: translateX(-4px); }

/* portfolio grid */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}
.filter-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: .84rem;
  font-weight: 600;
  transition: all .2s;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.filter-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.section--dark .filter-chip {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .65);
}
.section--dark .filter-chip.is-active { background: var(--primary); border-color: var(--primary); color: #04201d; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(20, 184, 166, .3);
}
.project-card[hidden] { display: none; }
.project-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-2);
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .6s var(--ease);
}
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 15, 28, .55));
  opacity: .9;
}
.project-card__category {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  background: rgba(8, 15, 28, .72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}
.project-card__body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.project-card__body h3 { font-size: 1.02rem; line-height: 1.6; margin-bottom: 8px; }
.project-card__body h3 a:hover { color: var(--primary-dark); }
.project-card__body p {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
}
.project-card__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.project-card__price { font-size: .8rem; color: var(--muted); }
.price { font-weight: 800; color: var(--ink); font-size: .95rem; }
.price small { font-size: .7rem; font-weight: 500; color: var(--muted); }
.price--call { font-size: .78rem; font-weight: 600; color: var(--primary-dark); }
.price-old { color: var(--muted); font-size: .75rem; margin-inline-start: 6px; }

.section--dark .project-card { background: #111c30; border-color: rgba(255, 255, 255, .08); }
.section--dark .project-card__body h3, .section--dark .price { color: #fff; }
.section--dark .project-card__body p, .section--dark .project-card__price { color: rgba(255, 255, 255, .55); }
.section--dark .project-card__foot { border-color: rgba(255, 255, 255, .08); }
.section--dark .project-card__body h3 a:hover { color: #5eead4; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  background: #fff;
}
.empty-state .icon { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--primary); }

/* process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 30px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.process-step__num {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #04201d;
  background: linear-gradient(135deg, #5eead4, var(--primary));
  margin-bottom: 18px;
  box-shadow: 0 10px 24px -10px rgba(20, 184, 166, .7);
}
.process-step h3 { font-size: 1.02rem; margin-bottom: 8px; color: var(--ink); }
.process-step p { font-size: .84rem; color: var(--muted); line-height: 1.85; }

/* about teaser */
.about-split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about-visual {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--navy), var(--navy-3));
  padding: 38px;
  color: #fff;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, .06);
}
.about-visual::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto auto;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, .35), transparent 65%);
}
.about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 30% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 30% 20%, #000, transparent 75%);
}
.about-visual__big {
  position: relative;
  z-index: 1;
  direction: ltr;
  unicode-bidi: bidi-override;
  font-size: clamp(3.5rem, 7vw, 5.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(120deg, #5eead4, #fff 55%, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-visual__label { position: relative; z-index: 1; color: rgba(255, 255, 255, .7); margin-top: 10px; font-size: .95rem; }
.about-visual__chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.about-visual__chips span {
  font-size: .74rem;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .8);
}
.about-list { display: grid; gap: 16px; margin: 26px 0 30px; }
.about-list__item { display: flex; gap: 14px; align-items: flex-start; }
.about-list__icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(20, 184, 166, .1);
  color: var(--primary-dark);
  flex: 0 0 auto;
}
.about-list__icon .icon { width: 19px; height: 19px; }
.about-list__item strong { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 2px; }
.about-list__item span { font-size: .84rem; color: var(--muted); }

/* testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.testimonial__quote { color: rgba(20, 184, 166, .25); margin-bottom: 12px; }
.testimonial__quote .icon { width: 32px; height: 32px; }
.testimonial p { font-size: .9rem; line-height: 1.9; color: var(--body); margin-bottom: 20px; }
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface-3);
  display: grid; place-items: center;
  color: var(--primary-dark); font-weight: 800;
  overflow: hidden;
}
.testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__author strong { display: block; font-size: .88rem; color: var(--ink); }
.testimonial__author span { font-size: .76rem; color: var(--muted); }
.testimonial__stars { display: flex; gap: 3px; color: var(--accent); margin-bottom: 14px; }
.testimonial__stars .icon { width: 15px; height: 15px; fill: currentColor; stroke: currentColor; }

/* faq */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 22px;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] { border-color: rgba(20, 184, 166, .4); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  color: var(--ink);
  font-size: .95rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 18px; height: 18px; color: var(--primary-dark); transition: transform .25s; flex: 0 0 auto; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item__answer { padding: 0 0 20px; font-size: .88rem; color: var(--muted); line-height: 1.9; }

/* CTA */
.cta {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 64px);
  background: linear-gradient(120deg, #0d9488, #0f766e 45%, #0b1220 100%);
  overflow: hidden;
  color: #fff;
  display: grid;
  grid-template-columns: 1.3fr auto;
  align-items: center;
  gap: 30px;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(251, 191, 36, .35), transparent 30%),
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
  mask-image: linear-gradient(90deg, transparent, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: 10px; }
.cta p { color: rgba(255, 255, 255, .75); font-size: .95rem; max-width: 52ch; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn--outline { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.cta .btn--outline:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .6);
  padding: 70px 0 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: auto 0 -40% 0;
  height: 60%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(20, 184, 166, .12), transparent 70%);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-about { font-size: .87rem; line-height: 1.9; max-width: 34ch; margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .7);
  transition: all .2s;
}
.footer-social a:hover { background: rgba(20, 184, 166, .18); border-color: rgba(45, 212, 191, .4); color: #fff; transform: translateY(-2px); }
.footer-social .icon { width: 18px; height: 18px; }

.footer-col h3 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: .86rem; color: rgba(255, 255, 255, .58); transition: color .2s; display: inline-flex; align-items: center; gap: 6px; }
.footer-col a:hover { color: #5eead4; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact__item { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; }
.footer-contact__item .icon { width: 17px; height: 17px; color: var(--primary); margin-top: 4px; }
.footer-contact__item a { direction: ltr; }
.footer-bottom {
  margin-top: 50px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .4);
  position: relative;
  z-index: 1;
}
.footer-bottom a { color: rgba(255, 255, 255, .55); }
.footer-bottom a:hover { color: #5eead4; }

/* ============================================================
   Inner pages
   ============================================================ */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: calc(var(--header-h) + 66px) 0 76px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 380px at 85% 0%, rgba(20, 184, 166, .22), transparent 65%),
    radial-gradient(600px 300px at 5% 100%, rgba(245, 158, 11, .1), transparent 60%);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 60% 30%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 60% 30%, #000, transparent 80%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.page-hero p { color: rgba(255, 255, 255, .62); max-width: 68ch; font-size: .98rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255, 255, 255, .65); }
.breadcrumb a:hover { color: #5eead4; }
.breadcrumb .icon { width: 14px; height: 14px; }

/* project detail */
.project-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 34px;
  align-items: start;
  margin-top: 34px;
}
.project-hero__cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface-3);
}
.project-hero__cover img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top center; }
.project-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.project-side h2 { font-size: 1.2rem; margin-bottom: 6px; }
.project-side__meta { display: grid; gap: 14px; margin: 22px 0; }
.project-side__meta div { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .85rem; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.project-side__meta div:last-child { border: 0; padding-bottom: 0; }
.project-side__meta span { color: var(--muted); }
.project-side__meta strong { color: var(--ink); font-weight: 700; text-align: left; direction: ltr; }
.project-side__price { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; margin-bottom: 16px; }
.project-side__price .price { font-size: 1.15rem; }
.project-side__actions { display: grid; gap: 10px; }
.project-side__note { font-size: .76rem; color: var(--muted); text-align: center; margin-top: 12px; }

.project-content { padding-top: 50px; }
.project-content h2 { font-size: 1.35rem; margin: 34px 0 12px; display: flex; align-items: center; gap: 10px; }
.project-content h2::before { content: ''; width: 5px; height: 22px; border-radius: 4px; background: linear-gradient(var(--primary), var(--accent)); }
.project-content p, .project-content li { font-size: .95rem; line-height: 2; color: var(--body); }
.project-content ul { padding-inline-start: 22px; margin: 12px 0; }
.project-content li { margin-bottom: 6px; }
.project-content img { border-radius: 14px; margin: 16px 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.gallery-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-3);
  cursor: zoom-in;
  position: relative;
}
.gallery-item img { aspect-ratio: 16/10; width: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item__caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(8, 15, 28, .85));
  color: #fff;
  font-size: .72rem;
  padding: 22px 12px 10px;
  opacity: 0;
  transition: opacity .2s;
}
.gallery-item:hover .gallery-item__caption { opacity: 1; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(3, 7, 18, .92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 84vh; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav {
  position: absolute;
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  display: grid; place-items: center;
}
.lightbox__close { top: 24px; inset-inline-end: 24px; }
.lightbox__nav.prev { inset-inline-start: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav.next { inset-inline-end: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__caption { position: absolute; bottom: 24px; inset-inline: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .85rem; padding-inline: 20px; }

/* generic content page */
.prose { max-width: 860px; margin-inline: auto; }
.prose h2 { font-size: 1.45rem; margin: 34px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.prose p { margin-bottom: 14px; line-height: 2; font-size: .95rem; }
.prose ul, .prose ol { padding-inline-start: 24px; margin-bottom: 18px; }
.prose li { margin-bottom: 8px; line-height: 1.9; font-size: .93rem; }
.prose a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.prose img { border-radius: 14px; margin: 16px 0; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; text-align: center; transition: transform .3s, box-shadow .3s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card__avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(20,184,166,.15), rgba(245,158,11,.12));
  display: grid; place-items: center; overflow: hidden; color: var(--primary-dark);
  font-weight: 900; font-size: 1.6rem;
}
.team-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1rem; margin-bottom: 4px; }
.team-card span { font-size: .8rem; color: var(--primary-dark); font-weight: 600; }
.team-card p { font-size: .8rem; color: var(--muted); margin-top: 10px; line-height: 1.8; }
.team-card__social { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.team-card__social a { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.team-card__social a:hover { background: rgba(20,184,166,.12); color: var(--primary-dark); }

/* forms */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: .84rem; font-weight: 700; color: var(--ink); }
.form-field label .req { color: var(--danger); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  padding: 12px 14px;
  font-size: .9rem;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .12);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field small { font-size: .74rem; color: var(--muted); }
.form-field.is-invalid input, .form-field.is-invalid select, .form-field.is-invalid textarea { border-color: var(--danger); background: #fff5f5; }
.form-error { color: var(--danger); font-size: .78rem; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.form-note { font-size: .76rem; color: var(--muted); }
.hp-field { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: .87rem;
  margin-bottom: 24px;
  border: 1px solid transparent;
}
.alert .icon { width: 20px; height: 20px; margin-top: 3px; }
.alert--success { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.alert--error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.alert--info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }

/* contact layout */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.contact-card__icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(20, 184, 166, .1); color: var(--primary-dark); flex: 0 0 auto;
}
.contact-card strong { display: block; color: var(--ink); font-size: .9rem; margin-bottom: 2px; }
.contact-card a, .contact-card span { font-size: .85rem; color: var(--muted); }
.contact-card a:hover { color: var(--primary-dark); }

/* order page */
.order-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: start; }
.order-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.side-card h3 { font-size: 1rem; margin-bottom: 14px; }
.side-card ul { display: grid; gap: 12px; }
.side-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); line-height: 1.8; }
.side-card li .icon { width: 18px; height: 18px; color: var(--primary-dark); margin-top: 3px; }
.side-card--accent { background: var(--navy); color: rgba(255,255,255,.7); }
.side-card--accent h3 { color: #fff; }
.side-card--accent li { color: rgba(255,255,255,.6); }
.side-card--accent li .icon { color: #5eead4; }
.side-card--accent a { color: #5eead4; direction: ltr; display: inline-block; }

/* tracking result */
.track-result { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.track-result__head { padding: 24px; background: var(--surface-2); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.track-result__head h2 { font-size: 1.1rem; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; font-weight: 700; padding: 7px 13px; border-radius: 999px; background: var(--surface-3); color: var(--ink); }
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill--new { background: #eff6ff; color: #1d4ed8; }
.status-pill--contacted { background: #fffbeb; color: #b45309; }
.status-pill--in_progress { background: #f0fdfa; color: #0f766e; }
.status-pill--delivered { background: #ecfdf5; color: #047857; }
.status-pill--canceled { background: #fef2f2; color: #b91c1c; }
.track-result__body { padding: 24px; display: grid; gap: 12px; }
.track-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); font-size: .87rem; }
.track-row:last-child { border: 0; padding-bottom: 0; }
.track-row span { color: var(--muted); }
.track-row strong { color: var(--ink); }

/* resume */
.resume-layout { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; }
.resume-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.resume-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.resume-skills span {
  font-size: .73rem;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--body);
  border: 1px solid var(--line);
}
.resume-main .form-card { padding: clamp(22px, 4vw, 42px); }

@media print {
  .site-header, .site-footer, .chat-fab, .chat-panel, .toast-stack,
  .page-hero, .no-print, .cta, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 0 !important; }
  .container { width: 100% !important; max-width: none !important; }
  .resume-layout { grid-template-columns: 1fr; }
  .resume-aside { position: static; border: 0; padding: 0; }
  .form-card { border: 0; box-shadow: none; padding: 0; }
  .prose h2 { font-size: 15pt; margin-top: 18pt; }
  .prose p, .prose li { font-size: 10.5pt; line-height: 1.7; }
  a { color: #000; text-decoration: none; }
}

/* pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 42px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 12px;
  display: grid; place-items: center;
  border-radius: 11px; border: 1px solid var(--line);
  background: #fff; font-size: .85rem; color: var(--muted); font-weight: 600;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary-dark); }
.pagination .is-current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* chat widget */
.chat-fab {
  position: fixed;
  inset-inline-start: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 36px -12px rgba(20, 184, 166, .8);
  transition: transform .25s;
}
.chat-fab:hover { transform: translateY(-3px) scale(1.03); }
.chat-panel {
  position: fixed;
  inset-inline-start: 22px;
  bottom: 92px;
  z-index: 91;
  width: min(360px, calc(100vw - 44px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  flex-direction: column;
  max-height: min(520px, 70vh);
}
.chat-panel.is-open { display: flex; }
.chat-panel__head {
  background: var(--navy);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-panel__head strong { font-size: .9rem; }
.chat-panel__head span { display: block; font-size: .7rem; color: #5eead4; }
.chat-panel__head button { background: none; border: 0; color: rgba(255,255,255,.7); width: 30px; height: 30px; }
.chat-panel__body { padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 180px; }
.chat-msg { max-width: 82%; padding: 10px 13px; border-radius: 13px; font-size: .8rem; line-height: 1.7; }
.chat-msg--support { background: var(--surface-3); color: var(--body); border-start-start-radius: 4px; align-self: flex-start; }
.chat-msg--user { background: var(--primary); color: #fff; border-start-end-radius: 4px; align-self: flex-end; }
.chat-panel__foot { padding: 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.chat-panel__foot input { flex: 1; min-height: 42px; border: 1px solid var(--line); border-radius: 11px; padding: 8px 12px; font-size: .82rem; }
.chat-panel__foot button { width: 42px; height: 42px; border: 0; border-radius: 11px; background: var(--primary); color: #fff; display: grid; place-items: center; }

/* toast messages */
.toast-stack {
  position: fixed;
  top: calc(var(--header-h) + 14px);
  inset-inline: 0;
  z-index: 150;
  display: grid;
  gap: 8px;
  padding-inline: 16px;
  pointer-events: none;
}
.toast {
  width: min(560px, 100%);
  margin-inline: auto;
  pointer-events: auto;
  box-shadow: var(--shadow);
  background: #fff;
  animation: toastIn .35s var(--ease);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .services-grid, .projects-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
  .slide-title { font-size: clamp(1.8rem, 4vw, 2.8rem); }
}

@media (max-width: 900px) {
  .main-nav, .header-phone { display: none; }
  .nav-toggle { display: grid; }
  .slide { grid-template-columns: 1fr; gap: 34px; }
  .slide-media { max-width: 620px; }
  .slide-copy { max-width: none; }
  .slide-title { max-width: none; }
  .about-split, .project-hero, .order-layout, .contact-grid, .resume-layout { grid-template-columns: 1fr; }
  .project-side, .order-aside { position: static; }
  .cta { grid-template-columns: 1fr; }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --header-h: 70px; }
  .container { width: min(100% - 28px, var(--container)); }
  .hero { padding-top: calc(var(--header-h) + 30px); padding-bottom: 90px; min-height: 0; }
  .slide-features { gap: 12px; }
  .slide-feature { font-size: .73rem; }
  .slider-controls { margin-top: 30px; }
  .stats-bar { margin-top: -46px; }
  .stats-bar__inner { border-radius: 18px; }
  .stat { padding: 18px 14px; gap: 10px; }
  .stat__icon { width: 42px; height: 42px; border-radius: 12px; }
  .stat strong { font-size: 1.25rem; }
  .stat span { font-size: .72rem; }
  .services-grid, .projects-grid, .testimonials-grid, .process-grid, .team-grid, .faq-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 58px 0; }
  .section-head { margin-bottom: 32px; }
  .slide-media__frame { transform: none; }
  .slide-float { display: none; }
  .slider-btn { width: 42px; height: 42px; border-radius: 12px; }
  .chat-fab { inset-inline-start: 14px; bottom: 14px; }
  .chat-panel { inset-inline-start: 14px; bottom: 82px; }
  .track-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
