/* ============================================================
   Raft AI Superset — Landing Page Styles
   Brand: Raft Digital Solutions · Design System v2 (light)
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --primary: #2f6bff;
  --primary-2: #5c88ff;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f0f3f7;
  --soft-blue: #edf4ff;
  --text: #111827;
  --muted: #667085;
  --faint: #98a2b3;
  --line: #dde3ea;
  --hero-line: #dbe6ff;
  --viz-green: #4fd1a5;
  --viz-amber: #f4b860;
  --shadow-sm: 0 8px 24px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 18px 48px rgba(17, 24, 39, 0.07);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --content: 1280px;
  --gutter: 20px;
  --tr: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Manrope", system-ui, sans-serif;
  --section-pad: 120px;
}

/* ── RESET ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ── SCROLL REVEAL ──────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}
[data-reveal][data-d="1"] {
  transition-delay: 0.1s;
}
[data-reveal][data-d="2"] {
  transition-delay: 0.22s;
}
[data-reveal][data-d="3"] {
  transition-delay: 0.32s;
}
[data-reveal][data-d="4"] {
  transition-delay: 0.42s;
}

/* ── LAYOUT ─────────────────────────────────────────────── */
.wrap {
  width: min(calc(100% - 2 * var(--gutter)), var(--content));
  margin-inline: auto;
}
.section {
  padding: var(--section-pad) 0;
}
.section--white {
  background: var(--surface);
}
.section--soft {
  background: var(--soft-blue);
}
.section-sep {
  border-top: 1px solid var(--line);
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-head .sub {
  margin-inline: auto;
  margin-top: 16px;
}

/* ── TYPE ───────────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.h2 {
  font-size: clamp(2rem, 1.3rem + 2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--text);
}
.h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--text);
}
.sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--sans);
  transition: all var(--tr);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-p {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-p:hover {
  background: var(--primary-2);
  transform: translateY(-1px);
}
.btn-s {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
.btn-s:hover {
  background: var(--surface-2);
  transform: translateY(-1px);
}
.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.link-arrow {
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--tr);
}
.link-arrow:hover {
  gap: 10px;
}

/* ── TOPBAR ─────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 246, 248, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(221, 227, 234, 0.88);
  transition:
    background 0.35s,
    box-shadow 0.35s;
}
.topbar.solid {
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.06);
  border-bottom-color: var(--line);
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 17px;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-a {
  position: relative;
}
.nav-a:hover,
.nav-a.act {
  color: var(--text);
}
.nav-a.act::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-cta {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

/* Dropdown */
.nav-dd {
  position: relative;
}
.nav-dd-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-md);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity var(--tr),
    transform var(--tr);
}
.nav-dd:hover .nav-dd-menu,
.nav-dd.open .nav-dd-menu {
  opacity: 1;
  pointer-events: all;
  transform: none;
}
.nav-dd-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: all var(--tr);
}
.nav-dd-menu a:hover {
  background: var(--surface-2);
  color: var(--text);
}
.nav-dd-menu a.act {
  background: var(--soft-blue);
  color: var(--primary);
  font-weight: 600;
}
.nav-dd-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 8px 12px 2px;
  pointer-events: none;
  user-select: none;
}

/* Breadcrumb */
.breadcrumb-bar {
  border-top: 1px solid rgba(221, 227, 234, 0.5);
  padding: 6px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--text);
}
.bc-sep {
  color: var(--faint);
  margin: 0 2px;
}
.bc-cur {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

/* Hamburger + mobile nav */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 500;
  padding: 80px 28px 32px;
  overflow-y: auto;
  flex-direction: column;
  gap: 0;
}
.mobile-nav.open {
  display: flex;
}
.m-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 26px;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
}
.m-link {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: block;
}
.m-link.act {
  color: var(--primary);
}
.m-sub {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 0 10px 16px;
  border-bottom: 1px solid var(--line);
  display: block;
}
.m-sub.act {
  color: var(--primary);
}

/* ═══════════════════════════════════════════════════════
   SECTION 1 — HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  background: var(--surface);
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(47, 107, 255, 0.1) 1px,
    transparent 0
  );
  background-size: 28px 28px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 100px);
  padding: 60px var(--gutter) 40px;
  position: relative;
  z-index: 1;
}
.hero-content {
  text-align: center;
  max-width: 920px;
  margin-inline: auto;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--soft-blue);
  border: 1px solid var(--hero-line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 28px;
}
.hero-h1 {
  font-size: clamp(2.8rem, 2rem + 2.5vw, 5.2rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.055em;
  margin-bottom: 28px;
}
.h1-static {
  display: block;
}

/* Rotating word wrapper */
.rot-wrap {
  display: block;
  position: relative;
  overflow: visible;
  height: 1.05em;
}

