/* ============================================================
   ВитринаПро — Main Styles
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: var(--section-y); }
.section--soft { background: var(--c-bg-soft); }
.section--dark { background: var(--c-brand); }

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-3);
}

.section-label--light {
  color: rgba(255,255,255,0.55);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--c-text);
  margin-bottom: var(--sp-4);
}

.section-title--light { color: var(--c-text-on-dark); }

.section-lead {
  font-size: var(--text-lg);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 56ch;
}

.section-lead--light { color: var(--c-text-on-dark-80); }

.section-header { margin-bottom: var(--sp-12); }
.section-header--center { text-align: center; }
.section-header--center .section-lead { margin-inline: auto; }


/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.625rem;
  border-radius: var(--r-md);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  line-height: 1;
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--c-brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(9, 29, 55, 0.25);
}
.btn--primary:hover {
  background: var(--c-brand-mid);
  box-shadow: 0 6px 20px rgba(9, 29, 55, 0.30);
}

.btn--primary-light {
  background: #fff;
  color: var(--c-brand);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.btn--primary-light:hover {
  background: #f0f4f8;
  box-shadow: 0 6px 20px rgba(0,0,0,0.16);
}

.btn--ghost {
  background: transparent;
  color: var(--c-text-on-dark);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--c-brand);
  border: 1.5px solid var(--c-border);
}
.btn--ghost-dark:hover {
  border-color: var(--c-brand);
  background: var(--c-accent-light);
}

.btn--lg {
  padding: 0.9rem 2rem;
  font-size: var(--text-lg);
  border-radius: var(--r-lg);
}


/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--c-bg);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card--flat {
  box-shadow: none;
  border-color: var(--c-border);
}

.card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--sp-4);
  color: var(--c-accent);
}

.card__title {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-2);
  color: var(--c-text);
}

.card__text {
  font-size: var(--text-base);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
}


/* ── Media Placeholder ────────────────────────────────────── */
.media-ph {
  background: linear-gradient(135deg, #EBF0F8 0%, #F5F8FC 100%);
  border: 2px dashed var(--c-border);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-8);
  min-height: 280px;
}

.media-ph__inner { color: var(--c-text-muted); }

.media-ph__icon {
  width: 40px;
  height: 40px;
  margin-inline: auto;
  margin-bottom: var(--sp-3);
  opacity: 0.5;
}

.media-ph__name {
  font-family: 'Courier New', monospace;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-1);
}

.media-ph__desc {
  font-size: var(--text-xs);
  color: var(--c-text-muted);
}

.media-ph--video {
  min-height: 400px;
  position: relative;
}

.media-ph--video .media-ph__play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--sp-4);
  opacity: 0.7;
}

.media-ph--video .media-ph__play svg {
  width: 24px;
  height: 24px;
  color: #fff;
  margin-left: 3px;
}

.media-ph--hero {
  min-height: 380px;
  background: linear-gradient(135deg, rgba(9,29,55,0.06) 0%, rgba(37,99,235,0.06) 100%);
  border-color: rgba(9,29,55,0.15);
}

.media-ph--screen {
  border-radius: var(--r-md);
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding-block: var(--sp-4);
  transition: background var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              padding var(--t-base) var(--ease);
}

.nav.is-scrolled {
  background: var(--c-bg);
  box-shadow: var(--shadow-sm);
  padding-block: var(--sp-3);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  text-decoration: none;
}

.nav__logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  flex-shrink: 0;
  transition: box-shadow var(--t-base) var(--ease);
}

.nav.is-scrolled .nav__logo-img {
  box-shadow: 0 2px 8px rgba(9, 29, 55, 0.20);
}

.nav__logo-name {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--c-text-on-dark);
  letter-spacing: -0.01em;
  transition: color var(--t-base) var(--ease);
}

.nav.is-scrolled .nav__logo-name { color: var(--c-brand); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
  margin-left: auto;
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--c-text-on-dark-80);
  transition: color var(--t-fast) var(--ease);
  text-decoration: none;
}

.nav__link:hover { color: var(--c-text-on-dark); }

.nav.is-scrolled .nav__link { color: var(--c-text-secondary); }
.nav.is-scrolled .nav__link:hover { color: var(--c-brand); }

