/* =========================================================
   RWGFY Landing — styles (CSS Grid)
   Структура секцій = Figma Hybrid 1280
   ========================================================= */

:root {
  --color-ink: #232323;
  --color-ink-soft: #2c2e2a;
  --color-muted: #666966;
  --color-white: #ffffff;
  --color-cta-bg: #eeeeee;
  --color-yellow: #ffbb00;
  --color-green: #3d9952;
  --color-green-soft: #f3faf4;
  --color-green-text: #163618;
  --color-green-accent: #429846;
  --color-red: #d94d3d;
  --color-red-soft: #fff5f4;
  --color-yellow-soft: #fffae7;
  --color-yellow-text: #f29c1f;

  --content: 1120px;
  --nav-height: 64px;
  --radius: 12px;
  --gap: 20px;

  --nav-pad-top: 32px;
  --nav-pad-x: max(16px, calc((100vw - var(--content)) / 2));

  --font: "Inter", system-ui, sans-serif;
  --ease-nav: 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

@property --rotate {
  syntax: "<angle>";
  initial-value: 132deg;
  inherits: false;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.4;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* ---------- Shell: спільна колонка контенту ---------- */
.shell {
  width: 100%;
  max-width: calc(var(--content) + 32px);
  margin-inline: auto;
  padding-inline: 16px;
  box-sizing: border-box;
}

.section {
  padding-block: 72px;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 32px;
}

/* =========================================================
   0. HEADER / NAV
   ========================================================= */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--nav-pad-top) var(--nav-pad-x) 0;
  pointer-events: none;
  transition: padding var(--ease-nav);
}

.site-header__bar {
  pointer-events: auto;
  height: var(--nav-height);
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 2px var(--color-ink);
  transition:
    border-radius var(--ease-nav),
    box-shadow var(--ease-nav);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 100%;
  padding: 0 22px;
}

.site-header.is-scrolled {
  --nav-pad-top: 0px;
  --nav-pad-x: 0px;
}

.site-header.is-scrolled .site-header__bar {
  border-radius: 0;
  box-shadow:
    0 1px 0 rgba(35, 35, 35, 0.1),
    0 10px 28px rgba(35, 35, 35, 0.05);
}

.site-header.is-scrolled .site-header__inner {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
}

.brand {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand__logo {
  width: 34px;
  height: 34px;
}

.brand__text {
  display: grid;
  gap: 0;
  min-width: 0;
}

.brand__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.brand__tagline {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
}

.nav-links {
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover {
  opacity: 0.65;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  padding: 8px 8px 8px 15px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  width: max-content;
  max-width: 100%;
}

.btn--light {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 259px;
  background: var(--color-cta-bg);
  color: var(--color-ink);
}

.btn__label--short {
  display: none;
}

.btn--light:hover {
  background: #e4e4e4;
}

.btn--light > * {
  position: relative;
  z-index: 1;
}

/* Срібний блиск по кнопці в nav — запускається зі скролу */
.site-header .btn--light::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 45%;
  z-index: 2;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 35%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(220, 225, 235, 0.6) 58%,
    transparent 75%
  );
  transform: translateX(-160%) skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}

.site-header .btn--light.is-shining::after {
  animation: btn-shine 0.9s ease-in-out;
}

@keyframes btn-shine {
  0% {
    opacity: 0;
    transform: translateX(-160%) skewX(-18deg);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(280%) skewX(-18deg);
  }
}

.btn--dark {
  position: relative;
  isolation: isolate;
  background: transparent;
  color: var(--color-white);
  min-height: 57px;
  padding-inline: 26px 14px;
}

.btn--dark:hover::after {
  background: #111;
}

/* Світіння ПІД кнопкою */
.btn--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: linear-gradient(var(--rotate), #ffbc00, #ffbc00 23%, #4285f4);
  filter: blur(18px);
  opacity: 0.95;
  z-index: 0;
  transform: scale(0.95);
  pointer-events: none;
  animation: btn-spin 3.5s linear infinite;
}

/* Непрозорий фон кнопки поверх світіння */
.btn--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--color-ink);
  z-index: 1;
  pointer-events: none;
}

.btn--dark > * {
  position: relative;
  z-index: 2;
}

/* Final CTA — той самий glow, але з білою обводкою */
.btn--outline {
  position: relative;
  isolation: isolate;
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  border-radius: 50px;
  min-height: 57px;
  padding: 14px 14px 14px 26px;
  font-size: 16px;
  font-weight: 600;
}

.btn--outline:hover::after {
  background: #111;
}

.btn--outline::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: linear-gradient(var(--rotate), #ffbc00, #ffbc00 23%, #4285f4);
  filter: blur(18px);
  opacity: 0.95;
  z-index: 0;
  transform: scale(0.95);
  pointer-events: none;
  animation: btn-spin 3.5s linear infinite;
}

