@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-base: #0b0e14;
  --bg-1: #0f1320;
  --bg-2: #131828;
  --surf-1: #161c2e;
  --surf-2: #1c2338;
  --surf-3: #242d45;
  --surf-4: #2d3855;

  --accent-a: #4f8ef7;
  --accent-b: #34d399;
  --accent-c: #f59e0b;
  --accent-d: #a78bfa;

  --txt-primary: #e8edf8;
  --txt-secondary: #9aa5c0;
  --txt-muted: #5a6785;
  --txt-inverse: #0b0e14;

  --border: rgba(255,255,255,0.07);
  --border-hi: rgba(255,255,255,0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.04);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
  --shadow-accent: 0 4px 24px rgba(79,142,247,0.25), 0 2px 8px rgba(79,142,247,0.15);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-base);
  color: var(--txt-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--txt-primary);
}

a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.sec {
  padding: var(--space-2xl) 0;
}

.sec-head {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(79,142,247,0.12);
  border: 1px solid rgba(79,142,247,0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-a);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.sec-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--txt-primary);
  margin-bottom: 1rem;
}

.sec-sub {
  font-size: 1.05rem;
  color: var(--txt-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.txt-accent { color: var(--accent-a); }

.btn-pri {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--accent-a);
  color: var(--txt-inverse);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-accent);
  white-space: nowrap;

  &:hover {
    background: #6fa3fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(79,142,247,0.4), 0 4px 12px rgba(79,142,247,0.2);
    color: var(--txt-inverse);
  }
  &:active { transform: translateY(0); }
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--txt-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hi);
  cursor: pointer;
  transition: all var(--transition);

  &:hover {
    background: var(--surf-2);
    color: var(--txt-primary);
    border-color: var(--surf-4);
  }
}

.btn-lg { padding: 0.9rem 2.25rem; font-size: 1rem; }
.btn-xl { padding: 1.1rem 3rem; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

.crd {
  background: var(--surf-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition);

  &:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hi);
  }
}

.crd-ico-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--ico-bg) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--ico-bg) 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  flex-shrink: 0;
}

.crd-ico {
  font-size: 1.4rem;
  color: var(--ico-bg);
}

.crd-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--txt-primary);
}

.crd-txt {
  color: var(--txt-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===== HEADER ===== */
.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  & .hdr-inner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: 1.25rem var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
  }

  &.scrolled {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(11,14,20,0.75);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);

    & .hdr-inner { padding-top: 0.85rem; padding-bottom: 0.85rem; }
  }
}

.hdr-logo { flex-shrink: 0; }

.hdr-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  margin-left: auto;

  & li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--txt-secondary);
    transition: color var(--transition-fast);
    padding: 0.25rem 0;
    position: relative;

    &::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      right: 0;
      height: 2px;
      background: var(--accent-a);
      border-radius: 2px;
      transform: scaleX(0);
      transition: transform var(--transition);
    }

    &:hover {
      color: var(--txt-primary);
      &::after { transform: scaleX(1); }
    }
  }
}

.hdr-cta { flex-shrink: 0; }

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

  & span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--txt-primary);
    border-radius: 2px;
    transition: all var(--transition);
  }

  &.active {
    & span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    & span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    & span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  }
}

/* ===== MOBILE MENU ===== */
.mob-menu {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);

  &.open { transform: translateX(0); }
}

.mob-left {
  width: 55%;
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  padding: 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
}

.mob-close {
  background: var(--surf-2);
  border: 1px solid var(--border);
  color: var(--txt-primary);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  align-self: flex-start;

  &:hover { background: var(--surf-3); }
}

.mob-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.mob-link {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--txt-secondary);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);

  &:hover { color: var(--accent-a); padding-left: 0.5rem; }
  &:last-child { border-bottom: none; }
}

.mob-cta { align-self: flex-start; }

.mob-right {
  flex: 1;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(79,142,247,0.08) 0%, transparent 70%);
  }
}

.mob-brand-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  z-index: 1;
}

.mba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mba-crd {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--surf-1);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  color: var(--txt-muted);
  transition: all var(--transition);

  & i { font-size: 1.2rem; }
}

.mba-c1 { & i { color: var(--accent-a); } }
.mba-c2 { & i { color: var(--accent-b); } }
.mba-c3 { & i { color: var(--accent-c); } }
.mba-c4 { & i { color: var(--accent-d); } }