.nav__cta {
  margin-left: var(--sp-4);
  flex-shrink: 0;
}

/* desktop contact icons */
.nav__contacts {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-left: var(--sp-4);
  flex-shrink: 0;
}

.nav__contact-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
  text-decoration: none;
}

.nav__contact-icon:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.40);
  color: #fff;
  transform: none;
}

.nav.is-scrolled .nav__contact-icon {
  background: var(--c-bg-soft);
  border-color: var(--c-border);
  color: var(--c-text-secondary);
}

.nav.is-scrolled .nav__contact-icon:hover {
  background: var(--c-accent-light);
  border-color: rgba(37, 99, 235, 0.30);
  color: var(--c-accent);
}

/* tooltip */
.nav__contact-icon::before {
  content: '';
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: var(--c-brand);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease);
  z-index: var(--z-modal);
}

.nav__contact-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-brand);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease);
  z-index: var(--z-modal);
}

.nav__contact-icon:hover::before,
.nav__contact-icon:hover::after {
  opacity: 1;
}

/* mobile contacts block */
.nav__mobile-contacts {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border-light);
}

.nav__mobile-contact {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--c-text-secondary);
  padding-block: var(--sp-2);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.nav__mobile-contact:hover { color: var(--c-accent); }

.nav__mobile-contact svg { flex-shrink: 0; color: var(--c-accent); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  margin-left: auto;
  border-radius: var(--r-sm);
}

.nav__burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--c-text-on-dark);
  transition: background var(--t-base) var(--ease),
              transform var(--t-fast) var(--ease),
              opacity var(--t-fast) var(--ease);
}

.nav.is-scrolled .nav__burger span { background: var(--c-brand); }

/* burger → X animation */
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.nav__mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--c-bg);
  border-top: 1px solid var(--c-border-light);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-6) var(--container-pad);
  flex-direction: column;
  gap: var(--sp-2);
}

.nav__mobile-menu.is-open { display: flex; }

.nav__mobile-link {
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--c-text);
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--c-border-light);
  display: block;
}

.nav__mobile-link:last-child { border-bottom: none; }
.nav__mobile-link:hover { color: var(--c-accent); }

.nav__mobile-cta {
  margin-top: var(--sp-4);
  width: 100%;
  justify-content: center;
}


/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(145deg, var(--c-brand) 0%, var(--c-brand-mid) 100%);
  padding-top: calc(var(--sp-24) + 72px); /* account for fixed nav */
  padding-bottom: var(--sp-24);
  position: relative;
  overflow: hidden;
}

/* subtle grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* accent glow */
.hero::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-full);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--c-text-on-dark-80);
  margin-bottom: var(--sp-6);
  width: fit-content;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34D399;
  flex-shrink: 0;
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--c-text-on-dark);
  margin-bottom: var(--sp-5);
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: normal;
  color: rgba(255,255,255,0.7);
}

.hero__sub {
  font-size: var(--text-xl);
  color: var(--c-text-on-dark-80);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-10);
  max-width: 44ch;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
}

/* device frame for hero screenshot */
.hero__device {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-xl);
  padding: var(--sp-3);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.08) inset;
}

.hero__device-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding-bottom: var(--sp-3);
}

.hero__device-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.hero__device-dot:nth-child(1) { background: #FF5F57; }
.hero__device-dot:nth-child(2) { background: #FEBC2E; }
.hero__device-dot:nth-child(3) { background: #28C840; }

.hero__device-screen {
  border-radius: var(--r-md);
  overflow: hidden;
  /* ── PLACEHOLDER: Replace with actual screenshot ── */
}


/* ── Problem ──────────────────────────────────────────────── */
.problem__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}

.problem-card {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--c-bg);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base);
}

.problem-card:hover { box-shadow: var(--shadow-md); }

.problem-card__icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: #FEF3F2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F04438;
}

.problem-card__body {}

.problem-card__title {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-2);
  color: var(--c-text);
}

.problem-card__text {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
}


/* ── Solution ─────────────────────────────────────────────── */
.solution__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.solution-card {
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--c-bg);
  border: 1px solid var(--c-border-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

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

.solution-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--c-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  margin-bottom: var(--sp-4);
}

