/* ============================================
   Charon Landing — Optimized Figma-based Design
   ============================================ */

/* --- Variables --- */
:root {
  /* Colors */
  --primary: #3b82f6;
  --primary-dark: #3276f2;
  --accent: #635ffb;
  --purple: #a19ff3;
  --success: #10b981;
  --error: #ff3b30;

  /* Backgrounds */
  --bg-main: #f8fbff;
  --bg-white: #ffffff;
  --bg-light: #ebf1fa;
  --bg-gradient: linear-gradient(296deg, #edf3f7 0%, #edf0f7 55%, #edf3f7 100%);
  --bg-gradient-alt: linear-gradient(
    135deg,
    #edf3f7 0%,
    #edf0f7 55%,
    #edf3f7 100%
  );

  /* Text */
  --text-dark: #0f172a;
  --text-secondary: #69749a;
  --text-muted: #5d6a88;
  --text-option: #555e70;

  /* Borders */
  --border-light: #ebf1fa;
  --border-blue: #c4d9ff;
  --border-input: #e2e8f0;
  --border-subtle: rgba(15, 23, 42, 0.15);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-dropdown:
    0px 0px 32px rgba(68, 83, 113, 0.1), 0px 32px 32px rgba(68, 83, 113, 0.05);

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-xl: 60px;
  --radius-full: 105px;

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1560px;

  /* Fonts */
  --font-main:
    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display:
    "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-smooth: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-dark);
  background-color: var(--bg-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--primary);
}

ul,
ol {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(36px, 6vw, 74px);
}

h2 {
  font-size: clamp(32px, 5vw, 64px);
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 500;
}

.text-accent {
  color: var(--primary);
}

.text-purple {
  color: var(--accent);
}

.text-center {
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

/* Синяя кнопка с двойной рамкой */
.btn-primary {
  position: relative;
  background: var(--bg-light);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  color: var(--bg-white);
  padding: 16px 20px;
  z-index: 1;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--primary-dark);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--bg-white);
}

/* Большая кнопка */
.btn-lg.btn-primary {
  font-size: 20px;
  padding: 28px 32px;
}

.btn-lg.btn-primary::before {
  inset: 12px;
}

/* Белая кнопка с обводкой */
.btn-outline,
.btn-header {
  position: relative;
  background: var(--bg-light);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-full);
  padding: 16px 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  color: var(--text-dark);
  z-index: 1;
}

.btn-outline::before,
.btn-header::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.btn-outline:hover,
.btn-header:hover {
  background: var(--bg-white);
  border-color: var(--primary-dark);
  color: var(--text-dark);
}

.full-width {
  width: 100%;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.logo-icon {
  width: 42px;
  height: 39px;
}

.logo-text {
  font-size: 35px;
  font-weight: 400;
  color: var(--text-dark);
}

.nav-links {
  display: none;
  gap: 60px;
}

.nav-links a {
  font-size: 20px;
  color: var(--text-secondary);
}

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

.header-contacts-link {
  font-size: 20px;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-contacts-link:hover {
  color: var(--primary);
}

/* Mobile header actions (hidden on desktop) */
.header-mobile-actions {
  display: none;
  align-items: center;
  gap: 16px;
}

/* Burger menu button */
.burger-menu {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background: #222222;
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 81px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f8fbff;
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  padding: 40px 16px;
  gap: 16px;
}

.mobile-menu-label {
  font-size: 20px;
  line-height: 120%;
  color: #69749a;
  margin-bottom: -8px;
}

.mobile-menu-card {
  background: #ffffff;
  border: 1px solid #ebf1fa;
  border-radius: 12px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu-link {
  font-size: 20px;
  line-height: 120%;
  color: #0f172a;
  text-decoration: none;
}

.mobile-menu-separator {
  height: 0.5px;
  background: rgba(50, 50, 70, 0.15);
  border-radius: 2px;
}

.mobile-contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-contact-label {
  font-size: 16px;
  line-height: 120%;
  color: #69749a;
}

.mobile-contact-value {
  font-size: 20px;
  line-height: 120%;
  color: #0f172a;
  text-decoration: none;
}

.mobile-social-icons {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.social-icon:hover {
  opacity: 0.8;
}

.social-telegram {
  border: 1px solid #0088cc;
}

.social-whatsapp {
  border: 1px solid #25d366;
}

.mobile-cta-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 20px;
  margin-top: 16px;
  background: #ebf1fa;
  border: 1px solid #c4d9ff;
  border-radius: 105px;
  text-decoration: none;
}

.mobile-cta-btn span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  background: #3276f2;
  border-radius: 32px;
  font-size: 20px;
  line-height: 120%;
  color: #ffffff;
}

/* --- Hero Section --- */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  background: var(--bg-main);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 40px;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.hero-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-text strong {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-dark);
}

.feature-text span {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.2;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  background: var(--bg-gradient);
}

/* --- Sections --- */
.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-header p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-top: 16px;
}

