/* ============================================================
   KSP Data Center — Main Stylesheet
   Wabi-Sabi Digital Theme
   ============================================================ */


:root {
  --bg-base: #f5f2ed;
  --bg-section: #ede9e2;
  --bg-dark: #2c2a25;
  --bg-darker: #1e1d19;
  --bg-card: #faf8f4;
  --bg-card-alt: #f0ede6;

  --primary: #4a6741;
  --primary-dark: #364d2f;
  --primary-light: #6a8f60;
  --secondary: #8b6914;
  --accent: #c17f3a;
  --accent-light: #e8a85a;

  --text-main: #2c2a25;
  --text-muted: #6b6558;
  --text-light: #9c9488;
  --text-on-dark: #f0ede6;
  --text-on-dark-muted: #b8b0a4;

  --border-subtle: rgba(44, 42, 37, 0.1);
  --border-medium: rgba(44, 42, 37, 0.18);
  --border-accent: rgba(193, 127, 58, 0.35);

  --shadow-xs: 0 1px 3px rgba(44,42,37,0.07), 0 1px 2px rgba(44,42,37,0.04);
  --shadow-sm: 0 2px 8px rgba(44,42,37,0.08), 0 1px 3px rgba(44,42,37,0.05);
  --shadow-md: 0 4px 16px rgba(44,42,37,0.10), 0 2px 6px rgba(44,42,37,0.06);
  --shadow-lg: 0 8px 32px rgba(44,42,37,0.12), 0 3px 10px rgba(44,42,37,0.07);
  --shadow-xl: 0 16px 48px rgba(44,42,37,0.14), 0 6px 16px rgba(44,42,37,0.08);
  --shadow-green: 0 4px 20px rgba(74,103,65,0.18), 0 2px 8px rgba(74,103,65,0.10);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --footer-wave: #4a6741;

  --nav-h: 72px;
  --section-py: clamp(64px, 8vw, 120px);
  --section-px: clamp(20px, 5vw, 60px);
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.25s ease, opacity 0.25s ease; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }


h1, h2, h3, h4, h5 {
  font-family: 'Lora', serif;
  color: var(--text-main);
  line-height: 1.2;
}

.section-heading {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.section-heading.light { color: var(--text-on-dark); }

.section-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(193,127,58,0.1);
  border: 1px solid var(--border-accent);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.section-tag.light {
  color: var(--accent-light);
  background: rgba(232,168,90,0.12);
  border-color: rgba(232,168,90,0.25);
}

.section-intro {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-intro.light { color: var(--text-on-dark-muted); }

.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 70px);
}


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

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(245, 242, 237, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-nav.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(245, 242, 237, 0.97);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--section-px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-img { width: 36px; height: 36px; }
.logo-text {
  font-family: 'Lora', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}
.logo-accent { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(74,103,65,0.08);
}

.nav-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-card);
  background: var(--primary);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-green);
}
.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(74,103,65,0.25);
}
.nav-cta.active-cta { background: var(--primary-dark); }

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-light);
  border-radius: 50%;
  animation: pulse-ring 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1010;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,26,22,0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-overlay.visible {
  display: block;
  opacity: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--bg-card);
  background: var(--primary);
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-green);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74,103,65,0.28);
  color: var(--bg-card);
}
.btn-primary.light {
  background: var(--accent);
  box-shadow: 0 4px 20px rgba(193,127,58,0.25);
}
.btn-primary.light:hover {
  background: var(--secondary);
  box-shadow: 0 8px 28px rgba(193,127,58,0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--primary);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--bg-card);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-on-dark);
  background: rgba(255,255,255,0.1);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
  color: var(--text-on-dark);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 80px;
  overflow: hidden;
  background: var(--bg-base);
  display: flex;
  align-items: center;
}

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

.hero-blob {
  position: absolute;
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.55;
}
.blob-1 {
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  background: radial-gradient(ellipse, rgba(74,103,65,0.22) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation: blob-drift-1 18s ease-in-out infinite alternate;
}
.blob-2 {
  width: clamp(200px, 30vw, 450px);
  height: clamp(200px, 30vw, 450px);
  background: radial-gradient(ellipse, rgba(193,127,58,0.18) 0%, transparent 70%);
  bottom: 10%;
  left: 5%;
  animation: blob-drift-2 22s ease-in-out infinite alternate;
}
.blob-3 {
  width: clamp(150px, 20vw, 300px);
  height: clamp(150px, 20vw, 300px);
  background: radial-gradient(ellipse, rgba(139,105,20,0.12) 0%, transparent 70%);
  top: 40%;
  right: 30%;
  animation: blob-drift-3 16s ease-in-out infinite alternate;
}
@keyframes blob-drift-1 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; }
  100% { transform: translate(30px, 40px) scale(1.08) rotate(5deg); border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%; }
}
@keyframes blob-drift-2 {
  0% { transform: translate(0, 0) scale(1); border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; }
  100% { transform: translate(-20px, -30px) scale(1.05); border-radius: 45% 55% 35% 65% / 55% 45% 65% 35%; }
}
@keyframes blob-drift-3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(15px, -20px) scale(0.9); }
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--section-px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  width: 100%;
}