.solution-card__title {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
  margin-bottom: var(--sp-2);
}

.solution-card__text {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
}


/* ── Connection scenarios ─────────────────────────────────── */
.connection__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}

.connection-card {
  padding: var(--sp-6);
  background: var(--c-bg);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

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

.connection-card--pro {
  border-color: rgba(37, 99, 235, 0.20);
}

.connection-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--c-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  margin-bottom: var(--sp-4);
}

.connection-card__badge {
  display: inline-block;
  background: var(--c-accent-light);
  color: var(--c-accent);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-3);
}

.connection-card__title {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
  margin-bottom: var(--sp-2);
}

.connection-card__sub {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-4);
}

.connection-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.connection-card__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
}

.connection-card__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  flex-shrink: 0;
  margin-top: 7px;
}

.connection__callout {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  background: var(--c-accent-light);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
}

.connection__callout-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--c-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.connection__callout-text {
  font-size: var(--text-base);
  color: var(--c-text);
  line-height: var(--lh-relaxed);
}

.connection__callout-text strong {
  font-weight: var(--fw-semibold);
}


/* ── How it works ─────────────────────────────────────────── */
.how__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* connecting line */
.how__steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: rgba(255,255,255,0.12);
  z-index: 0;
}

.how-step {
  text-align: center;
  padding: 0 var(--sp-5);
  position: relative;
  z-index: 1;
}

.how-step__num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--sp-5);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--c-text-on-dark);
  position: relative;
  z-index: 1;
}

.how-step__icon {
  width: 30px;
  height: 30px;
  color: rgba(255,255,255,0.9);
}

.how-step__title {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--c-text-on-dark);
  margin-bottom: var(--sp-3);
}

.how-step__text {
  font-size: var(--text-sm);
  color: var(--c-text-on-dark-60);
  line-height: var(--lh-relaxed);
}


/* ── Interfaces ───────────────────────────────────────────── */
.interfaces__block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  margin-bottom: var(--sp-20);
}

.interfaces__block:last-child { margin-bottom: 0; }

.interfaces__block--reverse { direction: rtl; }
.interfaces__block--reverse > * { direction: ltr; }

.interfaces__block-label {
  display: inline-block;
  background: var(--c-accent-light);
  color: var(--c-accent);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-4);
}

.interfaces__block-title {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  margin-bottom: var(--sp-4);
  line-height: var(--lh-snug);
}

.interfaces__block-text {
  font-size: var(--text-base);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-5);
}

.interfaces__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.interfaces__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
}

.interfaces__feature-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-accent-light);
  color: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.interfaces__feature-check svg {
  width: 11px;
  height: 11px;
}

/* screen frame */
.screen-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--c-border-light);
  background: #1E293B;
}

