/* Ferstaken: a white, strict, technical studio site.
   White and mist grounds, graphite ink, one cobalt accent, plywood boards under the work. */

:root {
  --white: #ffffff;
  --mist: #f3f4f6;
  --mist-2: #e9ecf1;
  --line: #e2e5ea;
  --line-2: #cdd3dc;
  --ink: #121722;
  --ink-2: #2a3140;
  --slate: #586172;
  --cobalt: #2b59ff;
  --cobalt-2: #1d43d6;
  --ice: #eaf0ff;
  --ply: #dcc39b;

  --f-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --f-sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --pad: clamp(20px, 5vw, 64px);
  --top-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--top-h);
  -webkit-text-size-adjust: 100%;
}
/* blocks glide into place by themselves when you stop near them (computer only) */
@media (min-width: 900px) {
  html { scroll-snap-type: y proximity; }
  .snap { scroll-snap-align: start; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17.5px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
/* blocks that glide in from the side must not widen the page while they wait */
main { overflow-x: clip; }
a { color: inherit; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2.5px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--pad), 1280px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--cobalt); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { left: 16px; }

h1, h2, h3 { margin: 0; }
h2 {
  font: 400 clamp(36px, 4.4vw, 62px)/1.04 var(--f-serif);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.025em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: 10px;
  font: 600 16px/1 var(--f-sans); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--blue { background: var(--cobalt); color: #fff; box-shadow: 0 10px 24px -12px rgba(43, 89, 255, 0.7); }
.btn--blue:hover { background: var(--cobalt-2); box-shadow: 0 14px 28px -12px rgba(43, 89, 255, 0.8); }
.btn--line { border-color: var(--line-2); color: var(--ink); background: var(--white); }
.btn--line:hover { border-color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--tg { background: #229ed9; color: #fff; box-shadow: 0 10px 24px -12px rgba(34, 158, 217, 0.8); }
.btn--tg:hover { background: #1b8cc2; }
.btn--wa { background: #1fa855; color: #fff; box-shadow: 0 10px 24px -12px rgba(31, 168, 85, 0.8); }
.btn--wa:hover { background: #188f47; }
.btn--apple { background: #000; color: #fff; }
.btn--apple:hover { background: #262626; }
.contact__buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */

.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 32px; height: var(--top-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__word { font: 800 21px/1 var(--f-sans); letter-spacing: -0.045em; }

.top__nav { display: flex; gap: 30px; margin-left: auto; }
.top__nav a { position: relative; padding: 6px 0; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.top__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.top__nav a:hover::after { transform: scaleX(1); }

/* ---------- 1. Hero ---------- */

.hero { position: relative; overflow: hidden; padding: clamp(32px, 4vw, 56px) 0 clamp(72px, 9vw, 120px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(#eef0f4 1px, transparent 1px),
    linear-gradient(90deg, #eef0f4 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 20%, transparent 75%);
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  grid-template-areas: "title stack" "lead stack";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 5vw, 80px); row-gap: 30px;
  min-height: calc(100svh - var(--top-h) - 110px);
  align-content: center;
}
.hero__title {
  grid-area: title; align-self: end;
  font: 400 clamp(44px, 5.6vw, 86px)/1 var(--f-serif);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.03em;
}
.hero__lead { grid-area: lead; }
.lead { margin: 0 0 30px; max-width: 31em; font-size: clamp(17.5px, 1.4vw, 19.5px); color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0; padding: 0; list-style: none; }
.hero__facts li { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.hero__facts li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5.2 9.3 2.5 2.5 5-5.3' fill='none' stroke='%232b59ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* two example sites; every few seconds the back one comes to the front */
.hero__stack { grid-area: stack; align-self: center; margin: 0; }
.stack { position: relative; aspect-ratio: 16 / 11.4; }
.stack__item {
  position: absolute; left: 0; top: 0; width: 84%;
  display: block; border-radius: 14px; text-decoration: none;
  transform-origin: 100% 0;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.stack__item img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.stack__item.is-front { z-index: 2; transform: translate(0, 17%); }
.stack__item.is-back { z-index: 1; transform: translate(19%, 0) scale(0.92); filter: brightness(0.95) saturate(0.85); }
.stack__item.is-front:hover { transform: translate(0, 15.5%); }
.stack__item.to-back { animation: to-back 1.1s var(--ease) both; }
.stack__item.to-front { animation: to-front 1.1s var(--ease) both; }
@keyframes to-back {
  0% { transform: translate(0, 17%); z-index: 2; filter: none; }
  45% { transform: translate(-9%, 12%) scale(0.96); z-index: 2; }
  46% { z-index: 0; }
  100% { transform: translate(19%, 0) scale(0.92); z-index: 0; filter: brightness(0.95) saturate(0.85); }
}
@keyframes to-front {
  0% { transform: translate(19%, 0) scale(0.92); z-index: 1; filter: brightness(0.95) saturate(0.85); }
  100% { transform: translate(0, 17%); z-index: 1; filter: none; }
}
.stack__cap { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 0; max-width: 36em; font-size: 15.5px; color: var(--slate); }
.stack__cap::before { content: ""; width: 18px; height: 2px; flex: none; background: var(--cobalt); transform: translateY(-4px); }

/* Browser frame */

.browser {
  overflow: hidden; border-radius: 14px; background: var(--white);
  box-shadow:
    0 0 0 1px rgba(18, 23, 34, 0.08),
    0 2px 4px rgba(18, 23, 34, 0.04),
    0 40px 70px -34px rgba(18, 23, 34, 0.42);
}
.browser__bar {
  display: flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px;
  background: #f6f7f9; border-bottom: 1px solid var(--line);
}
.browser__bar i { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #d4d8df; }
.browser__url {
  display: flex; align-items: center;
  flex: 0 1 300px; min-width: 0; height: 24px; margin-left: 10px; padding: 0 10px;
  border-radius: 6px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
  font: 500 12px/1 var(--f-mono); color: var(--slate);
  overflow: hidden; white-space: nowrap;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(88px, 11vw, 150px); }
.head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 64px; align-items: end;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.head p { margin: 0; max-width: 30em; color: var(--slate); font-size: 18.5px; }

/* ---------- 2. Work ---------- */

.work { padding-top: clamp(40px, 6vw, 90px); }
.case {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 76px); align-items: center;
}
.case + .case { margin-top: clamp(80px, 10vw, 150px); }
.case--flip .case__bench { order: 2; }

/* plywood board under the screens; the bottom edge shows the ply layers */
.case__bench {
  position: relative; display: block;
  padding: clamp(18px, 3vw, 40px) clamp(64px, 9vw, 124px) clamp(34px, 4.6vw, 60px) clamp(18px, 3vw, 40px);
  border-radius: 18px;
  background-color: var(--ply);
  background-image:
    repeating-linear-gradient(97deg, rgba(120, 78, 30, 0.05) 0 2px, transparent 2px 11px),
    repeating-linear-gradient(93deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 29px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 30px 60px -40px rgba(18, 23, 34, 0.45);
  text-decoration: none;
}
.case__bench::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 11px;
  border-radius: 0 0 18px 18px;
  background: repeating-linear-gradient(180deg, #e9d3ad 0 2px, #bf9561 2px 3.4px);
  opacity: 0.9;
}
.browser--case { transition: transform 0.5s var(--ease); }
.case__bench:hover .browser--case { transform: translateY(-5px); }

.case__view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #1a1816; }
.case__screens { display: flex; flex-direction: column; }
.case__screens img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.case.is-touring .case__screens { animation: tour 12s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes tour {
  0%, 24% { transform: translateY(0); }
  33%, 57% { transform: translateY(-33.3333%); }
  66%, 90% { transform: translateY(-66.6667%); }
  100% { transform: translateY(0); }
}

.phone {
  position: absolute; right: clamp(12px, 2.2vw, 30px); bottom: clamp(22px, 3vw, 40px);
  width: clamp(92px, 11.5vw, 164px); aspect-ratio: 780 / 1688; overflow: hidden;
  border: clamp(4px, 0.5vw, 6px) solid var(--ink); border-radius: clamp(16px, 2vw, 26px);
  background: var(--ink);
  box-shadow: 0 26px 40px -18px rgba(18, 23, 34, 0.6);
  transition: transform 0.5s var(--ease);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case__bench:hover .phone { transform: translateY(-9px); }

.case__badge {
  display: inline-block; margin: 0 0 18px; padding: 6px 12px;
  border-radius: 999px; background: var(--ice); color: var(--cobalt);
  font: 600 13.5px/1.2 var(--f-sans);
}
.case__name { font: 400 clamp(34px, 3.6vw, 50px)/1 var(--f-serif); font-variation-settings: "opsz" 144; letter-spacing: -0.03em; }
.case__kind { margin: 8px 0 18px; color: var(--slate); font-size: 16.5px; }
.case__info > p:not([class]) { margin: 0; max-width: 34em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 24px; padding: 0; list-style: none; }
.tags li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.facts { display: flex; flex-wrap: wrap; gap: 12px 44px; margin: 0 0 28px; }
.facts dt { font: 500 12px/1.4 var(--f-mono); color: var(--slate); }
.facts dd { margin: 4px 0 0; font: 700 18px/1.3 var(--f-sans); letter-spacing: -0.02em; }

/* ---------- 3. Full-screen showcase ---------- */

.show { padding: clamp(88px, 10vw, 140px) 0; background: var(--mist); }
.show__grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); }
.show__steps { margin: 0; padding: 0; list-style: none; }
.show__step {
  min-height: 72vh; display: flex; flex-direction: column; justify-content: center;
  padding: 24px 0 24px 24px; border-left: 2px solid var(--line-2);
  opacity: 0.32; transition: opacity 0.5s var(--ease), border-color 0.5s var(--ease);
}
.show__step:first-child { min-height: 50vh; justify-content: flex-start; padding-top: 8vh; }
.show__step:last-child { min-height: 60vh; }
.show__step.is-active { opacity: 1; border-left-color: var(--cobalt); }
.show__site { margin: 0 0 10px; font: 500 12.5px/1 var(--f-mono); color: var(--cobalt); }
.show__step h3 { margin-bottom: 12px; font: 400 clamp(26px, 2.4vw, 36px)/1.1 var(--f-serif); font-variation-settings: "opsz" 96; letter-spacing: -0.02em; }
.show__step p:not(.show__site) { margin: 0; max-width: 26em; color: var(--slate); }
.show__mob { display: none; }

.show__stage { position: sticky; top: calc(var(--top-h) + max(24px, (100vh - var(--top-h) - 640px) / 2)); align-self: start; }
.browser--show { box-shadow: 0 0 0 1px rgba(18, 23, 34, 0.08), 0 50px 90px -40px rgba(18, 23, 34, 0.45); }
.show__view { position: relative; aspect-ratio: 16 / 10; background: var(--ink); }
.show__view img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 0.7s var(--ease), transform 1.2s var(--ease);
}
.show__view img.is-active { opacity: 1; transform: none; }
.show__bar { display: flex; gap: 6px; margin-top: 18px; }
.show__bar i { flex: 1; height: 3px; border-radius: 2px; background: var(--line-2); transition: background-color 0.4s; }
.show__bar i.is-on { background: var(--cobalt); }

/* ---------- 4. Why us ---------- */

.why__list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0; padding: 0; list-style: none;
  border-top: 1px solid var(--line);
}
.why__list li { padding: 34px 28px 10px 0; }
.why__list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.why__ic {
  width: 46px; height: 46px; padding: 11px; margin-bottom: 26px;
  border-radius: 12px; background: var(--ice);
  fill: none; stroke: var(--cobalt); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.why__list h3 { margin-bottom: 12px; font: 400 32px/1.05 var(--f-serif); font-variation-settings: "opsz" 96; letter-spacing: -0.02em; }
.why__list p { margin: 0; color: var(--slate); font-size: 16.5px; }

/* ---------- 5. Kinds of sites ---------- */

.build { padding-top: 0; }
.kinds {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px;
  margin: 0; padding: 0; list-style: none;
}
.kinds li {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 8px 24px; align-items: baseline;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.kinds h3 { font: 700 18px/1.3 var(--f-sans); letter-spacing: -0.015em; }
.kinds p { margin: 0; color: var(--slate); font-size: 16px; }
.kinds .kinds__yours { margin-top: 14px; padding: 22px 22px 24px; border-top: 0; border-radius: 14px; background: var(--ice); }
.kinds__yours p { color: var(--ink-2); }
.kinds__link {
  grid-column: 2; font-weight: 600; font-size: 15.5px; color: var(--cobalt);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}

/* Not only websites */
.extra { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.extra__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 64px; align-items: end; margin-bottom: 34px; }
.extra__title { font: 400 clamp(28px, 3vw, 42px)/1.08 var(--f-serif); font-variation-settings: "opsz" 120; letter-spacing: -0.02em; }
.extra__head p { margin: 0; max-width: 30em; color: var(--slate); font-size: 17.5px; }
.extra__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.extra__list li { padding: 26px 24px 28px; border-radius: 16px; background: var(--mist); }
.extra__ic {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 22px;
  border-radius: 12px; background: var(--white); box-shadow: 0 0 0 1px var(--line);
  fill: none; stroke: var(--cobalt); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.extra__list h4 { margin: 0 0 8px; font: 700 18px/1.3 var(--f-sans); letter-spacing: -0.015em; }
.extra__list p { margin: 0; color: var(--slate); font-size: 15.5px; }

/* ---------- Guarantee and payment ---------- */

.deal__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.deal__card { padding: clamp(28px, 4vw, 52px); border-radius: 22px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.deal__card--blue { background: var(--cobalt); color: #fff; box-shadow: 0 34px 70px -40px rgba(43, 89, 255, 0.8); }
.deal__ic {
  width: 54px; height: 54px; padding: 13px; margin-bottom: 30px;
  border-radius: 15px; background: rgba(255, 255, 255, 0.14);
  fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.deal__card--blue h2 { margin-bottom: 18px; }
.deal__card--blue p { margin: 0; max-width: 24em; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: rgba(255, 255, 255, 0.88); }
.deal__title { margin-bottom: 26px; font: 400 clamp(28px, 3vw, 42px)/1.08 var(--f-serif); font-variation-settings: "opsz" 120; letter-spacing: -0.02em; }
.pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.pay li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--mist); font-size: 15.5px; font-weight: 600; }
.pay li:first-child { grid-column: span 2; }
.pay svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--cobalt); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.deal__pay { margin-top: 22px; }
.deal__note { margin: 20px 0 0; color: var(--slate); font-size: 15px; }

/* payment details (filled in payment.js) */
.payinfo { margin-top: 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.payinfo summary {
  position: relative; padding: 15px 52px 15px 16px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 15.5px;
}
.payinfo summary::-webkit-details-marker { display: none; }
.payinfo summary::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M13 8.5v9M8.5 13h9' stroke='%23121722' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center / 26px no-repeat;
  transition: transform 0.3s var(--ease);
}
.payinfo[open] summary::after { transform: rotate(45deg); }
.payinfo__list { display: grid; gap: 8px; margin: 0; padding: 0 12px; }
.payinfo__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label copy" "value copy";
  gap: 2px 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--mist);
}
.payinfo__row dt { grid-area: label; font-size: 13px; color: var(--slate); }
.payinfo__row dd { grid-area: value; margin: 0; min-width: 0; }
.payinfo__value { display: block; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.payinfo__value--code { font: 500 14px/1.45 var(--f-mono); letter-spacing: 0.01em; }
.payinfo__hint { display: block; margin-top: 2px; font-size: 12.5px; color: var(--slate); }
.payinfo__copy {
  grid-area: copy; padding: 8px 12px; border: 1.5px solid var(--line-2); border-radius: 8px;
  background: var(--white); color: var(--ink); font: 700 13px/1 var(--f-sans); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
a.payinfo__copy { text-decoration: none; }
.payinfo__copy:hover { border-color: var(--cobalt); color: var(--cobalt); }
.payinfo__copy.is-done { border-color: #1fa855; color: #1fa855; }
.payinfo__warn { margin: 12px 14px 14px; font-size: 13.5px; color: var(--slate); }

/* ---------- 6. Full-screen phrase ---------- */

.phrase {
  position: relative; display: grid; align-items: center;
  min-height: 100svh; padding: 90px 0;
  background: var(--white);
}
.phrase::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, #f0f2f5 1px, transparent 1px);
  background-size: calc((min(100vw - 2 * var(--pad), 1280px)) / 12) 100%;
  background-position: center;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}
.phrase__text {
  position: relative; margin: 0; max-width: 15em;
  font: 400 clamp(42px, 6.2vw, 100px)/1.04 var(--f-serif);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.035em;
}
.phrase__text .w { color: #cfd4dc; transition: color 0.5s var(--ease); }
.phrase__text .w.is-lit { color: var(--ink); }

/* ---------- 7. How it works ---------- */

.how { background: var(--mist); }
.track { position: relative; --p: 0; }
.rail { position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line-2); }
.rail__fill { height: 100%; width: calc(var(--p) * 100%); background: var(--cobalt); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding-top: 40px; }
.step__dot {
  position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); box-shadow: inset 0 0 0 2px var(--line-2);
  transition: background-color 0.35s, box-shadow 0.35s;
}
.step.is-on .step__dot { background: var(--cobalt); box-shadow: 0 0 0 6px rgba(43, 89, 255, 0.16); }
.step__time { margin: 0 0 12px; font: 500 12.5px/1 var(--f-mono); color: var(--slate); }
.step h3 { margin-bottom: 10px; font: 400 30px/1.1 var(--f-serif); font-variation-settings: "opsz" 96; letter-spacing: -0.02em; }
.step p:not(.step__time) { margin: 0; color: var(--slate); font-size: 16.5px; max-width: 24em; }
.step { opacity: 0.45; transition: opacity 0.5s var(--ease); }
.step.is-on { opacity: 1; }

/* ---------- 8. About us ---------- */

.about__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px 80px; align-items: start; }
.about__team { display: flex; margin-top: 36px; }
.about__team i { width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--white); }
.about__team i:nth-child(1) { background: var(--ink); }
.about__team i:nth-child(2) { background: var(--cobalt); margin-left: -16px; }
.about__team i:nth-child(3) { background: var(--ice); margin-left: -16px; }
.about__lead { margin: 0 0 22px; font: 400 clamp(24px, 2.3vw, 32px)/1.3 var(--f-serif); font-variation-settings: "opsz" 72; letter-spacing: -0.015em; }
.about__text > p:not(.about__lead) { margin: 0 0 26px; max-width: 36em; color: var(--slate); }
.checks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.checks li::before {
  content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='m6.5 11.3 3 3 6-6.4' fill='none' stroke='%232b59ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

/* ---------- 9. FAQ ---------- */

.faq { padding-top: 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 32px 64px; }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary {
  position: relative; padding: 22px 56px 22px 0;
  font: 600 18px/1.4 var(--f-sans); letter-spacing: -0.01em; cursor: pointer; list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 32px; height: 32px; margin-top: -16px;
  border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 10.5v11M10.5 16h11' stroke='%23121722' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 32px no-repeat;
  transition: transform 0.35s var(--ease), background-color 0.2s, box-shadow 0.2s;
}
.faq__list summary:hover::after { box-shadow: inset 0 0 0 1.5px var(--ink); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { margin: 0 0 24px; max-width: 40em; color: var(--slate); }
.faq__list details[open] p { animation: drop 0.4s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Reviews ---------- */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reviews { padding-top: 0; }
.reviews__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 80px; align-items: start; }
.reviews__summary { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-weight: 600; }
.reviews__summary .review__stars svg { width: 20px; height: 20px; }
.reviews__empty { margin-top: 30px; padding: 30px; border-radius: 18px; background: var(--mist); }
.reviews__ghost { display: flex; gap: 6px; margin-bottom: 16px; }
.reviews__ghost svg { width: 30px; height: 30px; fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-linejoin: round; }
.reviews__empty p { margin: 0; max-width: 28em; color: var(--slate); }

.reviews__list { display: grid; gap: 16px; margin: 30px 0 0; padding: 0; list-style: none; }
.review { padding: 24px 26px; border-radius: 16px; background: var(--mist); }
.review__stars { display: flex; gap: 3px; }
.review__stars svg { width: 18px; height: 18px; fill: #e1e4ea; }
.review__stars svg.is-on { fill: #f5b400; }
.review__text { margin: 14px 0 16px; font: 400 20px/1.45 var(--f-serif); font-variation-settings: "opsz" 36; letter-spacing: -0.01em; }
.review__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 14.5px; color: var(--slate); }
.review__name { font-weight: 700; color: var(--ink); }
.review__site { font: 500 13px/1.4 var(--f-mono); color: var(--cobalt); text-decoration: none; border-bottom: 1px solid rgba(43, 89, 255, 0.3); }
.review__site:hover { border-bottom-color: var(--cobalt); }

.review-form {
  position: relative; padding: clamp(22px, 3vw, 38px);
  border-radius: 20px; background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(18, 23, 34, 0.35);
}
.review-form__body { display: grid; gap: 18px; }
.review-form__title { font: 400 clamp(28px, 2.6vw, 36px)/1.1 var(--f-serif); font-variation-settings: "opsz" 96; letter-spacing: -0.02em; }
.review-form__lead { margin: -8px 0 4px; color: var(--slate); }
.review-form__send { justify-self: start; margin-top: 4px; }
.review-form__send[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* stars like in a ride app: big, tap to rate, a word for each rating */
.stars { margin: 0; padding: 18px 18px 14px; border: 0; border-radius: 16px; background: var(--mist); text-align: center; }
.stars legend { float: left; width: 100%; margin-bottom: 8px; padding: 0; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.stars__row { clear: both; display: flex; justify-content: center; gap: 6px; }
.stars__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.stars__star { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; cursor: pointer; }
.stars__star svg {
  width: 42px; height: 42px; fill: transparent; stroke: #c3c9d3; stroke-width: 1.4; stroke-linejoin: round;
  transition: fill 0.15s, stroke 0.15s, transform 0.2s var(--ease);
}
.stars__star:hover svg { transform: scale(1.12); }
.stars__star.is-on svg { fill: #f5b400; stroke: #f5b400; }
.stars__star.is-pop svg { animation: star-pop 0.5s var(--ease); }
@keyframes star-pop { 0% { transform: scale(0.7); } 55% { transform: scale(1.28); } 100% { transform: scale(1); } }
.stars__input:focus-visible + .stars__star { outline: 2.5px solid var(--cobalt); outline-offset: 1px; }
.stars__label { margin: 6px 0 0; min-height: 1.5em; font-weight: 700; color: var(--ink); }
.stars.is-bad { box-shadow: inset 0 0 0 1.5px #e5484d; }

/* ---------- 10. Contact ---------- */

.contact { background: var(--mist); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px 80px; align-items: start; }
.contact__intro > p:not([class]) { margin: 20px 0 30px; max-width: 26em; color: var(--slate); font-size: 18.5px; }
.direct { display: grid; gap: 14px; margin: 40px 0 0; }
.direct div { display: flex; align-items: baseline; gap: 16px; }
.direct dt { width: 84px; flex: none; font: 500 12.5px/1.4 var(--f-mono); color: var(--slate); }
.direct dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.direct a { text-decoration: none; border-bottom: 1.5px solid var(--line-2); transition: border-color 0.2s, color 0.2s; }
.direct dd span { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 400; color: var(--slate); }
.hours {
  display: flex; align-items: flex-start; gap: 12px; max-width: 30em; margin: 30px 0 0; padding: 16px 18px;
  border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15.5px; color: var(--ink-2);
}
.hours svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--cobalt); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.direct a:hover { color: var(--cobalt); border-color: var(--cobalt); }
.survey {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 30em; margin: 30px 0 0;
  padding: 18px; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
}
.survey img { display: block; width: 150px; height: 150px; }
.survey figcaption { font-size: 15.5px; color: var(--ink-2); }
.survey figcaption b { display: block; margin-bottom: 2px; color: var(--ink); }
.request__head h3 { font: 400 clamp(24px, 2.4vw, 30px)/1.15 var(--f-serif); letter-spacing: -0.02em; color: var(--ink); }
.request__head p { margin: 8px 0 0; font-size: 15.5px; color: var(--slate); }
.contact__side { display: grid; gap: 20px; min-width: 0; }
.contact__side .survey {
  display: flex; max-width: none; margin: 0; padding: clamp(22px, 3vw, 38px); border-radius: 20px;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(18, 23, 34, 0.35);
}
.survey__title { font: 400 clamp(26px, 2.8vw, 34px)/1.12 var(--f-serif); letter-spacing: -0.02em; color: var(--ink); }
.survey__hint { margin: 6px 0 0; font-size: 14px; color: var(--slate); }
.survey__hint:has(+ .survey__qr[hidden]) { display: none; }
.survey__qr { width: 112px; height: 112px; }
.survey__qr svg { display: block; width: 100%; height: 100%; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.survey__qr[hidden] { display: none; }
.survey__text { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.survey__text b { display: block; margin-bottom: 2px; color: var(--ink); }

.request {
  position: relative; padding: clamp(22px, 3vw, 38px);
  border-radius: 20px; background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(18, 23, 34, 0.35);
}
.request__body { display: grid; gap: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--line-2); border-radius: 10px;
  background: var(--white); color: var(--ink);
  font: 400 16.5px/1.4 var(--f-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 116px; }
.field input::placeholder, .field textarea::placeholder { color: #98a0ad; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(43, 89, 255, 0.14); }
.field [aria-invalid="true"] { border-color: #e5484d; }
.request__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.request__send { justify-self: start; margin-top: 4px; }
.request__send[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.request__note { margin: 0; font-size: 14.5px; color: var(--slate); }
.request__note.is-error { color: #c4262c; }
.request__note a { color: var(--cobalt); font-weight: 600; }
.request__done { display: grid; justify-items: start; gap: 10px; padding: 18px 0; outline: none; }
.request__done svg { width: 52px; height: 52px; margin-bottom: 8px; fill: none; stroke: var(--cobalt); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.request__done svg circle { fill: var(--ice); stroke: none; }
.request__done h3 { font: 400 34px/1.1 var(--f-serif); letter-spacing: -0.02em; }
.request__done p { margin: 0; color: var(--slate); max-width: 30em; }
/* the request couldn't go out by itself: send it in one tap */
.request__alt { display: grid; justify-items: start; gap: 12px; padding: 8px 0; outline: none; }
.request__alt h3 { font: 400 34px/1.1 var(--f-serif); letter-spacing: -0.02em; }
.request__alt p { margin: 0; color: var(--slate); max-width: 32em; }
.request__alt-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0; }
.request__alt-mail { font-size: 14.5px; }
.request__alt-mail b { color: var(--ink); overflow-wrap: anywhere; }
.request__back { padding: 0; border: 0; background: none; color: var(--cobalt); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.request__back:hover { text-decoration: underline; }

/* ---------- Payment page (pay.html) ---------- */

/* amount and tip */
.amount {
  margin-top: 36px; padding: clamp(20px, 3vw, 30px); border-radius: 20px; background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 24px 50px -40px rgba(18, 23, 34, 0.35);
}
.amount__title { margin-bottom: 16px; font-size: clamp(24px, 2.4vw, 32px); }
.amount__row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 18px 28px; align-items: end; }
.amount__input { position: relative; }
.amount__input span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--slate); }
.amount__input input {
  width: 100%; padding: 13px 14px 13px 30px; border: 1.5px solid var(--line-2); border-radius: 10px;
  font: 700 18px/1.3 var(--f-sans); color: var(--ink); background: var(--white);
}
.amount__input input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(43, 89, 255, 0.14); }
.tips { margin: 0; padding: 0; border: 0; }
.tips legend { margin-bottom: 8px; padding: 0; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.tips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.tip {
  min-width: 64px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 10px;
  background: var(--white); color: var(--ink); font: 700 15px/1 var(--f-sans); cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.tip:hover { border-color: var(--ink); }
.tip[aria-pressed="true"] { border-color: var(--cobalt); background: var(--ice); color: var(--cobalt); }
.amount__who { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 28px; margin-top: 18px; }
.amount__hint { grid-column: 1 / -1; margin: -4px 0 0; font-size: 13.5px; color: var(--slate); }
/* "I've paid" under each way of paying */
.paid { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.paid__label { font-weight: 600; font-size: 15px; }
.paid__status { flex: 1 1 100%; margin: 0; font-size: 14.5px; color: var(--ink-2); }
.paid__status:empty { display: none; }
.paid__status.is-error { color: #c4262c; }
.amount__total { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.amount__total p { margin: 0; color: var(--slate); }
.amount__total b { font-size: 22px; color: var(--ink); letter-spacing: -0.01em; }

.paypage__main { min-height: calc(100svh - var(--top-h)); padding: clamp(36px, 5vw, 72px) 0 clamp(72px, 9vw, 120px); background: var(--mist); }
.paypage .top__in .paypage__back { margin-left: auto; }
.paypage__head h1 { font: 400 clamp(40px, 5vw, 68px)/1.02 var(--f-serif); font-variation-settings: "opsz" 144; letter-spacing: -0.03em; }
.paypage__head p { margin: 16px 0 0; max-width: 34em; color: var(--slate); font-size: 18px; }
.paypage__main > .wrap { max-width: 880px; }
.paypage__grid { margin-top: 40px; }

.methods { display: grid; gap: 10px; }
.method {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px;
  border: 0; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.method:hover { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.method svg {
  width: 44px; height: 44px; padding: 10px; flex: none; border-radius: 12px; background: var(--ice);
  fill: none; stroke: var(--cobalt); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.method b { display: block; font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.method small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--slate); }
.method[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--cobalt), 0 18px 34px -24px rgba(43, 89, 255, 0.7); }

.method-panel {
  padding: clamp(24px, 3.4vw, 40px); border-radius: 20px; background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(18, 23, 34, 0.35);
}
.method-panel.is-in { animation: drop 0.45s var(--ease); }
/* the details sit right under the chosen button */
.methods .method-panel { margin: 0 0 8px; padding: clamp(22px, 3vw, 32px); }
.method-panel h2 { margin-bottom: 12px; font-size: clamp(26px, 2.6vw, 34px); }
.method-panel > p { margin: 0 0 6px; max-width: 34em; color: var(--slate); }
.method-panel .checks { margin: 18px 0 6px; }
.method-panel__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.method-panel__or { margin-top: 26px !important; color: var(--ink) !important; font-weight: 600; }
.method-panel__warn { margin-top: 18px !important; font-size: 14px; }
.payinfo__list--page { margin-top: 12px; padding: 0; }

.paypage__after {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; padding: 18px 20px;
  border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
}
.paypage__after p { flex: 1 1 260px; margin: 0; color: var(--ink-2); }
.paypage__contacts { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 920px) {
  .paypage__grid, .amount__row, .amount__who { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Footer ---------- */

.foot { padding: 44px 0 40px; border-top: 1px solid var(--line); background: var(--white); font-size: 15px; color: var(--slate); }
.foot__in { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo line nav" "copy copy copy"; gap: 24px 40px; align-items: center; }
.foot .logo { grid-area: logo; }
.foot__line { grid-area: line; margin: 0; }
.foot__nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__nav a { color: var(--ink-2); font-weight: 500; text-decoration: none; }
.foot__nav a:hover { color: var(--cobalt); }
.foot__copy { grid-area: copy; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; }

/* ---------- Floating Telegram button (the chat button sits under it) ---------- */

.tg-float {
  position: fixed; right: 22px; bottom: 96px; z-index: 60;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--white); color: #229ed9;
  box-shadow: 0 0 0 1px rgba(18, 23, 34, 0.08), 0 14px 30px -12px rgba(18, 23, 34, 0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.tg-float svg { width: 26px; height: 26px; transform: translateX(-1px); }
.wa-float { bottom: 160px; color: #1fa855; }
.wa-float svg { transform: none; }
.tg-float:hover { transform: translateY(-3px); }
.tg-float__tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%);
  padding: 8px 12px; border-radius: 8px; background: var(--ink); color: #fff;
  font: 600 13.5px/1 var(--f-sans); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.3s var(--ease);
}
.tg-float:hover .tg-float__tip, .tg-float:focus-visible .tg-float__tip { opacity: 1; transform: translate(0, -50%); }
.js .tg-float { animation: float-in 0.8s var(--ease) 1.2s both; }
@keyframes float-in { from { opacity: 0; transform: translateY(16px) scale(0.9); } }

/* ---------- Motion: page entrance and blocks gliding in.
   These run even with "reduce motion" on: the owner's PC has Windows animations off
   and the effects are part of the brief. ---------- */

.js .hero__title, .js .hero__lead { animation: rise 1s var(--ease) both; }
.js .hero__lead { animation-delay: 0.15s; }
.js .hero__stack { animation: pop 1.2s var(--ease) 0.25s both; }
@keyframes rise { from { opacity: 0; transform: translateY(34px); } }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(0.96); } }

.js [data-reveal] {
  opacity: 0; transform: translateY(56px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="left"] { transform: translateX(-70px); }
.js [data-reveal="right"] { transform: translateX(70px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .case { grid-template-columns: minmax(0, 1fr); }
  .case--flip .case__bench { order: 0; }
  .case__info { max-width: 640px; }
  .why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why__list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .why__list li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
  .extra__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .top__nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "lead" "stack";
    grid-template-rows: auto; row-gap: 26px; min-height: 0;
  }
  .hero__stack { margin-top: 12px; }
  .head, .faq__grid, .contact__grid, .about__grid, .extra__head, .deal__grid, .reviews__grid { grid-template-columns: minmax(0, 1fr); }
  .kinds { grid-template-columns: minmax(0, 1fr); }

  /* the showcase becomes a simple list with a picture under each step */
  .show__grid { grid-template-columns: minmax(0, 1fr); }
  .show__stage { display: none; }
  .show__step, .show__step:first-child, .show__step:last-child { min-height: 0; padding: 0 0 48px; border: 0; opacity: 1; }
  .show__mob { display: block; width: 100%; height: auto; margin-top: 20px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 24px 40px -28px rgba(18, 23, 34, 0.5); }
  .about__team { margin-top: 20px; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .why__list { grid-template-columns: minmax(0, 1fr); }
  .why__list li, .why__list li + li { padding: 28px 0 8px; border-left: 0; margin-top: 0; }
  .why__list li + li { border-top: 1px solid var(--line); }

  .rail { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .rail__fill { width: 100%; height: calc(var(--p) * 100%); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .step { padding: 0 0 0 44px; }
  .step__dot { top: 2px; }

  .kinds li { grid-template-columns: minmax(0, 1fr); }
  .kinds__link { grid-column: 1; }
  .foot__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "logo" "line" "nav" "copy"; }
  .tg-float { right: 16px; bottom: 86px; width: 50px; height: 50px; }
  .wa-float { bottom: 146px; }
}

@media (max-width: 520px) {
  .top .btn--sm { padding: 0 14px; font-size: 14px; }
  .actions .btn, .contact__buttons .btn { flex: 1 1 auto; }
  .request__send { justify-self: stretch; }
  .extra__list, .pay { grid-template-columns: minmax(0, 1fr); }
  .review-form__send { justify-self: stretch; }
  .stars__star { width: 48px; height: 48px; }
  .stars__star svg { width: 38px; height: 38px; }
  .pay li:first-child { grid-column: auto; }
  .case__bench { padding-right: 76px; }
  .browser__bar { height: 30px; padding: 0 10px; gap: 5px; }
  .browser__bar i { width: 8px; height: 8px; }
  .browser__url { height: 20px; font-size: 10.5px; }
}

/* ---------- Survey page (survey.html) ---------- */
.surveypage .paypage__main > .wrap { max-width: 760px; }
.survey-form { margin-top: 36px; }
.survey-form__body { display: grid; gap: 18px; }
.survey-card {
  display: grid; gap: 26px; min-width: 0; margin: 0; padding: clamp(22px, 3.4vw, 36px);
  border: 0; border-radius: 20px; background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -44px rgba(18, 23, 34, 0.35);
}
.survey-card__head { display: grid; gap: 6px; float: left; width: 100%; padding: 0; }
.survey-card__head + * { clear: both; }
.survey-card__num { font: 500 12.5px/1.4 var(--f-mono); color: var(--cobalt); letter-spacing: 0.04em; }
.survey-card__title { font: 400 clamp(26px, 3vw, 34px)/1.1 var(--f-serif); letter-spacing: -0.02em; color: var(--ink); }
.survey-q { min-width: 0; }
.survey-card__note { clear: both; margin: -14px 0 0; font-size: 15px; color: var(--slate); }
.survey-q__help { margin: -4px 0 10px; font-size: 14px; line-height: 1.45; color: var(--slate); }
.survey-q__group { min-width: 0; margin: 0; padding: 0; border: 0; }
.survey-q__label, .survey-q__group > legend {
  display: block; margin-bottom: 10px; padding: 0; font-size: 15.5px; font-weight: 700; line-height: 1.4; color: var(--ink);
}
.survey-q.field .survey-q__label { margin-bottom: 8px; }
.survey-q__options { display: grid; gap: 8px; }
.survey-opt {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer;
  transition: box-shadow 0.15s, background-color 0.15s;
}
.survey-opt:hover { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.survey-opt input[type=radio], .survey-opt input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.survey-opt__mark {
  flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color 0.15s, box-shadow 0.15s;
}
.survey-opt input[type=radio] + .survey-opt__mark { border-radius: 50%; }
.survey-opt__text { font-size: 15.5px; color: var(--ink-2); }
.survey-opt:has(input:checked) { background: var(--ice); box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.survey-opt input:checked + .survey-opt__mark {
  background: var(--cobalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  box-shadow: none;
}
.survey-opt input[type=radio]:checked + .survey-opt__mark { background: var(--white); box-shadow: inset 0 0 0 6px var(--cobalt); }
.survey-opt input:focus-visible + .survey-opt__mark { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.survey-opt.is-off { opacity: 0.45; cursor: not-allowed; }
.survey-opt__other {
  flex: 1; min-width: 0; padding: 6px 2px; border: 0; border-bottom: 1.5px solid var(--line-2); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 15.5px/1.4 var(--f-sans);
}
.survey-opt__other:focus { outline: none; border-color: var(--cobalt); }
.survey-q__clear {
  margin-top: 8px; padding: 0; border: 0; background: none; color: var(--slate);
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.survey-q__clear:hover { color: var(--cobalt); }
.survey-q__error { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: #c4262c; }
.survey-form__foot { display: grid; justify-items: start; gap: 12px; padding: 8px 4px 0; }
.survey-form__send { min-width: 200px; }
.survey-form__done { padding: clamp(28px, 4vw, 44px); border-radius: 20px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.survey-form__done .btn { margin-top: 10px; }
.survey-form__noscript { margin: 0; padding: 20px; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }


/* ---------- Calendar "from which day to which day" (dates.js) ---------- */
.cal { display: grid; gap: 12px; min-width: 0; max-width: 420px; padding: clamp(10px, 3vw, 14px); border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.cal__top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cal__pickers { display: flex; flex: 1; justify-content: center; gap: 6px; min-width: 0; }
.cal__select {
  min-width: 0; padding: 8px 26px 8px 10px; border: 1.5px solid var(--line-2); border-radius: 10px; appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23586172' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 10px center / 11px no-repeat;
  color: var(--ink); font: 600 15px/1.2 var(--f-sans); cursor: pointer;
}
.cal__select:focus { outline: none; border-color: var(--cobalt); }
.cal__select + .cal__select { flex: none; }
@media (max-width: 420px) { .cal__select { padding: 7px 22px 7px 8px; background-position: right 7px center; font-size: 14px; } }
.cal__nav {
  flex: none; width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--mist);
  color: var(--ink); font: 600 22px/1 var(--f-sans); cursor: pointer;
}
.cal__nav:hover:not(:disabled) { background: var(--ice); color: var(--cobalt); }
.cal__nav:disabled { opacity: 0.35; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal__wd { padding: 4px 0; text-align: center; font: 500 12px/1.4 var(--f-mono); color: var(--slate); }
.cal__day {
  aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 9px; background: transparent;
  color: var(--ink); font: 600 15px/1 var(--f-sans); cursor: pointer; transition: background-color 0.12s, color 0.12s;
}
.cal__day:hover:not(:disabled) { background: var(--ice); color: var(--cobalt); }
.cal__day:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 1px; }
.cal__day.is-today { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.cal__day.is-out { color: #b4bac4; cursor: default; }
.cal__day.is-busy { background: #eef0f3; color: #a3aab5; text-decoration: line-through; cursor: not-allowed; }
.cal__day.is-in { background: var(--ice); color: var(--cobalt); border-radius: 4px; }
.cal__day.is-start, .cal__day.is-end { background: var(--cobalt); color: #fff; }
.cal__day.is-start { border-radius: 9px 4px 4px 9px; }
.cal__day.is-end { border-radius: 4px 9px 9px 4px; }
.cal__day.is-start.is-end { border-radius: 9px; }
.cal__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.cal__picked { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.cal__clear { flex: none; padding: 0; border: 0; background: none; color: var(--cobalt); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cal__clear[hidden] { display: none; }
.cal__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--slate); }
.cal__key { display: inline-flex; align-items: center; gap: 6px; }
.cal__key i { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.cal__key--busy i { background: #eef0f3; box-shadow: none; }
.cal__key--picked i { background: var(--cobalt); box-shadow: none; }
.cal__error { margin: 0; font-size: 14px; font-weight: 600; color: #c4262c; }
.field__label { display: block; margin-bottom: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.field__help { margin: -4px 0 10px; font-size: 14px; line-height: 1.45; color: var(--slate); }

/* "Already paid? Let us know" on the payment page */
.paidbox {
  margin-top: 24px; padding: clamp(22px, 3vw, 32px);
  border-radius: 20px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
}
.paidbox__title { margin: 0 0 10px; font-size: clamp(24px, 2.4vw, 30px); }
.paidbox__text { margin: 0 0 18px; max-width: 40em; color: var(--ink-2); }
.paidbox__form { display: grid; gap: 18px; margin-top: 22px; }
.paidbox__form[hidden] { display: none; }
.paidbox__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field select {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line-2); border-radius: 10px;
  background: var(--white); color: var(--ink); font: 400 16.5px/1.4 var(--f-sans);
}
.field select:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(43, 89, 255, 0.14); }
.paidbox__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.paidbox__alt p { flex: 1 1 260px; margin: 0; font-size: 15px; color: var(--slate); }
.paidbox__done { margin-top: 18px; padding: 18px 20px; border-radius: 14px; background: var(--mist); }
.paidbox__done h3 { margin: 0 0 6px; font-size: 20px; }
.paidbox__done p { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) { .paidbox__grid { grid-template-columns: minmax(0, 1fr); } }

/* Delete under a review: only on the owner's computer (local-server.py) */
.review__delete { margin-top: 12px; padding: 7px 14px; border: 1.5px solid #e5b4b6; border-radius: 10px; background: #fff; color: #c4262c; font: 600 14px/1.2 var(--f-sans); cursor: pointer; }
.review__delete:hover { background: #fdeeee; }
.review__delete.is-sure { background: #c4262c; border-color: #c4262c; color: #fff; }
.review__delete[disabled] { opacity: 0.6; cursor: progress; }