.mba-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--txt-primary);
  letter-spacing: 0.05em;
}

/* ===== HERO ===== */
.hero-sec {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(79,142,247,0.06) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 20% 80%, rgba(167,139,250,0.04) 0%, transparent 50%),
              var(--bg-base);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,142,247,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,142,247,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  min-height: calc(100vh - 100px);
}

.hero-content { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-b);
  margin-bottom: 1.5rem;
}

.hero-h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--txt-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 480px;
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.htag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  background: var(--surf-1);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--txt-secondary);

  & i { color: var(--accent-b); font-size: 0.7rem; }
}

/* Atropos hero widget */
.hero-atropos {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.hw-bg {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(79,142,247,0.12) 0%, transparent 70%);
  border-radius: var(--radius-xl);
}

.atropos-inner { position: relative; padding: 1.5rem; }

.hw-card {
  background: var(--surf-1);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
}

.hw-main {
  margin-bottom: 1rem;
}

.hw-card-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.hw-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hw-dot-g { background: var(--accent-b); }
.hw-dot-y { background: var(--accent-c); }
.hw-dot-r { background: #f87171; }

.hw-title-sm {
  font-size: 0.75rem;
  color: var(--txt-muted);
  margin-left: 0.5rem;
  font-weight: 500;
}

.hw-metrics { display: flex; flex-direction: column; gap: 1rem; }

.hw-metric {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hw-metric-ico {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--ico-clr) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--ico-clr) 25%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ico-clr);
  font-size: 1rem;
  flex-shrink: 0;
}

.hw-metric-info { display: flex; flex-direction: column; gap: 0.1rem; }
.hw-metric-val { font-size: 1rem; font-weight: 700; color: var(--txt-primary); }
.hw-metric-lbl { font-size: 0.75rem; color: var(--txt-muted); }

.hw-chart {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hw-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
}

.hw-bar {
  flex: 1;
  height: var(--h);
  background: rgba(79,142,247,0.3);
  border-radius: 3px 3px 0 0;
  transition: all var(--transition);
}

.hw-bar-hi { background: var(--accent-a); }

.hw-chart-lbl { font-size: 0.75rem; color: var(--txt-muted); }

.hw-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--accent-b);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
}

.hw-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-b);
  box-shadow: 0 0 8px var(--accent-b);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* ===== VOZMOZHNOSTI ===== */
.vozm-sec {
  background: var(--bg-1);
}

.vozm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.crd-lg { padding: var(--space-lg); }

.vozm-feat {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--surf-1) 0%, var(--surf-2) 100%);
  position: relative;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(79,142,247,0.15) 0%, transparent 70%);
    pointer-events: none;
  }
}

.crd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;

  & span {
    padding: 0.25rem 0.7rem;
    background: var(--surf-3);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--txt-secondary);
  }
}

.vozm-crd { grid-column: span 1; }

.vozm-wide {
  grid-column: span 2;
}

.vozm-wide-visual {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--surf-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.vwv-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;

  & i { font-size: 1.5rem; }
  & span { font-size: 0.75rem; color: var(--txt-muted); font-weight: 500; }
}

.vwv-n1 { & i { color: var(--accent-a); } }
.vwv-n2 { & i { color: var(--accent-b); } }

.vwv-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-d));
  opacity: 0.4;
}

.vwv-center {
  & i {
    font-size: 1.75rem;
    color: var(--accent-d);
    filter: drop-shadow(0 0 8px rgba(167,139,250,0.4));
  }
}

/* ===== HOW IT WORKS ===== */
.how-sec {
  background: var(--bg-base);
}

.how-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem 0;

  &::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--surf-4) 10%, var(--surf-4) 90%, transparent);
    transform: translateX(-50%);
  }
}

.htl-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  position: relative;

  &.htl-right {
    flex-direction: row-reverse;
    & .htl-crd { text-align: right; }
  }
}

.htl-connector {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.htl-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surf-2);
  border: 2px solid var(--accent-a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-a);
  box-shadow: 0 0 16px rgba(79,142,247,0.2);
}

.htl-crd {
  width: calc(50% - 3rem);
  flex-shrink: 0;

  & h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
  & p { color: var(--txt-secondary); font-size: 0.95rem; line-height: 1.65; }
}

.htl-crd-ico {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--ico-bg) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--ico-bg) 25%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ico-bg);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.htl-right .htl-crd-ico { margin-left: auto; }