/* Typewriter target inside #heroRotate */
#heroRotate {
  overflow: visible;
  display: inline;
  position: static;
  height: auto;
}
.tw-word {
  color: var(--primary);
  white-space: nowrap;
}
.tw-cursor {
  color: var(--primary);
  opacity: 1;
  animation: tw-blink 0.75s step-start infinite;
  font-weight: 400;
}
@keyframes tw-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tw-cursor {
    animation: none;
  }
}
.rot-word {
  display: block;
  position: absolute;
  top: 0;
  width: 100%;
  color: var(--primary);
  opacity: 0;
  transform: translateY(100%);
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease;
  white-space: nowrap;
}
.rot-word.in {
  opacity: 1;
  transform: none;
}
.rot-word.out {
  opacity: 0;
  transform: translateY(-100%);
}

.hero-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
  margin: 0 auto 40px;
}
.hero-actions {
  justify-content: center;
  margin-bottom: 72px;
}

/* Video placeholder */
.hero-video-zone {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter) 80px;
}
.hero-video {
  width: min(100%, 1000px);
  margin-inline: auto;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #edf4ff, #e4eeff);
  border: 1px solid rgba(47, 107, 255, 0.18);
  box-shadow:
    0 0 80px rgba(47, 107, 255, 0.1),
    var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.hero-video:hover {
  box-shadow:
    0 0 100px rgba(47, 107, 255, 0.18),
    var(--shadow-md);
}
.play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(47, 107, 255, 0.35);
  transition: transform 0.2s ease;
}
.hero-video:hover .play-btn {
  transform: scale(1.08);
}
.video-label {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   SECTION 2 — TRUST / НАМ ДОВЕРЯЮТ
   ═══════════════════════════════════════════════════════ */
.trust-head {
  margin-bottom: 48px;
  text-align: center;
}
.trust-static {
  display: block;
  font-size: clamp(2rem, 1.3rem + 2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
}
.trust-rot-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  height: 1.15em;
  font-size: clamp(2rem, 1.3rem + 2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.trust-rot-wrap .rot-word {
  color: var(--primary);
}
.logos-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.logo-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 36px 24px;
  text-align: center;
  opacity: 0.35;
  transition:
    opacity 0.45s ease,
    box-shadow 0.3s,
    transform 0.3s;
}
.logo-card.act {
  opacity: 1;
  box-shadow:
    0 0 0 2px var(--primary),
    var(--shadow-sm);
  transform: translateY(-2px);
}
.logo-mark {
  font-size: clamp(1.3rem, 1rem + 1vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 8px;
}
.logo-desc {
  font-size: 14px;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════
   SECTION 3 — FEATURE TABS
   ═══════════════════════════════════════════════════════ */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
}
.tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--tr);
}
.tab-btn:hover {
  color: var(--text);
  border-color: rgba(47, 107, 255, 0.4);
}
.tab-btn.act {
  background: var(--soft-blue);
  color: var(--primary);
  border-color: rgba(47, 107, 255, 0.3);
}

.tab-panel {
  display: none;
}
.tab-panel.act {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  animation: fadeUp 0.35s ease;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tab-copy {
  display: grid;
  gap: 18px;
}
.tab-copy .th {
  font-size: clamp(1.4rem, 1rem + 1vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text);
}
.tab-copy p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

/* Tab visual (DOM product mock) */
.tv {
  background: linear-gradient(180deg, #fbfdff, #f2f7ff);
  border: 1px solid var(--hero-line);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tv-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hero-line);
}
.tv-dots {
  display: flex;
  gap: 6px;
}
.tv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.tv-dot:nth-child(1) {
  background: var(--primary);
}
.tv-dot:nth-child(2) {
  background: var(--viz-green);
}
.tv-dot:nth-child(3) {
  background: var(--viz-amber);
}
.tv-lbl {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tv-body {
  flex: 1;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--hero-line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.tv-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--hero-line);
  font-size: 13px;
  color: var(--text);
  max-width: 88%;
}
.tv-bubble.ai {
  background: var(--soft-blue);
  border-color: rgba(47, 107, 255, 0.2);
  align-self: flex-end;
}
.tv-bar-row {
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--primary-2), rgba(92, 136, 255, 0.2));
}
.tv-bar-row.w90 {
  width: 90%;
}
.tv-bar-row.w80 {
  width: 80%;
}
.tv-bar-row.w65 {
  width: 65%;
}
.tv-bar-row.w50 {
  width: 50%;
}
.tv-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--hero-line);
}
.tv-metric .val {
  font-weight: 700;
  color: #111;
}
.tv-tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--soft-blue);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}
.tv-tag.warn {
  background: #fff3e0;
  color: #c96b0a;
}
.tv-query {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tv-cursor {
  color: var(--primary);
  font-weight: 700;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.tv-schema {
  font-size: 13px;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--hero-line);
}
.tv-schema strong {
  color: var(--text);
  font-weight: 600;
}
.tv-log {
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--hero-line);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.tv-log .ts {
  color: #bbb;
  white-space: nowrap;
  font-size: 11px;
  padding-top: 1px;
}
.tv-log .msg {
  color: #bbb;
  line-height: 1.5;
}
.tv-log .ok {
  color: #1a9e6b;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  padding-top: 1px;
}
.tv-mini-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #111;
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════════
   SECTION 4 — ROLE CARDS
   ═══════════════════════════════════════════════════════ */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.role-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 36px 28px;
  display: grid;
  gap: 16px;
  align-content: start;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
  box-shadow: var(--shadow-sm);
}
.role-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 107, 255, 0.22);
}
.role-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--soft-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.role-icon svg {
  stroke: var(--primary);
}
.role-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   SECTION 5 — PARTNERS
   ═══════════════════════════════════════════════════════ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.partner-tile {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  transition: all var(--tr);
}
.partner-tile:hover {
  border-color: rgba(47, 107, 255, 0.3);
  background: var(--soft-blue);
  box-shadow: var(--shadow-sm);
}
.p-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--soft-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  transition: background var(--tr);
}
.partner-tile:hover .p-icon {
  background: #fff;
}
.p-icon svg {
  stroke: var(--primary);
}
.p-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.p-type {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════════
   SECTION 6 — ACHIEVEMENTS
   ═══════════════════════════════════════════════════════ */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.award-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 28px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.a-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.a-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--soft-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.a-badge svg {
  stroke: var(--primary);
}
.a-event {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.a-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.a-project {
  font-size: 14px;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════
   SECTION 7 — CONTACT
   ═══════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-copy {
  display: grid;
  gap: 20px;
  padding-top: 8px;
}
.contact-copy h2 {
  font-size: clamp(1.8rem, 1.2rem + 1.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
}
.contact-copy p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}
.c-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.c-field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}
.c-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.c-field input,
.c-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--tr);
}
.c-field input:focus,
.c-field textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.c-field textarea {
  resize: vertical;
  min-height: 100px;
}
.c-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--sans);
  cursor: pointer;
  transition: all var(--tr);
  box-shadow: var(--shadow-sm);
}
.c-submit:hover {
  background: var(--primary-2);
  transform: translateY(-1px);
}