.subtitle-with-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 48px;
  font-weight: 500;
  color: var(--text-muted);
}

.charon-inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-blue);
  font-size: 33px;
  font-weight: 400;
  color: var(--text-dark);
}

.charon-inline-badge svg {
  width: 39px;
  height: 37px;
}

/* --- Flow Diagram Section --- */
.flow-section {
  padding: 60px 0;
  overflow: visible;
}

.flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.flow-block {
  position: relative;
  flex-shrink: 0;
}

.flow-title {
  font-size: clamp(28px, 4vw, 41px);
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.2;
  text-align: center;
}

/* Messengers block */
.flow-messengers-block {
  z-index: 5;
  position: relative;
}

.flow-messengers-outer {
  background: var(--bg-light);
  border: 10px solid var(--border-blue);
  border-radius: 100px;
  padding: 10px;
  position: relative;
  z-index: 2;
}

.flow-messengers-inner {
  background: white;
  border-radius: 80px;
  padding: 40px 36px;
  border: 1px solid rgba(196, 217, 255, 0.7);
}

.messenger-icons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.messenger-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.messenger-icon {
  width: 105px;
  height: 105px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.messenger-icon.whatsapp {
  background: #2fc700;
}
.messenger-icon.telegram {
  background: #29a9eb;
}
.messenger-icon.wechat {
  background: #bebebe;
}

.messenger-item span {
  font-size: 21px;
  color: var(--text-dark);
}

.messenger-disabled {
  opacity: 0.6;
}

/* Wave connectors */
.flow-wave {
  flex-shrink: 0;
  display: none;
  z-index: 1;
}

.flow-wave-left {
  margin-left: -60px;
  margin-right: -50px;
}

.flow-wave-left svg {
  width: 200px;
  height: 370px;
}

.flow-wave-right {
  margin-left: -50px;
  margin-right: -100px;
  transform: scaleX(-1);
}

.flow-wave-right svg {
  width: 320px;
  height: 345px;
}

/* Center: Charon logo */
.flow-center {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 20px 0;
  position: relative;
}

.flow-charon-box {
  width: 125px;
  height: 117px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #689ff9;
  border-radius: 14px;
  background: white;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
  position: relative;
  z-index: 5;
}

.charon-icon {
  width: 66px;
  height: 61px;
}

/* Charon rays */
.charon-rays {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  z-index: 1;
}

.charon-rays .ray {
  flex-shrink: 0;
}

.charon-rays-left {
  right: 100%;
  flex-direction: row;
  transform: translateY(-50%) scaleX(-1);
}

.charon-rays-right {
  left: 100%;
  flex-direction: row;
}

.charon-rays .ray:nth-child(1) {
  width: 12px;
  height: 45px;
}
.charon-rays .ray:nth-child(2) {
  width: 16px;
  height: 65px;
}
.charon-rays .ray:nth-child(3) {
  width: 20px;
  height: 85px;
}
.charon-rays .ray:nth-child(4) {
  width: 24px;
  height: 105px;
}
.charon-rays .ray:nth-child(5) {
  width: 28px;
  height: 125px;
}
.charon-rays .ray:nth-child(6) {
  width: 32px;
  height: 145px;
}

/* CRM block (hexagon) */
.flow-crm-block {
  z-index: 5;
  position: relative;
}

.flow-crm-hexagon {
  position: relative;
  width: 420px;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hexagon-bg,
.hexagon-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hexagon-bg {
  z-index: 1;
}
.hexagon-inner {
  z-index: 2;
}

.flow-crm-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 20px;
}

.flow-crm-content .flow-title {
  margin-bottom: 20px;
}

/* CRM icons pyramid layout */
.crm-icons-pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.crm-icons-row {
  display: flex;
  justify-content: center;
}

.crm-icons-row.crm-row-top {
  gap: 80px;
}
.crm-icons-row.crm-row-bottom {
  margin-top: 5px;
}

.crm-icon {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  object-fit: cover;
}

.crm-bitrix {
  border-radius: 50%;
  overflow: hidden;
}

.crm-bitrix svg {
  display: block;
}

.crm-custom,
.crm-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #2fc7f7;
  background: white;
}

