:root {
  --bg: #0a111b;
  --bg-2: #0f1825;
  --bg-3: #142133;

  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --panel-light: #f7f9fc;
  --panel-light-2: #eef3f8;

  --text: #f2f5fa;
  --text-2: #c8d1dd;
  --text-3: #92a0b2;

  --text-dark: #152235;
  --text-dark-2: #4f6077;

  --text-on-dark: #ffffff;
  --text-on-dark-2: #d8e1ec;
  --text-on-dark-3: #b6c4d6;

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(21, 34, 53, 0.10);

  --accent: #f0a63a;
  --accent-2: #ffbf66;
  --accent-dark: #d88b17;

  --success: #3fbf8e;
  --warn: #f0a63a;
  --danger: #ea6c6c;
  --info: #70a7ff;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;
  --radius-xl: 30px;

  --shadow-s: 0 10px 24px rgba(0, 0, 0, 0.18);
  --shadow-m: 0 18px 44px rgba(0, 0, 0, 0.24);
  --shadow-l: 0 32px 80px rgba(0, 0, 0, 0.32);

  --max-width: 1200px;
  --section-space: 108px;
  --section-space-mobile: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(240, 166, 58, 0.08) 0%, transparent 28%),
    radial-gradient(circle at 100% 20%, rgba(112, 167, 255, 0.06) 0%, transparent 24%),
    linear-gradient(180deg, #09111a 0%, #0d1622 48%, #0a111b 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: var(--section-space) 0;
  position: relative;
}

.light-section {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  color: var(--text-dark);
}

.light-section h1,
.light-section h2,
.light-section h3,
.light-section strong {
  color: var(--text-dark);
}

.light-section p,
.light-section li,
.light-section .muted-small,
.light-section .lead,
.light-section .section-intro {
  color: var(--text-dark-2);
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(7, 12, 20, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, #ffd48f 0%, #f0a63a 40%, #b36b08 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 20px rgba(240, 166, 58, 0.22);
}

.brand-text {
  font-size: 1rem;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
  color: var(--text-3);
  font-size: 0.96rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

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

.lang-switch {
  display: flex;
  gap: 6px; /* было 8 */
  align-items: center;
}

.lang-switch a {
  width: 32px;   /* было 42 */
  height: 28px;  /* было 42 */
  padding: 0;
  border-radius: 6px; /* было 12 */
  border: 1px solid var(--line);
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem; /* было 0.88 */
  font-weight: 600;   /* было 700 */
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.lang-switch a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.lang-switch a.active {
  color: #151d28;
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%);
  border-color: transparent;
}

/* TYPOGRAPHY */

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0 0 18px;
  line-height: 1.02;
}

.hero-top h1 {
  letter-spacing: -0.01em;
}

h2 {
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.8rem, 4.2vw, 4.8rem);
}

h2 {
  font-size: clamp(2.2rem, 3.6vw, 3.8rem);
}

h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.42rem);
}

p {
  margin: 0 0 16px;
  color: var(--text-2);
  font-size: 1.04rem;
}

.lead {
  font-size: 1.16rem;
  max-width: 66ch;
  color: var(--text-2);
}

.muted-small {
  color: var(--text-3);
  font-size: 0.94rem;
}

/* BUTTONS */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%);
  color: #151d28;
  box-shadow: 0 14px 28px rgba(240, 166, 58, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ffc978 0%, #e89a22 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-2);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* SECTION HEADERS */

.section-header {
  width: 100%;
  margin-bottom: 30px;
}

.section-title {
  max-width: 1120px;
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section-intro {
  max-width: 860px;
  margin: 0 0 40px;
  font-size: 20px;
  line-height: 1.6;
}

.section-intro.narrow {
  max-width: 760px;
}

/* HERO */

.hero {
  padding: 60px 0 92px;
}

.hero-top {
  margin-bottom: 40px;
  max-width: 100%;
}

.hero-top h1 {
  margin: 0;
  max-width: none;
  width: 100%;
  font-size: clamp(2.7rem, 4.4vw, 4.6rem);
  line-height: 0.96;
  text-wrap: balance;
}

.hero-top .eyebrow {
  display: block;
  margin-top: 24px;
  margin-bottom: 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 88px;
  align-items: stretch;
}

.hero-left {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-text {
  margin-bottom: 0;
}

.hero-actions {
  margin-top: auto;
}

.hero-subline {
  margin: 0 0 26px;
  max-width: 500px;
  font-size: 1.18rem;
  line-height: 1.58;
  color: var(--text-2);
  letter-spacing: -0.015em;
}

.hero-points {
  display: grid;
  gap: 14px;
  margin: 0 0 34px;
}

.hero-points .item {
  position: relative;
  padding-left: 18px;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--text);
}

.hero-points .item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.hero .btn.btn-primary {
  min-height: 56px;
  padding: 0 24px;
  border-radius: 14px;
}

.hero-right {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
}

.hero-media {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 1920 / 934;
  overflow: hidden;

  border-radius: 16px;
  background: #0b1320;
  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.2);

  transform: none;

  /* ДОБАВЬ ЭТО */
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-media:hover {
  transform: translateY(-6px);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.45),
    0 12px 30px rgba(0, 0, 0, 0.25);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -1;
  border-radius: 28px;
  background: radial-gradient(
    60% 60% at 50% 50%,
    rgba(240, 166, 58, 0.12),
    transparent 70%
  );
  filter: blur(20px);
  opacity: 0.7;
}

.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0b1320;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}

.video-modal.active {
  display: block;
}

/* затемнение */
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, 0.75);
  backdrop-filter: blur(8px);
}

/* сам контейнер */
.video-modal-content {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: min(1100px, 92vw);
  aspect-ratio: 16 / 9;

  border-radius: 20px;
  overflow: hidden;
  background: #000;

  box-shadow:
    0 40px 120px rgba(0,0,0,0.6);

  transition: all 0.25s ease;
}