.btn--outline::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--color-ink);
  z-index: 1;
  pointer-events: none;
}

.btn--outline > * {
  position: relative;
  z-index: 2;
}

@keyframes btn-spin {
  0% {
    --rotate: 0deg;
  }
  100% {
    --rotate: 360deg;
  }
}

.btn__arrow {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 100px;
  background: var(--color-yellow);
  color: var(--color-ink);
}

/* =========================================================
   1. HERO — blob = фон секції; ілюстрація окремо
   ========================================================= */

.hero {
  position: relative;
  padding-top: 128px;
  padding-bottom: 80px;
  /* clip лише по X — знизу blob має бути видно цілком */
  overflow-x: clip;
  overflow-y: visible;
}

/* Фон ~права половина: більший, щоб закрити правий верх */
.hero__blob {
  position: absolute;
  top: -35%;
  right: -5%;
  z-index: 0;
  width: min(72vw, 980px);
  height: auto;
  pointer-events: none;
  user-select: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 560px);
  gap: 60px;
  align-items: center;
  justify-content: space-between;
}

.hero__copy {
  display: grid;
  gap: 24px;
  align-content: start;
}

/* Appear: opacity 0 → 1 при заході на сайт */
.hero__copy > * {
  opacity: 0;
  animation: hero-fade-in 0.9s ease forwards;
}

.hero__copy > *:nth-child(1) {
  animation-delay: 0.08s;
}

.hero__copy > *:nth-child(2) {
  animation-delay: 0.22s;
}

.hero__copy > *:nth-child(3) {
  animation-delay: 0.36s;
}

.hero__copy > *:nth-child(4) {
  animation-delay: 0.5s;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
}

.hero h1 {
  font-size: clamp(2.25rem, 4vw, 3.125rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: none;
}

.hero__title-line {
  white-space: nowrap;
}

.lead {
  font-size: 16px;
  line-height: 1.45;
  max-width: 42ch;
  color: var(--color-ink);
}

.hero__copy .btn {
  margin-top: 24px; /* gap 24 + 24 = 48 — подвійний відступ від lead */
}

/* Ілюстрація 560×560 — без blob */
.hero__visual {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  justify-self: end;
}

.hero__stage {
  position: absolute;
  inset: 0;
}

.hero__layer {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  will-change: transform;
}

/* laptop — зсув вліво, край ноута торкається глобуса */
.hero__people--laptop {
  left: 48%;
  top: 5%;
  width: 50%;
  z-index: 1;
  --float-y: -10px;
  animation: hero-float 5.2s ease-in-out infinite;
  animation-delay: -1.8s;
}

/* main + globe */
.hero__people--main {
  left: 0;
  top: 18%;
  width: 100%;
  z-index: 2;
  --float-y: -7px;
  animation: hero-float 6.5s ease-in-out infinite;
}

/* очі — трохи вліво (особливо lg / sm біля ноута) */
.hero__eye--md {
  left: 15%;
  top: 26%;
  width: 10%;
  z-index: 3;
  --float-y: -9px;
  animation: hero-float 5s ease-in-out infinite;
  animation-delay: -2.4s;
}

.hero__eye--lg {
  left: 28%;
  top: 15%;
  width: 18%;
  z-index: 4;
  --float-y: -12px;
  animation: hero-float 4.4s ease-in-out infinite;
  animation-delay: -0.6s;
}

.hero__eye--sm {
  left: 75%;
  top: 33%;
  width: 9%;
  z-index: 3;
  --float-y: -11px;
  animation: hero-float 4.8s ease-in-out infinite;
  animation-delay: -1.1s;
}

@keyframes hero-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, var(--float-y, -8px), 0);
  }
}

/* =========================================================
   Reveal — opacity + легкий підйом (premium sit-down)
   ========================================================= */

[data-reveal] [data-reveal-item] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0s;
}

/* H2 — трохи довше / «важче» сідає */
[data-reveal] .section__title[data-reveal-item],
[data-reveal] .final-cta h2[data-reveal-item] {
  transition-duration: 0.95s;
}

[data-reveal].is-revealed [data-reveal-item] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: var(--reveal-delay, 0s);
}

/* Після reveal — без довгого transition (hover opacity) */
[data-reveal].is-reveal-done [data-reveal-item] {
  transition: none;
  transform: none;
}

/* =========================================================
   2. HOW — 3 колонки
   ========================================================= */

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

.how-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 12px;
  align-content: start;
  padding: 16px;
  background: var(--color-white);
  border: 2px solid var(--color-ink);
  border-radius: var(--radius);
  overflow: hidden;
}

.how-card__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
}

.how-card__num--1 {
  background: var(--color-green);
}
.how-card__num--2 {
  background: #f2ad0d;
}
.how-card__num--3 {
  background: var(--color-red);
}