.hero-left { max-width: 620px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
}
.hero-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--accent);
  transform: translateY(-50%);
  border-radius: 2px;
}

.hero-heading {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero-heading em {
  font-style: italic;
  color: var(--primary);
  position: relative;
}
.hero-heading em::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  opacity: 0.5;
}

.hero-sub {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-light);
  background: rgba(44,42,37,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 0;
}
.hero-notice i { color: var(--accent); flex-shrink: 0; }

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
}
.hero-img {
  width: 100%;
  height: clamp(280px, 35vw, 420px);
  object-fit: cover;
  border-radius: 18px 32px 18px 28px;
  box-shadow: var(--shadow-xl);
}
.hero-img-badge {
  position: absolute;
  bottom: -16px;
  left: -16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}
.hero-img-badge i { color: var(--primary); font-size: 16px; }

/* ============================================================
   SERVICES OVERVIEW
   ============================================================ */
.services-overview {
  padding: var(--section-py) 0;
  background: var(--bg-base);
}

.services-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.service-card--featured {
  grid-row: span 1;
}

.service-card-img {
  overflow: hidden;
  height: 200px;
}
.service-card--featured .service-card-img { height: 240px; }

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.04); }

.service-card-body {
  padding: 24px;
}
.service-icon {
  width: 44px;
  height: 44px;
  background: rgba(74,103,65,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  margin-bottom: 14px;
}
.service-card-body h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}
.service-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s ease;
}
.card-link:hover { gap: 10px; }

/* ============================================================
   PROCESS SECTION
   ============================================================ */
.process-section {
  position: relative;
  padding: var(--section-py) 0;
  background: var(--bg-dark);
  overflow: hidden;
}
.process-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

.process-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.process-left .section-tag { color: var(--accent-light); background: rgba(232,168,90,0.12); border-color: rgba(232,168,90,0.25); }

.process-desc {
  color: var(--text-on-dark-muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.process-img {
  width: 100%;
  border-radius: 16px 24px 16px 20px;
  height: 260px;
  object-fit: cover;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.06);
}

.process-step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.process-step:last-child { border-bottom: none; }

.step-num {
  font-family: 'Lora', serif;
  font-size: 28px;
  font-weight: 700;
  color: rgba(193,127,58,0.4);
  min-width: 44px;
  line-height: 1;
  padding-top: 4px;
}

.step-body h4 {
  font-family: 'Lora', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 8px;
}
.step-body p {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  line-height: 1.65;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section {
  padding: var(--section-py) 0;
  background: var(--bg-section);
}

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

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-xs);
}
.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}
.feature-box--accent {
  background: linear-gradient(135deg, rgba(74,103,65,0.08) 0%, rgba(193,127,58,0.06) 100%);
  border-color: var(--border-accent);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(74,103,65,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 16px;
}
.feature-box--accent .feature-icon {
  background: rgba(193,127,58,0.12);
  color: var(--accent);
}

.feature-box h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-box p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   PULL QUOTE
   ============================================================ */
.pullquote-section {
  position: relative;
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--bg-darker);
  overflow: hidden;
}
.pullquote-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.07'/%3E%3C/svg%3E");
  pointer-events: none;
}

.pullquote-layout {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.pullquote-deco { margin-bottom: 24px; display: flex; justify-content: center; opacity: 0.7; }
.pullquote-text {
  font-family: 'Lora', serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-style: italic;
  color: var(--text-on-dark);
  line-height: 1.5;
  margin-bottom: 24px;
  font-weight: 500;
}
.pullquote-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-on-dark-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.pullquote-sep { opacity: 0.4; }

/* ============================================================
   TEAM SECTION
   ============================================================ */
.team-section {
  padding: var(--section-py) 0;
  background: var(--bg-base);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.team-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.team-card:hover .team-img-wrap img { transform: scale(1.05); }
.team-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(44,42,37,0.2) 100%);
}