.crm-custom span,
.crm-placeholder span {
  font-size: 15px;
  color: var(--text-dark);
}

.crm-custom strong {
  font-size: 30px;
  font-weight: 800;
  color: #0084bf;
}

.crm-placeholder {
  border-color: #ddd;
  background: #f5f5f5;
}

.crm-placeholder span {
  font-size: 12px;
  color: #999;
}

/* --- How It Works Section --- */
.how-section {
  background: var(--bg-main);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 60px;
}

.step-card {
  background: var(--bg-light);
  border: 12px solid var(--border-blue);
  border-radius: 111px;
  padding: 32px;
  text-align: left;
  position: relative;
  min-height: 450px;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-white);
  border-radius: 100px;
}

.step-card > * {
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 45px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 16px;
}

.step-card p {
  font-size: 23px;
  color: var(--text-dark);
  line-height: 1.2;
}

.step-card .step-icon-big {
  position: absolute;
  bottom: 40px;
  right: 40px;
  opacity: 0.8;
}

.step-spark {
  position: absolute;
}
.step-spark-tr {
  top: -15px;
  right: -15px;
}
.step-spark-center {
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* --- Benefits Section --- */
.benefits-section {
  padding: 80px 20px;
  background: var(--bg-main);
}

.benefits-section .control-wrapper {
  max-width: 1558px;
  margin: 0 auto;
}

/* --- Efficiency Section --- */
.efficiency-section {
  background: var(--bg-main);
}

.efficiency-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: flex-start;
}

.efficiency-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eff-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.eff-icon {
  flex-shrink: 0;
}

.eff-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eff-text strong {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-dark);
}

.eff-text span {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.2;
}

.efficiency-image {
  background: var(--bg-light);
  border-radius: 45px;
  border: 9px solid var(--border-blue);
  overflow: hidden;
  padding: 12px;
}

.interface-window {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-light);
}