/* ── FOOTER ─────────────────────────────────────────────── */
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-brand {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color var(--tr);
}
.footer-links a:hover {
  color: var(--text);
}
.footer-copy {
  font-size: 13px;
  color: var(--faint);
}

/* ═══════════════════════════════════════════════════════
   NAV LOGO (#1)
   ═══════════════════════════════════════════════════════ */
.nav-logo {
  height: 32px;
  width: auto;
  display: block;
}
.nav-brand-text {
  display: none;
}

/* ═══════════════════════════════════════════════════════
   HERO VIDEO (#3)
   ═══════════════════════════════════════════════════════ */
.hero-video-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(47, 107, 255, 0.2);
  box-shadow:
    0 0 80px rgba(47, 107, 255, 0.12),
    var(--shadow-md);
  position: relative;
  background: linear-gradient(145deg, #edf4ff, #e4eeff);
  aspect-ratio: 16/9;
}
.hero-video-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.hero-video-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: opacity 0.3s;
}
.hero-video-fallback.hidden {
  opacity: 0;
  pointer-events: none;
}
.hero-video-wrapper:hover .play-btn {
  transform: scale(1.08);
}

/* ═══════════════════════════════════════════════════════
   CLIENT LOGO IMAGES (#4)
   ═══════════════════════════════════════════════════════ */