.team-info {
  padding: 20px;
}
.team-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.team-role {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.team-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   RESOURCES SECTION
   ============================================================ */
.resources-section {
  position: relative;
  padding: var(--section-py) 0;
  background: var(--bg-dark);
  overflow: hidden;
}
.resources-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.resource-card {
  display: flex;
  gap: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.resource-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(193,127,58,0.3);
  transform: translateY(-3px);
}

.resource-icon {
  font-size: 28px;
  color: var(--accent-light);
  flex-shrink: 0;
  padding-top: 4px;
}
.resource-body h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 8px;
}
.resource-body p {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.resource-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(232,168,90,0.1);
  border: 1px solid rgba(232,168,90,0.2);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  letter-spacing: 0.05em;
}

.resources-cta {
  text-align: center;
}
.resources-cta p {
  color: var(--text-on-dark-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  padding: clamp(60px, 7vw, 100px) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-text h2 {
  font-size: clamp(22px, 3vw, 34px);
  color: var(--text-on-dark);
  margin-bottom: 12px;
}
.cta-text p {
  color: rgba(240,237,230,0.75);
  font-size: 15px;
  max-width: 500px;
  line-height: 1.65;
}
.cta-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  background: var(--bg-darker);
  padding-top: 80px;
  overflow: hidden;
}

.footer-illustration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  opacity: 0.3;
}
.footer-illustration svg { width: 100%; height: 100%; }

.footer-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--section-px) 60px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo-img { width: 32px; height: 32px; }
.footer-logo span {
  font-family: 'Lora', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-on-dark);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  line-height: 1.65;
  margin-bottom: 8px;
}
.footer-disclaimer {
  font-size: 12px;
  color: rgba(184,176,164,0.6);
  font-style: italic;
}

.footer-nav-col h5, .footer-contact-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 16px;
}
.footer-nav-col ul li, .footer-contact-col ul li {
  margin-bottom: 10px;
}
.footer-nav-col a {
  font-size: 14px;
  color: rgba(184,176,164,0.8);
  transition: color 0.2s ease;
}
.footer-nav-col a:hover { color: var(--text-on-dark); }

.footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(184,176,164,0.8);
  margin-bottom: 12px;
}
.footer-contacts i {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
}
.footer-contacts a {
  color: rgba(184,176,164,0.8);
  transition: color 0.2s ease;
}
.footer-contacts a:hover { color: var(--text-on-dark); }

.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px var(--section-px);
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(184,176,164,0.5);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 60px;
  background: var(--bg-section);
  overflow: hidden;
}
.page-hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.page-hero-heading {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.page-hero-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* ============================================================
   ABOUT INTRO (pochemu-my)
   ============================================================ */
.about-intro-section {
  padding: var(--section-py) 0;
  background: var(--bg-base);
}
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.about-intro-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(74,103,65,0.07);
  border: 1px solid rgba(74,103,65,0.15);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 8px;
}
.about-notice i { color: var(--primary); flex-shrink: 0; }

.about-intro-img {
  position: relative;
}
.about-intro-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px 32px 20px 24px;
  box-shadow: var(--shadow-xl);
}
.about-img-deco {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 80px;
  height: 80px;
  border: 3px solid var(--accent);
  border-radius: 50% 40% 60% 30%;
  opacity: 0.3;
  pointer-events: none;
}

/* ============================================================
   VALUES SECTION
   ============================================================ */
.values-section {
  position: relative;
  padding: var(--section-py) 0;
  background: var(--bg-dark);
  overflow: hidden;
}
.values-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.value-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.value-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(193,127,58,0.25);
}
.value-num {
  font-family: 'Lora', serif;
  font-size: 36px;
  font-weight: 700;
  color: rgba(193,127,58,0.25);
  margin-bottom: 12px;
  line-height: 1;
}
.value-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 12px;
}
.value-card p {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  line-height: 1.7;
}

/* ============================================================
   WHO WE SERVE (scenarios)
   ============================================================ */
.who-we-serve {
  padding: var(--section-py) 0;
  background: var(--bg-base);
}

.scenarios-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.scenario-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-xs);
}
.scenario-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.scenario-icon {
  width: 48px;
  height: 48px;
  background: rgba(74,103,65,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
}
.scenario-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.scenario-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   SERVICE DETAIL (nashi-uslugi)
   ============================================================ */
.service-detail-section {
  padding: var(--section-py) 0;
  background: var(--bg-base);
}
.service-detail-section.alt-bg { background: var(--bg-section); }

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.service-detail-grid.reverse { direction: rtl; }
.service-detail-grid.reverse > * { direction: ltr; }

.service-detail-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 18px 28px 18px 24px;
  box-shadow: var(--shadow-xl);
}