.interface-window img {
  width: 100%;
  display: block;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* --- Cases Section --- */
.cases-section {
  background: var(--bg-main);
}

.cases-carousel {
  position: relative;
}

.cases-slider {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

/* Стопка карточек */
.cases-cards-stack {
  position: relative;
  width: 100%;
  max-width: 463px;
  height: 520px;
  margin: 0 auto;
}

.stack-card {
  position: absolute;
  width: 320px;
  height: 400px;
  border-radius: 40px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stack-label {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  background: white;
  padding: 16px 20px;
  border-radius: 24px;
}

.stack-label h4 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.stack-label p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Позиции карточек в стопке */
.stack-card-1 {
  z-index: 3;
  left: 0;
  top: 80px;
  transform: scale(1);
  opacity: 1;
}
.stack-card-2 {
  z-index: 2;
  left: 60px;
  top: 40px;
  transform: scale(0.95) rotate(2deg);
  opacity: 0.85;
}
.stack-card-3 {
  z-index: 1;
  left: 100px;
  top: 0;
  transform: scale(0.9) rotate(4deg);
  opacity: 0.7;
}

/* Слайд 1 - Логистика */
.cases-carousel[data-active="1"] .stack-card-1 {
  z-index: 2;
  left: 60px;
  top: 40px;
  transform: scale(0.95) rotate(2deg);
  opacity: 0.85;
}
.cases-carousel[data-active="1"] .stack-card-2 {
  z-index: 3;
  left: 0;
  top: 80px;
  transform: scale(1) rotate(0deg);
  opacity: 1;
}
.cases-carousel[data-active="1"] .stack-card-3 {
  z-index: 1;
  left: 100px;
  top: 0;
  transform: scale(0.9) rotate(4deg);
  opacity: 0.7;
}

/* Слайд 2 - Финансы */
.cases-carousel[data-active="2"] .stack-card-1 {
  z-index: 1;
  left: 100px;
  top: 0;
  transform: scale(0.9) rotate(4deg);
  opacity: 0.7;
}
.cases-carousel[data-active="2"] .stack-card-2 {
  z-index: 2;
  left: 60px;
  top: 40px;
  transform: scale(0.95) rotate(2deg);
  opacity: 0.85;
}
.cases-carousel[data-active="2"] .stack-card-3 {
  z-index: 3;
  left: 0;
  top: 80px;
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

/* Hover на передней карточке */
.cases-carousel[data-active="0"] .stack-card-1:hover,
.cases-carousel[data-active="1"] .stack-card-2:hover,
.cases-carousel[data-active="2"] .stack-card-3:hover {
  transform: scale(1.02) rotate(0deg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Результаты - слайдер */
.case-results-wrapper {
  position: relative;
  min-height: 400px;
}

.case-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.case-results-title {
  font-size: 28px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.3;
}

/* Индикаторы */
.cases-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.case-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  cursor: pointer;
  transition:
    background var(--transition-normal),
    transform var(--transition-normal);
}

.case-dot:hover {
  transform: scale(1.2);
}
.case-dot.active {
  background: var(--primary);
}

.case-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.case-icon {
  flex-shrink: 0;
}

.case-list li strong {
  display: block;
  font-size: 24px;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.case-list li span {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* --- Control Section --- */
.control-section {
  padding: 80px 0;
  background: var(--bg-main);
}

.control-wrapper {
  max-width: 1558px;
  margin: 0 auto;
  padding: 60px 40px;
  background: var(--bg-gradient-alt);
  border-radius: var(--radius-xl);
  border: 3px solid rgba(196, 217, 255, 0.2);
  overflow: hidden;
}

.control-title {
  text-align: center;
  font-size: 64px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 60px;
}

.control-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0 20px;
}

.control-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  min-height: 442px;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

.control-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.control-card h3 {
  font-size: 36px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 16px;
}

.control-card p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.2;
  max-width: 90%;
}

.control-card-image {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 180px;
  height: 180px;
}

.control-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* --- Pricing Section --- */
.pricing-section {
  background: var(--bg-main);
}

.pricing-calculator {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--bg-white);
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 1558px;
  margin: 0 auto;
}

.calc-controls {
  padding: 40px;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  overflow: hidden;
}

.calc-section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 24px;
}

.period-selector,
.volume-selector {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.calc-divider {
  height: 1px;
  background: var(--border-light);
  margin: 32px 0;
}

.period-toggles {
  display: flex;
  align-items: center;
  padding: 6px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: 23px;
  width: 100%;
  justify-content: center;
  gap: 4px;
}

.p-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: transparent;
  border-radius: 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(14px, 1.5vw, 20px);
  line-height: 120%;
  color: #363636;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.p-btn.active {
  background: var(--primary-dark);
  color: var(--bg-white);
  font-weight: 600;
}

.discount-tag {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 8px;
  gap: 6px;
  background: var(--success);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(11px, 1.2vw, 14px);
  line-height: 120%;
  color: var(--bg-white);
  white-space: nowrap;
  flex-shrink: 0;
}

.p-btn:not(.active) .discount-tag {
  background: var(--bg-white);
  color: var(--success);
}

.volume-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 5px;
  background: var(--border-light);
  outline: none;
  margin-bottom: 16px;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--primary);
}

.volume-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--primary);
}