.how-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-ink);
}

.how-card > p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-ink);
}

/* How visuals — PNG з альфою на білому фоні картки (як у Figma) */
.how-card__visual {
  margin-top: 8px;
  align-self: end;
  display: grid;
  place-items: center;
  /* без чорного: прозора зона картинки = білий фон картки */
  background: transparent;
}

.how-card__visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* =========================================================
   3. PRODUCT — 2 колонки + ill_2 шари
   ========================================================= */

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.product-grid__visual {
  position: relative;
  width: 100%;
  max-width: 557px;
  aspect-ratio: 557 / 468;
  justify-self: stretch;
}

.product-stage {
  position: absolute;
  inset: 0;
}

.product-layer {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  will-change: transform;
}

/* blob — фон, без float */
.product-layer--blob {
  left: 0;
  top: 0.8%;
  width: 100%;
  z-index: 0;
  will-change: auto;
}

/* bush — без float */
.product-layer--bush {
  left: 17.6%;
  top: 76.8%;
  width: 64.6%;
  z-index: 1;
  will-change: auto;
}

/* toggle 2 */
.product-layer--toggle-2 {
  left: 7.2%;
  top: 53.7%;
  width: 10.1%;
  z-index: 3;
  --float-y: -10px;
  animation: hero-float 4.6s ease-in-out infinite;
  animation-delay: -2.1s;
}

/* toggle 1 */
.product-layer--toggle-1 {
  left: 75.7%;
  top: 13.7%;
  width: 10.1%;
  z-index: 3;
  --float-y: -11px;
  animation: hero-float 5.1s ease-in-out infinite;
  animation-delay: -0.7s;
}

/* main — персонаж + глобус */
.product-layer--main {
  left: 15.3%;
  top: 0;
  width: 67.2%;
  z-index: 2;
  --float-y: -8px;
  animation: hero-float 6.5s ease-in-out infinite;
}

/* squ */
.product-layer--squ {
  left: 78.4%;
  top: 76.9%;
  width: 5.4%;
  z-index: 4;
  --float-y: -9px;
  animation: hero-float 4.8s ease-in-out infinite;
  animation-delay: -1.6s;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius);
  background: var(--color-white);
}

/* Розширює hit-area на весь gap (16px) — без «дірок» між картками */
.feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  bottom: -12px;
  z-index: 1;
}

.feature-card > * {
  position: relative;
  z-index: 2;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-ink);
}

/* =========================================================
   4. TRUST — 2 колонки
   ========================================================= */

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.trust-panel {
  display: grid;
  gap: 32px;
  justify-items: stretch;
}

.trust-metrics {
  display: grid;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  background: var(--color-white);
  /* inset stroke — зовнішній край збігається з .review (без «вужчої» картки) */
  box-shadow: inset 0 0 0 2px #2e2e2b;
}

.trust-metrics__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.trust-metrics__brand {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
}

.trust-metrics__brand strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
}

.trust-metrics__brand span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-ink);
}

.trust-metrics__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: #242fab;
  white-space: nowrap;
}

.trust-metrics__all img {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

.trust-metrics__all:hover {
  text-decoration: underline;
}

.trust-metrics__all:focus-visible {
  outline: 2px solid #242fab;
  outline-offset: 3px;
  border-radius: 4px;
}

.trust-metrics__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-ink);
}

.trust-metrics__star,
.trust-metrics__user,
.trust-metrics__flag {
  flex-shrink: 0;
  display: block;
}

.trust-metrics__star,
.trust-metrics__user {
  width: 21px;
  height: 21px;
}

.trust-metrics__flag {
  width: 21px;
  height: 14px;
}

/* Desktop: повний текст; іконки / tablet-копія — у media */
.trust-metrics__user,
.trust-metrics__flag,
.trust-metrics__made-short,
.trust-metrics__count-tablet,
.trust-metrics__word-tablet {
  display: none;
}

/* Reviews slider */
.reviews-slider {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 32px;
  width: 100%;
  min-width: 0;
}

.reviews-slider__viewport {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.reviews-slider__track {
  position: relative;
  width: 100%;
}

.reviews-slider__slide {
  display: grid;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.55s;
}

.reviews-slider__slide.is-active {
  position: absolute;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  z-index: 1;
}

.reviews-slider__slide.is-exit {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -14px, 0);
  z-index: 0;
}