.service-detail-icon {
  width: 52px;
  height: 52px;
  background: rgba(74,103,65,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 16px;
}

.service-detail-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.service-detail-list {
  margin-top: 20px;
}
.service-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.service-detail-list li i { color: var(--primary); flex-shrink: 0; margin-top: 3px; }

/* ============================================================
   REPORTING SECTION
   ============================================================ */
.reporting-section {
  position: relative;
  padding: var(--section-py) 0;
  background: var(--bg-dark);
  overflow: hidden;
}
.reporting-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

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

.reporting-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  transition: background 0.3s ease, transform 0.3s ease;
}
.reporting-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}
.reporting-card i {
  font-size: 32px;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.reporting-card h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 12px;
}
.reporting-card p {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  line-height: 1.65;
}

/* ============================================================
   ADVANTAGES (nashi-preimushchestva)
   ============================================================ */
.advantages-section {
  padding: var(--section-py) 0;
  background: var(--bg-base);
}

.adv-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  margin-bottom: clamp(60px, 7vw, 100px);
}
.adv-feature.reverse { direction: rtl; }
.adv-feature.reverse > * { direction: ltr; }

.adv-feature-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 18px 28px 18px 24px;
  box-shadow: var(--shadow-xl);
}

.adv-feature-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.adv-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: clamp(60px, 7vw, 100px);
}

.adv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.adv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.adv-card i {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 14px;
  display: block;
}
.adv-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.adv-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.adv-pullquote {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  margin-bottom: clamp(60px, 7vw, 100px);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.adv-pullquote-line {
  width: 4px;
  height: 80px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 4px;
  flex-shrink: 0;
}
.adv-pullquote-text {
  font-family: 'Lora', serif;
  font-size: clamp(17px, 2vw, 22px);
  font-style: italic;
  color: var(--text-main);
  line-height: 1.5;
}

.adv-reporting {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.adv-reporting-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.adv-reporting-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 18px 28px 18px 24px;
  box-shadow: var(--shadow-xl);
}

/* ============================================================
   METHODOLOGY
   ============================================================ */
.methodology-section {
  position: relative;
  padding: var(--section-py) 0;
  background: var(--bg-dark);
  overflow: hidden;
}
.methodology-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

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

.method-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: background 0.3s ease;
}
.method-item:hover { background: rgba(255,255,255,0.07); }
.method-item i {
  font-size: 28px;
  color: var(--primary-light);
  margin-bottom: 16px;
  display: block;
}
.method-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 12px;
}
.method-item p {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  line-height: 1.65;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  padding: var(--section-py) 0;
  background: var(--bg-base);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-lg);
}

.contact-form-title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  margin-bottom: 8px;
}
.contact-form-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.req { color: var(--accent); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-main);
  background: var(--bg-base);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,103,65,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-checkbox {
  margin-top: 4px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border-medium);
  border-radius: 5px;
  background: var(--bg-base);
  transition: all 0.2s ease;
  position: relative;
  margin-top: 1px;
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.checkbox-label a { color: var(--primary); text-decoration: underline; }

.form-error {
  color: #c0392b;
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 18px;
}

.form-submit { width: 100%; justify-content: center; margin-top: 8px; }

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-md);
}
.contact-info-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
}
.contact-info-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.contact-info-list li:last-child { border-bottom: none; }
.ci-icon {
  width: 40px;
  height: 40px;
  background: rgba(74,103,65,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}
.contact-info-list strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-info-list p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.contact-info-list a {
  color: var(--primary);
}
.contact-info-list a:hover { text-decoration: underline; }

.contact-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  background: rgba(74,103,65,0.07);
  border: 1px solid rgba(74,103,65,0.15);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.contact-notice i { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.contact-notice p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ============================================================
   MAP SECTION
   ============================================================ */
.map-section {
  padding: var(--section-py) 0;
  background: var(--bg-section);
}
.map-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 28px;
  text-align: center;
}
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
}

/* ============================================================
   THANKS PAGE
   ============================================================ */
.thanks-page { min-height: 100vh; display: flex; flex-direction: column; }
.thanks-section {
  flex: 1;
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.thanks-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(74,103,65,0.12) 0%, transparent 70%);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  top: 10%;
  right: -10%;
  pointer-events: none;
  animation: blob-drift-1 18s ease-in-out infinite alternate;
}

