/* ==========================================================================
   Кристина Журавлева — психолог. Стили сайта-визитки.
   ========================================================================== */

:root {
  --bg: #f7f2ec;
  --bg-deep: #efe7dd;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-solid: #fffdfa;
  --ink: #2c3044;
  --ink-soft: #484d63;
  --muted: #6c7088;
  --accent: #5a69ab;
  --accent-deep: #475591;
  --accent-soft: #dfe3f4;
  --peach: #ecd3c1;
  --sage: #cfd9cc;
  --line: rgba(44, 48, 68, 0.12);
  --line-strong: rgba(44, 48, 68, 0.2);
  --shadow: 0 1px 2px rgba(44, 48, 68, 0.04), 0 12px 40px -12px rgba(44, 48, 68, 0.16);
  --shadow-lg: 0 2px 4px rgba(44, 48, 68, 0.04), 0 30px 80px -24px rgba(44, 48, 68, 0.28);

  --display: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* мягкое «зерно» поверх фона */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
em { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Animated background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, #fbf8f4 0%, var(--bg) 55%, var(--bg-deep) 100%);
}
.bg__blob {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  will-change: transform;
  animation: drift 32s var(--ease) infinite alternate;
}
.bg__blob--1 {
  top: -30vmax; left: -20vmax;
  background: radial-gradient(circle, rgba(151, 165, 222, 0.42) 0%, rgba(151, 165, 222, 0) 65%);
}
.bg__blob--2 {
  top: 10vh; right: -30vmax;
  background: radial-gradient(circle, rgba(236, 200, 176, 0.55) 0%, rgba(236, 200, 176, 0) 65%);
  animation-duration: 38s;
  animation-delay: -12s;
}
.bg__blob--3 {
  bottom: -35vmax; left: 10vw;
  background: radial-gradient(circle, rgba(196, 214, 196, 0.5) 0%, rgba(196, 214, 196, 0) 65%);
  animation-duration: 44s;
  animation-delay: -20s;
}
.bg__blob--4 {
  top: 40vh; left: -25vmax;
  width: 50vmax; height: 50vmax;
  background: radial-gradient(circle, rgba(210, 190, 226, 0.38) 0%, rgba(210, 190, 226, 0) 65%);
  animation-duration: 36s;
  animation-delay: -6s;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(8vw, 6vh, 0) scale(1.08); }
  66%  { transform: translate3d(-6vw, 10vh, 0) scale(0.95); }
  100% { transform: translate3d(4vw, -6vh, 0) scale(1.04); }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.h2 em, .hero__name em, .hero__lead em {
  color: var(--accent);
  font-weight: 400;
}
.h3 {
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  font: 600 15.5px/1.2 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  --btn-bg: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(71, 85, 145, 0.55);
}
.btn--primary:hover {
  --btn-bg: var(--accent-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgba(71, 85, 145, 0.65);
}
.btn--ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { color: var(--accent-deep); border-color: var(--accent); background: #fff; transform: translateY(-2px); }
.btn--small { min-height: 42px; padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn .icon, .btn__arrow {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.header.is-scrolled {
  background: rgba(247, 242, 236, 0.78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo__mark {
  display: block;
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--bg-deep);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 3px rgba(90, 105, 171, 0.35), 0 6px 16px -6px rgba(44, 48, 68, 0.35);
}
.logo__mark img { width: 100%; height: 100%; object-fit: cover; }
.logo__text { font: 600 17px/1.15 var(--display); letter-spacing: -0.02em; }
.nav { display: none; gap: 30px; }
.nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
@media (max-width: 420px) {
  .logo__text { font-size: 15.5px; }
  .header .btn--small { padding: 9px 16px; }
}
@media (max-width: 360px) {
  .logo__text { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(20px, 4vw, 48px) 0 clamp(64px, 8vw, 110px);
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
}
.hero__grid {
  display: grid;
  gap: 44px;
  align-items: center;
}
.hero__text { position: relative; z-index: 2; }
.hero__title { display: flex; flex-direction: column; }
.hero__title .eyebrow { margin-bottom: 14px; }
.hero__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(44px, 7.4vw, 84px);
  line-height: 1;
  letter-spacing: -0.045em;
}
.hero__name em { display: inline-block; font-weight: 300; }
.hero__lead {
  margin: 26px 0 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 520px;
}
.hero__desc { color: var(--ink-soft); max-width: 500px; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  font-size: 14.5px;
  color: var(--muted);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 9px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.7; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.socials__link {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  transition: transform 0.3s var(--ease), color 0.3s, border-color 0.3s, background 0.3s;
}
.socials__link svg, .link-btn svg, .sticky-cta__tg svg {
  width: 21px; height: 21px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
svg .fill { fill: currentColor; stroke: none; }
.socials__link:hover { color: var(--accent); border-color: var(--accent); background: #fff; transform: translateY(-3px); }
.socials__link.is-pending { opacity: 0.4; pointer-events: none; }

/* Portrait */
.hero__visual {
  position: relative;
  width: min(82vw, 440px);
  margin: 0 auto;
  justify-self: center;
}
.portrait {
  position: relative;
  z-index: 1;
  border-radius: 999px 999px 28px 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
  background: var(--bg-deep);
  animation: float 9s ease-in-out infinite;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  background: linear-gradient(180deg, rgba(247, 242, 236, 0) 70%, rgba(90, 105, 171, 0.12) 100%);
  pointer-events: none;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.orbits {
  position: absolute;
  left: 50%; top: 50%;
  width: 150%;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}
.orbits ellipse { fill: none; stroke: var(--accent); stroke-opacity: 0.35; stroke-width: 1.1; }
.orbits__ring { transform-origin: 300px 350px; }
.orbits__ring--a { animation: spin 60s linear infinite; }
.orbits__ring--b { animation: spin 90s linear infinite reverse; }
.orbits__ring--b ellipse { stroke: #c79f86; stroke-opacity: 0.4; }
.orbits__dot { fill: var(--accent); opacity: 0.75; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
}
.badge b { color: var(--ink); font-weight: 600; }
.badge--top { top: 14%; left: -8%; animation: float 7s ease-in-out infinite; animation-delay: -2s; }
.badge--bottom { bottom: 10%; right: -6%; animation: float 8s ease-in-out infinite; animation-delay: -4s; }
.badge__icon {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.badge__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.badge__num {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--ink);
  font: 600 17px/1 var(--display);
  letter-spacing: -0.03em;
}
@media (max-width: 520px) {
  .badge { font-size: 12px; padding: 9px 13px 9px 9px; }
  .badge--top { left: -4%; }
  .badge--bottom { right: -3%; }
  .badge__icon, .badge__num { width: 32px; height: 32px; }
}

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  display: none;
  width: 26px; height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}
.scroll-hint span {
  position: absolute;
  left: 50%; top: 9px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: wheel 2.2s var(--ease) infinite;
}
@keyframes wheel {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- About ---------- */
.about__grid { display: grid; gap: 48px; align-items: center; }
.about__photo {
  position: relative;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}
.about__photo picture {
  display: block;
  border-radius: 28px 28px 999px 999px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border-radius: 28px 28px 999px 999px;
  border: 1px solid var(--accent);
  opacity: 0.35;
  z-index: -1;
}
.about__text { max-width: 600px; color: var(--ink-soft); }
.about__text .h2 { color: var(--ink); }
.quote {
  position: relative;
  margin: 30px 0;
  padding: 6px 0 6px 28px;
  border-left: 1px solid var(--accent);
}
.quote p {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 2.3vw, 25px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------- Cards / Approach ---------- */
.card {
  position: relative;
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card p { color: var(--ink-soft); margin: 0; }
.approach__grid { display: grid; gap: 20px; }
.card__glyph {
  width: 56px; height: 56px;
  margin-bottom: 22px;
  color: var(--accent);
}
.card__glyph svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; }
.card--approach:hover .card__glyph svg { animation: spin 12s linear infinite; }

/* ---------- Requests ---------- */
.requests__list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.request {
  position: relative;
  padding: 30px clamp(22px, 3vw, 34px) 32px;
  background: rgba(251, 248, 244, 0.86);
  transition: background-color 0.4s;
}
.request:hover { background: rgba(255, 255, 255, 0.95); }
.request__title {
  font-family: var(--display);
  font-size: 19.5px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.request p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Format / Steps ---------- */
.format__grid { display: grid; gap: 48px; align-items: start; }
.format__intro > p { color: var(--ink-soft); max-width: 460px; }
.format__photo {
  margin-top: 32px;
  max-width: 360px;
  border-radius: 999px 999px 24px 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
  display: none;
}
.format__photo img { width: 100%; height: 100%; object-fit: cover; }
.steps { position: relative; display: grid; gap: 14px; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.step p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.step .h3 { font-size: 19px; margin-bottom: 4px; }
.step__num {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font: 500 17px/1 var(--display);
}
.step--note {
  display: block;
  background: transparent;
  border: 1px dashed var(--line-strong);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: center;
}
.welcome {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(19px, 2.2vw, 23px) !important;
  line-height: 1.3;
  color: var(--ink) !important;
}
.welcome em { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq__wrap { max-width: 880px; }
.faq__list { border-top: 1px solid var(--line-strong); }
.qa { border-bottom: 1px solid var(--line-strong); }
.qa summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 24px 56px 24px 0;
  font-family: var(--display);
  font-size: clamp(17px, 1.9vw, 20px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  transition: color 0.3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent); }
.qa summary::before,
.qa summary::after {
  content: "";
  position: absolute;
  right: 12px; top: 50%;
  width: 16px; height: 1.5px;
  background: var(--accent);
  transition: transform 0.4s var(--ease);
}
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0deg); }
.qa p { margin: 0; padding: 0 56px 26px 0; color: var(--ink-soft); }
.qa[open] p { animation: fadeDown 0.45s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(90px, 11vw, 140px); }
.contact__grid { display: grid; gap: 44px; align-items: start; }
.contact__info > p { color: var(--ink-soft); max-width: 470px; }
.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
  max-width: 480px;
}
.link-btn {
  --brand: var(--accent);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 1px 2px rgba(44, 48, 68, 0.05);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s, color 0.3s;
  overflow: hidden;
}
.link-btn svg {
  flex: none;
  padding: 7px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
}
.link-btn small {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.link-btn:hover {
  color: var(--ink);
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 40%, transparent);
  box-shadow: var(--shadow);
}
.link-btn.is-pending { opacity: 0.55; pointer-events: none; }
.link-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 479px) {
  .link-btn { padding: 10px 12px; gap: 10px; }
  .link-btn small { display: none; }
}
.link-btn--telegram { --brand: #2a9bd8; }
.link-btn--whatsapp { --brand: #25a35a; }
.link-btn--viber { --brand: #7360f2; }
.link-btn--instagram { --brand: #d1477a; }
.link-btn--threads { --brand: #2c3044; }
.link-btn--facebook { --brand: #1877f2; }

.form-card {
  position: relative;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 28px;
  background: rgba(255, 253, 250, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.form__title { font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; margin-bottom: 6px; }
.form__sub { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.opt { font-weight: 400; color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.4 var(--sans); /* 16px — без автозума на iOS */
  transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #a3a6b6; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(90, 105, 171, 0.14);
}
.field.has-error input { border-color: #c0566b; box-shadow: 0 0 0 4px rgba(192, 86, 107, 0.1); }

.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { margin: 0; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.25s;
}
.segmented label:hover span { border-color: var(--accent); }
.segmented input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  margin: 6px 0 22px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.check input {
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.check.has-error { color: #b04a5f; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { margin: 14px 0 0; font-size: 14px; min-height: 1.4em; color: var(--muted); }
.form__status.is-error { color: #b04a5f; }
.btn.is-loading { pointer-events: none; opacity: 0.8; }
.btn.is-loading .btn__arrow { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: translateX(6px); opacity: 0.4; } }

.form-success { text-align: center; padding: 30px 6px; outline: none; }
.form-success p { color: var(--ink-soft); }
.form-success__icon { width: 74px; height: 74px; margin: 0 auto 18px; color: var(--accent); }
.form-success__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.form-success__icon circle { stroke-dasharray: 126; stroke-dashoffset: 126; animation: draw 0.9s var(--ease) forwards; }
.form-success__icon path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.5s 0.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Footer ---------- */
.footer {
  padding: 44px 0 calc(110px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(239, 231, 221, 0.55);
  font-size: 14px;
  color: var(--muted);
}
.footer__inner { display: grid; gap: 22px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__name { margin: 0; font: 600 18px/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.footer__role { margin: 0; font-size: 13.5px; }
.socials--footer { margin: 0; }
.footer__note { max-width: 640px; margin: 0; font-size: 13px; line-height: 1.6; }
.footer__copy { margin: 0; font-size: 13px; }
.footer a { color: var(--ink-soft); }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lg);
  transform: translateY(140%);
  transition: transform 0.5s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { flex: 1; min-height: 50px; padding: 12px 18px; font-size: 15px; }
.sticky-cta__tg {
  display: grid; place-items: center;
  width: 50px; height: 50px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Layout: tablet & desktop ---------- */
@media (min-width: 700px) {
  .requests__list { grid-template-columns: repeat(2, 1fr); }
  .approach__grid { grid-template-columns: repeat(2, 1fr); }
  .links { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
  .footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer__note, .footer__copy { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  :root { --header-h: 78px; }
  body { font-size: 17.5px; }
  .nav { display: flex; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .hero__visual { width: 440px; }
  .scroll-hint { display: block; }
  .about__grid { grid-template-columns: 0.85fr 1.15fr; gap: 90px; }
  .requests__list { grid-template-columns: repeat(3, 1fr); }
  .format__grid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; }
  .format__intro { position: sticky; top: calc(var(--header-h) + 30px); }
  .format__photo { display: block; }
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 70px; }
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-cta { display: none; }
  .footer { padding-bottom: 44px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