/* ===== CATALOG ===== */
.cat-sec {
  background: var(--bg-1);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-crd {
  cursor: pointer;
  position: relative;
  overflow: hidden;

  &::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    opacity: 0;
    background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--cat-clr, var(--accent-a)) 8%, transparent) 0%, transparent 70%);
    transition: opacity var(--transition);
  }

  &:hover {
    &::after { opacity: 1; }
    & .cat-arrow { opacity: 1; transform: translateX(0); }
  }
}

.cat-ico {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--cat-clr) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-clr) 25%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--cat-clr);
  margin-bottom: 1rem;
}

.cat-crd h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cat-crd p {
  font-size: 0.82rem;
  color: var(--txt-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.cat-arrow {
  font-size: 0.75rem;
  color: var(--accent-a);
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--transition);
}

/* ===== DASHBOARD ===== */
.dash-sec {
  background: var(--bg-base);
}

.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}

.dash-widget {
  background: var(--surf-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);

  &:hover {
    border-color: var(--border-hi);
    box-shadow: var(--shadow-lg);
  }
}

.dw-wide { grid-column: span 1; }

.dw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.dw-lbl {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--txt-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;

  & i { color: var(--accent-a); }
}

.dw-period {
  font-size: 0.75rem;
  color: var(--txt-muted);
  padding: 0.2rem 0.6rem;
  background: var(--surf-2);
  border-radius: 100px;
}

.dw-bars { display: flex; flex-direction: column; gap: 0.9rem; }

.dw-bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dw-bar-lbl {
  font-size: 0.8rem;
  color: var(--txt-secondary);
  width: 90px;
  flex-shrink: 0;
}

.dw-bar-track {
  flex: 1;
  height: 8px;
  background: var(--surf-3);
  border-radius: 100px;
  overflow: hidden;
}

.dw-bar-fill {
  height: 100%;
  width: var(--w);
  background: var(--clr);
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dw-regions { display: flex; flex-direction: column; gap: 0.7rem; }

.dw-region {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--txt-secondary);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);

  &:last-child { border-bottom: none; }
}

.dw-r-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--d-clr);
  flex-shrink: 0;
}

.dw-types { display: flex; flex-direction: column; gap: 0.75rem; }

.dw-type {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--txt-secondary);
}

.dw-type-ico {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--t-clr) 15%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t-clr);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.dw-text {
  grid-column: span 3;

  & p {
    font-size: 0.9rem;
    color: var(--txt-secondary);
    line-height: 1.65;
    margin-bottom: 0.75rem;

    &:last-child { margin-bottom: 0; }
  }
}

/* ===== CTA ===== */
.cta-sec {
  background: var(--bg-1);
  text-align: center;
}

.cta-inner {
  position: relative;
  padding: var(--space-xl) var(--space-md);
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(79,142,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.25rem;
}

.cta-desc {
  color: var(--txt-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ===== CONTACTS ===== */
.kontakty-sec {
  background: var(--bg-base);
}

.kontakty-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.ki-crd {
  padding: var(--space-md);
  margin-bottom: 1rem;
}

.ki-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);

  &:last-child { border-bottom: none; }
}

.ki-ico {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--ki-clr) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--ki-clr) 25%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ki-clr);
  font-size: 1rem;
  flex-shrink: 0;
}

.ki-text { display: flex; flex-direction: column; gap: 0.25rem; }
.ki-lbl { font-size: 0.78rem; color: var(--txt-muted); font-weight: 500; }
.ki-val { font-size: 0.95rem; color: var(--txt-primary); }
.ki-link { color: var(--accent-a); &:hover { color: var(--txt-primary); } }

.ki-map { border-radius: var(--radius-md); overflow: hidden; }

.kf-crd { padding: var(--space-lg); }

.kf-progress {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  gap: 0;
}

.kf-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
}

.kf-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-a);
  color: var(--txt-inverse);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.kf-step-inactive .kf-step-num {
  background: var(--surf-3);
  color: var(--txt-muted);
}

.kf-step-lbl {
  font-size: 0.82rem;
  color: var(--txt-secondary);
  font-weight: 500;
}

.kf-step-inactive .kf-step-lbl { color: var(--txt-muted); }

.kf-step-line {
  flex: 1;
  height: 2px;
  background: var(--surf-3);
  border-radius: 2px;
}

.frm-h {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.frm-step { display: flex; flex-direction: column; gap: 1.25rem; }
.frm-step-hidden { display: none; }

.frm-grp { display: flex; flex-direction: column; gap: 0.5rem; }

.frm-lbl {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--txt-secondary);
}

