/* Shield UA — modern legal consulting landing */
:root {
  --bg: #060d18;
  --bg-2: #0c1829;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f0f4fc;
  --muted: #8b9cb8;
  --accent: #4d9fff;
  --accent-2: #7c5cff;
  --gold: #e8c547;
  --gold-dim: #b8942e;
  --success: #3dd68c;
  --danger: #ff6b6b;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Manrope", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- Background mesh ---- */
.mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(77, 159, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(124, 92, 255, 0.14), transparent 50%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(232, 197, 71, 0.08), transparent 55%),
    var(--bg);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  animation: float 18s ease-in-out infinite;
}
.orb-1 { width: 420px; height: 420px; background: rgba(77, 159, 255, 0.2); top: -120px; left: -80px; }
.orb-2 { width: 360px; height: 360px; background: rgba(124, 92, 255, 0.15); top: 40%; right: -100px; animation-delay: -6s; }
.orb-3 { width: 280px; height: 280px; background: rgba(232, 197, 71, 0.1); bottom: 10%; left: 30%; animation-delay: -12s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 25px) scale(0.95); }
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.35s, backdrop-filter 0.35s, box-shadow 0.35s;
}
.header.scrolled {
  background: rgba(6, 13, 24, 0.82);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  display: grid;
  place-items: center;
  box-shadow: none;
  flex-shrink: 0;
}
.logo-mark img,
.logo-mark svg { width: 44px; height: 44px; display: block; }
.logo-name em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), #fff5c8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-ua {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(77, 159, 255, 0.15);
  color: var(--accent);
  border: 1px solid rgba(77, 159, 255, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a {
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: var(--surface); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 8px 32px rgba(77, 159, 255, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(77, 159, 255, 0.5);
  transform: translateY(-1px);
}

.btn-gold {
  color: #0a1628;
  background: linear-gradient(135deg, var(--gold) 0%, #f5e6a8 100%);
  box-shadow: 0 8px 32px rgba(232, 197, 71, 0.3);
}
.btn-gold:hover {
  box-shadow: 0 12px 40px rgba(232, 197, 71, 0.45);
  transform: translateY(-1px);
}

.btn-lg { padding: 16px 28px; font-size: 1rem; border-radius: 14px; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 48px 0 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease both;
}
.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero h1 .gradient {
  background: linear-gradient(120deg, #fff 30%, var(--accent) 70%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.4s ease both;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-num span { color: var(--accent); }
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

.hero-visual {
  position: relative;
  animation: fadeUp 1s 0.2s ease both;
}
.hero-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent-2));
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hero-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.check-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}
.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(61, 214, 140, 0.15);
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}

.floating-tag {
  position: absolute;
  padding: 10px 16px;
  background: rgba(6, 13, 24, 0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  animation: bob 5s ease-in-out infinite;
}
.floating-tag-1 { top: -16px; right: -20px; animation-delay: 0s; }
.floating-tag-2 { bottom: 40px; left: -30px; animation-delay: -2s; color: var(--gold); }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---- Sections ---- */
section { padding: 100px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(77,159,255,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 159, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.service-card:hover::after { opacity: 1; }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(77,159,255,0.2), rgba(124,92,255,0.15));
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  position: relative;
}

/* ---- Steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  counter-increment: step;
}
.step-card::before {
  content: counter(step, decimal-leading-zero);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(77, 159, 255, 0.15);
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}
.step-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 0.85rem; color: var(--muted); }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(77, 159, 255, 0.35); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
}
.faq-q .chev {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-hover);
  display: grid;
  place-items: center;
  transition: transform 0.3s;
  font-size: 0.8rem;
}
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s;
}
.faq-item.open .faq-a { max-height: 200px; }
.faq-a-inner {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---- CTA band ---- */
.cta-band {
  margin: 0 auto;
  max-width: 960px;
  padding: 56px 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(77,159,255,0.15), rgba(124,92,255,0.1));
  border: 1px solid rgba(77, 159, 255, 0.25);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232,197,71,0.15), transparent 70%);
  top: -100px;
  right: -50px;
  pointer-events: none;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}
.cta-band p { color: var(--muted); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---- Footer ---- */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--muted); font-size: 0.88rem; margin-top: 12px; max-width: 280px; }
.footer h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.footer a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Cabinet page ---- */
.page-cabinet { min-height: 100vh; padding: 120px 0 80px; }
.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  backdrop-filter: blur(20px);
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.auth-card .sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; }
.tg-widget-wrap {
  display: flex;
  justify-content: center;
  min-height: 48px;
  margin: 20px 0;
}
.auth-fallback {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.auth-fallback p { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }

.dashboard {
  max-width: 900px;
  margin: 0 auto;
  display: none;
}
.dashboard.active { display: block; }
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.user-chip img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.dash-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.3s, transform 0.3s;
  cursor: pointer;
}
.dash-tile:hover {
  border-color: rgba(77, 159, 255, 0.35);
  transform: translateY(-3px);
}
.dash-tile .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(51, 144, 236, 0.1);
  color: var(--accent);
}
.dash-tile .icon svg { width: 22px; height: 22px; }
.dash-tile h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.dash-tile p { font-size: 0.82rem; color: var(--muted); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
}
.status-pill.pending { background: rgba(232,197,71,0.15); color: var(--gold); }
.status-pill.active { background: rgba(61,214,140,0.15); color: var(--success); }
.status-pill.ok { background: rgba(61,214,140,0.15); color: var(--success); }

