/* Manrope (self-hosted, variable 200–800) — без зависимости от Google Fonts CDN. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/pic/fonts/Manrope-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/pic/fonts/Manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/pic/fonts/Manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/pic/fonts/Manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Playfair Display (self-hosted, variable 400–900) — без зависимости от Google Fonts CDN. */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/pic/fonts/PlayfairDisplay-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/pic/fonts/PlayfairDisplay-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/pic/fonts/PlayfairDisplay-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("/pic/Inter-Light.otf") format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/pic/Inter-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/pic/Inter-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/pic/Inter-SemiBold.otf") format("opentype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue";
  src: url("/pic/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --color-bg-page: #f4f7fb;
  --color-bg-page-top: #f7faff;
  --color-bg-page-bottom: #eef4fb;
  --color-bg-surface: rgba(255, 255, 255, 0.72);
  --color-bg-surface-strong: rgba(255, 255, 255, 0.86);
  --color-bg-dark: #07111f;
  --color-bg-dark-soft: #081120;
  --color-bg-accent: #3481ff;
  --color-bg-accent-deep: #1858c8;
  --color-text-primary: #081120;
  --color-text-secondary: #5d6b82;
  --color-text-accent: #2b5fae;
  --color-text-inverse: #f3f7ff;
  --color-text-inverse-soft: rgba(243, 247, 255, 0.76);
  --color-line-soft: rgba(9, 22, 41, 0.09);
  --color-line-soft-strong: rgba(9, 22, 41, 0.1);
  --color-line-inverse: rgba(255, 255, 255, 0.14);
  --color-overlay-blue: rgba(52, 129, 255, 0.18);
  --color-overlay-blue-soft: rgba(52, 129, 255, 0.08);
  --color-overlay-dark: rgba(0, 0, 0, 0.38);
  --gradient-page:
    radial-gradient(circle at top left, rgba(52, 129, 255, 0.18), transparent 28%),
    radial-gradient(circle at 85% 14%, rgba(106, 146, 214, 0.18), transparent 22%),
    linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
  --gradient-primary: linear-gradient(135deg, #3481ff 0%, #1f63d9 100%);
  --gradient-primary-hover: linear-gradient(135deg, #3e89ff 0%, #286ee5 100%);
  --gradient-dark: linear-gradient(180deg, rgba(10, 18, 32, 0.96) 0%, rgba(7, 17, 31, 0.92) 100%);
  --gradient-dark-panel:
    radial-gradient(circle at top right, rgba(52, 129, 255, 0.42), transparent 22%),
    linear-gradient(180deg, #081120 0%, #07111f 100%);
  --gradient-workflow: linear-gradient(135deg, #091221 0%, #0e2d61 46%, #3481ff 100%);
  --gradient-hero-surface:
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.74) 42%, transparent 64%),
    radial-gradient(circle at 85% 16%, rgba(52, 129, 255, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(238, 245, 255, 0.74) 100%);
  --gradient-glow:
    radial-gradient(circle at 30% 24%, rgba(159, 204, 255, 0.78), transparent 24%),
    radial-gradient(circle at 78% 76%, rgba(52, 129, 255, 0.58), transparent 28%),
    linear-gradient(160deg, rgba(52, 129, 255, 0.32), rgba(8, 17, 32, 0.04));
  --shadow-soft: 0 20px 60px rgba(34, 69, 124, 0.13);
  --shadow-medium: 0 16px 40px rgba(46, 81, 142, 0.12);
  --shadow-hero: 0 38px 120px rgba(52, 129, 255, 0.28);
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --radius-full: 999px;
  /* Button radius tuned to visually match the in-app sidebar item (~14px). */
  --radius-button: 14px;
  --container: 1280px;
  --section-padding-y: 32px;
  --section-padding-x: 24px;
  --section-padding-top-lg: 68px;
  --grid-gap: 18px;
  --card-padding-sm: 24px;
  --card-padding-md: 28px;
  --card-padding-lg: 40px;
  --button-height: 56px;
  --button-padding-x: 24px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--color-text-primary);
  background: var(--gradient-page);
  min-width: 0;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

.page-shell {
  overflow: clip;
}

.grecaptcha-badge {
  z-index: 1000 !important;
}

.section,
.hero,
.proof,
.stats,
.testimonials,
.story,
.footer {
  padding: var(--section-padding-y) var(--section-padding-x);
}

.hero__inner,
.proof__inner,
.stats__inner,
.testimonials__inner,
.section__inner,
.story__inner,
.footer__inner {
  width: min(100%, var(--container));
  margin: 0 auto;
}

.section-title {
  margin: 18px 0 12px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
  text-wrap: balance;
  text-align: center;
}


.section-title--text-font {
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.72;
}

/* Center the stats heading block within its panel. */
.stats__copy {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Footer text section: heading, lead, buttons and link rows all centered. */
.footer__panel > section {
  text-align: center;
}

.footer__panel > section .footer__lead {
  margin-left: auto;
  margin-right: auto;
}

.footer__panel > section .cta-row {
  justify-content: center;
}

/* Contact CTA: feedback form lifted out of the footer into its own band.
   Dark base matching the footer; identical fixed-size glows mirrored on BOTH edges —
   top-right mirrors the dark section above, bottom-right mirrors the footer below —
   so neither boundary reads as a seam. */
.contact-cta {
  padding: var(--section-padding-y) var(--section-padding-x);
  background:
    radial-gradient(circle 440px at top right, rgba(52, 129, 255, 0.42), transparent),
    radial-gradient(circle 440px at bottom right, rgba(52, 129, 255, 0.42), transparent),
    #081120;
}

.contact-cta__inner {
  width: min(100%, 600px);
  margin: 0 auto;
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.contact-cta__lead {
  margin: 0;
  max-width: 460px;
  color: var(--color-text-inverse-soft);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
}

.contact-cta__card {
  width: 100%;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 16px;
  background: linear-gradient(160deg, #141d3a, #0f1426);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.contact-cta__card .footer-card__feedback h3 {
  text-align: left;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  /* Full-bleed bar: surface spans the whole viewport width, content stays centered. */
  padding: 0 var(--section-padding-x);
  background: var(--color-bg-surface-strong);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--color-line-soft);
}

.site-header__inner {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
}

.site-header__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
  justify-content: center;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  /* Doubles the spacing from the language switcher (on top of the 14px row gap). */
  margin-left: 14px;
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand--header {
  /* Single source of truth for header brand size; drives both mark and wordmark. */
  align-items: baseline;
  font-size: clamp(1.6rem, 1.8vw, 2.14rem);
}

.brand--header .brand__mark {
  width: auto;
  /* Match the wordmark cap height (~0.71em) so the logo and letters read as one height. */
  height: 0.71em;
  flex: 0 0 auto;
  display: block;
}

.brand--header .brand__wordmark {
  font-size: 1em;
}

.brand__wordmark {
  display: block;
  font-family: "Bebas Neue", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.6rem, 1.8vw, 2.14rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: #3481FF;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand--footer {
  margin-bottom: 8px;
  /* Single source of truth for footer brand size; drives both mark and wordmark. */
  align-items: baseline;
  font-size: clamp(1.9rem, 2.1vw, 2.3rem);
}

.brand--footer .brand__mark {
  width: auto;
  /* Match the wordmark cap height (~0.71em) so the logo and letters read as one height. */
  height: 0.71em;
}

.brand--footer .brand__wordmark {
  font-size: 1em;
}

.brand img,
.brand__mark {
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  /* Don't grow: nav, language-switcher and auth buttons form a tight right cluster,
     pushed to the right edge by this auto margin. */
  flex: 0 0 auto;
  margin-left: auto;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(9, 22, 41, 0.08);
  flex: 0 0 auto;
}

.language-switcher__button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.language-switcher__button:hover {
  transform: translateY(-1px);
  background: rgba(52, 129, 255, 0.08);
}

.language-switcher__button.is-active {
  background: var(--gradient-primary);
  box-shadow: 0 10px 24px rgba(52, 129, 255, 0.22);
}

.site-nav a,
.site-nav button,
.site-header__menu-toggle {
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.1;
}

.site-nav a:hover,
.site-nav button:hover,
.site-header__menu-toggle:hover {
  background: var(--color-overlay-blue-soft);
  color: var(--color-text-primary);
  transform: translateY(-1px);
}

.site-header__auth.button {
  /* Keep the auth buttons no taller than the language-switcher block (~50px). */
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.85rem;
  box-shadow: 0 12px 26px rgba(52, 129, 255, 0.22);
}

.site-header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cta-row--tight {
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--button-height);
  padding: 0 var(--button-padding-x);
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--gradient-primary);
  color: var(--color-text-inverse);
  box-shadow: 0 16px 38px rgba(52, 129, 255, 0.34);
}

.button--primary:hover {
  background: var(--gradient-primary-hover);
}

.button--secondary {
  background: var(--color-bg-surface-strong);
  border-color: var(--color-line-soft-strong);
  color: var(--color-text-primary);
}

.button:disabled {
  transform: none;
  box-shadow: none;
}

.button--ghost {
  border-color: var(--color-line-inverse);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-inverse);
}

.hero {
  /* Full-bleed band. The page gradient shows through and continues into the next
     section; the hero surface is an overlay that fades out before the bottom edge,
     so there's no visible seam between the hero and the section below it. */
  position: relative;
  padding-top: 56px;
  padding-bottom: 6px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-surface);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__panel {
  position: relative;
  display: grid;
  /* Stacked layout: copy on top, app preview below. */
  grid-template-columns: 1fr;
  gap: 42px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hero__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero__title {
  margin: 22px 0 20px;
  /* Full width of the hero container. */
  max-width: 100%;
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  overflow-wrap: break-word;
  text-wrap: balance;
  text-align: center;
}

.hero__lead {
  /* 80% of the hero container width, centered. */
  margin: 0 auto 28px;
  max-width: 80%;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  line-height: 1.72;
  overflow-wrap: break-word;
}

.hero-orbit-card {
  min-height: 112px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(9, 22, 41, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(34, 69, 124, 0.08);
}

.hero-orbit-card h4 {
  margin: 0 0 8px;
  color: var(--color-text-primary);
  font-size: 1rem;
}

.hero-orbit-card p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.94rem;
  line-height: 1.58;
}

.hero__visual {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 18px;
  min-width: 0;
  margin-bottom: 50px;
}

.hero__visual-stack {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 18px;
  width: 100%;
  max-width: 960px;
  min-width: 0;
}

.hero-orbit-card--top {
  width: min(100%, 248px);
  justify-self: end;
  transform: translateX(6px) rotate(-1.6deg);
}

.mockup-glow {
  position: absolute;
  inset: 52px 24px 64px 56px;
  border-radius: 40px;
  background: var(--gradient-glow);
  filter: blur(18px);
}

.app-window {
  /* Landscape window with an iPad Pro 4:3 edge ratio (800 x 600). */
  --app-window-width: 800px;
  --app-window-height: 600px;
  --app-window-padding: 22px;
  --app-window-radius: 34px;
  --app-window-sidebar: 184px;
  --app-window-gap: 16px;
  --app-window-head-height: 44px;
  --app-window-paragraph-min-height: 90px;
  position: relative;
  z-index: 1;
  width: min(100%, var(--app-window-width));
  height: var(--app-window-height);
  min-height: var(--app-window-height);
  max-height: var(--app-window-height);
  min-width: 0;
  padding: var(--app-window-padding);
  border-radius: var(--app-window-radius);
  color: var(--color-text-inverse);
  background: var(--gradient-dark);
  box-shadow: var(--shadow-hero);
  overflow: hidden;
  justify-self: center;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.app-window__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  min-height: 40px;
}

.window-dots {
  display: inline-flex;
  gap: 8px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.window-pill {
  padding: 10px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  color: rgba(243, 247, 255, 0.88);
  min-width: 24ch;
  max-width: 24ch;
  width: 24ch;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.app-window__grid {
  display: grid;
  grid-template-columns: var(--app-window-sidebar) minmax(0, 1fr);
  gap: var(--app-window-gap);
  min-height: 0;
  height: 100%;
}

.sidebar-card,
.workspace-card,
.hero-orbit-card {
  border-radius: 26px;
}

.proof-card,
.feature-card,
.workflow-card,
.story-card,
.footer-card {
  border-radius: 16px;
}

.sidebar-card {
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 100%;
  min-height: 0;
}

.sidebar-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.sidebar-card li {
  min-height: 38px;
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(243, 247, 255, 0.76);
  font-size: 0.88rem;
}

.sidebar-card li.is-active {
  background: linear-gradient(135deg, rgba(52, 129, 255, 0.9), rgba(87, 153, 255, 0.9));
  color: #fff;
}

.sidebar-card li.is-pending {
  background: rgba(52, 129, 255, 0.12);
  color: rgba(243, 247, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(112, 170, 255, 0.24);
}

.workspace-card {
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.workspace-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  min-height: var(--app-window-head-height);
}

.workspace-head h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.2;
  min-height: 1.2em;
  overflow: hidden;
}

.workspace-head span {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(52, 129, 255, 0.16);
  color: #8cc0ff;
  font-size: 0.8rem;
  min-width: 22ch;
  max-width: 22ch;
  width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  justify-self: start;
}

.paragraph-stack {
  /* Single column: the three sections stacked vertically. */
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.paragraph-stack article {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  min-height: var(--app-window-paragraph-min-height);
}

.paragraph-stack h4 {
  margin: 0 0 6px;
  font-size: 0.82rem;
  line-height: 1.15;
}

.paragraph-stack p {
  margin: 0;
  color: rgba(243, 247, 255, 0.72);
  line-height: 1.42;
  font-size: 0.76rem;
  overflow: hidden;
}

[data-app-demo-impression].is-generating,
[data-app-demo-section-text].is-generating {
  color: rgba(243, 247, 255, 0.94);
}

[data-app-demo-impression],
[data-app-demo-section-text] {
  overflow: hidden;
}

.hero__orbit-band {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.82fr 1.08fr 0.88fr 0.9fr;
  gap: 2px 16px;
  width: 100%;
  align-items: start;
  margin-top: 8px;
  padding-inline: 6px 10px;
}

.hero__orbit-band .hero-orbit-card {
  min-height: 0;
  padding: 14px 14px 15px;
  border-radius: 20px;
}

.hero__orbit-band .hero-orbit-card h4 {
  font-size: 0.92rem;
  line-height: 1.1;
}

.hero__orbit-band .hero-orbit-card p {
  font-size: 0.82rem;
  line-height: 1.45;
}

.hero-orbit-card--one {
  grid-column: 1;
  grid-row: 1;
  max-width: 206px;
  justify-self: start;
  transform: translateX(6px) translateY(6px) rotate(-1.2deg);
}

.hero-orbit-card--two {
  grid-column: 2;
  grid-row: 2;
  max-width: 264px;
  justify-self: center;
  transform: translateX(-24px) translateY(-58px) rotate(1deg);
}

.hero-orbit-card--three {
  grid-column: 3;
  grid-row: 1;
  max-width: 211px;
  justify-self: center;
  transform: translateX(6px) translateY(-2px) rotate(-0.8deg);
}

.hero-orbit-card--four {
  grid-column: 4;
  grid-row: 2;
  max-width: 226px;
  justify-self: end;
  transform: translateX(-2px) translateY(-60px) rotate(1deg);
}

.proof {
  padding-top: 8px;
}

.proof__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.proof-card {
  padding: var(--card-padding-sm);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.proof-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.22rem, 2.2vw, 1.72rem);
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.proof-card p {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.section--grid {
  padding-top: var(--section-padding-top-lg);
}

.features-grid,
.workflow-grid,
.stories-grid {
  display: grid;
  gap: var(--grid-gap);
  margin-top: 34px;
}

.features-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  min-height: 240px;
  padding: var(--card-padding-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.feature-card--accent {
  background: linear-gradient(160deg, rgba(52, 129, 255, 0.94), rgba(17, 76, 182, 0.94));
  color: var(--color-text-inverse);
}

.feature-card--accent h3 {
  color: var(--color-text-inverse);
}

.feature-card h3 {
  margin: 18px 0 10px;
  font-size: 1.35rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.feature-card--accent p,
.feature-card--accent li,
.feature-card--accent .feature-card__meta {
  color: var(--color-text-inverse);
}

.feature-card__meta {
  margin-top: 18px;
  color: #3f5f91;
  font-size: 0.93rem;
  font-weight: 600;
}

.workflow-band {
  margin-top: 36px;
  padding: 30px;
  border-radius: 34px;
  color: var(--color-text-inverse);
  background: var(--gradient-workflow);
  box-shadow: var(--shadow-hero);
}

.workflow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.workflow-card {
  padding: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.workflow-card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.workflow-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.workflow-card p {
  margin: 0;
  color: rgba(243, 247, 255, 0.78);
  line-height: 1.64;
}

.section--dark .section__panel,
.story__panel,
.footer__panel {
  color: var(--color-text-inverse);
}

/* Full-bleed dark bands: background spans the whole viewport, content stays centered.
   Both use the SAME solid base and IDENTICAL fixed-size corner glows, mirrored across
   the section/footer boundary, so the right edge reads as one continuous glow — no seam. */
.section--dark,
.footer {
  background: #081120;
}

.section--dark {
  padding-top: var(--section-padding-top-lg);
  padding-bottom: var(--section-padding-top-lg);
  background:
    radial-gradient(circle 440px at bottom right, rgba(52, 129, 255, 0.42), transparent),
    #081120;
}

.footer {
  background:
    radial-gradient(circle 440px at top right, rgba(52, 129, 255, 0.42), transparent),
    #081120;
}

.section--dark .section-copy,
.story__panel .section-copy,
.footer__panel p,
.story-card p,
.story-card li {
  color: var(--color-text-inverse-soft);
}

.reliability-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: var(--grid-gap);
  margin-top: 34px;
}

.reliability-grid > :only-child {
  grid-column: 1 / -1;
}

.reliability-panel,
.reliability-list {
  padding: 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.reliability-panel h3,
.reliability-list h3 {
  margin: 0;
  font-size: 1.26rem;
}

.reliability-panel p,
.reliability-list p {
  margin: 0 0 14px;
  line-height: 1.7;
}

.reliability-panel p:last-of-type,
.reliability-list p:last-of-type {
  margin-bottom: 0;
}

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

.reliability-list li {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.stories-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card {
  padding: var(--card-padding-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-card__role {
  display: block;
  margin-top: 14px;
  font-size: 0.92rem;
  color: rgba(243, 247, 255, 0.52);
}

.stats {
  /* Full-bleed dark band (slightly lighter than the other dark sections). */
  padding-top: var(--section-padding-top-lg);
  padding-bottom: var(--section-padding-top-lg);
  background: linear-gradient(180deg, rgba(54, 60, 74, 0.96) 0%, rgba(44, 49, 62, 0.96) 100%);
}

.section--register-cta {
  padding-top: var(--section-padding-top-lg);
  padding-bottom: var(--section-padding-y);
}

.register-cta-card {
  display: grid;
  gap: 14px;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, rgba(52, 129, 255, 0.12), rgba(255, 255, 255, 0.88));
  box-shadow: var(--shadow-soft);
}

.register-cta-card__title {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.register-cta-card__text {
  margin: 0;
  max-width: 760px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.register-cta-card__button {
  min-width: 180px;
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.95rem;
}

.stats__panel {
  display: grid;
  gap: 24px;
}

.stats__copy {
  max-width: 720px;
}

.stats__copy .section-title,
.stats__copy .section-copy {
  color: var(--color-text-inverse);
}

.stats__copy .section-copy {
  color: rgba(243, 247, 255, 0.68);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.stats-card {
  padding: var(--card-padding-md);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--color-bg-accent);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.stats-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--color-text-inverse);
  font-size: 1rem;
  font-weight: 600;
}

.stats-card p {
  margin: 0;
  color: rgba(243, 247, 255, 0.62);
  line-height: 1.6;
}

.testimonials {
  padding-top: var(--section-padding-top-lg);
}

.testimonials__panel {
  padding: var(--card-padding-lg);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.testimonials__head {
  text-align: left;
}

.testimonials__head .section-copy {
  margin: 0;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: 34px;
}

.testimonials__carousel {
  position: relative;
  margin-top: 34px;
}

.testimonials__viewport {
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  gap: var(--grid-gap);
  transition: transform 420ms ease;
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 calc((100% - (var(--grid-gap) * 2)) / 3);
  padding: var(--card-padding-md);
  border-radius: 28px;
  background: var(--color-bg-surface-strong);
  border: 1px solid rgba(43, 95, 174, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.testimonial-card__quote {
  margin: 0 0 18px;
  color: var(--color-text-primary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.testimonial-card__mark {
  display: block;
  margin-bottom: 18px;
  color: var(--color-bg-accent);
  font-size: 5rem;
  line-height: 0.7;
  font-weight: 700;
}

.testimonial-card__person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(52, 129, 255, 0.14);
}

.testimonial-card__name {
  display: block;
  color: var(--color-text-primary);
  font-weight: 700;
}

.testimonial-card__role {
  display: block;
  margin-top: 4px;
  color: var(--color-text-secondary);
  font-size: 0.92rem;
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.testimonials__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(52, 129, 255, 0.18);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.testimonials__dot.is-active {
  background: var(--color-bg-accent);
  transform: scale(1.15);
}

.footer {
  padding-top: var(--section-padding-top-lg);
  padding-bottom: 42px;
}

.footer__panel {
  /* Stacked: the feedback "tablet" sits on top, the workspace text below it. */
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}

.footer__lead {
  max-width: 720px;
  text-align: justify;
  font-size: 0.7rem;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--grid-gap);
  margin-top: 34px;
}

.footer__column {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 24px;
}

.footer__column h3 {
  margin: 0;
  color: var(--color-text-inverse);
  font-size: 1rem;
}

.footer__column a,
.footer__column span {
  color: rgba(243, 247, 255, 0.7);
  text-decoration: none;
}

.footer__column a:hover {
  color: var(--color-text-inverse);
}

.footer-card {
  padding: var(--card-padding-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-card li {
  color: rgba(243, 247, 255, 0.76);
}

.footer-card--cta {
  /* Shaped like the hero tablet: a horizontal iPad Pro (4:3), centered. */
  width: min(100%, 816px);
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  grid-template-areas: "brand form";
  grid-template-rows: 1fr;
  /* Vertically center the whole content block within the tablet. */
  align-content: center;
  align-items: center;
  gap: 20px 36px;
  background: linear-gradient(135deg, rgba(19, 27, 53, 0.92), rgba(16, 20, 39, 0.92));
}

.footer-card--cta .brand--footer {
  grid-area: brand;
}

.footer-card--cta .footer-card__feedback {
  grid-area: form;
  align-content: center;
}

.footer-card--cta img {
  width: 127px;
  height: auto;
}

.footer-card--cta p {
  margin: 0;
}

.footer-card__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.footer-card__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-inverse);
  text-decoration: none;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
}

.footer-card__social-link svg {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-card__social-link:hover,
.footer-card__social-link:focus-visible {
  background: rgba(52, 129, 255, 0.14);
  border-color: rgba(52, 129, 255, 0.4);
  color: #7bb2ff;
  transform: translateY(-1px);
}

.footer-card__social-link:focus-visible {
  outline: 2px solid rgba(123, 178, 255, 0.55);
  outline-offset: 3px;
}

.footer-card__feedback {
  display: grid;
  gap: 14px;
}

.footer-card__feedback h3 {
  margin: 0;
  color: var(--color-text-inverse);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  text-align: center;
}

.footer-card__field {
  display: grid;
  gap: 8px;
}

.footer-card__field span {
  color: rgba(243, 247, 255, 0.72);
  font-size: 0.92rem;
}

.footer-card__field input,
.footer-card__field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-inverse);
  padding: 14px 16px;
  resize: vertical;
}

.footer-card__field input::placeholder,
.footer-card__field textarea::placeholder {
  color: rgba(243, 247, 255, 0.42);
}

.footer-card__consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  color: rgba(243, 247, 255, 0.76);
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
}

.footer-card__consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--color-bg-accent);
  cursor: pointer;
}

.footer-card__submit {
  width: 100%;
}

.footer-card__submit:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.footer-card__feedback-status {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.92rem;
  color: rgba(243, 247, 255, 0.72);
}

.footer-card__feedback-status[data-state="success"] {
  color: #8ae6b0;
}

.footer-card__feedback-status[data-state="error"] {
  color: #ffb3ba;
}

.footer__meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  color: rgba(243, 247, 255, 0.52);
  font-size: 0.92rem;
}

/* reCAPTCHA v3: плавающий бейдж скрыт — Google разрешает при видимой атрибуции
   в потоке (см. .footer__recaptcha). v2-модалку (challenge) не трогаем.
   Именно visibility, не display: none — виджет продолжает работать штатно. */
.grecaptcha-badge {
  visibility: hidden;
}

.footer__recaptcha {
  margin-top: 10px;
  color: rgba(243, 247, 255, 0.4);
  font-size: 0.8rem;
  text-align: center;
}

.footer__recaptcha a {
  color: inherit;
  text-decoration: underline;
}

.footer__recaptcha--form {
  text-align: left;
  margin-top: 14px;
}

.footer__legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.footer__legal-links a {
  color: rgba(243, 247, 255, 0.66);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__legal-links a:hover,
.footer__legal-links a:focus-visible {
  color: var(--color-text-inverse);
}

.footer__legal-links a + a::before {
  content: "|";
  display: inline-block;
  margin: 0 10px;
  color: rgba(243, 247, 255, 0.32);
}

.cookies-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: min(calc(100vw - 48px), 720px);
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(34, 69, 124, 0.18);
  backdrop-filter: blur(18px);
  color: var(--color-text-primary);
}

.cookies-banner[hidden] {
  display: none;
}

.cookies-banner__text {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

.cookies-banner__text a {
  color: var(--color-text-accent);
  font-weight: 700;
  text-decoration: none;
}

.cookies-banner__text a:hover,
.cookies-banner__text a:focus-visible {
  text-decoration: underline;
}

.cookies-banner__button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-button);
  background: var(--gradient-primary);
  color: var(--color-text-inverse);
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(52, 129, 255, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cookies-banner__button:hover,
.cookies-banner__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(52, 129, 255, 0.3);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .hero-orbit-card--top,
  .hero__orbit-band {
    display: none;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 3;
    margin-left: 0;
    justify-content: flex-start;
    margin-top: 4px;
    padding: 10px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(9, 22, 41, 0.08);
    box-shadow: 0 18px 36px rgba(34, 69, 124, 0.1);
  }

  .site-header__menu-toggle {
    display: inline-flex;
  }

  /* Nav collapses into the toggle and wraps below; the switcher takes over pushing
     the top-row right cluster (switcher + auth buttons) to the right edge. */
  .language-switcher {
    margin-left: auto;
  }

  .site-header__inner.is-menu-open .site-nav {
    display: flex;
  }

  .hero-orbit-card--top,
  .hero-orbit-card--one,
  .hero-orbit-card--two,
  .hero-orbit-card--three,
  .hero-orbit-card--four {
    transform: none;
  }

  .hero__panel,
  .footer__panel,
  .reliability-grid,
  .features-grid,
  .proof__grid,
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats__grid,
  .testimonials__grid,
  .stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonial-card {
    flex-basis: calc((100% - var(--grid-gap)) / 2);
  }

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

  .hero__visual {
    min-height: auto;
    display: grid;
    justify-items: center;
    gap: 18px;
    padding-top: 10px;
  }

  .hero__visual-stack {
    width: min(100%, 620px);
    justify-items: stretch;
  }

  .hero-orbit-card--top {
    width: 100%;
    max-width: 280px;
    justify-self: end;
  }

  .hero__orbit-band {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    margin-top: 0;
    padding-inline: 0;
  }

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

@media (min-width: 1181px) and (max-width: 1366px) {
  :root {
    --container: 1120px;
    --section-padding-x: 22px;
    --section-padding-top-lg: 56px;
    --card-padding-lg: 34px;
  }

  .site-header {
    padding-top: 16px;
  }

  .site-header__inner {
    padding-inline: 14px;
  }

  .site-nav a,
  .site-nav button {
    padding-inline: 8px;
    font-size: 0.84rem;
  }

  .hero__panel {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero__title {
    font-size: clamp(4.2rem, 6vw, 5rem);
  }

  .hero__lead {
    font-size: 1.08rem;
  }

  .hero__visual {
    min-height: auto;
  }

  .hero__visual-stack {
    width: min(100%, 840px);
    min-width: 0;
    max-width: 840px;
  }

  .app-window {
    --app-window-width: 720px;
    --app-window-height: 540px;
    --app-window-padding: 18px;
    --app-window-sidebar: 168px;
    --app-window-gap: 12px;
    --app-window-paragraph-min-height: 78px;
    width: min(100%, var(--app-window-width));
    min-width: 0;
    max-width: var(--app-window-width);
  }

  .hero__orbit-band {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .hero-orbit-card--one,
  .hero-orbit-card--two,
  .hero-orbit-card--three,
  .hero-orbit-card--four {
    max-width: none;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .hero__panel {
    gap: 28px;
    padding: 34px;
  }

  .hero__visual {
    width: 100%;
  }

  .app-window {
    --app-window-width: 620px;
    --app-window-height: 465px;
    --app-window-padding: 20px;
    --app-window-radius: 30px;
    --app-window-sidebar: 124px;
    --app-window-gap: 14px;
    --app-window-head-height: 50px;
    --app-window-paragraph-min-height: 84px;
    width: 620px;
    min-width: 620px;
    max-width: 620px;
  }
}

@media (max-width: 1024px) {
  .site-header__inner {
    align-items: center;
  }

  .site-header__identity {
    flex: 0 1 auto;
  }

  .site-header__actions {
    gap: 8px;
  }

}

@media (min-width: 821px) and (max-width: 1180px) {
  :root {
    --container: 960px;
    --section-padding-y: 28px;
    --section-padding-top-lg: 54px;
    --card-padding-md: 24px;
    --card-padding-lg: 34px;
  }

  .site-header {
    padding-top: 16px;
  }

  .site-header__inner {
    border-radius: 32px;
  }

  .site-nav {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
  }

  .site-header__inner.is-menu-open .site-nav {
    display: grid;
  }

  .site-nav a,
  .site-nav button {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.54);
    text-align: center;
  }

  .hero__panel {
    gap: 30px;
  }

  .hero__copy {
    max-width: none;
  }

  .hero__title {
    max-width: 100%;
    font-size: clamp(3.2rem, 6.2vw, 4.4rem);
  }

  .hero__lead {
    max-width: 80%;
  }

  .app-window {
    --app-window-width: 620px;
    --app-window-height: 465px;
    --app-window-sidebar: 132px;
    --app-window-paragraph-min-height: 70px;
    width: 620px;
    min-width: 620px;
    max-width: 620px;
  }

  .features-grid,
  .workflow-grid,
  .proof__grid,
  .stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonials__grid,
  .stats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .testimonial-card {
    flex-basis: calc((100% - (var(--grid-gap) * 2)) / 3);
  }
}

@media (max-width: 820px) {
  /* Feedback card drops the fixed tablet ratio and stacks on small screens. */
  .footer-card--cta {
    aspect-ratio: auto;
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "form";
    grid-template-rows: auto auto;
    gap: 18px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .site-header__inner {
    border-radius: 28px;
    align-items: center;
  }

  .site-header__identity {
    width: auto;
    max-width: 100%;
    align-self: center;
    justify-content: center;
  }

  .site-header__actions {
    justify-content: flex-end;
  }

  .hero,
  .proof,
  .stats,
  .testimonials,
  .section,
  .story,
  .footer {
    padding-inline: 16px;
  }

  .hero__panel,
  .section--dark .section__panel,
  .story__panel,
  .footer__panel,
  .workflow-band {
    padding: 26px;
    border-radius: 30px;
  }

  .hero__visual {
    min-height: auto;
    gap: 14px;
  }

  .proof__grid,
  .stats__grid,
  .testimonials__grid,
  .features-grid,
  .workflow-grid,
  .stories-grid,
  .reliability-grid {
    grid-template-columns: 1fr;
  }

  .app-window {
    --app-window-width: 620px;
    --app-window-height: 390px;
    --app-window-padding: 18px;
    --app-window-sidebar: 112px;
    --app-window-gap: 12px;
    --app-window-head-height: 48px;
    --app-window-paragraph-min-height: 76px;
    width: 620px;
    min-width: 620px;
    max-width: 620px;
  }

  .hero-orbit-card--top {
    max-width: 240px;
  }

  .hero__orbit-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mockup-glow {
    display: none;
  }

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

  .testimonial-card {
    flex-basis: 100%;
  }

}

@media (min-width: 641px) and (max-width: 820px) {
  :root {
    --section-padding-y: 26px;
    --section-padding-top-lg: 48px;
  }

  /* Keep the flex layout (like 821–1180): logo left, switcher + buttons on one line. */
  .site-header__inner {
    gap: 10px 12px;
  }

  .site-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .site-header__inner.is-menu-open .site-nav {
    display: grid;
  }

  .site-nav a,
  .site-nav button {
    width: 100%;
    min-height: 42px;
    background: rgba(255, 255, 255, 0.56);
    text-align: center;
  }

  .hero__title {
    font-size: clamp(2.95rem, 7.2vw, 3.85rem);
  }

  .hero__lead {
    font-size: 1.02rem;
  }

  .app-window {
    --app-window-width: 620px;
    --app-window-height: 465px;
    --app-window-sidebar: 118px;
    --app-window-paragraph-min-height: 70px;
    width: 620px;
    min-width: 620px;
    max-width: 620px;
  }

  .features-grid,
  .proof__grid,
  .workflow-grid,
  .stories-grid,
  .stats__grid,
  .testimonials__grid,
  .reliability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 641px) and (max-width: 1180px) {
  .features-grid > :last-child:nth-child(odd),
  .stories-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 641px) and (max-width: 820px) {
  .stats__grid > :last-child:nth-child(odd),
  .testimonials__grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding-y: 22px;
    --section-padding-x: 14px;
    --section-padding-top-lg: 42px;
    --grid-gap: 14px;
    --button-height: 50px;
    --button-padding-x: 18px;
  }

  .site-header {
    padding: 12px 12px 0;
  }

  .site-header__inner {
    display: grid;
    /* Logo and language switcher share the top line, in opposite corners. */
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 10px;
    border-radius: 24px;
    gap: 8px;
  }

  .site-header__identity {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    gap: 8px;
  }

  .brand--header {
    font-size: clamp(1.36rem, 7vw, 1.76rem);
  }

  .language-switcher {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
    gap: 2px;
    padding: 3px;
  }

  .language-switcher__button {
    width: 34px;
    height: 34px;
    font-size: 0.92rem;
  }

  .site-header__actions {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: space-between;
    gap: 6px;
    margin-left: 0;
  }

  .site-header__auth.button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 38px;
    padding-inline: 10px;
    font-size: 0.82rem;
  }

  .site-header__menu-toggle {
    width: 38px;
    height: 38px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 3;
    display: none;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 8px;
    margin-top: 2px;
    border-radius: 20px;
  }

  .site-header__inner.is-menu-open .site-nav {
    display: grid;
  }

  .site-nav a,
  .site-nav button {
    width: 100%;
    min-height: 42px;
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.58);
    text-align: center;
  }

  .hero__panel,
  .section--dark .section__panel,
  .story__panel,
  .stats__panel,
  .testimonials__panel,
  .footer__panel,
  .workflow-band {
    padding: 22px;
    border-radius: 26px;
  }

  .hero {
    padding-top: 20px;
    max-width: 100vw;
    overflow: hidden;
  }

  .hero__inner,
  .hero__panel,
  .hero__copy,
  .hero__visual,
  .hero__visual-stack,
  .app-window,
  .app-window__grid,
  .workspace-card {
    min-width: 0;
    max-width: 100%;
  }

  .hero__visual-stack {
    width: 100%;
    overflow: hidden;
  }

  .hero__title,
  .section-title {
    letter-spacing: -0.04em;
  }

  .hero__title {
    margin-block: 18px 16px;
    max-width: 100%;
    font-size: clamp(1.82rem, 8.2vw, 2.32rem);
    line-height: 1.05;
  }

  .section-title {
    font-size: clamp(2.15rem, 11vw, 3.1rem);
    line-height: 1;
  }

  .hero__lead,
  .section-copy {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .hero__visual {
    align-items: stretch;
    justify-items: stretch;
  }

  .app-window {
    display: none;
  }

  .hero__orbit-band {
    grid-template-columns: 1fr;
  }

  .proof-card,
  .feature-card,
  .workflow-card,
  .story-card,
  .stats-card,
  .testimonial-card,
  .footer-card {
    padding: 22px;
  }

  .cookies-banner {
    right: 16px;
    bottom: 16px;
    grid-template-columns: 1fr;
    width: calc(100vw - 32px);
    padding: 16px;
    border-radius: 20px;
  }

  .cookies-banner__button {
    width: 100%;
  }

  .testimonial-card__person {
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .hero,
  .proof,
  .stats,
  .testimonials,
  .section,
  .story,
  .footer {
    padding-inline: 12px;
  }

  .hero__panel,
  .section--dark .section__panel,
  .story__panel,
  .stats__panel,
  .testimonials__panel,
  .footer__panel,
  .workflow-band {
    padding: 18px;
    border-radius: 22px;
  }

  .hero__title {
    font-size: clamp(1.9rem, 8.8vw, 2.25rem);
  }

}

@media (max-width: 320px) {
  :root {
    --section-padding-x: 10px;
    --grid-gap: 12px;
    --button-height: 46px;
    --button-padding-x: 12px;
  }

  .site-header {
    padding-inline: 8px;
  }

  .site-header__inner {
    padding: 8px;
    gap: 7px;
  }

  .site-header__identity {
    gap: 6px;
  }

  .brand {
    gap: 6px;
  }

  .brand--header {
    font-size: 1.28rem;
  }

  .language-switcher__button {
    width: 30px;
    height: 30px;
    font-size: 0.84rem;
  }

  .site-header__auth.button {
    min-height: 34px;
    padding-inline: 7px;
    font-size: 0.76rem;
  }

  .site-header__menu-toggle {
    width: 34px;
    height: 34px;
  }

  .hero,
  .proof,
  .stats,
  .testimonials,
  .section,
  .story,
  .footer {
    padding-inline: 10px;
  }

  .hero__panel,
  .section--dark .section__panel,
  .story__panel,
  .stats__panel,
  .testimonials__panel,
  .footer__panel,
  .workflow-band,
  .proof-card,
  .feature-card,
  .workflow-card,
  .story-card,
  .stats-card,
  .testimonial-card,
  .footer-card {
    padding: 14px;
    border-radius: 18px;
  }

  .hero__title {
    font-size: clamp(1.6rem, 10vw, 1.82rem);
    letter-spacing: -0.035em;
  }

  .section-title {
    font-size: clamp(1.75rem, 12vw, 2.15rem);
    letter-spacing: -0.035em;
  }

  .hero__lead,
  .section-copy,
  .feature-card p,
  .workflow-card p,
  .story-card p,
  .stats-card p,
  .testimonial-card__quote,
  .footer__panel p,
  .footer__legal-links a {
    overflow-wrap: anywhere;
  }

  .footer__legal-links {
    display: grid;
    gap: 6px;
  }

  .footer__legal-links a + a::before {
    content: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* reCAPTCHA modal (prod-only) */
.captcha-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 18, 32, 0.72);
}

.captcha-modal.is-visible {
  display: flex;
}

.captcha-modal__content {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: 24px;
  background: var(--gradient-dark-panel);
  color: var(--color-text-inverse);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.captcha-modal__content h3 {
  margin: 0;
  font-size: 1.25rem;
}

.captcha-modal__message {
  margin: 0;
  color: rgba(243, 247, 255, 0.78);
  line-height: 1.6;
}

.captcha-modal__widget {
  display: flex;
  justify-content: center;
}

@media (max-width: 320px) {
  .captcha-modal {
    padding: 10px;
  }

  .captcha-modal__content {
    padding: 16px 10px;
  }

  .captcha-modal__widget {
    transform: scale(0.82);
    transform-origin: top center;
  }
}
