/* ============================================
   KSPire — Design Token System
   Color Accent System: Slate neutrals + Teal accent
   ============================================ */

:root {
  
  --color-bg:          #F5F6F7;
  --color-bg-raised:   #FFFFFF;
  --color-bg-inset:    #1E2A35;
  --color-bg-inset-2:  #253341;
  --color-accent:      #00A896;
  --color-accent-dark: #007A6E;
  --color-accent-light:#E0F5F3;

  --text-primary:   #1A2330;
  --text-secondary: #3D4F60;
  --text-muted:     #7A8FA0;
  --text-inset:     #E8EEF3;
  --text-inset-muted: #8FA8BC;

  
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg:   0 12px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);
  --shadow-xl:   0 24px 56px rgba(0,0,0,.14), 0 8px 16px rgba(0,0,0,.08);
  --shadow-accent: 0 4px 20px rgba(0,168,150,.30), 0 2px 8px rgba(0,168,150,.15);

  
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-2xl: 9rem;

  
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  
  --font-family: 'Figtree', sans-serif;

  
  --nav-height: 72px;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main, section { flex: 1; }

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

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

address { font-style: normal; }

/* ============================================
   Atomic Surface Classes
   ============================================ */
.surface       { background-color: var(--color-bg); color: var(--text-primary); }
.surface-raised{ background-color: var(--color-bg-raised); color: var(--text-primary); }
.surface-inset { background-color: var(--color-bg-inset); color: var(--text-inset); }

/* ============================================
   Typographic Scale
   ============================================ */
.text-display {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.text-body {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 400;
  line-height: 1.72;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.text-body:last-child { margin-bottom: 0; }

.text-caption {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================
   Spacing Utilities
   ============================================ */
.space-section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.space-card {
  padding: 1.75rem 2rem;
}

/* ============================================
   Layout Containers
   ============================================ */
.section-narrow {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-fullbleed {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* ============================================
   Accent Utilities
   ============================================ */
.accent-text { color: var(--color-accent); }
.accent-icon { color: var(--color-accent); }
.accent-bg {
  background-color: var(--color-accent);
  color: #fff;
}

/* ============================================
   Action Buttons
   ============================================ */
.action-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-accent);
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background-color 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
  box-shadow: var(--shadow-accent);
  text-decoration: none;
  min-height: 44px;
}

.action-primary:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,168,150,.40), 0 4px 10px rgba(0,168,150,.20);
}

.action-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-accent);
}

.action-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  border: 2px solid rgba(30,42,53,0.20);
  cursor: pointer;
  transition: border-color 0.22s ease, color 0.22s ease, background-color 0.22s ease;
  text-decoration: none;
  min-height: 44px;
}

.action-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: var(--color-accent-light);
}


.surface-inset .action-ghost,
.promo-section .action-ghost {
  color: var(--text-inset);
  border-color: rgba(232,238,243,0.30);
}

.surface-inset .action-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: rgba(0,168,150,0.15);
}

/* ============================================
   Navigation
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-height);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background-color: transparent;
}

.site-nav.nav-light {
  background-color: rgba(245,246,247,0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.site-nav.nav-light .nav-link,
.site-nav.nav-light .nav-logo-text {
  color: var(--text-primary);
}

.site-nav.nav-dark {
  background-color: rgba(30,42,53,0.92);
  backdrop-filter: blur(12px);
}

.site-nav.nav-dark .nav-link,
.site-nav.nav-dark .nav-logo-text {
  color: var(--text-inset);
}

.site-nav.nav-dark .hamburger span {
  background-color: var(--text-inset);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
}

.nav-logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin-left: auto;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-link:hover { color: var(--color-accent); }
.nav-link.active { color: var(--color-accent); font-weight: 600; }

.nav-cta {
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================
   Mobile Menu — Curtain Drop
   ============================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background-color: var(--color-bg-inset);
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu.is-open {
  transform: translateY(0);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 2rem;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 3rem;
}

.mobile-nav-links li {
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mobile-menu.is-open .mobile-nav-links li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-nav-links li:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-nav-links li:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.is-open .mobile-nav-links li:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.is-open .mobile-nav-links li:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.is-open .mobile-nav-links li:nth-child(5) { transition-delay: 0.32s; }

.mobile-nav-link {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-inset);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: color 0.2s ease, background-color 0.2s ease;
  text-align: center;
  min-height: 44px;
}

.mobile-nav-link:hover {
  color: var(--color-accent);
  background-color: rgba(0,168,150,0.12);
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 2px solid rgba(232,238,243,0.25);
  color: var(--text-inset);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  min-height: 44px;
}

.mobile-menu-close:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  background-color: var(--color-bg-inset);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,168,150,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-eyebrow {
  color: var(--color-accent);
  font-size: 0.8rem;
}

.hero-heading {
  color: var(--text-inset);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
}

.hero-desc {
  color: var(--text-inset-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-actions .action-ghost {
  color: var(--text-inset);
  border-color: rgba(232,238,243,0.30);
}

.hero-actions .action-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: rgba(0,168,150,0.12);
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background-color: rgba(0,168,150,0.12);
  border: 1px solid rgba(0,168,150,0.25);
  border-radius: var(--radius-md);
  width: fit-content;
}

.hero-badge .text-caption {
  color: var(--color-accent);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
}


.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  position: relative;
}

.hero-photo {
  border-radius: var(--radius-lg);
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow-xl);
}

.hero-photo--main {
  grid-column: 1 / -1;
  height: 280px;
}

.hero-photo--secondary {
  height: 180px;
}

.hero-photo--accent {
  height: 180px;
  margin-top: 1.5rem;
}

/* ============================================
   Page Hero (inner pages)
   ============================================ */