.modal-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 20px;
}
.modal-trust span {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(51, 144, 236, 0.08);
  border: 1px solid rgba(51, 144, 236, 0.15);
}
.modal .tg-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(51, 144, 236, 0.06);
  border: 1px solid rgba(51, 144, 236, 0.12);
  text-align: left;
}
.modal .tg-preview img { width: 40px; height: 40px; flex-shrink: 0; }
.modal .tg-preview strong { display: block; font-size: 0.9rem; }
.modal .tg-preview span { font-size: 0.8rem; color: var(--muted); }

/* ---- Apply modal ---- */
body.tg-auth-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  width: min(480px, 100%);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s ease;
  position: relative;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1.2rem;
  display: grid;
  place-items: center;
}
.modal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.modal .sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }

/* ---- Trust marquee ---- */
.trust-marquee {
  position: relative;
  z-index: 90;
  margin-top: 76px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 13, 24, 0.92);
  overflow: hidden;
}
.trust-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 28s linear infinite;
  padding: 0 20px;
}
.trust-track span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Hero photos ---- */
.photo-main,
.photo-small,
.story-media,
.steps-photo,
.team-photo,
.service-img {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}
.photo-main img,
.photo-small img,
.story-media img,
.steps-photo img,
.team-photo img,
.service-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-main,
.photo-small {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.photo-main {
  aspect-ratio: 4 / 3;
}
.photo-small {
  aspect-ratio: 16 / 11;
}
.photo-collage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  align-items: start;
}
.photo-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.photo-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(6, 13, 24, 0.75);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  color: var(--muted);
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.hero-note-ava {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.hero-note strong { display: block; font-size: 0.9rem; }
.hero-note span { font-size: 0.8rem; color: var(--muted); }

/* ---- Trust row ---- */
.trust-logos { padding: 36px 0; }
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-item {
  text-align: center;
  padding: 20px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.trust-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}
.trust-txt { font-size: 0.82rem; color: var(--muted); }

/* ---- Service cards with images ---- */
.service-card.has-img {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.service-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.service-body {
  padding: 22px 24px 26px;
  position: relative;
  z-index: 1;
}

/* ---- About story ---- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.story-media {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}
.steps-photo {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  position: sticky;
  top: 100px;
}
.service-img {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius) var(--radius) 0 0;
}
.team-photo { aspect-ratio: 1; }
.cta-photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.review-top img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  position: static;
}
.story-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(6, 13, 24, 0.8);
  font-size: 0.85rem;
  font-weight: 600;
}
.story-p {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.7;
}
.story-list {
  list-style: none;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.story-list li {
  padding-left: 18px;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}
.story-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* ---- Steps visual ---- */
.steps-visual {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: start;
}
.steps-list { display: flex; flex-direction: column; gap: 14px; }
.step-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-n {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(77, 159, 255, 0.15);
  color: var(--accent);
  font-weight: 800;
  display: grid;
  place-items: center;
}
.step-row h4 { font-size: 1rem; margin-bottom: 6px; }
.step-row p { font-size: 0.88rem; color: var(--muted); }

/* ---- Team ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 159, 255, 0.3);
}
.team-photo {
  aspect-ratio: 1;
  overflow: hidden;
}
.team-card h3 {
  padding: 18px 20px 4px;
  font-size: 1.05rem;
}
.team-role {
  display: block;
  padding: 0 20px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}
.team-card p {
  padding: 10px 20px 22px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---- Reviews ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.review-card {
  margin: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.review-top img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}
.review-top strong { display: block; font-size: 0.95rem; }
.review-top span { font-size: 0.8rem; color: var(--muted); }
.review-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  font-style: italic;
}

/* ---- CTA photo ---- */
.cta-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 320px;
}
.cta-photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.cta-photo-inner {
  position: relative;
  z-index: 1;
  padding: 56px 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(6,13,24,0.3), rgba(6,13,24,0.85));
}
.cta-photo-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}
.cta-photo-inner p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 24px;
}

.hero h1 .gradient {
  background: linear-gradient(120deg, #fff 20%, #c8daf0 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.92em;
  color: var(--muted);
  display: block;
  margin-top: 8px;
}

/* ---- Mobile ---- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .photo-collage { grid-template-columns: 1fr; }
  .photo-side { flex-direction: row; }
  .photo-small { flex: 1; aspect-ratio: 1; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .story-grid, .steps-visual { grid-template-columns: 1fr; }
  .steps-photo { position: static; }
  .team-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav, .header-actions .btn-ghost { display: none; }
  .burger { display: flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    padding: 16px;
    background: rgba(6, 13, 24, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    z-index: 99;
  }
  .photo-side { flex-direction: column; }
  .services-grid, .steps, .dash-grid, .team-grid, .reviews-grid, .trust-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .cta-band { padding: 36px 24px; }
  .cta-photo-inner { padding: 40px 20px; }
  .hero { padding-top: 100px; }
}