.volume-steps {
  display: flex;
  justify-content: space-between;
  width: 100%;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.volume-steps span {
  cursor: pointer;
  transition: color var(--transition-fast);
}

.volume-steps span:hover {
  color: var(--primary);
}

/* Правый блок - результат */
.calc-result {
  padding: 40px;
  background: var(--bg-light);
  border: 3px solid var(--border-blue);
  border-radius: 40px;
  margin: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.savings-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  color: var(--success);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid var(--success);
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 20px;
}

.price-amount {
  font-size: 56px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.price-currency {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
}

.billing-cycle {
  font-size: 20px;
  color: var(--text-muted);
  font-weight: 500;
}

.competitor-comparison {
  font-size: 16px;
  color: var(--text-muted);
}

.comp-price {
  text-decoration: line-through;
  color: var(--text-dark);
  font-weight: 600;
  margin-left: 5px;
}

.result-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}

.result-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 500;
}

.feature-star {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.enterprise-link {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.enterprise-link a {
  color: var(--text-secondary);
  font-weight: 600;
}

/* --- FAQ Section --- */
.faq-section {
  background: var(--bg-main);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 24px;
  font-weight: 400;
  color: var(--text-dark);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height var(--transition-normal),
    padding var(--transition-normal);
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--bg-main);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.cta-image {
  background: linear-gradient(180deg, #93c5fd 0%, #dbeafe 100%);
  border-radius: 40px;
  overflow: hidden;
}

.cta-monitor-wrapper {
  position: relative;
  width: 100%;
}

.cta-bg {
  width: 100%;
  display: block;
}

.cta-screen {
  position: absolute;
  top: 20%;
  left: 17%;
  width: 64%;
  height: auto;
  border-radius: 4px;
}

.cta-form-wrapper {
  max-width: 572px;
}

.cta-form-wrapper h3 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 32px;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Form inputs --- */
.input-group input,
.input-group select {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  font-size: 16px;
  line-height: 20px;
  color: var(--text-secondary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.input-group select {
  padding-right: 44px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23939BAD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px 20px;
}

.input-group input::placeholder {
  color: var(--text-secondary);
}

.input-group input:hover,
.input-group select:hover {
  border-color: var(--border-blue);
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--primary-dark);
  box-shadow: none;
}

.input-group select:focus {
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12.5L10 7.5L15 12.5' stroke='%23939BAD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.input-group input.error,
.input-group select.error {
  border-color: var(--error);
}

.input-group .error-message {
  font-size: 12px;
  line-height: 16px;
  color: var(--error);
  margin-top: 8px;
  display: flex;
  align-items: center;
}

.input-group select option {
  font-size: 16px;
  color: var(--text-option);
  padding: 8px 12px;
  background: var(--bg-white);
}

.input-group select option:checked {
  background: rgba(192, 213, 250, 0.19);
  color: var(--primary-dark);
}
.input-group select option:disabled {
  color: #858fa3;
  opacity: 0.6;
}

/* Consent Checkbox */
.consent-group {
  margin-top: 8px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.consent-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.consent-checkbox {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-input);
  border-radius: 6px;
  background: var(--bg-white);
  transition: all var(--transition-fast);
  position: relative;
  margin-top: 1px;
}

.consent-checkbox::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.consent-label input[type="checkbox"]:checked + .consent-checkbox {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.consent-label input[type="checkbox"]:checked + .consent-checkbox::after {
  opacity: 1;
}
.consent-label:hover .consent-checkbox {
  border-color: var(--border-blue);
}
.consent-label input[type="checkbox"]:focus + .consent-checkbox {
  box-shadow: 0 0 0 3px rgba(50, 118, 242, 0.2);
}

.consent-text {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary);
}

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

.consent-text a:hover {
  text-decoration: none;
}

.consent-error {
  display: block;
  margin-top: 8px;
  margin-left: 32px;
  font-size: 12px;
  color: var(--error);
}

.consent-group.error .consent-checkbox {
  border-color: var(--error);
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
}

.form-status.success {
  color: #059669;
  background: #ecfdf5;
  padding: 12px;
  border-radius: 8px;
}

.form-status.error {
  color: #ef4444;
  background: #fef2f2;
  padding: 12px;
  border-radius: 8px;
}

/* --- Custom Select (cselect) --- */
.cselect {
  position: relative;
  width: 100%;
}

.cselect__trigger {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 44px 16px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  font-size: 16px;
  line-height: 20px;
  color: var(--text-secondary);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cselect__trigger:hover {
  border-color: var(--border-blue);
}
.cselect.is-open .cselect__trigger {
  border-color: var(--primary-dark);
}
.cselect.error .cselect__trigger {
  border-color: var(--error);
}

.cselect__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cselect__chevron {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23939BAD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform var(--transition-fast);
}

.cselect.is-open .cselect__chevron {
  transform: rotate(180deg);
}

.cselect__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: var(--bg-white);
  box-shadow: var(--shadow-dropdown);
  border-radius: var(--radius-sm);
  flex-direction: column;
  padding: 8px 10px;
  gap: 4px;
  z-index: 999;
  max-height: 240px;
  overflow: auto;
  display: none;
}

.cselect.is-open .cselect__menu {
  display: flex;
}

.cselect__option {
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 16px;
  color: var(--text-option);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}

.cselect__option:hover,
.cselect__option.is-active,
.cselect__option[aria-selected="true"] {
  background: rgba(192, 213, 250, 0.19);
  color: var(--primary-dark);
}

.cselect__trigger:focus-visible,
.cselect__option:focus-visible {
  outline: 2px solid rgba(50, 118, 242, 0.35);
  outline-offset: 2px;
}

/* --- Footer --- */
.footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  padding: 60px 0 20px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  gap: 100px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 20px;
  color: var(--text-secondary);
}

.footer-bottom {
  text-align: left;
  font-size: 20px;
  color: var(--text-secondary);
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 900px;
  width: calc(100% - 40px);
  padding: 20px 28px;
  background: var(--bg-white);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
  animation: cookieSlideUp 0.4s ease-out;
}

@keyframes cookieSlideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner__text {
  flex: 1;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dark);
}

.cookie-banner__btn {
  flex-shrink: 0;
  position: relative;
  background: var(--bg-light);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-full);
  padding: 14px 24px;
  font-weight: 500;
  font-size: 15px;
  line-height: 120%;
  color: var(--bg-white);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 1;
}

.cookie-banner__btn::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--primary-dark);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.cookie-banner__btn:hover {
  background: var(--primary-dark);
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}
.delay-200 {
  transition-delay: 0.2s;
}

/* --- Scroll margin --- */
section[id] {
  scroll-margin-top: 100px;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* --- Tablet and up (768px+) --- */
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .benefits-section {
    padding: 80px 40px;
  }
}

/* --- Medium screens (900px+) --- */
@media (min-width: 900px) {
  .pricing-calculator {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .period-toggles {
    padding: 4px;
    gap: 2px;
  }
  .p-btn {
    padding: 8px 10px;
    font-size: 13px;
    min-height: 38px;
    gap: 4px;
  }
  .discount-tag {
    padding: 3px 6px;
    font-size: 11px;
  }
  .calc-controls {
    padding: 30px 20px;
  }
}

/* --- Desktop navigation (992px+) --- */
@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }
}