.req { color: var(--accent-c); }

.frm-inp {
  background: var(--surf-2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: var(--txt-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all var(--transition);
  outline: none;
  width: 100%;

  &::placeholder { color: var(--txt-muted); }

  &:focus {
    border-color: var(--accent-a);
    background: var(--surf-1);
    box-shadow: 0 0 0 3px rgba(79,142,247,0.15);
  }

  &:invalid:not(:placeholder-shown) {
    border-color: #f87171;
  }
}

.frm-ta { resize: vertical; min-height: 130px; }

.frm-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--txt-secondary);
  line-height: 1.5;

  & input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: var(--accent-a);
    cursor: pointer;
  }

  & a { color: var(--accent-a); &:hover { text-decoration: underline; } }
}

.frm-btns {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ===== FOOTER ===== */
.ftr {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0 var(--space-md);
}

.ftr-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.ftr-desc {
  font-size: 0.88rem;
  color: var(--txt-muted);
  line-height: 1.65;
  margin-top: 1rem;
}

.ftr-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.ftr-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ftr-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--txt-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.ftr-col a, .ftr-addr {
  font-size: 0.87rem;
  color: var(--txt-muted);
  transition: color var(--transition-fast);
  line-height: 1.5;
}

.ftr-col a:hover { color: var(--accent-a); }

.ftr-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--txt-muted);
}

.ftr-legal {
  display: flex;
  gap: 1.5rem;

  & a {
    color: var(--txt-muted);
    &:hover { color: var(--accent-a); }
  }
}

/* ===== QUICK BAR ===== */
.quick-bar {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 800;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  &.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
}

.qb-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--surf-2);
  border: 1px solid var(--border-hi);
  color: var(--txt-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  text-decoration: none;

  &:hover {
    background: var(--accent-a);
    color: var(--txt-inverse);
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: var(--shadow-accent);
  }
}

/* ===== COOKIE CONSENT ===== */
.ck-card {
  position: fixed;
  top: 5rem;
  left: 1.5rem;
  z-index: 1000;
  width: 300px;
  background: var(--surf-1);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transform: translateX(calc(-100% - 2rem));
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  &.show { transform: translateX(0); }
  &.hide { transform: translateX(calc(-100% - 2rem)); }
}

.ck-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(79,142,247,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-a);
  font-size: 1rem;
}

.ck-title { font-size: 0.9rem; font-weight: 700; color: var(--txt-primary); }
.ck-text { font-size: 0.78rem; color: var(--txt-muted); line-height: 1.4; }

.ck-btns { display: flex; gap: 0.5rem; }

.ck-btn {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
}

.ck-accept {
  background: var(--accent-a);
  color: var(--txt-inverse);
  &:hover { background: #6fa3fa; }
}

.ck-settings {
  background: var(--surf-3);
  color: var(--txt-secondary);
  &:hover { background: var(--surf-4); color: var(--txt-primary); }
}

.ck-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);

  &.open { opacity: 1; pointer-events: all; }
}

.ck-modal {
  background: var(--surf-1);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 90%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition);
}

.ck-modal-overlay.open .ck-modal { transform: translateY(0); }

.ck-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;

  & h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 0.6rem; & i { color: var(--accent-c); } }
}

.ck-modal-close {
  background: var(--surf-3);
  border: none;
  color: var(--txt-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  &:hover { background: var(--surf-4); color: var(--txt-primary); }
}

.ck-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);

  &:last-child { border-bottom: none; }
}

.ck-cat-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;

  & strong { font-size: 0.9rem; color: var(--txt-primary); }
  & span { font-size: 0.78rem; color: var(--txt-muted); line-height: 1.4; }
}

.ck-toggle-locked {
  width: 44px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt-muted);
  font-size: 0.9rem;
}

.ck-toggle-wrap {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.ck-chk { opacity: 0; width: 0; height: 0; position: absolute; }

.ck-slider {
  position: absolute;
  inset: 0;
  background: var(--surf-3);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);

  &::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: var(--txt-secondary);
    border-radius: 50%;
    transition: all var(--transition);
  }
}

.ck-chk:checked + .ck-slider {
  background: var(--accent-a);
  &::before { transform: translateX(20px); background: white; }
}