.thanks-content {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.thanks-icon {
  font-size: 64px;
  color: var(--primary);
  margin-bottom: 24px;
  animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes pop-in {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.thanks-heading {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 16px;
}
.thanks-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.thanks-sub {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}
.thanks-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 32px;
  transition: color 0.2s ease;
}
.thanks-phone:hover { color: var(--primary-dark); }
.thanks-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-hero {
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 40px;
  background: var(--bg-section);
}
.legal-hero .section-container { max-width: 900px; }
.legal-hero h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 8px;
}
.legal-date {
  font-size: 14px;
  color: var(--text-muted);
}

.legal-content {
  padding: 60px 0 80px;
  background: var(--bg-base);
}
.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--section-px);
}
.legal-container p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.legal-container h2 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--text-main);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.legal-container h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 24px;
  margin-bottom: 12px;
}
.legal-container a { color: var(--primary); text-decoration: underline; }
.legal-container a:hover { color: var(--primary-dark); }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-darker);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px var(--section-px);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.3);
}
#cookie-banner.visible { transform: translateY(0); }

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  min-width: 260px;
}
.cookie-text p {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
  margin: 0;
}
.cookie-text a { color: var(--accent-light); text-decoration: underline; }
.cookie-text strong { color: var(--text-on-dark); }

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.cookie-btn-accept {
  background: var(--primary);
  color: white;
}
.cookie-btn-accept:hover { background: var(--primary-dark); }
.cookie-btn-reject {
  background: rgba(255,255,255,0.08);
  color: var(--text-on-dark-muted);
  border: 1px solid rgba(255,255,255,0.12);
}
.cookie-btn-reject:hover { background: rgba(255,255,255,0.14); color: var(--text-on-dark); }
.cookie-btn-customize {
  background: transparent;
  color: var(--accent-light);
  text-decoration: underline;
  padding: 9px 12px;
}
.cookie-btn-customize:hover { color: var(--accent); }


#cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#cookie-modal.open { display: flex; }

.cookie-modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-modal-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.cookie-modal-box > p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.cookie-category {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.cookie-category:last-of-type { border-bottom: none; margin-bottom: 24px; }

.cookie-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.cookie-cat-header strong { font-size: 15px; font-weight: 600; }
.cookie-category p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { display: none; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.25s ease;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-switch input:disabled + .toggle-slider { opacity: 0.6; cursor: not-allowed; }

.cookie-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-modal-actions .cookie-btn { flex: 1; text-align: center; }

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card--featured { grid-column: span 2; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .adv-cards-row { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-h) + 24px) 24px 24px;
    gap: 4px;
    z-index: 1001;
    box-shadow: var(--shadow-xl);
    transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 1px solid var(--border-subtle);
  }
  .nav-links.open { right: 0; }
  .nav-link { padding: 12px 16px; width: 100%; border-radius: var(--radius-sm); }
  .nav-cta { margin-left: 0; margin-top: 12px; width: calc(100% - 0px); justify-content: center; }

  .hamburger { display: flex; }

  .hero-container { grid-template-columns: 1fr; }
  .hero-right { align-items: stretch; }
  .hero-ctas { flex-direction: row; align-items: stretch; }
  .hero-image-wrap { max-width: 100%; }
  .hero-img { height: 260px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card--featured { grid-column: span 1; }

  .process-layout { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .resources-grid { grid-template-columns: 1fr; }

  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }

  .footer-container { grid-template-columns: 1fr 1fr; gap: 28px; }

  .about-intro-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .scenarios-layout { grid-template-columns: 1fr; }

  .service-detail-grid { grid-template-columns: 1fr; }
  .service-detail-grid.reverse { direction: ltr; }
  .service-detail-img { order: -1; }
  .service-detail-img img { height: 260px; }

  .reporting-grid { grid-template-columns: 1fr; }

  .adv-feature { grid-template-columns: 1fr; }
  .adv-feature.reverse { direction: ltr; }
  .adv-feature-img { order: -1; }
  .adv-feature-img img { height: 240px; }
  .adv-cards-row { grid-template-columns: 1fr 1fr; }
  .adv-reporting { grid-template-columns: 1fr; }
  .adv-reporting-img { order: -1; }

  .methodology-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; justify-content: flex-start; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; }
  .adv-cards-row { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .thanks-links { flex-direction: column; align-items: center; }
  .resource-card { flex-direction: column; }
  .cookie-modal-actions { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
}