/* Top12 — fintech reference: white page, gray blocks, Inter */
:root {
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --bg-muted: #f5f6f8;
  --text-primary: #111827;
  --text-muted: #6b7280;
  --text-slate: #9ca3af;
  --accent: #2d3fe2;
  --accent-hover: #2535c7;
  --accent-soft: #eef1ff;
  --border: #e5e7eb;
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-pill: 9999px;
  --shadow-soft: 0 16px 40px rgba(17, 24, 39, 0.06);
  --shadow-card: 0 8px 24px rgba(17, 24, 39, 0.05);

  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --page-gutter: 1rem;
  --container-max: 75rem;
  --header-h: 4rem;
  --section-y: 3rem;
  --section-head-gap: 2rem;

  --font-display: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-script: "Caveat", cursive;

  --btn-h: 2.75rem;
  --btn-px: 1.75rem;
  --btn-font: 0.9375rem;

}

@media (min-width: 640px) {
  :root {
    --page-gutter: 1.5rem;
    --section-y: 4rem;
    --section-head-gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --page-gutter: 2.5rem;
    --section-y: 5rem;
    --section-head-gap: 3rem;
  }
}

@media (min-width: 1280px) {
  :root {
    --page-gutter: 3rem;
    --section-y: 5.5rem;
    --container-max: 80rem;
  }
}

@media (min-width: 1536px) {
  :root {
    --container-max: min(88rem, 92vw);
    --page-gutter: clamp(2.5rem, 3.5vw, 4.5rem);
    --section-y: clamp(5.5rem, 4.5vh, 7rem);
    --section-head-gap: 3.5rem;
    --header-h: 4.5rem;
    --btn-h: 3rem;
    --btn-font: 1rem;
  }
}

@media (min-width: 1920px) {
  :root {
    --container-max: min(96rem, 90vw);
    --section-y: clamp(6rem, 5vh, 8rem);
    --radius-md: 28px;
    --radius-lg: 36px;
  }
}

@media (min-width: 2560px) {
  :root {
    --container-max: min(108rem, 88vw);
    --page-gutter: clamp(3rem, 4vw, 6rem);
    --section-y: clamp(7rem, 6vh, 9.5rem);
    --section-head-gap: 4rem;
    --btn-h: 3.125rem;
    --btn-px: 2rem;
  }
}