.page-hero {
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-xl);
}

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-hero-heading {
  color: var(--text-inset);
  margin: 0.75rem 0 1rem;
}

.page-hero-desc {
  color: var(--text-inset-muted);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* ============================================
   Section Labels & Headings
   ============================================ */
.section-label {
  display: block;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
}

.section-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.surface-inset .section-heading {
  color: var(--text-inset);
}

/* ============================================
   Services Grid
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon-wrap {
  width: 48px;
  height: 48px;
  background-color: var(--color-accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background-color 0.25s ease;
}

.service-card:hover .service-icon-wrap {
  background-color: var(--color-accent);
}

.service-card:hover .service-icon-wrap .accent-icon {
  color: #fff;
}

.service-icon-wrap .accent-icon {
  font-size: 1.2rem;
  transition: color 0.25s ease;
}

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ============================================
   Zigzag Blocks
   ============================================ */
.zigzag-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.zigzag-block--left { }
.zigzag-block--right { }

.zigzag-text {
  display: flex;
  flex-direction: column;
}

.zigzag-text .text-body { margin-bottom: 1.25rem; }

.zigzag-photo {
  border-radius: var(--radius-xl);
  object-fit: cover;
  height: 420px;
  box-shadow: var(--shadow-xl);
  transition: transform 0.4s ease;
}

.zigzag-photo:hover {
  transform: scale(1.02);
}

/* ============================================
   Counter Section
   ============================================ */
.counter-section {
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.5rem 1rem;
}

.counter-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.counter-unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.counter-label {
  margin-top: 0.5rem;
  text-align: center;
  max-width: 160px;
}

/* ============================================
   Journey / Customer Path
   ============================================ */
.journey-track {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.journey-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
}

.journey-step-num {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: var(--shadow-accent);
}

.journey-step-content {
  padding-bottom: 0.5rem;
}

.journey-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.journey-connector {
  width: 2px;
  height: 2.5rem;
  background: linear-gradient(to bottom, var(--color-accent), rgba(0,168,150,0.2));
  margin-left: 27px;
  border-radius: 2px;
}

/* ============================================
   Promo Section
   ============================================ */
.promo-section {
  background: linear-gradient(135deg, var(--color-bg-inset) 0%, #0D1F2D 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.promo-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,168,150,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.promo-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.promo-icon-wrap {
  width: 72px;
  height: 72px;
  background-color: rgba(0,168,150,0.15);
  border: 2px solid rgba(0,168,150,0.30);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  color: var(--color-accent);
}

.promo-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-inset);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.promo-text {
  font-size: 1.05rem;
  color: var(--text-inset-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.promo-cta {
  margin-top: 2.5rem;
}

/* ============================================
   CTA Final Section
   ============================================ */
.cta-final-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-final-text {
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 1rem;
}

.cta-final-contacts {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-raised);
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

.contact-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   Why / Features Grid
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.why-item {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.why-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 1rem;
}

.why-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

/* ============================================
   Process Detailed (kak-vsyo page)
   ============================================ */
.process-detailed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step-detailed {
  padding: 2.5rem 0;
}

.process-step-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.process-step-num-lg {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.process-step-heading {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.process-step-body .text-body { margin-bottom: 1rem; }

.process-divider {
  height: 1px;
  background: linear-gradient(to right, var(--color-accent), transparent);
  opacity: 0.25;
}

/* ============================================
   FAQ Grid
   ============================================ */
.faq-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.faq-section-inner .section-heading {
  color: var(--text-inset);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.faq-item {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.faq-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

/* ============================================
   Objects Grid (dlya-ofisov page)
   ============================================ */
.objects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.object-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.object-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.object-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 1rem;
}

.object-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

/* ============================================
   Business List (dlya-ofisov page)
   ============================================ */
.biz-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

.biz-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
}

.biz-item-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.biz-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-layout {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.contact-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-detail-label {
  margin-bottom: 0.2rem;
}

.contact-detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

a.contact-detail-value:hover { color: var(--color-accent); }

.contact-form-wrap {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.form-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.form-row-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: var(--color-bg);
  border: 2px solid rgba(0,0,0,0.10);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
  outline: none;
  min-height: 44px;
  width: 100%;
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0,168,150,0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 88px;
}

.form-footer-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  flex: 1;
  min-width: 200px;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.form-submit {
  flex-shrink: 0;
}

.map-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 360px;
  box-shadow: var(--shadow-lg);
}

.map-caption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.25rem;
}

/* ============================================
   Inline Link
   ============================================ */
.inline-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.inline-link:hover { color: var(--color-accent-dark); }

/* ============================================
   Thanks Page
   ============================================ */
.thanks-section {
  min-height: calc(100vh - var(--nav-height) - 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) 1.5rem;
}

.thanks-inner {
  text-align: center;
  max-width: 520px;
}

.thanks-icon-wrap {
  margin-bottom: 2rem;
}

.thanks-icon {
  font-size: 4rem;
}

.thanks-heading {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.thanks-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.thanks-back {
  margin-top: 2.5rem;
}

/* ============================================
   Legal Pages
   ============================================ */
.legal-section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.legal-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legal-block {
  margin-bottom: 3rem;
}

.legal-summary {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: var(--color-accent-light);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.875rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.legal-summary .accent-icon { flex-shrink: 0; margin-top: 2px; }

.legal-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.legal-detail .text-body { margin-bottom: 1rem; }


.legal-terms .terms-section-wrap {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.legal-terms .terms-section-wrap:last-child { border-bottom: none; }

.terms-num {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  opacity: 0.6;
}

.terms-content .legal-heading { margin-top: 0.2rem; }


.cookie-intro-block {
  margin-bottom: 2.5rem;
}

.cookie-category-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.cookie-cat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cookie-cat-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cookie-cat-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.required-badge { background-color: #E8F5E9; color: #2E7D32; }
.analytics-badge { background-color: #E3F2FD; color: #1565C0; }
.functional-badge { background-color: #FFF3E0; color: #E65100; }

.cookie-table-wrap {
  overflow-x: auto;
  margin-top: 1.25rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.cookie-table th {
  text-align: left;
  padding: 0.6rem 0.875rem;
  background-color: var(--color-bg);
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 2px solid rgba(0,0,0,0.08);
}

.cookie-table td {
  padding: 0.6rem 0.875rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: var(--text-secondary);
}

.cookie-table code {
  background-color: var(--color-bg);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--color-accent-dark);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.04);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo { text-decoration: none; }

.footer-tagline {
  color: var(--text-muted);
  max-width: 240px;
  line-height: 1.6;
}

.footer-nav-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-link:hover { color: var(--color-accent); }

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--text-muted);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom .text-caption { color: var(--text-muted); }

/* ============================================
   Cookie Consent — Top-left floating card
   ============================================ */
.cookie-consent-card {
  position: fixed;
  top: calc(var(--nav-height) + 1rem);
  left: 1.25rem;
  z-index: 1000;
  background-color: var(--color-bg-raised);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 1.25rem 1.5rem;
  max-width: 320px;
  width: calc(100vw - 2.5rem);
  transform: translateX(calc(-100% - 2rem));
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(0,0,0,0.07);
}

.cookie-consent-card.is-visible {
  transform: translateX(0);
}

.cookie-consent-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.cookie-consent-icon {
  font-size: 1.1rem;
  color: var(--color-accent);
}

.cookie-consent-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cookie-consent-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.cookie-consent-text a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-btn-accept {
  flex: 1;
  background-color: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  min-height: 36px;
}

.cookie-btn-accept:hover { background-color: var(--color-accent-dark); }

.cookie-btn-settings {
  background: none;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.55rem 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  min-height: 36px;
}

.cookie-btn-settings:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}


.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.55);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cookie-modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.cookie-modal {
  background-color: var(--color-bg-raised);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.cookie-modal-overlay.is-open .cookie-modal {
  transform: scale(1);
}

.cookie-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.cookie-modal-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.cookie-modal-category:last-of-type { border-bottom: none; }

.cookie-cat-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.cookie-cat-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background-color: #CBD5E0;
  border-radius: 22px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: var(--color-accent);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(18px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  background-color: var(--color-accent);
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal-footer {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.cookie-modal-save {
  flex: 1;
  background-color: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  min-height: 44px;
}

.cookie-modal-save:hover { background-color: var(--color-accent-dark); }

.cookie-modal-close {
  background: none;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
  min-height: 44px;
}

.cookie-modal-close:hover { border-color: var(--color-accent); }

/* ============================================
   Reveal Animations
   ============================================ */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .counters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-2xl: 6rem;
  }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-content-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .hero-photo--main { height: 220px; }
  .hero-photo--secondary,
  .hero-photo--accent { height: 140px; }
  .hero-photo--accent { margin-top: 0; }

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

  .zigzag-block {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .zigzag-block--right .zigzag-image { order: -1; }

  .zigzag-photo { height: 280px; }

  .counters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

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

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

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

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

  .form-row-inline {
    grid-template-columns: 1fr;
  }

  .map-wrap { height: 280px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .process-step-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .legal-terms .terms-section-wrap {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .terms-num { font-size: 1.25rem; }

  .cta-final-contacts {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo--secondary { display: none; }
  .hero-photo--accent { display: none; }

  .space-card { padding: 1.25rem; }

  .journey-step {
    grid-template-columns: 44px 1fr;
    gap: 1rem;
  }

  .journey-step-num { width: 44px; height: 44px; font-size: 0.95rem; }
  .journey-connector { margin-left: 21px; }

  .cookie-consent-card { max-width: calc(100vw - 2rem); }
}