/* =============================================================================
   slyd — landing (plain HTML/CSS), зверстано по Dev Handoff
   ============================================================================= */

/* ---- Fonts: DM Sans (variable). NB: DM Sans has NO Cyrillic glyphs —
   Ukrainian text falls back to the system sans defined in --font-sans. ------- */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2-variations");
  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: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("../fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  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;
}

/* ---- Design tokens -------------------------------------------------------- */
:root {
  --blue-50: #eef4fe;
  --blue-100: #e1ebfd;
  --blue-150: #d3e2fb;
  --blue-200: #b9cff7;
  --blue-500: #2563eb;
  --blue-600: #1a56db;
  --blue-700: #1545bb;
  --blue-800: #123a9e;

  --grad-primary: linear-gradient(90deg, #2057e0 0%, #1543bb 100%);
  --grad-band: linear-gradient(160deg, #2e62d1 0%, #1848c0 55%, #1040b0 100%);

  --ink: #101828;
  --ink-muted: #4b5563;
  --ink-soft: #6b7280;
  --surface: #ffffff;
  --surface-grey: #f7f8f8;
  --tint-compare: #e9effc;
  --tint-faq: #eff4fb;
  --tint-footer: #e8f0ff;
  --border: #e4e7ec;
  --success: #0e9f6e;
  --error: #e02424;

  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --container-max: 1240px;
  --gutter: 16px;
}

/* ---- Reset ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
/* <picture> прозора для layout — <img> всередині поводиться як прямий нащадок */
picture {
  display: contents;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
  padding: 0;
}
button {
  font: inherit;
  cursor: pointer;
}
input,
textarea,
select {
  font: inherit;
}

/* ---- Layout helpers ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: 56px;
}
.section__title {
  font-size: 1.95rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.section__title--center {
  text-align: center;
}
.section__subtitle {
  margin-top: 16px;
  text-align: center;
  color: var(--ink-soft);
}

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 28px;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 1.0625rem;
  font-weight: 500;
  text-align: center;
  transition: filter 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn--primary {
  background: var(--grad-primary);
  color: #fff;
}
.btn--primary:hover {
  filter: brightness(1.08);
}
.btn--soft {
  background: var(--blue-100);
  color: var(--blue-600);
}
.btn--soft:hover {
  background: var(--blue-150);
}
.btn--white {
  background: #fff;
  color: var(--blue-600);
}
.btn--white:hover {
  background: var(--blue-50);
}
.btn--band {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.btn--band:hover {
  background: rgba(255, 255, 255, 0.26);
}
.btn:disabled {
  background: #ececec;
  color: #b3b7bd;
  cursor: not-allowed;
  filter: none;
}

/* ---- Header --------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.logo img {
  display: block;
  height: 36px;
  width: auto;
}
.nav {
  display: none;
  align-items: center;
  gap: 40px;
  margin-left: auto;
  font-size: 0.9375rem;
}
.nav a {
  transition: color 0.15s ease;
}
.nav a:hover {
  color: var(--blue-600);
}
.header__cta {
  display: none;
  min-height: 46px;
  padding-inline: 22px;
  font-size: 1rem;
}
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  color: var(--ink);
}

/* Mobile menu — full-screen overlay (Dev Handoff p.6) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  flex-direction: column;
  padding: 24px var(--gutter) 40px;
  background: #fff;
}
.mobile-menu.is-open {
  display: flex;
}
.mobile-menu__close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--ink);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}
.mobile-menu nav a {
  padding-block: 18px;
  font-size: 1.0625rem;
}
.mobile-menu .btn {
  margin-top: 16px;
  width: 100%;
}

/* ---- Hero ----------------------------------------------------------------- */
.hero {
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: 40px;
  padding-block: 40px 24px;
}
.hero__grid > * {
  min-width: 0;
}
/* Одноколонковий герой (телефон/планшет) — текст по центру;
   на десктопі (≥1200px) перемикається вліво — див. media query. */
.hero__grid > div:first-child {
  text-align: center;
}
.hero__title {
  margin-inline: auto;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 40rem;
}
.hero__title .accent {
  color: var(--blue-500);
}
.hero__subtitle {
  margin-top: 20px;
  margin-inline: auto;
  max-width: 34rem;
  font-size: 1.0625rem;
  color: var(--ink-muted);
}
.hero__actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.hero__reassurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}
.hero__reassurance li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__reassurance svg {
  color: var(--blue-500);
}
.hero__media {
  margin-bottom: 100px;
  position: relative;
}
.hero__phone {
  position: relative;
  z-index: 1;
  display: block;
  margin-inline: auto;
  width: 100%;
  max-width: 280px;
  height: auto;
  /* drop-shadow (а не box-shadow): тінь по контуру PNG з прозорістю */
  filter: drop-shadow(0 24px 40px rgba(16, 24, 40, 0.22));
}
/* За замовчуванням (телефон/планшет) — відбиток по центру за телефоном,
   помітно ширший за нього; симетрично виходить за краї (обрізається overflow
   на .hero). На десктопі (≥1200px) визирає праворуч — див. нижче. */
.hero__fingerprint {
  position: absolute;
  z-index: 0;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  max-width: 620px;
  height: auto;
}

/* Channel proof + feature pills */
.channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 56px;
  padding-block: 24px;
}
.channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channels__icon {
  height: 48px;
  width: 48px;
  object-fit: contain;
}