/* Stagger карток при появі слайда */
.reviews-slider__slide .review {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.reviews-slider__slide.is-active .review {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reviews-slider__slide.is-active .review:nth-child(1) {
  transition-delay: 0.06s;
}

.reviews-slider__slide.is-active .review:nth-child(2) {
  transition-delay: 0.14s;
}

.reviews-slider__slide.is-active .review:nth-child(3) {
  transition-delay: 0.22s;
}

.reviews-slider__slide.is-exit .review {
  opacity: 0;
  transform: translate3d(0, -8px, 0);
  transition-delay: 0s;
}

.review {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  background: #f0f4f9;
}

.review__avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 100px;
  background: #242fab;
}

.review__avatar img {
  width: 24px;
  height: 24px;
}

.review h3 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.review p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-ink);
  height: calc(1.4em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.reviews-slider__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 16px;
}

.reviews-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #d9e2ef;
  cursor: pointer;
  transition: transform 200ms ease, background-color 200ms ease;
}

.reviews-dot.is-active {
  background: #242fab;
}

.reviews-dot:hover {
  transform: scale(1.45);
}

.reviews-dot:focus-visible {
  outline: 2px solid #242fab;
  outline-offset: 3px;
}

.trust-grid__visual {
  position: relative;
  width: 100%;
  max-width: 539px;
  aspect-ratio: 539 / 467;
  justify-self: end;
}

.trust-stage {
  position: absolute;
  inset: 0;
}

.trust-layer {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  will-change: transform;
}

/* blob — фон, без float */
.trust-layer--blob {
  left: 0;
  top: 6.2%;
  width: 100%;
  z-index: 0;
  will-change: auto;
}

/* main — персонаж з телескопом */
.trust-layer--main {
  left: 19.5%;
  top: 0;
  width: 49%;
  z-index: 2;
  --float-y: -8px;
  animation: hero-float 6.5s ease-in-out infinite;
}

/* hands 1 — ліворуч / знизу */
.trust-layer--hands-1 {
  left: 8%;
  top: 42%;
  width: 55.5%;
  z-index: 3;
  --float-y: -6px;
  animation: hero-float 5.4s ease-in-out infinite;
  animation-delay: -1.4s;
}

/* hands 2 — праворуч */
.trust-layer--hands-2 {
  left: 63.3%;
  top: 30.3%;
  width: 30%;
  z-index: 3;
  --float-y: -10px;
  animation: hero-float 4.9s ease-in-out infinite;
  animation-delay: -0.8s;
}

/* =========================================================
   5. FAQ
   ========================================================= */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 2px solid var(--color-ink);
  border-radius: var(--radius);
  background: var(--color-white);
  padding: 0 20px;
  overflow: clip;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 53px;
  font-size: 16px;
  font-weight: 600;
  padding-block: 14px;
}

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

.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-ink);
  border-bottom: 2px solid var(--color-ink);
  transform: rotate(45deg);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.is-open summary::after,
.faq-item[open] summary::after {
  transform: rotate(225deg);
  margin-top: 6px;
}

.faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.is-open .faq-item__body {
  grid-template-rows: 1fr;
}

.faq-item__body-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-item p {
  margin: 0;
  padding: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-ink);
  max-width: 70ch;
  opacity: 0;
  transform: translate3d(0, -6px, 0);
  transition:
    opacity 320ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.is-open p {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 60ms;
}

/* =========================================================
   6–7. CLOSING — bg + HTML copy / CTA glow / hands float
   Mobile bg: assets/mob/blob.svg
   ========================================================= */

.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;
}

.closing {
  position: relative;
  color: var(--color-white);
  overflow-x: clip;
  overflow-y: visible;
}

.closing__blob-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.closing__blob-wrap picture,
.closing__blob {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.closing__blob {
  object-fit: cover;
  object-position: center top;
  user-select: none;
  transform-origin: 50% 40%;
  transform: translate3d(0, 3%, 0) scale(1.05);
  transition: transform 1.45s cubic-bezier(0.33, 0.12, 0.25, 1);
  will-change: transform;
}

.closing.is-in .closing__blob {
  transform: translate3d(0, 0, 0) scale(1);
}

.closing__copy,
.closing .site-footer {
  opacity: 0;
  transition:
    opacity 1.15s cubic-bezier(0.33, 0.12, 0.25, 1),
    transform 1.15s cubic-bezier(0.33, 0.12, 0.25, 1);
  transition-delay: 0s;
}

.closing__copy,
.closing .site-footer {
  transform: translate3d(0, 12px, 0);
}

.closing.is-in .closing__copy {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.35s;
}

.closing.is-in .site-footer {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.5s;
}

.final-cta {
  position: relative;
  z-index: 1;
  padding: 287px 0 222px;
  background: transparent;
}

.final-cta__grid {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 52px;
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.4;
  max-width: 32ch;
  color: var(--color-white);
  margin: 0;
}

.site-footer {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 0 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  justify-content: space-between;
}

.footer-col {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-col:nth-child(2) {
  justify-self: center;
}

.footer-col:nth-child(3) {
  justify-self: end;
}

.footer-col h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--color-white);
}