@media (min-width: 3840px) {
  :root {
    --container-max: min(120rem, 86vw);
    --section-y: clamp(8rem, 7vh, 11rem);
    --header-h: 5rem;
    --btn-h: 3.375rem;
    --btn-font: 1.0625rem;
  }
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  font-size: clamp(16px, 0.2vw + 14px, 18px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  background: var(--bg-page);
  overflow-x: clip;
}

main {
  overflow-x: clip;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

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

.container {
  width: min(100% - 2 * var(--page-gutter), var(--container-max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.script-underline {
  font-family: var(--font-script);
  font-size: 1.08em;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--lg {
  width: 1.375rem;
  height: 1.375rem;
}

/* Buttons — reference: compact pill, flat fill */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--btn-h);
  padding: 0  var(--btn-px);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--btn-font);
  font-weight: 600;
  line-height: 1.2;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--sm {
  --btn-h: 2.5rem;
  --btn-px: 1.25rem;
  --btn-font: 0.875rem;
}

.btn--lg {
  --btn-h: 3rem;
  --btn-px: 2rem;
}

.btn--block {
  width: 100%;
  white-space: normal;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-header__cta-short {
  display: inline;
}

.site-header__cta-long {
  display: none;
}

@media (min-width: 640px) {
  .site-header__cta-short {
    display: none;
  }

  .site-header__cta-long {
    display: inline;
  }
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: var(--text-primary);
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bar::before {
  top: -6px;
}

.nav-toggle__bar::after {
  top: 6px;
}

.site-nav--open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: calc(-1 * var(--page-gutter));
  right: calc(-1 * var(--page-gutter));
  z-index: 110;
  margin-top: 0.5rem;
  padding: var(--space-4) var(--page-gutter);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.site-nav--open a {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.site-nav--open a:last-child {
  border-bottom: none;
}

body.nav-open {
  overflow: hidden;
}

/* Фиксированная CTA «Скачать» внизу экрана (мобилка / планшет) */
.download-bar {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 120;
  padding: 0.625rem var(--page-gutter);
  padding-bottom: max(0.625rem, env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 28px rgba(17, 24, 39, 0.08);
}

.download-bar__inner {
  width: min(100% - 2 * var(--page-gutter), var(--container-max));
  margin-inline: auto;
  padding: 0;
}

.download-bar__cta {
  --btn-h: 3rem;
  width: 100%;
}

@media (max-width: 1023px) {
  .download-bar {
    display: block;
  }

  body {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  }

  .site-header__actions {
    display: none;
  }

  .site-header__inner {
    justify-content: flex-start;
    gap: var(--space-3);
  }

  .nav-toggle {
    margin-left: auto;
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .logo {
    justify-self: start;
  }

  .site-nav {
    display: flex;
    justify-self: center;
  }

  .site-header__actions {
    display: flex;
    justify-self: end;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav--open {
    position: static;
    flex-direction: row;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }
}

/* Hero — референс: H1 на белом, серая плашка с текстом/CTA, телефоны справа на белом */
.hero {
  box-sizing: border-box;
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  padding-block: clamp(1rem, 2.5vh, 1.75rem);
  overflow-x: clip;
  overflow-y: visible;
}

.hero > .container.hero__stack {
  display: flex;
  align-items: center;
  min-height: calc(100dvh - var(--header-h) - clamp(2rem, 4vh, 3.5rem));
}

.hero__grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  align-content: center;
  position: relative;
  width: 100%;
  min-height: 0;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 36rem;
}

.hero__title {
  margin: 0 0 1.75rem;
  font-size: clamp(2.125rem, 2.6vw + 1rem, 3.625rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-wrap: balance;
  max-width: 12em;
}

.hero__brand {
  color: var(--accent);
}

.hero__panel {
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.5rem);
  background: #f4f5f7;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
}

.hero__panel-kicker {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.hero__lead {
  margin: 0.875rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.hero__actions {
  margin-top: 1.75rem;
}

.hero__visual {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0.25rem 0 0.5rem;
  overflow-x: clip;
  overflow-y: visible;
  isolation: isolate;
}

.hero__phones {
  position: relative;
  width: min(100%, 24rem);
  height: min(26rem, 42vh);
  margin-inline: auto;
  isolation: isolate;
}

.hero__phone {
  position: absolute;
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  opacity: 1;
  border-radius: 1.35rem;
  box-shadow: none;
  filter: drop-shadow(0 18px 36px rgba(17, 24, 39, 0.12));
  object-fit: contain;
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero__phone--back {
  left: 0;
  bottom: 4%;
  width: 48%;
  max-height: 90%;
  transform: rotate(10deg) translateZ(0);
  transform-origin: 50% 100%;
  z-index: 1;
}

.hero__phone--front {
  right: 0;
  top: 2%;
  width: 52%;
  max-height: 92%;
  transform: rotate(-7deg) translateZ(0);
  transform-origin: 50% 0%;
  z-index: 3;
}

@media (max-width: 1023px) {
  .hero {
    min-height: auto;
  }

  .hero > .container.hero__stack {
    min-height: auto;
    padding-block: clamp(1.25rem, 3vh, 2.5rem);
  }
}

@media (min-width: 768px) {
  .hero__grid {
    gap: 2.5rem;
  }

  .hero__phones {
    width: min(100%, 26rem);
    height: min(30rem, 44vh);
  }
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 3vw, 3.5rem);
    align-items: center;
  }

  .hero__copy {
    max-width: 34rem;
  }

  .hero__title {
    font-size: 3.625rem;
    margin-bottom: 2rem;
    max-width: 11em;
  }

  .hero__visual {
    padding: 0.25rem 0.5rem 0.5rem;
  }

  .hero__phones {
    width: min(100%, 30rem);
    height: min(34rem, 46vh);
    margin-inline: auto;
  }

  .hero__phone--back {
    left: 2%;
    bottom: 5%;
    width: 46%;
    max-height: 88%;
  }

  .hero__phone--front {
    right: 2%;
    top: 3%;
    width: 50%;
    max-height: 90%;
  }

}

@media (min-width: 1280px) {
  .hero__phones {
    width: min(100%, 32rem);
    height: min(36rem, 48vh);
  }
}

/* Partners — отдельная секция под hero (как Supported banks в референсе) */
.partners {
  padding: clamp(2.5rem, 5vh, 4rem) 0 clamp(4rem, 8vh, 6rem);
}

.partners__inner {
  text-align: center;
}

.partners__head {
  margin-bottom: clamp(2rem, 4vh, 2.75rem);
}

.partners__lead {
  max-width: 34rem;
  margin-inline: auto;
}

.partners__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem) clamp(1.75rem, 4vw, 3.5rem);
}

.partners__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
}

.partners__logo {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  flex-shrink: 0;
}

.partners__logo--svg {
  opacity: 0.85;
}

/* App banner */
.app-banner {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.app-banner__card {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
}

.app-banner__title {
  margin: 0;
  font-size: clamp(1.25rem, 1.8vw + 0.65rem, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  max-width: none;
  line-height: 1.2;
}

.app-banner__text {
  margin: var(--space-4) 0 var(--space-6);
  max-width: 26rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.store-badge {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 1.25rem;
  min-width: 9rem;
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: #fff;
  line-height: 1.2;
}

.store-badge:hover {
  color: #fff;
  opacity: 0.92;
}

.store-badge--muted {
  background: #cbd5e1;
  color: var(--text-primary);
  cursor: default;
}

.store-badge__small {
  font-size: 0.6875rem;
  opacity: 0.85;
}

.store-badge__big {
  font-size: 0.9375rem;
  font-weight: 700;
}

.app-banner__media {
  display: flex;
  justify-content: center;
}

.app-banner__media img {
  border-radius: 1.75rem;
  box-shadow: none;
  filter: drop-shadow(0 16px 40px rgba(17, 24, 39, 0.1));
}

@media (min-width: 768px) {
  .app-banner__card {
    grid-template-columns: 1fr auto;
    padding-inline: var(--space-12);
  }

  .app-banner__title {
    white-space: nowrap;
  }
}

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

.section__head {
  text-align: center;
  margin-bottom: var(--section-head-gap);
}

.section-title {
  margin: 0;
  font-size: clamp(1.625rem, 3.2vw + 0.5rem, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
  text-wrap: balance;
}

.section-title--left {
  text-align: left;
}

.section-lead {
  margin: var(--space-3) auto 0;
  max-width: 34rem;
  font-size: 1rem;
}

.section-lead--left {
  margin-left: 0;
  text-align: left;
}

/* Service grid — gray cards like reference */
.service-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .service-grid {
    gap: var(--space-5);
  }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 15rem;
  padding: var(--space-6);
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: visible;
}

@media (min-width: 768px) {
  .service-card {
    min-height: 17.5rem;
    padding: 2.5rem;
    gap: var(--space-4);
  }
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: var(--shadow-card);
}

.service-card__title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 12rem;
}

.service-card__text {
  margin: 0;
  flex: 1;
  max-width: 16rem;
  font-size: 0.9375rem;
}

.service-card__float {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  width: min(32%, 6.5rem);
  max-height: calc(100% - 2 * var(--space-4));
  object-fit: contain;
  object-position: bottom right;
  border-radius: 0.875rem;
  box-shadow: none;
  filter: drop-shadow(0 10px 22px rgba(17, 24, 39, 0.14));
  pointer-events: none;
}

@media (min-width: 768px) {
  .service-card__float {
    width: 8rem;
    right: var(--space-5);
    bottom: var(--space-5);
    max-height: calc(100% - 2 * var(--space-5));
  }
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }
}

/* Effortless split */
.effortless {
  padding: var(--section-y) 0;
  background: var(--bg-page);
}

.effortless__grid {
  display: grid;
  gap: var(--space-10);
  align-items: start;
}

.effortless__intro .btn {
  margin-top: var(--space-6);
}

.effortless__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.effortless__step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  width: 100%;
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.effortless__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
}

.effortless__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.effortless__body strong {
  color: var(--text-primary);
  font-size: 1.0625rem;
}

.effortless__body span {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.effortless__step.is-active {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .effortless__step {
    padding: var(--space-5) var(--space-6);
    gap: var(--space-5);
  }
}

@media (min-width: 1024px) {
  .effortless__grid {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    gap: var(--space-12);
  }
}

/* Audience — compact white cards */
.audience-grid {
  display: grid;
  gap: var(--space-5);
  align-items: stretch;
}

.audience-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .audience-card {
    padding: var(--space-8);
  }
}

.audience-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.audience-card__benefits {
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.audience-card__benefits li {
  position: relative;
  padding-left: 1.35rem;
}

.audience-card__benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
}

@media (min-width: 900px) {
  .audience-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Testimonials masonry */
.testimonial-masonry {
  display: grid;
  gap: var(--space-5);
}

.testimonial-card {
  margin: 0;
  padding: var(--space-6);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 100%;
}

.testimonial-card__stars {
  color: #fbbf24;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

.testimonial-card p {
  margin: 0;
  flex: 1;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.testimonial-card__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #c7d2fe, #6366f1);
  flex-shrink: 0;
}

.testimonial-card__avatar--2 {
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
}

.testimonial-card__avatar--3 {
  background: linear-gradient(135deg, #fde68a, #f97316);
}

.testimonial-card__avatar--4 {
  background: linear-gradient(135deg, #fbcfe8, #a855f7);
}

@media (min-width: 640px) {
  .testimonial-masonry {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }
}

@media (min-width: 1100px) {
  .testimonial-masonry {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonial-card--offset {
    transform: translateY(1.25rem);
  }
}

/* News */
.news-grid {
  display: grid;
  gap: var(--space-6);
}

.news-card {
  padding: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.news-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-5);
}

.news-card__tag {
  margin: 0 0 var(--space-2);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

.news-card__title {
  margin: 0 0 var(--space-3);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.news-card__excerpt {
  margin: 0;
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--space-6);
  }

  .news-card__excerpt {
    flex: 1;
  }
}

/* FAQ — аккордеон на всю ширину .container (не переопределять width у .container!) */
.faq {
  width: 100%;
  max-width: 100%;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 2.5rem 1.35rem 0;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  color: var(--text-slate);
}

.faq details[open] summary::after {
  content: "−";
}

.faq__answer {
  padding: 0 0 1.35rem;
  font-size: 0.9375rem;
}

/* Footer */
.site-footer {
  padding: 0 0 var(--space-10);
}

.site-footer__shell {
  padding: var(--space-10);
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}

.site-footer__tagline {
  margin: var(--space-3) 0 0;
  max-width: 16rem;
  font-size: 0.9375rem;
}

.site-footer__col h4 {
  margin: 0 0 var(--space-3);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-slate);
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 0.9375rem;
}

.site-footer__col a {
  color: var(--text-muted);
}

.site-footer__compact {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.875rem;
  line-height: 1.4;
}

.site-footer__compact a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.site-footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-slate);
}

.site-footer__bottom p {
  margin: 0;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-footer__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 2fr);
    gap: var(--space-8) var(--space-10);
    align-items: start;
  }

  .site-footer__brand-block {
    margin: 0;
  }

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

  .site-footer__bottom {
    grid-column: 1 / -1;
  }
}

/* Horizontal scroll carousels */
@media (max-width: 899px) {
  .audience-grid.h-scroll,
  .news-grid.h-scroll {
    --h-scroll-gap: 0.875rem;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: var(--h-scroll-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--page-gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--page-gutter));
    padding-inline: var(--page-gutter);
    grid-template-columns: unset;
  }

  .audience-grid.h-scroll > .audience-card {
    flex: 0 0 min(88vw, 20rem);
    scroll-snap-align: start;
    min-width: 0;
  }

  .news-grid.h-scroll > .news-card {
    flex: 0 0 min(84vw, 19rem);
    scroll-snap-align: start;
    min-width: 0;
  }

  .audience-grid.h-scroll::-webkit-scrollbar,
  .news-grid.h-scroll::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 639px) {
  .testimonial-masonry.h-scroll {
    --h-scroll-gap: 0.875rem;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: var(--h-scroll-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--page-gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--page-gutter));
    padding-inline: var(--page-gutter);
    grid-template-columns: unset;
  }

  .testimonial-masonry.h-scroll > .testimonial-card {
    flex: 0 0 min(82vw, 18.75rem);
    scroll-snap-align: start;
    min-width: 0;
  }

  .testimonial-masonry.h-scroll::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 767px) {
  .service-grid.h-scroll,
  .partners__list.h-scroll {
    --h-scroll-gap: 0.875rem;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: var(--h-scroll-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--page-gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--page-gutter));
    padding-inline: var(--page-gutter);
  }

  .service-grid.h-scroll {
    grid-template-columns: unset;
  }

  .service-grid.h-scroll > .service-card {
    flex: 0 0 min(86vw, 20rem);
    scroll-snap-align: start;
    min-width: 0;
  }

  .partners__list.h-scroll {
    justify-content: flex-start;
  }

  .partners__list.h-scroll > .partners__item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
    padding: 0.625rem 0.875rem;
    background: var(--bg-muted);
    border-radius: var(--radius-pill);
  }

  .service-grid.h-scroll::-webkit-scrollbar,
  .partners__list.h-scroll::-webkit-scrollbar {
    display: none;
  }
}

@media (min-width: 768px) {
  .partners__list.h-scroll {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    scroll-snap-type: none;
  }

  .partners__list.h-scroll > .partners__item {
    background: transparent;
    border-radius: 0;
    padding: 0;
  }
}

/* Mobile — компактные отступы, карусели, читаемый текст */
@media (max-width: 767px) {
  :root {
    --section-y: 2.5rem;
    --section-head-gap: 1.5rem;
    --header-h: 3.5rem;
    --page-gutter: 1rem;
  }

  body {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }

  .hero {
    min-height: auto;
    padding-block: 1rem 1.75rem;
  }

  .hero > .container.hero__stack {
    min-height: auto;
    align-items: stretch;
  }

  .hero__grid {
    gap: 1.25rem;
  }

  .hero__copy {
    max-width: none;
  }

  .hero__title {
    margin-bottom: 1.125rem;
    font-size: clamp(1.6875rem, 7.2vw, 2.125rem);
    max-width: none;
  }

  .hero__panel {
    padding: 1.25rem;
  }

  .hero__panel-kicker {
    font-size: 1rem;
  }

  .hero__lead {
    font-size: 0.875rem;
  }

  .hero__actions {
    margin-top: 1.25rem;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__visual {
    padding-inline: 0;
  }

  .hero__phones {
    width: min(100%, 16.5rem);
    height: 13.25rem;
    transform: scale(0.96);
    transform-origin: center center;
  }

  .hero__phone--back {
    left: 6%;
    bottom: 0;
    width: 42%;
    transform: rotate(7deg) translateZ(0);
  }

  .hero__phone--front {
    right: 6%;
    top: 0;
    width: 46%;
    max-height: 86%;
    transform: rotate(-5deg) translateZ(0);
  }

  .section__head {
    text-align: left;
    margin-bottom: 1.25rem;
  }

  .section-title {
    text-align: left;
  }

  .section-lead,
  .partners__lead {
    margin-inline: 0;
    text-align: left;
  }

  .partners {
    padding-block: 2rem 2.5rem;
  }

  .partners__head {
    margin-bottom: 1.25rem;
    text-align: left;
  }

  .partners__inner {
    text-align: left;
  }

  .app-banner {
    padding-block: var(--section-y);
  }

  .app-banner__card {
    padding: 1.25rem;
    gap: 1.5rem;
  }

  .app-banner__title {
    font-size: 1.3125rem;
    line-height: 1.25;
    white-space: normal;
  }

  .app-banner__text {
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
  }

  .store-badges {
    flex-direction: column;
  }

  .store-badge {
    width: 100%;
    min-width: 0;
  }

  .app-banner__media img {
    max-width: 10.5rem;
    margin-inline: auto;
  }

  .service-card {
    min-height: 100%;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
  }

  .service-card__title {
    font-size: 1.125rem;
    max-width: none;
  }

  .service-card__text {
    max-width: none;
    font-size: 0.9375rem;
  }

  .service-card__float {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    max-width: 7.5rem;
    max-height: none;
    margin: auto auto 0;
    padding-top: 1rem;
  }

  .effortless__grid {
    gap: 1.25rem;
  }

  .effortless__intro {
    padding-inline: 0;
  }

  .effortless__intro .section-title,
  .effortless__intro .section-lead {
    text-align: left;
  }

  .effortless__intro .btn {
    width: 100%;
  }

  .effortless__list {
    margin-top: 0.25rem;
  }

  .effortless__step {
    padding: 0.875rem 1rem;
    gap: 0.75rem;
  }

  .effortless__num {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.75rem;
  }

  .effortless__body strong {
    font-size: 1rem;
  }

  .effortless__body span {
    font-size: 0.875rem;
  }

  .audience-card {
    padding: 1.25rem;
    height: auto;
  }

  .testimonial-card {
    padding: 1.25rem;
  }

  .testimonial-card--offset {
    transform: none;
  }

  .news-card {
    padding: 1rem;
  }

  .news-card__title {
    font-size: 1.0625rem;
  }

  .faq summary {
    padding: 1rem 2.25rem 1rem 0;
    font-size: 0.9375rem;
    line-height: 1.35;
  }

  .faq__answer {
    font-size: 0.875rem;
  }

  .site-footer {
    padding-bottom: 0.25rem;
  }

  .site-footer__shell {
    padding: 1rem 0 0;
    background: transparent;
    border-radius: 0;
    border-top: 1px solid var(--border);
  }

  .site-footer__brand-block {
    margin: 0;
  }

  .logo.logo--footer {
    font-size: 1rem;
  }

  .site-footer__tagline {
    display: none;
  }

  .site-footer__compact {
    display: flex;
    margin-top: 0.625rem;
  }

  .site-footer__grid {
    display: none;
  }

  .site-footer__bottom {
    margin-top: 0.625rem;
    padding-top: 0;
    border-top: none;
    font-size: 0.6875rem;
    color: var(--text-slate);
  }
}

/* Wide desktop, QHD & 4K — scale type and blocks with viewport */
@media (min-width: 1536px) {
  .section-title {
    font-size: clamp(2rem, 1.4vw + 1rem, 3rem);
  }

  .service-card {
    min-height: 20rem;
  }

  .service-card__title {
    font-size: 1.5rem;
    max-width: 14rem;
  }

  .service-card__text {
    max-width: 20rem;
    font-size: 1rem;
  }

  .service-card__float {
    width: 9.5rem;
    right: var(--space-6);
    bottom: var(--space-6);
    max-height: calc(100% - 2 * var(--space-6));
  }

  .app-banner__card {
    padding: 3rem 3.5rem;
  }

}

@media (min-width: 1920px) {
  .effortless__grid {
    grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
    gap: var(--space-16);
  }

  .site-footer__shell {
    padding: var(--space-12) var(--space-10);
  }

  .site-footer__tagline {
    max-width: 22rem;
  }
}

@media (min-width: 2560px) {
  .service-card {
    min-height: 22rem;
    padding: 3rem;
  }

  .service-card__float {
    width: 10.5rem;
    right: var(--space-8);
    bottom: var(--space-8);
    max-height: calc(100% - 2 * var(--space-8));
  }

  .effortless__grid {
    grid-template-columns: minmax(0, 30rem) minmax(0, 1fr);
  }

  .testimonial-masonry {
    gap: var(--space-6);
  }

  .news-grid {
    gap: var(--space-8);
  }

  .news-card__title {
    font-size: 1.375rem;
  }
}

@media (min-width: 3840px) {
  .partners__list {
    gap: var(--space-8) var(--space-16);
    font-size: 1.0625rem;
  }

  .audience-card h3 {
    font-size: 1.375rem;
  }

  .effortless__step {
    padding: var(--space-6) var(--space-8);
  }

  .effortless__num {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 0.9375rem;
  }
}