.channel-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.channel-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.channel-count {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.2;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding-block: 24px 48px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 22px 7px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 500;
}
.pill img {
  width: 34px;
  height: 34px;
}

/* ---- Problem / Solution (compare) ----------------------------------------- */
.compare {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}
.compare__card {
  padding: 28px;
  border-radius: var(--radius-lg);
}
.compare__card--before {
  background: var(--surface-grey);
}
.compare__card--after {
  background: var(--tint-compare);
}
.compare__card h3 {
  font-size: 1.1875rem;
  font-weight: 500;
}
.compare__card h3 .accent {
  color: var(--blue-500);
}
.compare__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
  font-size: 0.9375rem;
}
.compare__list li {
  display: flex;
  gap: 12px;
}
.compare__list svg {
  flex: 0 0 auto;
  margin-top: 2px;
}
.icon-bad {
  color: var(--error);
}
.icon-good {
  color: var(--blue-500);
}

/* ---- How it works ---------------------------------------------------------- */
/* «Як це працює» — за замовчуванням вертикальний таймлайн (телефон/планшет),
   на десктопі (≥1200px) перемикається на 3 колонки — див. media query нижче. */
.steps {
  display: grid;
  gap: 64px;
  margin-top: 48px;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 32px;
  align-items: start;
  text-align: left;
}
.step__num {
  position: relative;
  z-index: 1;
  grid-row: 1 / span 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 0 0 10px var(--blue-100);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 500;
}
.step__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 7px 16px;
  border-radius: 50px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 0.875rem;
}
.step h3 {
  margin-top: 16px;
  font-size: 1.5rem;
  font-weight: 500;
}
.step p {
  margin-top: 12px;
  max-width: 38rem;
  font-size: 1.0625rem;
  color: var(--ink-muted);
}
/* лінія від кола до кола наступного кроку */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 56px;
  height: calc(100% - 56px + 64px);
  width: 2px;
  background: var(--blue-500);
}
.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ---- Unique features (blue band) ------------------------------------------ */
.band {
  position: relative;
  overflow: hidden;
  background: var(--grad-band);
  color: #fff;
  padding-block: 64px;
}
.band__wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  pointer-events: none;
}
.band .container {
  position: relative;
  z-index: 1;
}
.band .section__title {
  text-align: center;
  max-width: 32rem;
  margin-inline: auto;
}
.unique__list {
  margin-top: 48px;
}
.unique__item {
  display: grid;
  gap: 16px;
  padding-block: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.unique__item:first-child {
  border-top: 0;
}
.unique__head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.unique__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}
.unique__item h3 {
  font-size: 1.0625rem;
  font-weight: 600;
}
.unique__item p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ---- Core features --------------------------------------------------------- */
.core {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.core > * {
  min-width: 0;
}
.core__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.core__card {
  padding: 20px 24px;
  background: var(--surface);
  border-radius: var(--radius-md);
  background-color: rgba(101, 157, 234, 0.12);
}
.core__card h3 {
  font-size: 1.1875rem;
  font-weight: 500;
}
.core__card p {
  margin-top: 8px;
  font-size: 1.0625rem;
  color: var(--ink-muted);
}
.core__media {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.report-card-1 {
  background: #e8f0ff;
  border-radius: 20px;
  overflow: hidden;
}
.report-card-1 img {
  width: 100%;
  display: block;
  border-radius: 14px;
}
.report-card {
  background: #f2f1ff;
  border-radius: 20px;
  overflow: hidden;
}
.report-card img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

/* ---- Audience -------------------------------------------------------------- */
.cards {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}
.card {
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08), 0 1px 3px rgba(16, 24, 40, 0.05);
}
.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-inline: auto;
  border-radius: var(--radius-md);
}
.card__icon--blue {
  background: var(--blue-50);
  color: var(--blue-600);
}
.card__icon--green {
  background: #e7f6ef;
  color: #0e9f6e;
}
.card__icon--violet {
  background: #f1ecfd;
  color: #7c5cdb;
}
.card h3 {
  margin-top: 20px;
  font-size: 1.0625rem;
  font-weight: 500;
}
.card p {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* ---- Testimonials ----------------------------------------------------------- */
.section--tint {
  background: var(--tint-compare);
}
.testimonials {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}
.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  background: #f5f8fd;
  border-radius: var(--radius-lg);
}
.testimonial--featured {
  background: var(--surface);
  border: 1px solid var(--blue-500);
}
.testimonial blockquote {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 20px;
}
.testimonial__avatar {
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--blue-150);
}
.testimonial__name {
  font-weight: 500;
  font-size: 1.125rem;
}
.testimonial__role {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.2;
  display: inline-block;
}