.footer-col a {
  font-size: 13px;
  color: var(--color-white);
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--color-white);
  text-align: left;
  cursor: pointer;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-meta {
  margin: 32px 0 0;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--color-white);
  text-align: left;
}

/* =========================================================
   Motion / responsive
   ========================================================= */

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

  .site-header,
  .site-header__bar,
  .faq-item summary::after,
  .faq-item__body,
  .faq-item p,
  .how-card,
  .feature-card,
  .reviews-dot,
  .reviews-slider__slide,
  .reviews-slider__slide .review {
    transition: none;
  }

  .reviews-slider__slide:not(.is-active) {
    display: none;
  }

  .reviews-slider__slide.is-active .review {
    opacity: 1;
    transform: none;
  }

  .hero__layer,
  .product-layer,
  .trust-layer,
  .btn--dark::before,
  .btn--outline::before,
  .site-header .btn--light.is-shining::after {
    animation: none !important;
  }

  .hero__copy > * {
    opacity: 1;
    animation: none !important;
  }

  [data-reveal] [data-reveal-item] {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .closing__blob {
    transition: none !important;
    transform: none !important;
  }

  .closing__copy,
  .closing .site-footer {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- ≤1023: стек product/trust; how 1 кол (від 1024 — desktop) ---------- */
@media (max-width: 1023px) {
  .product-grid,
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .product-grid__visual,
  .trust-grid__visual {
    max-width: 420px;
    margin-inline: auto;
    justify-self: center;
  }

  /* ілюстрація trust над відгуками (tablet + mobile) */
  .trust-grid__visual {
    order: -1;
  }
}

/* ---------- 641–1023: tablet (Figma iPad 744); від 1024 — як ноутбук ---------- */
@media (min-width: 641px) and (max-width: 1023px) {
  .shell {
    padding-inline: 20px;
  }

  .section {
    padding-block: 56px;
  }

  .section__title {
    font-size: 2rem;
    margin-bottom: 32px;
  }

  /* Hero — 50:50 текст | ілюстрація */
  .hero {
    padding-top: 120px;
    padding-bottom: 48px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
  }

  .hero__visual {
    order: 0;
    width: 100%;
    max-width: none;
    aspect-ratio: 1;
    justify-self: stretch;
  }

  /* pad/blob_hero.svg — full-bleed 744×480 як у Figma */
  .hero__blob {
    top: 0;
    left: 0;
    right: auto;
    width: 100%;
    max-width: none;
    height: auto;
    transform: none;
  }

  .hero h1 {
    font-size: 2.5rem;
    max-width: none;
  }

  .lead {
    max-width: 42ch;
  }

  /* How — стек карток; всередині текст | visual */
  .how-grid {
    gap: 20px;
  }

  .how-card {
    /* Figma: pad 16 + text 350 + gap 12 + visual 310 */
    grid-template-columns: minmax(0, 350px) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    row-gap: 12px;
    align-items: start;
    padding: 16px;
  }

  .how-card__num {
    grid-column: 1;
    grid-row: 1;
  }

  .how-card h3 {
    grid-column: 1;
    grid-row: 2;
    font-size: 18px;
  }

  .how-card > p {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    font-size: 14px;
  }

  .how-card__visual {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    justify-self: stretch;
    margin-top: 0;
    min-width: 0;
  }

  .how-card__visual img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Product / Trust — 704×467 по центру; stage зменшено, без crop */
  .product-grid {
    gap: 20px;
  }

  .product-grid__visual,
  .trust-grid__visual {
    order: -1;
    width: min(100%, 704px);
    max-width: 704px;
    height: auto;
    aspect-ratio: 704 / 467;
    margin-inline: auto;
    justify-self: center;
    overflow: visible;
    z-index: 0;
  }

  .product-stage,
  .trust-stage {
    transform: scale(0.88);
    transform-origin: center center;
  }

  .feature-list,
  .trust-panel {
    position: relative;
    z-index: 1;
    width: 100%;
  }

  .feature-card h3 {
    font-size: 16px;
  }

  .feature-card p {
    font-size: 14px;
  }

  .trust-grid {
    gap: 20px;
  }

  .trust-metrics__brand span {
    display: block;
  }

  .trust-metrics__count-short,
  .trust-metrics__word,
  .trust-metrics__user,
  .trust-metrics__flag,
  .trust-metrics__made-short {
    display: none;
  }

  .trust-metrics__count-tablet,
  .trust-metrics__word-tablet {
    display: inline;
  }

  .trust-metrics__made-full {
    display: inline;
  }

  .trust-metrics__stats {
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 6px;
  }

  .trust-panel {
    gap: 32px;
    width: 100%;
  }

  .review {
    width: 100%;
  }

  /* Closing — pad/blob.svg (744×838), без desktop scale */
  .final-cta {
    padding: 240px 0 220px;
  }

  .final-cta h2 {
    font-size: 2rem;
    max-width: 28ch;
  }

  .closing {
    background: transparent;
  }

  .closing__blob-wrap {
    overflow: hidden;
  }

  .closing__blob {
    object-fit: cover;
    object-position: center top;
    transform: none;
    transform-origin: 50% 0%;
  }

  .closing.is-in .closing__blob {
    transform: none;
  }

  .faq-list {
    width: 100%;
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }

  .footer-col:nth-child(2) {
    justify-self: center;
  }

  .footer-col:nth-child(3) {
    justify-self: end;
  }
}

/* ---------- ≤900: компактний nav (Figma: «Встановити» + стрілка) ---------- */
@media (max-width: 900px) {
  :root {
    --nav-pad-top: 20px;
  }

  .brand__tagline {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .btn--light {
    width: auto;
    min-width: 0;
    padding: 8px;
    gap: 16px;
  }

  .btn__label--full {
    display: none;
  }

  .btn__label--short {
    display: inline;
    font-size: 15px;
    font-weight: 500;
    padding-left: 7px;
  }

  .hero__title-line {
    white-space: normal;
  }
}

/* ---------- ≤640 / ~390 Figma iPhone ---------- */
@media (max-width: 640px) {
  :root {
    --nav-pad-top: 32px;
    --nav-height: 64px;
    --nav-pad-x: 16px;
  }

  .shell {
    padding-inline: 16px;
  }

  .section {
    padding-block: 48px;
  }

  .section__title {
    font-size: 1.875rem; /* ~30px як у макеті */
    margin-bottom: 32px;
    line-height: 1.3;
  }

  .site-header__inner {
    padding: 0 14px 0 22px;
    gap: 12px;
  }

  .site-header.is-scrolled {
    --nav-pad-top: 0px;
    --nav-pad-x: 0px;
  }

  .site-header.is-scrolled .site-header__inner {
    padding-inline: 16px;
    max-width: none;
  }

  .brand {
    grid-template-columns: 34px 1fr;
    gap: 8px;
  }

  .brand__logo {
    width: 34px;
    height: 34px;
  }

  .brand__name {
    font-size: 16px;
  }

  /* Hero: ілюстрація під nav (+28px під float −12px), blob зверху по центру */
  .hero {
    padding-top: calc(var(--nav-pad-top) + var(--nav-height) + 28px);
    padding-bottom: 40px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .hero__visual {
    order: -1;
    justify-self: center;
    width: 100%;
    max-width: none;
    aspect-ratio: 358 / 355;
  }

  .hero__blob {
    top: 0;
    left: 50%;
    right: auto;
    width: 100%;
    max-width: none;
    transform: translateX(-50%);
  }

  .hero__copy {
    gap: 24px;
  }

  .hero h1 {
    font-size: 1.875rem;
    line-height: 1.2;
  }

  .eyebrow {
    font-size: 14px;
  }

  .lead {
    font-size: 16px;
    line-height: 1.375;
    max-width: none;
  }

  .hero__copy .btn {
    margin-top: 0;
    width: 100%;
  }

  .btn--dark,
  .btn--outline {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
  }

  .how-card {
    padding: 16px;
  }

  .how-card h3 {
    font-size: 18px;
  }

  .feature-list {
    gap: 16px;
  }

  .feature-card {
    padding: 16px;
  }

  .feature-card h3 {
    font-size: 16px;
  }

  .product-grid,
  .trust-grid {
    gap: 32px;
  }

  .product-grid__visual,
  .trust-grid__visual {
    max-width: none;
    width: 100%;
  }

  /* Metrics: бренд + «Усі відгуки» в один рядок (як Figma) */
  .trust-metrics {
    padding: 16px;
    gap: 24px;
  }

  .trust-metrics__top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .trust-metrics__brand span {
    display: none;
  }

  .trust-metrics__stats {
    font-size: 15px;
    flex-wrap: nowrap;
    white-space: nowrap;
    min-width: 0;
    gap: 6px;
  }

  .trust-metrics__word,
  .trust-metrics__word-tablet,
  .trust-metrics__count-tablet,
  .trust-metrics__made-full {
    display: none;
  }

  .trust-metrics__count-short,
  .trust-metrics__made-short {
    display: inline;
  }

  .trust-metrics__user,
  .trust-metrics__flag {
    display: block;
  }

  .trust-metrics__top,
  .trust-metrics__brand {
    min-width: 0;
  }

  .trust-metrics__all {
    flex-shrink: 0;
  }

  .trust-panel {
    gap: 32px;
    width: 100%;
    min-width: 0;
  }

  .reviews-slider {
    gap: 32px;
    width: 100%;
  }

  .review {
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 16px;
    width: 100%;
  }

  .review__avatar {
    width: 56px;
    height: 56px;
  }

  .review h3 {
    font-size: 15px;
  }

  .review p {
    font-size: 15px;
    height: auto;
    min-height: 0;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .faq-item {
    padding: 0 16px;
  }

  .faq-item summary {
    font-size: 16px;
    gap: 16px;
    align-items: center;
    padding-block: 14px;
    min-height: 53px;
  }

  .faq-item p {
    font-size: 15px;
  }

  /*
   * Closing mobile: assets/mob/blob.svg як фон (хвиля + корабель).
   * Не фарбуємо .closing у #232323 — інакше прозора зона SVG зливається
   * з фоном і хвиля/корабель зникають (лишається «прямокутник»).
   */
  .closing {
    background: transparent;
  }

  .closing__blob-wrap {
    /* scale/translate на desktop кліпає верх — на мобілці показуємо верх artboard */
    overflow: hidden;
  }

  .closing__blob {
    object-fit: cover;
    object-position: center top;
    transform: none;
    transform-origin: 50% 0%;
  }

  .closing.is-in .closing__blob {
    transform: none;
  }

  .final-cta {
    padding: 160px 0 200px;
  }

  .final-cta__grid {
    gap: 44px;
  }

  .final-cta h2 {
    font-size: 1.875rem;
    line-height: 1.35;
    max-width: none;
  }

  /* glow кнопки як на desktop — не вимикаємо ::before */
  .final-cta .btn--outline {
    width: 100%;
    max-width: 356px;
    justify-self: center;
    justify-content: space-between;
    margin-inline: auto;
  }

  .site-footer {
    padding: 8px 0 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-col {
    gap: 10px;
  }

  .footer-col:nth-child(2),
  .footer-col:nth-child(3) {
    justify-self: start;
  }

  .footer-col h3 {
    font-size: 14px;
  }

  .footer-col a,
  .footer-link {
    font-size: 13px;
  }

  .footer-meta {
    margin-top: 28px;
    text-align: left;
  }
}

/* ---------- ≤400 / 360 ---------- */
@media (max-width: 400px) {
  .shell {
    padding-inline: 16px;
  }

  /* не чіпаємо .hero — інакше padding-block збиває відступ під nav */
  .section:not(.hero) {
    padding-block: 40px;
  }

  .hero {
    /* nav + запас під float (−12px), щоб шари не заходили під pill */
    padding-top: calc(var(--nav-pad-top) + var(--nav-height) + 28px);
  }

  .section__title,
  .hero h1,
  .final-cta h2 {
    font-size: 1.65rem;
  }

  .btn--outline {
    font-size: 15px;
  }

  .final-cta {
    padding: 190px 0 180px;
  }

  .site-footer {
    padding-bottom: 24px;
  }

  .footer-meta {
    margin-top: 24px;
  }
}

/* Захист від горизонтального скролу */
@media (max-width: 640px) {
  html,
  body {
    overflow-x: clip;
  }
}

/* =========================================================
   Legal pages (privacy / terms) — responsive
   ========================================================= */

.page-legal {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--color-white);
}

.page-legal .site-header {
  pointer-events: none;
}

.page-legal .nav-links a[aria-current="page"] {
  opacity: 0.55;
  pointer-events: none;
}

.legal-page {
  padding-top: calc(var(--nav-pad-top) + var(--nav-height) + 48px);
  padding-bottom: 56px;
}

/* ширина як у лендінгу: .shell → max-width: calc(var(--content) + 32px) */

.legal-doc {
  display: grid;
  gap: 16px;
  color: var(--color-ink);
}

.legal-doc__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.legal-doc h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.legal-doc__updated {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.legal-doc h2 {
  font-size: clamp(1.125rem, 2.4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 16px 0 0;
}

.legal-doc p,
.legal-doc li {
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  line-height: 1.65;
  color: var(--color-ink-soft);
}

.legal-doc ul {
  margin: 0;
  padding-left: 1.25em;
  display: grid;
  gap: 8px;
}

.legal-doc a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.legal-doc a:hover {
  opacity: 0.7;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(35, 35, 35, 0.12);
  font-size: 14px;
  font-weight: 500;
}

.legal-nav a:hover {
  text-decoration: underline;
}

.legal-footer {
  padding: 24px 0 40px;
  border-top: 1px solid rgba(35, 35, 35, 0.08);
}

.legal-footer__meta {
  font-size: 12px;
  color: var(--color-muted);
}

@media (max-width: 1023px) {
  .page-legal .nav-links {
    gap: 20px;
    font-size: 14px;
  }

  .legal-page {
    padding-top: calc(var(--nav-pad-top) + var(--nav-height) + 36px);
    padding-bottom: 48px;
  }
}

@media (max-width: 640px) {
  .page-legal .nav-links {
    display: none;
  }

  .page-legal .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .legal-page {
    padding-top: calc(var(--nav-pad-top) + var(--nav-height) + 28px);
    padding-bottom: 40px;
  }

  .legal-doc {
    gap: 14px;
  }

  .legal-doc h2 {
    margin-top: 12px;
  }

  .legal-nav {
    margin-top: 32px;
    flex-direction: column;
    gap: 12px;
  }

  .legal-footer {
    padding: 20px 0 28px;
  }
}

@media (max-width: 400px) {
  .legal-page {
    padding-top: calc(var(--nav-pad-top) + var(--nav-height) + 24px);
  }

  .legal-doc h1 {
    font-size: 1.5rem;
  }

  .legal-doc p,
  .legal-doc li {
    font-size: 0.9375rem;
  }
}

/* =========================================================
   Contact modal («Зв'язатися»)
   ========================================================= */

html.is-contact-open {
  overflow: hidden;
}

.contact-modal {
  padding: 0;
  border: none;
  background: transparent;
  max-width: calc(100vw - 32px);
  width: 520px;
  max-height: calc(100dvh - 32px);
  color: var(--color-ink);
}

.contact-modal::backdrop {
  background: rgba(35, 35, 35, 0.55);
}

.contact-modal__panel {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 28px 24px 24px;
  background: var(--color-white);
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(35, 35, 35, 0.22);
  box-sizing: border-box;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.contact-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
}

.contact-modal__close:hover {
  background: rgba(35, 35, 35, 0.06);
}

.contact-modal__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 187, 0, 0.45);
}

.contact-modal__title {
  margin: 0;
  padding-right: 40px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-ink);
}

.contact-modal__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-ink-soft);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form__field {
  display: grid;
  gap: 8px;
}

.contact-form__field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  box-sizing: border-box;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.contact-form__field textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: var(--color-muted);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus,
.contact-form__field input:focus-visible,
.contact-form__field textarea:focus-visible {
  border-color: var(--color-yellow);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 187, 0, 0.35);
}

.contact-form__field:has(.contact-form__error:not([hidden])) input,
.contact-form__field:has(.contact-form__error:not([hidden])) textarea {
  border-color: var(--color-red);
  box-shadow: none;
}

.contact-form__field:has(.contact-form__error:not([hidden])) input:focus,
.contact-form__field:has(.contact-form__error:not([hidden])) textarea:focus,
.contact-form__field:has(.contact-form__error:not([hidden])) input:focus-visible,
.contact-form__field:has(.contact-form__error:not([hidden])) textarea:focus-visible {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(217, 77, 61, 0.25);
  outline: none;
}

.contact-form__error {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--color-red);
}

.contact-form__captcha {
  display: grid;
  gap: 8px;
  justify-items: start;
  min-height: 65px;
}

.contact-form__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.contact-form__submit,
.contact-form__cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 48px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  grid-template-columns: none;
  outline: none;
}