/* анимация появления */
.video-modal.active .video-modal-content {
  transform: translate(-50%, -50%) scale(1);
}

/* видео внутри */
.video-modal video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* CARDS */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.card,
.feature-panel,
.value-card,
.compare-card,
.cta-box,
.flow-card {
  padding: 32px;
  border-radius: 22px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line-dark);
  box-shadow: 0 18px 40px rgba(21, 34, 53, 0.08);
}

.card h3,
.feature-panel h3,
.compare-card h3,
.cta-box h3,
.flow-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.card p,
.feature-panel p,
.compare-card p,
.cta-box p,
.flow-card p,
.value-card p {
  font-size: 18px;
  line-height: 1.7;
}

.list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.list li {
  margin-bottom: 12px;
}

.list li {
  position: relative;
  padding-left: 24px;
  line-height: 1.65;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

/* FLOW */

.flow-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.flow-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  color: var(--text-on-dark-2);
}

.flow-card h3 {
  color: var(--text-on-dark);
}

.flow-card p {
  color: var(--text-on-dark-2);
}

.flow-card .label {
  display: inline-block;
  padding: 7px 11px;
  margin-bottom: 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffd59a;
  background: rgba(240, 166, 58, 0.12);
  border: 1px solid rgba(240, 166, 58, 0.18);
}

/* SPLIT */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.feature-panel {
  position: relative;
  overflow: hidden;
}

.feature-panel.light {
  background: #ffffff;
  border: 1px solid var(--line-dark);
  box-shadow: 0 16px 36px rgba(21, 34, 53, 0.08);
}

.feature-panel.light p,
.feature-panel.light li {
  color: var(--text-dark-2);
}

/* VALUE */

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.value-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color: var(--text-on-dark-2);
}

.value-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text-on-dark);
  font-size: 1.05rem;
}

.value-card p {
  color: var(--text-on-dark-2);
}

/* COMPARE */

.compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.compare-top {
  margin-top: 40px;
}

.compare-card {
  min-height: 100%;
}

.compare-card.left {
  background: #ffffff;
  border: 1px solid var(--line-dark);
  box-shadow: 0 18px 40px rgba(21, 34, 53, 0.08);
}

.compare-card.left p,
.compare-card.left li {
  color: var(--text-dark-2);
}

.compare-card.right {
  background: linear-gradient(180deg, #16253e 0%, #101b2d 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-m);
  color: var(--text-on-dark-2);
}

.compare-card.right h3 {
  color: var(--text-on-dark);
}

.compare-card.right p,
.compare-card.right li {
  color: var(--text-on-dark-2);
}

.vs {
  align-self: center;
  justify-self: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #151d28;
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%);
  box-shadow: 0 14px 30px rgba(240, 166, 58, 0.24);
}

.positioning-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.positioning-card {
  min-height: 260px;
}

/* CTA */

.cta-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: stretch;
  padding: 40px;
  border-radius: 30px;
  background: linear-gradient(135deg, #172640 0%, #0f1827 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-l);
  color: var(--text-on-dark-2);
}

.cta-panel h2,
.cta-panel h3,
.cta-panel strong {
  color: var(--text-on-dark);
}

.cta-panel p,
.cta-panel li,
.cta-panel .lead,
.cta-panel .section-intro {
  color: var(--text-on-dark-2);
}

.cta-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark-2);
}

.cta-box h3,
.cta-box strong {
  color: var(--text-on-dark);
}

.cta-box p,
.cta-box li {
  color: var(--text-on-dark-2);
}

/* FOOTER */

.footer {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-3);
}

/* RESPONSIVE */

@media (max-width: 1120px) {
  .hero-grid,
  .split,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .flow-line,
  .value-grid,
  .cards-grid,
  .positioning-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-right {
    padding-top: 0;
  }

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

  .vs {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero {
    padding: 46px 0 72px;
  }

  .hero-top {
    margin-bottom: 20px;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero-left {
    max-width: 100%;
    padding-top: 0;
  }

  .hero-subline {
    max-width: 100%;
    margin-bottom: 22px;
  }

  .hero-points {
    margin-bottom: 28px;
  }

  .hero-media {
    max-width: 100%;
  }

  .lang-switch a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--max-width), calc(100% - 24px));
  }

  .section {
    padding: var(--section-space-mobile) 0;
  }

  .hero {
    padding: 32px 0 44px;
  }

  .hero-top h1,
  .section-title {
    max-width: 100%;
  }

  .hero-top h1 {
    font-size: 3rem;
    line-height: 0.98;
  }

  .section-title {
    font-size: 34px;
    line-height: 1.06;
  }

  .section-intro {
    font-size: 18px;
  }

  .flow-line,
  .value-grid,
  .cards-grid,
  .positioning-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .feature-panel,
  .compare-card,
  .cta-panel,
  .cta-box,
  .flow-card,
  .value-card {
    padding: 24px;
  }

  .card h3,
  .feature-panel h3,
  .compare-card h3,
  .cta-box h3,
  .flow-card h3 {
    font-size: 24px;
  }

  .header-actions {
    width: auto;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .nav {
    min-height: 68px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-text {
    font-size: 0.94rem;
  }

  .lang-switch a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 0.82rem;
  }

  .hero-top .eyebrow {
    margin-bottom: 14px;
  }

  .hero-top h1 {
    font-size: 2.55rem;
  }

  .hero-subline {
    font-size: 1.08rem;
    line-height: 1.55;
  }

  .hero-points .item {
    font-size: 0.96rem;
  }

  .hero .btn.btn-primary {
    min-height: 52px;
    padding: 0 20px;
  }
}