.ck-modal-foot {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

/* ===== LEGAL PAGES ===== */
.legal-pg {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-main {
  flex: 1;
  padding: 8rem 0 4rem;
}

.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.legal-hero {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--txt-muted);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.legal-content {
  & h2 {
    font-size: 1.2rem;
    margin: 2.5rem 0 1rem;
    color: var(--txt-primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  & h3 {
    font-size: 1rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--accent-a);
  }

  & p {
    color: var(--txt-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1rem;
  }

  & ul, & ol {
    color: var(--txt-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1rem;
    padding-left: 1.5rem;

    & li { margin-bottom: 0.5rem; }
  }

  & table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.88rem;

    & th {
      background: var(--surf-2);
      color: var(--txt-secondary);
      font-weight: 600;
      padding: 0.75rem 1rem;
      text-align: left;
      border: 1px solid var(--border);
    }

    & td {
      padding: 0.75rem 1rem;
      border: 1px solid var(--border);
      color: var(--txt-secondary);
    }

    & tr:nth-child(even) td { background: var(--surf-1); }
  }

  & a { color: var(--accent-a); &:hover { text-decoration: underline; } }

  & strong { color: var(--txt-primary); }
}

/* ===== THANKS PAGE ===== */
.thanks-hero {
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--surf-2) 50%, var(--bg-1) 100%);
  position: relative;
  overflow: hidden;
  padding: 8rem 0 5rem;
  text-align: center;

  &::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(79,142,247,0.15) 0%, transparent 70%);
    pointer-events: none;
  }
}

.thanks-ico {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(52,211,153,0.15);
  border: 2px solid rgba(52,211,153,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-b);
  margin: 0 auto 2rem;
  box-shadow: 0 0 32px rgba(52,211,153,0.2);
}

.thanks-h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.thanks-sub {
  font-size: 1.1rem;
  color: var(--txt-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

.thanks-body {
  padding: var(--space-xl) 0;
  text-align: center;
}

.thanks-steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.ts-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 180px;
  text-align: center;
}

.ts-ico {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--surf-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-a);
}

.ts-item p {
  font-size: 0.88rem;
  color: var(--txt-muted);
  line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; gap: var(--space-xl); text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-tags { justify-content: center; }
  .hero-widget-col { max-width: 480px; margin: 0 auto; }

  .vozm-grid { grid-template-columns: 1fr 1fr; }
  .vozm-feat { grid-column: span 2; }
  .vozm-wide { grid-column: span 2; }

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

  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dw-wide { grid-column: span 2; }
  .dw-text { grid-column: span 2; }

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

  .ftr-top { grid-template-columns: 1fr; gap: var(--space-lg); }
  .ftr-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hdr-nav, .hdr-cta { display: none; }
  .hdr-burger { display: flex; }

  .vozm-grid { grid-template-columns: 1fr; }
  .vozm-feat { grid-column: span 1; }
  .vozm-wide { grid-column: span 1; }

  .how-timeline::before { left: 24px; }
  .htl-item, .htl-item.htl-right { flex-direction: column; padding-left: 64px; }
  .htl-item.htl-right .htl-crd { text-align: left; }
  .htl-connector { left: 24px; top: 0; transform: translateX(-50%); }
  .htl-crd { width: 100%; }
  .htl-right .htl-crd-ico { margin-left: 0; }

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

  .dash-grid { grid-template-columns: 1fr; }
  .dw-wide, .dw-text { grid-column: span 1; }

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

  .ftr-links { grid-template-columns: 1fr 1fr; }
  .ftr-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .ftr-legal { flex-wrap: wrap; justify-content: center; gap: 1rem; }

  .quick-bar { bottom: 1.5rem; right: 1rem; }

  .ck-card { width: calc(100vw - 3rem); left: 1rem; }

  .thanks-steps { gap: 1rem; }

  .vwv-line { display: none; }
  .vozm-wide-visual { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}

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

  .cat-grid { grid-template-columns: 1fr; }
  .ftr-links { grid-template-columns: 1fr; }

  .hero-h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-pri, .hero-actions .btn-ghost { width: 100%; justify-content: center; }

  .frm-btns { flex-direction: column; }
  .frm-btns .btn-ghost, .frm-btns .btn-pri { width: 100%; justify-content: center; }

  .kf-progress { gap: 0.5rem; }
  .kf-step-lbl { display: none; }

  .mob-left { width: 70%; }
  .mob-right { flex: 1; }

  .mba-crd { width: 64px; height: 64px; }
}