.contact-form__submit:focus-visible,
.contact-form__cancel:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 187, 0, 0.45);
}

.contact-form__submit {
  background: var(--color-yellow);
  color: var(--color-ink);
}

.contact-form__submit:hover {
  background: #f0b000;
}

.contact-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.contact-form__cancel {
  background: var(--color-cta-bg);
  color: var(--color-ink);
}

.contact-form__cancel:hover {
  background: #e4e4e4;
}

.contact-modal__view[data-contact-view="success"] .contact-form__actions,
.contact-modal__view[data-contact-view="error"] .contact-form__actions {
  margin-top: 8px;
}

.contact-modal__view[data-contact-view="success"] {
  display: grid;
  gap: 16px;
}

.contact-modal__view[data-contact-view="success"][hidden],
.contact-modal__view[data-contact-view="error"][hidden],
.contact-modal__view[data-contact-view="form"][hidden] {
  display: none;
}

.contact-modal__view[data-contact-view="error"] {
  display: grid;
  gap: 16px;
}

.contact-modal__view[data-contact-view="success"] .contact-form__actions {
  grid-template-columns: 1fr;
}

@media (max-width: 640px) {
  .contact-modal {
    width: calc(100vw - 32px);
    max-width: none;
    max-height: calc(100dvh - 24px);
    margin: auto;
  }

  .contact-modal__panel {
    padding: 24px 16px 16px;
    max-height: calc(100dvh - 24px);
  }

  .contact-modal__title {
    font-size: 1.35rem;
  }

  .contact-form__actions {
    grid-template-columns: 1fr;
  }

  .contact-form__submit,
  .contact-form__cancel {
    min-height: 48px;
  }
}

@media (max-width: 400px) {
  .contact-modal {
    width: calc(100vw - 24px);
  }

  .contact-modal__panel {
    padding: 22px 14px 14px;
  }
}