/* ---- Pricing ---------------------------------------------------------------- */
.pricing {
  display: grid;
  gap: 28px;
  margin-top: 48px;
  max-width: 70rem;
  margin-inline: auto;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.1), 0 2px 6px rgba(16, 24, 40, 0.05);
}
.plan__name {
  font-size: 1.5rem;
  font-weight: 600;
}
.plan__desc {
  margin-top: 6px;
  font-size: 1rem;
  color: var(--ink-soft);
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 24px;
}
.plan__price b {
  font-size: 3rem;
  font-weight: 600;
  color: var(--blue-600);
}
.plan__price span {
  font-size: 1rem;
  color: var(--ink-soft);
}
.plan__features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  flex: 1;
  font-size: 1.0625rem;
}
.plan__features li {
  display: flex;
  gap: 10px;
}
.plan__features svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--blue-500);
}
.plan__features li.is-off {
  color: #b3b7bd;
}
.plan__features li.is-off svg {
  color: #c8cbd0;
}
.plan .btn {
  margin-top: 32px;
}

/* ---- FAQ --------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 32px;
  margin-top: 0;
}
.faq__title {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.25;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq__item {
  background: var(--tint-faq);
  border-radius: var(--radius-lg);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  font-weight: 350;
  font-size: 1.1rem;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary svg {
  flex: 0 0 auto;
  color: var(--ink);
  transition: transform 0.2s ease;
}
.faq__item[open] summary svg {
  transform: rotate(180deg);
}
.faq__item p {
  padding: 0 32px 26px;
  font-size: 1.0625rem;
  color: var(--ink-muted);
}

/* ---- Final CTA band ----------------------------------------------------------- */
.cta-band {
  padding-block: 100px;
}
.cta-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 24px;
  border-radius: var(--radius-xl);
  background: #1D5CE5;
  width: fit-content;
  margin: 0 auto;
}
.cta-card h2 {
  max-width: 30rem;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
}
.cta-card > p {
  margin-top: 16px;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.85);
}
.cta-card__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: 32px;
  width: 100%;
  max-width: 30rem;
}
.cta-card__notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 24px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
}
/* Mobile: пункти списку в стовпчик, футер по центру (Dev Handoff p.21) */
@media (max-width: 743.98px) {
  /* На телефоні зменшуємо телефон і відбиток у hero */
  .hero__phone {
    max-width: 180px;
  }
  .hero__fingerprint {
    width: 115%;
    max-width: 420px;
  }
  /* На малих екранах пункти під кнопкою — у стовпчик по центру */
  .hero__reassurance {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .cta-card__notes {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .footer__brand {
    text-align: center;
  }
  .footer__brand .logo img {
    margin-inline: auto;
  }
  .footer__tagline {
    margin-inline: auto;
  }
  .footer__nav {
    justify-content: center;
    text-align: center;
  }
}
.cta-card__notes li {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- Footer --------------------------------------------------------------------- */
.footer {
  background: var(--tint-footer);
  padding-block: 48px 32px;
}
.footer__top {
  display: grid;
  gap: 32px;
}
.footer__brand .logo img {
  height: 40px;
}
.footer__tagline {
  margin-top: 12px;
  max-width: 16rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.9375rem;
  align-content: start;
}
.footer__nav a:hover {
  color: var(--blue-600);
}
.footer__bottom {
  margin-top: 40px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* ---- Breadcrumbs ------------------------------------------------------------------ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 20px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.breadcrumbs a {
  display: inline-flex;
  color: var(--ink-soft);
}
.breadcrumbs a:hover {
  color: var(--blue-600);
}

/* ---- Contact page ------------------------------------------------------------------ */
.contact__title {
  margin-top: 32px;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.contact-form {
  display: grid;
  gap: 20px;
  margin-block: 48px 64px;
}
.contact-form__fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form__message {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 10px 44px 10px 16px;
  transition: border-color 0.15s ease;
}
.field:focus-within {
  border-color: var(--blue-500);
}
.field.is-error {
  border-color: var(--error);
}
.field.is-success {
  border-color: var(--success);
}
.field__label {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  border: 0;
  outline: none;
  padding: 2px 0 0;
  background: transparent;
  color: var(--ink);
}
.field textarea {
  resize: none;
  min-height: 140px;
}
.field__error {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 0.8125rem;
  color: var(--error);
  display: none;
}
.field.is-error .field__error {
  display: block;
}
.field__counter {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 0.8125rem;
  color: var(--blue-500);
  display: none;
}
.field:focus-within .field__counter {
  display: block;
}
.field.is-error .field__counter {
  display: none;
}
.field__clear {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #98a2b3;
}
.field__clear:hover {
  color: var(--ink);
}
.field.has-value .field__clear {
  display: inline-flex;
}
.field--textarea .field__clear {
  top: 22px;
  transform: none;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  cursor: pointer;
  user-select: none;
}
.checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.checkbox__box {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid #c8cbd0;
  border-radius: 6px;
  background: #fff;
  color: transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.checkbox input:checked + .checkbox__box {
  border-color: var(--blue-500);
  color: var(--blue-500);
}
.checkbox input:focus-visible + .checkbox__box {
  outline: 2px solid var(--blue-200);
  outline-offset: 1px;
}

/* ---- Cookie banner ------------------------------------------------------------------ */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 80;
  display: none;
  background: rgba(247, 248, 248, 0.97);
  box-shadow: 0 -6px 24px rgba(16, 24, 40, 0.08);
  padding: 16px var(--gutter) 20px;
}
.cookie-banner.is-visible {
  display: block;
}
.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: var(--container-max);
  margin-inline: auto;
}
.cookie-banner__text {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.cookie-banner__text a {
  text-decoration: underline;
  color: inherit;
}
.cookie-banner__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.cookie-banner__controls .btn {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 0.9375rem;
  flex: 1 1 auto;
}

.lang-switch {
  position: relative;
  margin-right: auto;
}
.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--blue-600);
  font-size: 0.9375rem;
  padding: 8px 4px;
}
.lang-switch__menu {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  display: none;
  flex-direction: column;
  min-width: 140px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0.16);
  overflow: hidden;
}
.lang-switch.is-open .lang-switch__menu {
  display: flex;
}
.lang-switch__menu button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 16px;
  font-size: 0.9375rem;
}
.lang-switch__menu button:hover {
  background: var(--blue-50);
}

/* ---- Cookie settings modal ----------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(16, 24, 40, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.modal.is-open {
  display: flex;
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #667085;
}
.modal__close:hover {
  color: var(--ink);
}
.modal__title {
  font-size: 1.5rem;
  font-weight: 600;
  padding-right: 40px;
}
.modal__intro {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}
.modal__intro a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 24px;
}
.cookie-option {
  display: flex;
  gap: 14px;
}
.cookie-option__body b {
  display: block;
  font-size: 0.9875rem;
}
.cookie-option__body p {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}
.modal__lang {
  margin-top: 28px;
}
.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.modal__actions .btn {
  min-height: 48px;
  font-size: 1rem;
}

/* ---- Legal pages ----------------------------------------------------------------------- */
.legal__title {
  margin-top: 24px;
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.25;
  max-width: 44rem;
}
.legal__meta {
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.legal__meta b {
  color: var(--ink);
  font-weight: 600;
}
.legal {
  display: grid;
  gap: 40px;
  margin-block: 40px 80px;
}
.legal__toc {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.legal__toc a:hover,
.legal__toc a.is-active {
  color: var(--blue-600);
}
.legal__body {
  max-width: 50rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}
.legal__body h2 {
  margin-top: 40px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}
.legal__body h2:first-child {
  margin-top: 0;
}
.legal__body p {
  margin-top: 14px;
}
.legal__body ul {
  margin-top: 12px;
  padding-left: 22px;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal__body a {
  color: var(--blue-600);
  text-decoration: underline;
}

/* =============================================================================
   Tablet  (>= 744px)
   ============================================================================= */
@media (min-width: 744px) {
  .container {
    padding-inline: 32px;
  }
  .section {
    padding-block: 80px;
  }
  .section__title {
    font-size: 2.2rem;
  }
  .header__inner {
    height: 80px;
  }
  .hero__title {
    font-size: 2.5rem;
  }
  .compare {
    grid-template-columns: 1fr 1fr;
  }
  .unique__item {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 40px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .pricing {
    grid-template-columns: 1fr 1fr;
  }
  .cta-card {
    padding: 64px 48px;
  }
  .cta-card h2 {
    font-size: 2rem;
  }
  .cta-card__actions {
    flex-direction: row;
    justify-content: center;
    width: auto;
    max-width: none;
  }
  .footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }
  .footer__nav {
    justify-content: flex-end;
    text-align: right;
  }
  .contact-form {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 24px;
  }
  .contact-form__message .btn {
    width: 100%;
  }
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
  .cookie-banner__text {
    flex: 1;
  }
  .cookie-banner__controls {
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }
  .cookie-banner__controls .btn {
    flex: 0 0 auto;
  }
  .modal__dialog {
    padding: 40px;
  }
  .modal__actions {
    flex-direction: row;
    justify-content: flex-start;
  }
  .modal__actions .btn--primary {
    margin-left: auto;
  }
  .legal {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .legal__toc {
    position: sticky;
    top: 104px;
  }
}

/* =============================================================================
   Desktop  (>= 1200px)
   ============================================================================= */
@media (min-width: 1200px) {
  :root {
    --gutter: 40px;
  }
  .nav {
    display: flex;
  }
  .header__cta {
    display: inline-flex;
    margin-left: 8px;
  }
  .menu-toggle {
    display: none;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 24px;
    padding-block: 48px 0;
  }
  /* на десктопі текст героя вирівнюється вліво (2 колонки) */
  .hero__grid > div:first-child {
    text-align: left;
  }
  .hero__title {
    margin-inline: 0;
    font-size: 2.875rem;
    margin-top: -100px;
  }
  .hero__subtitle {
    margin-inline: 0;
  }
  .hero__actions {
    justify-content: flex-start;
  }
  .hero__reassurance {
    justify-content: flex-start;
  }
  /* на десктопі відбиток визирає з-за телефона праворуч (Dev Handoff p.13) */
  .hero__fingerprint {
    top: 12%;
    left: auto;
    right: -14%;
    transform: none;
    width: 75%;
    max-width: 520px;
  }
  .steps {
    position: relative;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  /* line connecting the step circles */
  .steps::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: var(--blue-200);
  }
  /* на десктопі — назад у центровану колонку, вертикальну лінію прибираємо */
  .step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .step:not(:last-child)::after {
    display: none;
  }
  .step__badge {
    margin-top: 32px;
  }
  .step h3 {
    margin-top: 18px;
    font-size: 1.3125rem;
  }
  .step p {
    margin-top: 12px;
    max-width: 22rem;
    font-size: 0.9375rem;
  }
  .core {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
  /* картки розподіляються на всю висоту колонки з картинками */
  .core__list {
    height: 100%;
    justify-content: space-between;
  }
  /* картинки лишаються прибитими догори, не розтягуються */
  .core__media {
    align-self: start;
  }
  .faq {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 64px;
  }
  .faq__title {
    max-width: 18rem;
  }
  .faq__title {
    font-size: 3rem;
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .testimonials {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cta-card h2 {
    font-size: 2.25rem;
  }
}

/* ---- Tablet only (Dev Handoff p.19: hero centered, fingerprint behind phone) */
@media (min-width: 744px) and (max-width: 1199.98px) {
  .hero__title {
    font-size: 2.75rem;
  }
  .hero__subtitle {
    max-width: 44rem;
  }
  .hero__phone {
    max-width: 300px;
  }
  .hero__fingerprint {
    top: 6%;
    width: 84%;
    max-width: 660px;
  }

  .steps {
    gap: 72px;
  }
  .step {
    column-gap: 56px;
  }
  .step:not(:last-child)::after {
    height: calc(100% - 56px + 72px);
  }
}

/* Tablet-only: nav hidden, hamburger visible (same as mobile) — handled above. */

@media (max-width: 1199.98px) {
  .nav,
  .header__cta {
    display: none !important;
  }
}