/* --- Desktop layouts (1024px+) --- */
@media (min-width: 1024px) {
  .efficiency-grid {
    grid-template-columns: 1fr 1.3fr;
  }
  .cases-slider {
    grid-template-columns: 500px 1fr;
  }
  .cta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Large desktop (1200px+) --- */
@media (min-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .flow-diagram {
    flex-direction: row;
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  .flow-wave {
    display: flex;
    align-items: center;
  }
  .flow-center {
    padding: 0;
  }
  .charon-rays {
    display: flex;
  }

  .control-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Control section tablet (max 1200px) --- */
@media (max-width: 1200px) {
  .control-title {
    font-size: 48px;
  }
  .control-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .control-card:last-child {
    grid-column: span 2;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* --- Mobile header (max 991px) --- */
@media (max-width: 991px) {
  .header {
    padding: 0;
  }

  .header-container {
    height: 80px;
    padding: 0 16px;
  }

  .nav-links,
  .header-actions {
    display: none;
  }

  .header-mobile-actions {
    display: flex;
  }

  /* Mobile logo */
  .logo-icon {
    width: 27px;
    height: 25px;
  }

  .logo-text {
    font-size: 23px;
  }

  /* Mobile button with double border */
  .header-mobile-actions .btn-header {
    padding: 15px;
    background: #ebf1fa;
    border: 1px solid #c4d9ff;
    border-radius: 105px;
    font-size: 14px;
    line-height: 120%;
    color: #0f172a;
  }

  .header-mobile-actions .btn-header::before {
    inset: 7px;
    background: #ffffff;
    border-radius: 32px;
  }

  /* Burger menu */
  .burger-menu {
    width: 24px;
    height: 24px;
    justify-content: center;
  }

  .burger-menu span {
    width: 24px;
    height: 1.5px;
    background: #222222;
    position: absolute;
  }

  .burger-menu span:nth-child(1) {
    top: 8px;
  }

  .burger-menu span:nth-child(2) {
    top: 12px;
  }

  .burger-menu span:nth-child(3) {
    top: 16px;
  }

  /* Burger active state (X) */
  .burger-menu.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
  }

  .burger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .burger-menu.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
  }
}

/* --- Tablet cases (max 1023px) --- */
@media (max-width: 1023px) {
  .cases-slider {
    flex-direction: column;
    gap: 30px;
  }
  .cases-cards-stack {
    height: 400px;
    max-width: 100%;
  }
  .stack-card {
    width: 260px;
    height: 340px;
  }
  .stack-label h4 {
    font-size: 20px;
  }
  .stack-label p {
    font-size: 12px;
  }

  .stack-card-1 {
    left: 0;
    top: 60px;
  }
  .stack-card-2 {
    left: 40px;
    top: 30px;
  }
  .stack-card-3 {
    left: 80px;
    top: 0;
  }

  .cases-carousel[data-active="1"] .stack-card-1 {
    left: 40px;
    top: 30px;
  }
  .cases-carousel[data-active="1"] .stack-card-2 {
    left: 0;
    top: 60px;
  }

  .cases-carousel[data-active="2"] .stack-card-1 {
    left: 80px;
    top: 0;
  }
  .cases-carousel[data-active="2"] .stack-card-2 {
    left: 40px;
    top: 30px;
  }
  .cases-carousel[data-active="2"] .stack-card-3 {
    left: 0;
    top: 60px;
  }

  .case-results-wrapper {
    min-height: auto;
  }
  .case-results-title {
    font-size: 22px;
  }
  .control-card-image {
    width: 140px;
    height: 140px;
  }
}

/* --- Mobile pricing (max 899px) --- */
@media (max-width: 899px) {
  .pricing-calculator {
    border-radius: 30px;
  }
  .calc-controls {
    padding: 30px 20px;
  }
  .calc-result {
    margin: 12px;
    padding: 30px 20px;
    border-radius: 30px;
  }
  .price-amount {
    font-size: 42px;
  }
  .price-currency {
    font-size: 24px;
  }
  .period-toggles {
    padding: 4px;
    min-height: auto;
    gap: 2px;
  }
  .p-btn {
    padding: 10px 12px;
    font-size: 14px;
    min-height: 40px;
    gap: 6px;
  }
  .discount-tag {
    padding: 4px 6px;
    font-size: 12px;
  }
  .calc-section-title {
    font-size: 20px;
  }
}

/* --- Mobile (max 767px) --- */
@media (max-width: 767px) {
  .section {
    padding: 60px 0;
  }
  .section-header {
    margin-bottom: 40px;
  }

  .subtitle-with-badge {
    flex-direction: column;
    font-size: 32px;
  }
  .charon-inline-badge {
    font-size: 24px;
  }

  /* Hero section mobile */
  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-content h1 {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .hero-features {
    gap: 20px;
    margin-bottom: 32px;
  }

  .hero-feature {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 16px;
    gap: 16px;
  }

  .feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
  }

  .feature-icon svg {
    width: 48px;
    height: 48px;
  }

  .feature-text strong {
    font-size: 18px;
  }

  .feature-text span {
    font-size: 14px;
  }

  /* Flow diagram */
  .flow-messengers-outer {
    border-width: 6px;
    border-radius: 60px;
  }
  .flow-messengers-inner {
    border-radius: 50px;
    padding: 24px 20px;
  }
  .messenger-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
  }
  .messenger-item span {
    font-size: 16px;
  }
  .flow-charon-box {
    width: 90px;
    height: 85px;
  }
  .charon-icon {
    width: 48px;
    height: 44px;
  }
  .flow-crm-hexagon {
    width: 320px;
    height: 360px;
  }
  .hexagon-bg,
  .hexagon-inner {
    transform: translate(-50%, -50%) scale(0.78);
  }
  .crm-icon {
    width: 80px;
    height: 80px;
  }
  .crm-custom strong {
    font-size: 22px;
  }
  .crm-custom span,
  .crm-placeholder span {
    font-size: 12px;
  }
  .crm-icons-row.crm-row-top {
    gap: 40px;
  }

  /* Steps */
  .step-card {
    min-height: auto;
    padding: 24px;
    border-radius: 40px;
    border-width: 6px;
  }
  .step-card::before {
    border-radius: 30px;
  }
  .step-title {
    font-size: 28px;
  }
  .step-card .step-icon-big {
    position: static;
    margin-top: 20px;
  }
  .step-icon-big svg {
    width: 80px;
    height: 80px;
  }

  /* Control */
  .control-wrapper {
    padding: 40px 20px;
    border-radius: 40px;
  }
  .control-title {
    font-size: 32px;
    margin-bottom: 40px;
  }
  .control-cards {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0;
  }
  .control-card {
    border-radius: 40px;
    padding: 32px 24px;
    min-height: 350px;
  }
  .control-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }
  .control-card h3 {
    font-size: 28px;
  }

  /* Benefits */
  .benefits-section {
    padding: 40px 10px;
  }

  /* Cases */
  .case-list li strong {
    font-size: 18px;
  }

  /* FAQ */
  .faq-question {
    font-size: 18px;
    padding: 16px;
  }

  /* CTA */
  .cta-form-wrapper h3 {
    font-size: 24px;
  }

  /* Footer */
  .footer-links {
    gap: 40px;
  }
  .footer-col h4 {
    font-size: 18px;
  }
  .footer-col a {
    font-size: 16px;
  }
  .footer-bottom {
    font-size: 16px;
  }
}

/* --- Cookie banner mobile (max 600px) --- */
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    bottom: 12px;
    width: calc(100% - 24px);
    border-radius: 24px;
  }
  .cookie-banner__text {
    text-align: center;
    font-size: 14px;
  }
  .cookie-banner__btn {
    width: 100%;
    padding: 16px 24px;
  }
}

/* --- Extra small screens (max 500px) --- */
@media (max-width: 500px) {
  .period-toggles {
    padding: 3px;
    gap: 1px;
  }
  .p-btn {
    padding: 8px 6px;
    font-size: 12px;
    min-height: 36px;
    gap: 4px;
  }
  .discount-tag {
    padding: 3px 5px;
    font-size: 10px;
    border-radius: 8px;
  }
}

/* ============================================
   Modal Styles
   ============================================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-light);
  flex-shrink: 0;
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.modal-content {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

.modal-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 24px 0 12px 0;
}

.modal-content h3:first-child {
  margin-top: 0;
}

.modal-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.modal-content ul {
  margin: 12px 0;
  padding-left: 24px;
  list-style: disc;
}

.modal-content li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.modal-content strong {
  color: var(--text-dark);
}

/* Modal mobile styles */
@media (max-width: 768px) {
  .modal {
    padding: 10px;
  }

  .modal-container {
    max-height: 95vh;
    border-radius: var(--radius-md);
  }

  .modal-header {
    padding: 16px 20px;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-close {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .modal-content {
    padding: 20px;
  }

  .modal-content h3 {
    font-size: 16px;
  }

  .modal-content p,
  .modal-content li {
    font-size: 14px;
  }
}