.logo-img-wrap {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.client-logo-img {
  max-height: 60px;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

/* ═══════════════════════════════════════════════════════
   CLIENT CORNER ICONS (#4)
   ═══════════════════════════════════════════════════════ */
.logo-card {
  position: relative;
  overflow: visible;
}

.client-corner-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(47, 107, 255, 0.35);
}
.client-corner-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.logo-card.act .client-corner-icon {
  opacity: 1;
  transform: scale(1);
}

/* ═══════════════════════════════════════════════════════
   TESTIMONIALS CAROUSEL (#5)
   ═══════════════════════════════════════════════════════ */
.tcarousel {
  position: relative;
  overflow: hidden;
  cursor: grab;
}
.tcarousel.dragging {
  cursor: grabbing;
}
.tcarousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.tcarousel.dragging .tcarousel-track {
  transition: none;
}

.tcard {
  flex: 0 0 calc(50% - 10px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 32px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.tcard-quote {
  font-size: 80px;
  font-weight: 800;
  line-height: 0.75;
  color: var(--primary);
  opacity: 0.15;
  font-family: Georgia, serif;
  position: absolute;
  top: 18px;
  left: 26px;
  pointer-events: none;
  user-select: none;
}
.tcard-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.72;
  padding-top: 38px;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.tcard-text.expanded {
  display: block;
  overflow: visible;
}
.tcard-toggle {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  align-self: flex-start;
  padding: 0;
  margin-bottom: 16px;
  transition: color var(--tr);
}
.tcard-toggle:hover {
  color: var(--primary-2);
}
.tcard-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.tcard-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--soft-blue);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.01em;
}
.tcard-author-info {
  flex: 1;
  min-width: 0;
}
.tcard-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.tcard-role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tcard-company-logo {
  flex-shrink: 0;
}
.tcard-company-logo img {
  height: 28px;
  max-width: 80px;
  object-fit: contain;
  display: block;
}

.tcarousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.tcarousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  transition: all var(--tr);
  padding: 0;
  flex-shrink: 0;
}
.tcarousel-dot.act {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════
   ROLE CARD PHOTOS (#7)
   ═══════════════════════════════════════════════════════ */
.role-card {
  padding: 0;
  overflow: hidden;
}
.role-card-photo {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
}
.role-photo--executive {
  background: linear-gradient(135deg, #1a3a6e 0%, #2f6bff 100%);
}
.role-photo--analyst {
  background: linear-gradient(135deg, #0d4a3a 0%, #1a9e6b 100%);
}
.role-photo--developer {
  background: linear-gradient(135deg, #2a1a5e 0%, #5c3fff 100%);
}
.role-photo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  position: relative;
  z-index: 1;
  padding-top: 16px;
}
.role-card:hover .role-photo-img {
  transform: scale(1.04) translateY(-4px);
}
.role-photo-silhouette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.role-card-body {
  padding: 28px;
  display: flex;
  gap: 12px;
  flex-direction: column;
  justify-content: space-between;
  height: 300px;
}
.role-card-body p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}
.role-card-body-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ═══════════════════════════════════════════════════════
   DARK SECTION (#8 partners, #9 achievements)
   ═══════════════════════════════════════════════════════ */
.section--dark {
  background: #07080f;
}
.section--dark .eyebrow {
  color: #00c3ff;
}
.section--dark .h2 {
  color: #fff;
}
.section--dark .sub,
.sub--dark {
  color: rgba(255, 255, 255, 0.58);
}
.section--dark .section-head .sub {
  margin-inline: auto;
}

/* Partners on dark */
.section--dark .partner-tile {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
}
.section--dark .partner-tile:hover {
  background: rgba(0, 195, 255, 0.09);
  border-color: rgba(0, 195, 255, 0.32);
  box-shadow: none;
}
.section--dark .p-name {
  color: #fff;
}
.section--dark .p-type {
  color: rgba(255, 255, 255, 0.42);
}

.partner-logo-img {
  max-height: 48px;
  max-width: 120px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.78;
  transition: opacity var(--tr);
}
.partner-tile:hover .partner-logo-img {
  opacity: 1;
}

.partners-grid--5 {
  grid-template-columns: repeat(5, 1fr);
}

/* ═══════════════════════════════════════════════════════
   ACHIEVEMENTS — BG IMAGE + AWARD CARDS
   ═══════════════════════════════════════════════════════ */
.achievements-dark {
  position: relative;
  overflow: hidden;
}
.achievements-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/achieve/sber25.png");
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  z-index: 0;
}
.achievements-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 8, 15, 0.72) 0%,
    rgba(7, 8, 15, 0.18) 45%,
    rgba(7, 8, 15, 0.78) 100%
  );
  z-index: 1;
}
.achievements-dark .wrap {
  position: relative;
  z-index: 2;
}