.screen-frame__bar {
  background: #1E293B;
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.screen-frame__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.screen-frame__dot:nth-child(1) { background: #FF5F57; }
.screen-frame__dot:nth-child(2) { background: #FEBC2E; }
.screen-frame__dot:nth-child(3) { background: #28C840; }

.screen-frame__content { background: #fff; }

.mobile-frame {
  max-width: 280px;
  margin-inline: auto;
  border-radius: 32px;
  border: 3px solid #1E293B;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #fff;
}

.mobile-frame__notch {
  background: #1E293B;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-frame__speaker {
  width: 60px;
  height: 6px;
  background: #374151;
  border-radius: var(--r-full);
}

.mobile-frame__content { background: #fff; }


/* ── Video Demo ───────────────────────────────────────────── */
.demo__main {
  margin-bottom: var(--sp-10);
}

.demo__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.demo-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.demo-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.demo-card__thumb { position: relative; }

.demo-card__body {
  padding: var(--sp-4) var(--sp-5);
}

.demo-card__title {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
  margin-bottom: var(--sp-1);
}

.demo-card__sub {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
}


/* ── For whom ─────────────────────────────────────────────── */
.forwhom__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.forwhom-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--c-bg);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.forwhom-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.forwhom-card__emoji {
  font-size: 2rem;
  line-height: 1;
}

.forwhom-card__title {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}

.forwhom-card__text {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
}


/* ── Advantages ───────────────────────────────────────────── */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.adv-card {
  padding: var(--sp-6);
  background: var(--c-bg);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.adv-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.adv-card__num {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--c-accent);
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-4);
  font-variant-numeric: tabular-nums;
}

.adv-card__title {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
  margin-bottom: var(--sp-2);
}

.adv-card__text {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
}


/* ── Contact / Form ───────────────────────────────────────── */
.contact {
  background: linear-gradient(145deg, var(--c-brand) 0%, var(--c-brand-mid) 100%);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.contact__info {}

.contact__title {
  font-size: var(--text-4xl);
  font-weight: var(--fw-bold);
  color: var(--c-text-on-dark);
  line-height: var(--lh-snug);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.01em;
}

.contact__text {
  font-size: var(--text-lg);
  color: var(--c-text-on-dark-80);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-10);
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.contact__link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--c-text-on-dark-80);
  font-size: var(--text-base);
  transition: color var(--t-fast);
  text-decoration: none;
}

.contact__link:hover { color: var(--c-text-on-dark); }

.contact__link-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

/* Form card */
.form-card {
  background: var(--c-bg);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-xl);
}

.form-card__title {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  margin-bottom: var(--sp-6);
}

.form-group {
  margin-bottom: var(--sp-4);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--c-text);
  margin-bottom: var(--sp-2);
}

.form-label span {
  color: var(--c-error);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--text-base);
  color: var(--c-text);
  background: var(--c-bg);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  appearance: none;
}

.form-input::placeholder { color: var(--c-text-muted); }

.form-input:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-input.is-error {
  border-color: var(--c-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.10);
}

.form-error-msg {
  display: none;
  font-size: var(--text-xs);
  color: var(--c-error);
  margin-top: var(--sp-2);
}

.form-input.is-error + .form-error-msg { display: block; }

.form-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--c-brand);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  margin-top: var(--sp-2);
  position: relative;
}

.form-submit:hover {
  background: var(--c-brand-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.form-submit:active { transform: translateY(0); }

.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* spinner for loading state */
.form-submit__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.form-submit.is-loading .form-submit__spinner { display: block; }

@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* form feedback */
.form-feedback {
  display: none;
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  text-align: center;
  margin-top: var(--sp-4);
}

.form-feedback.is-success {
  display: block;
  background: var(--c-success-bg);
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-feedback.is-error-state {
  display: block;
  background: var(--c-error-bg);
  color: #991B1B;
  border: 1px solid #FECACA;
}

.form-feedback__icon {
  font-size: 1.75rem;
  margin-bottom: var(--sp-2);
}

.form-feedback__title {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-1);
}

.form-feedback__text {
  font-size: var(--text-sm);
}

.form-note {
  font-size: var(--text-xs);
  color: var(--c-text-muted);
  margin-top: var(--sp-4);
  text-align: center;
  line-height: var(--lh-relaxed);
}

.form-note a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ── Scroll-to-top button ─────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: var(--z-nav);

  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  background: var(--c-brand);
  color: #fff;
  box-shadow: var(--shadow-md);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              background var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--c-brand-mid);
  box-shadow: var(--shadow-lg);
}

.scroll-top:active {
  transform: translateY(2px);
}

.scroll-top svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}


/* ── Scroll fade-up animation ─────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease);
}

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


/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--c-brand-deep);
  color: var(--c-text-on-dark-80);
  padding-block: var(--sp-12);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-16);
  align-items: start;
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--sp-6);
}

.footer__brand {}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.footer__logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
}

.footer__logo-name {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--c-text-on-dark);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--c-text-on-dark-60);
  line-height: var(--lh-relaxed);
  max-width: 36ch;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: flex-end;
}

.footer__contact-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--c-text-on-dark-80);
  transition: color var(--t-fast);
  text-decoration: none;
}

.footer__contact-link:hover { color: var(--c-text-on-dark); }

.footer__contact-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer__legal {
  font-size: var(--text-xs);
  color: var(--c-text-on-dark-60);
}

.footer__policy {
  font-size: var(--text-xs);
  color: var(--c-text-on-dark-60);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--t-fast);
}

.footer__policy:hover { color: var(--c-text-on-dark-80); }