/* Event badge */
.achieve-event-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}
.achieve-event-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Two-column award cards */
.achieve-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.achieve-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    background 0.3s,
    transform 0.3s;
}
.achieve-card:hover {
  background: rgba(0, 195, 255, 0.1);
  transform: translateY(-4px);
}

.achieve-card-award {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #00c3ff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.achieve-card-award svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: #00c3ff;
}

.achieve-card-title {
  font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.35rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.achieve-card-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.72;
  flex: 1;
}

.achieve-card-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.achieve-link {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.achieve-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}
.achieve-link--accent {
  color: #00c3ff;
  border-color: rgba(0, 195, 255, 0.35);
}
.achieve-link--accent:hover {
  background: rgba(0, 195, 255, 0.12);
  border-color: rgba(0, 195, 255, 0.6);
}

@media (max-width: 768px) {
  .achieve-cards {
    grid-template-columns: 1fr;
  }
  .achieve-card {
    padding: 28px 22px;
  }
}

/* ═══════════════════════════════════════════════════════
   PRICING PLANS
   ═══════════════════════════════════════════════════════ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  height: 100%;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.plan-card--featured {
  border-color: var(--primary);
  border-width: 2px;
  background: var(--soft-blue);
}
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(47, 107, 255, 0.35);
}
.plan-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.plan-price {
  font-size: clamp(1.9rem, 1.4rem + 0.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}
.plan-price--custom {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.4rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.plan-currency {
  font-size: 0.52em;
  font-weight: 600;
  color: var(--muted);
}
.plan-period {
  font-size: 13px;
  color: var(--faint);
  margin-top: 2px;
}
.plan-divider {
  height: 1px;
  background: var(--line);
}
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan-features li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.plan-features li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-top: 0px;
  background: var(--soft-blue);
  border: 1.5px solid rgba(47, 107, 255, 0.4);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%232f6bff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px 8px;
  background-repeat: no-repeat;
  background-position: center;
}
.plan-card--featured .plan-features li::before {
  background-color: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.plan-cta {
  width: 100%;
  justify-content: center;
}
.plans-note {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--faint);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --section-pad: 80px;
  }
  .tab-panel.act {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .partners-grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tcard {
    flex: 0 0 calc(65% - 10px);
  }
}
@media (max-width: 768px) {
  :root {
    --section-pad: 60px;
  }
  .nav-links,
  .topbar .btn-p {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .logos-row,
  .roles-grid,
  .partners-grid,
  .partners-grid--5,
  .awards-grid {
    grid-template-columns: 1fr;
  }
  .btn-row.hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-main {
    min-height: auto;
    padding-top: 80px;
  }
  .tab-nav {
    gap: 6px;
  }
  .tab-btn {
    font-size: 13px;
    padding: 8px 14px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .tcard {
    flex: 0 0 100%;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-tile {
    padding: 28px 18px;
  }
  .roles-grid {
    grid-template-columns: 1fr;
  }
  .partners-grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════
   ЯНДЕКС DATALENS PAGE
   ═══════════════════════════════════════════════════════ */

/* Features 2×2 grid */
.dl-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.dl-feat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
  box-shadow: var(--shadow-sm);
}

.dl-feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 107, 255, 0.22);
}

.dl-feat-icon {
  width: 48px;
  height: 48px;
  background: rgba(47, 107, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dl-feat-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}

.dl-feat-title {
  font-size: clamp(1.05rem, 0.9rem + 0.4vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}

.dl-feat-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* Steps */
.dl-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 860px;
  margin-inline: auto;
}

.dl-step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.dl-step:last-child {
  border-bottom: none;
}

.dl-step-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.25;
  line-height: 1;
  min-width: 56px;
  letter-spacing: -0.04em;
}

.dl-step-body h3 {
  font-size: clamp(1.1rem, 0.95rem + 0.4vw, 1.3rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}

.dl-step-body p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}

/* Responsive */
@media (max-width: 680px) {
  .dl-features-grid {
    grid-template-columns: 1fr;
  }

  .dl-step {
    gap: 20px;
  }

  .dl-step-num {
    font-size: 1.8rem;
    min-width: 40px;
  }
}
