/* psychologist-site — design tokens, fonts and mobile-first base layout.
   Lavender palette: Cormorant Garamond headings in a violet accent on a
   pale lilac background, dark plum Montserrat body text, soft bordered cards. */

/* ---------- Fonts (self-hosted, woff2, Cyrillic + Latin subsets) ---------- */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-cyrillic-600-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/montserrat-cyrillic-400-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/montserrat-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/montserrat-cyrillic-500-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/montserrat-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  --color-bg: #f8f7fb;
  --color-surface: #ffffff;
  --color-text: #26213a;
  --color-text-muted: #544e6e;
  --color-accent: #5a489c;
  --color-accent-strong: #453680;
  --color-accent-soft: #e6e1f5;
  --color-on-accent: #ffffff;
  --color-card: #eeebf6;
  --color-border: #dad6e8;
  --color-error: #b3261e;
  --color-success: #1d5e36;
  --color-success-bg: #e6f2ea;

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-h2: clamp(1.875rem, 1.5rem + 1.8vw, 2.75rem);
  --text-h1: clamp(2.125rem, 1.6rem + 2.8vw, 3.5rem);
  --leading-body: 1.65;
  --leading-heading: 1.2;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-section: clamp(3.5rem, 2.5rem + 5vw, 7rem);

  --gutter: 1rem;
  --container: none;
  --measure: 44rem;
  --radius: 0.375rem;
  --radius-lg: 0.75rem;
  --focus-ring: 0 0 0 3px var(--color-bg), 0 0 0 5px var(--color-accent);
  --accent-bar: linear-gradient(180deg, color-mix(in srgb, var(--color-accent) 75%, white), var(--color-accent-strong));
  --heading-weight: 600;
}

/* ---------- Preview themes (only switched on by the ?design tools; :root is the lavender default) ---------- */

[data-theme="blue"] {
  --color-bg: #f9fafc;
  --color-surface: #ffffff;
  --color-text: #1e2235;
  --color-text-muted: #4a5068;
  --color-accent: #3050b8;
  --color-accent-strong: #233f99;
  --color-accent-soft: #dde3f5;
  --color-card: #e8ebf3;
  --color-border: #d0d3da;
}
[data-theme="sage"] {
  --color-bg: #f5f7f4;
  --color-surface: #ffffff;
  --color-text: #1f2a24;
  --color-text-muted: #4b5850;
  --color-accent: #3b6650;
  --color-accent-strong: #2c4f3d;
  --color-accent-soft: #dfe9e2;
  --color-card: #e9efea;
  --color-border: #d3ddd6;
}
[data-theme="sand"] {
  --color-bg: #faf6f0;
  --color-surface: #fffdf9;
  --color-text: #2e2a25;
  --color-text-muted: #5c544a;
  --color-accent: #93532a;
  --color-accent-strong: #74401f;
  --color-accent-soft: #f1e4d6;
  --color-card: #f3ece2;
  --color-border: #e0d6c8;
}
[data-theme="rose"] {
  --color-bg: #fbf7f6;
  --color-surface: #ffffff;
  --color-text: #33262a;
  --color-text-muted: #63535a;
  --color-accent: #94455a;
  --color-accent-strong: #773646;
  --color-accent-soft: #f3e1e5;
  --color-card: #f4ebec;
  --color-border: #e5d7da;
}
[data-theme="mono"] {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #555555;
  --color-accent: #262626;
  --color-accent-strong: #000000;
  --color-accent-soft: #e9e9e9;
  --color-card: #f0f0f0;
  --color-border: #d6d6d6;
}
[data-theme="dark"] {
  --color-bg: #14161f;
  --color-surface: #1d2030;
  --color-text: #e8eaf2;
  --color-text-muted: #aab0c4;
  --color-accent: #93abff;
  --color-accent-strong: #b8c7ff;
  --color-accent-soft: #262c45;
  --color-on-accent: #10131c;
  --color-card: #242839;
  --color-border: #363c55;
  --color-error: #ff9a90;
  --color-success: #9fe3b4;
  --color-success-bg: #1b3326;
}

@media (min-width: 768px) {
  :root {
    --gutter: 1.5rem;
  }
}
@media (min-width: 1280px) {
  :root {
    --gutter: clamp(2rem, 4vw, 5rem);
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keeps anchor targets and focused fields clear of the sticky header. */
  scroll-padding-top: 4.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  line-height: var(--leading-heading);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 {
  font-size: var(--text-h1);
  color: var(--color-accent);
}
h2 {
  font-size: var(--text-h2);
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}
h3 {
  font-size: var(--text-h3);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

p,
ul,
ol {
  margin: 0 0 var(--space-4);
}
p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

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

a {
  color: var(--color-accent);
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--color-accent-strong);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius);
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 10;
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
}
.skip-link:focus {
  top: var(--space-4);
}

/* ---------- Layout ---------- */

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

.section {
  padding-block: var(--space-section);
}

.lead {
  font-size: var(--text-lg);
  max-width: var(--measure);
}

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

.stack > * + * {
  margin-top: var(--space-4);
}

.grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .grid {
    gap: var(--space-5);
  }
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Four short cards in one row once the screen is wide enough. */
@media (min-width: 1440px) {
  .grid--4-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Cards ---------- */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-5);
}

/* Bordered card with the blue gradient bar on its left edge. */
.card--accent {
  position: relative;
  padding-left: calc(var(--space-5) + 6px);
  overflow: hidden;
}
.card--accent::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--accent-bar);
}

.card--filled {
  background: var(--color-card);
  border-color: transparent;
}

.card--note {
  background: var(--color-accent-soft);
  border-color: transparent;
}

.card h3:last-child {
  margin-bottom: 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3rem;
  padding: var(--space-3) var(--space-5);
  border: 2px solid var(--color-accent);
  border-radius: 999px;
  font: 500 var(--text-base) / 1.2 var(--font-body);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.button:focus-visible {
  border-radius: 999px;
}

.button--primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.button--primary:hover {
  background: var(--color-accent-strong);
  border-color: var(--color-accent-strong);
  color: var(--color-on-accent);
}

.button--secondary {
  background: transparent;
  color: var(--color-accent);
}
.button--secondary:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
}

.button[disabled],
.button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: progress;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ---------- Page sections ---------- */

.site-header {
  position: sticky;
  top: var(--design-offset, 0px);
  z-index: 5;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 3.5rem;
}
.site-header__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-text);
  text-decoration: none;
}

.button--small {
  min-height: 2.5rem;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* Opening screen: statement + photo, with "difficulties" underneath the statement.
   Phones: statement, photo, difficulties. From 768 px the photo fills the right
   column beside both. */
.hero {
  padding-block: var(--space-6) var(--space-7);
}
.hero .button-row {
  margin-top: var(--space-5);
}
.hero__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-areas:
    "intro"
    "media"
    "difficulties";
}
.hero__intro {
  grid-area: intro;
}
.hero__kicker {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.hero__media {
  grid-area: media;
}
/* Yulia is cut out of her photo's background, so the page shows through around her; the masks fade out
   the straight edges where the photo cuts through her shoulders. */
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 55%; /* the top of the photo is empty now, so crop from lower down */
  -webkit-mask-image:
    linear-gradient(to bottom, #000 70%, transparent), linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, #000 70%, transparent), linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect;
}
.hero__difficulties {
  grid-area: difficulties;
}
.hero__difficulties h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  margin-bottom: var(--space-2);
}
.hero__difficulties > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.hero__difficulties .card {
  padding: var(--space-4) var(--space-4) var(--space-4) calc(var(--space-4) + 6px);
}
.hero__difficulties .card h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}
.hero__difficulties .card p {
  font-size: var(--text-sm);
  line-height: 1.55;
}
@media (min-width: 768px) {
  .hero {
    padding-block: var(--space-7);
  }
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
      "intro media"
      "difficulties media";
    column-gap: var(--space-7);
    row-gap: var(--space-7);
  }
  /* The photo takes the height of the text beside it rather than setting it. */
  .hero__media {
    position: relative;
    min-height: 24rem;
  }
  .hero__media img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: 50% 100%;
  }
  .hero__difficulties .grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (min-width: 1024px) {
  .hero__difficulties .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }
}

.section--tinted {
  background: var(--color-surface);
}

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

/* A soft blue band that marks a supporting section apart from its neighbours. */
.section--accent {
  background: var(--color-accent-soft);
}
.section--accent .card {
  border-color: transparent;
}

/* "Чому саме я": intro beside a 2×2 card grid from 1024 px, stacked on smaller screens. */
.why {
  display: grid;
  gap: var(--space-6);
}
.why__intro .button {
  margin-top: var(--space-5);
}
@media (min-width: 1024px) {
  .why {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: var(--space-7);
    align-items: start;
  }
  .why__intro {
    position: sticky;
    top: 6rem;
  }
}

.subsection-title {
  font-size: var(--text-h3);
  color: var(--color-accent);
  margin-top: var(--space-7);
}

/* "What I offer": each item sits in its own circle; one under another until there is room for three. */
.offers {
  display: grid;
  gap: var(--space-5);
  justify-items: center;
}
.offer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 22rem);
  aspect-ratio: 1;
  padding: 12%;
  border: 1px solid color-mix(in srgb, var(--color-accent) 35%, transparent);
  border-radius: 50%;
  background: var(--color-surface);
  text-align: center;
}
.offer h3 {
  color: var(--color-accent);
}
.offer p {
  font-size: var(--text-sm);
  line-height: 1.5;
}
@media (min-width: 1024px) {
  .offers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pull-quote {
  margin: 0;
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  border-left: 3px solid var(--color-accent);
  font-size: var(--text-lg);
  max-width: 52rem;
}

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

.list {
  padding-left: 1.25rem;
}
.list li + li {
  margin-top: var(--space-2);
}
.list li::marker {
  color: var(--color-accent);
}

/* "How the work begins": the presentation's meandering line. The drawing keeps its
   proportions (aspect-ratio = viewBox), so the steps can be placed in its bends by %.
   Phones and tablets: the line winds top to bottom; from 1024 px, left to right. */
.journey {
  position: relative;
  aspect-ratio: 400 / 740;
  max-width: 30rem;
  margin-inline: auto;
}
.journey__line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.journey__line path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.journey__line circle {
  fill: var(--color-accent);
}
.journey__line--wide {
  display: none;
}
.journey__steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.journey__step {
  position: absolute;
  left: 16%;
  width: 68%;
  transform: translateY(-50%);
  text-align: center;
}
.journey__step h3 {
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}
.journey__step p {
  margin: 0 auto;
  max-width: 16rem;
}
/* Centres of the three bends (y 100–280, 280–460, 460–640 of 740). */
.journey__step--1 {
  top: 25.7%;
}
.journey__step--2 {
  top: 50%;
}
.journey__step--3 {
  top: 74.3%;
}

@media (min-width: 1024px) {
  .journey {
    aspect-ratio: 1240 / 400;
    max-width: none;
  }
  .journey__line--wide {
    display: block;
  }
  .journey__line--tall {
    display: none;
  }
  /* Bends span x 150–470, 470–790, 790–1110 of 1240; the line runs at y 40 and 360 of 400. */
  .journey__step {
    width: 25.8%;
    transform: none;
    padding-inline: var(--space-4);
  }
  .journey__step--1 {
    left: 12.1%;
    top: auto;
    bottom: 15%;
  }
  .journey__step--2 {
    left: 37.9%;
    top: 15%;
  }
  .journey__step--3 {
    left: 63.7%;
    top: auto;
    bottom: 15%;
  }
}

/* ---------- Contact: kept compact (one laptop screen) ---------- */

.section--compact {
  padding-block: var(--space-7);
}

/* "About me" and the contact section share one row on wide screens, so the short about text
   no longer leaves an empty half beside it. */
@media (min-width: 1280px) {
  .about-contact {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  /* Same padding and heading spacing on both sides, so the headings and the first lines of text line up. */
  .about-contact > .section {
    padding-block: var(--space-7);
  }
  .about-contact h2 {
    margin-bottom: var(--space-2);
  }
  /* Both panels as tall as the taller one. */
  .about-contact > .section > .container {
    height: 100%;
  }
  /* Frosted panels: keep the outer edges in line with the panels above, with a normal gap between the two. */
  html[data-effect="blur"] .about-contact > .section > .container {
    width: calc(100% - var(--gutter) - var(--space-5) / 2);
  }
  html[data-effect="blur"] .about-contact > .section:first-child > .container {
    margin-left: var(--gutter);
  }
  html[data-effect="blur"] .about-contact > .section:last-child > .container {
    margin-right: var(--gutter);
  }
}

.contact__main h2 {
  margin-bottom: var(--space-2);
}
.contact__intro {
  margin-bottom: var(--space-4);
}

.request {
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.request:focus {
  outline: none;
}
@media (min-width: 768px) {
  .request {
    padding: var(--space-5);
  }
}

.contact__direct {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.contact__direct-title {
  font-weight: 500;
  margin-right: var(--space-1);
}
@media (max-width: 479px) {
  .contact__direct-title {
    flex-basis: 100%;
  }
}
.direct-link {
  flex: 1 1 0;
  min-width: 0;
}
@media (min-width: 480px) {
  .direct-link {
    flex: none;
  }
}

.contact__note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.site-footer {
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- Request form ---------- */

.form {
  display: grid;
  gap: var(--space-4);
}

.form__row {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.options {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2) var(--space-3);
}
@media (min-width: 480px) {
  .options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .options legend,
  .options .field__error {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  gap: var(--space-1);
}

.field__label {
  font-weight: 500;
  padding: 0;
  margin-bottom: var(--space-1);
}

.field__hint {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.field__input::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}
.field__input {
  width: 100%;
  min-height: 3rem;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-text-muted);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
}
.field__input:focus-visible {
  border-color: var(--color-accent);
}
.field__input[aria-invalid="true"] {
  border-color: var(--color-error);
  border-width: 2px;
}

.field__error {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-error);
}
.field__error:empty {
  display: none;
}

.field--check {
  grid-template-columns: auto 1fr;
  column-gap: var(--space-3);
  align-items: start;
}
.field--check input {
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.15rem 0 0;
  accent-color: var(--color-accent);
}
.field--check .field__hint,
.field--check .field__error {
  grid-column: 2;
}

/* Option cards: the first session is the main path, the intro call a quieter one (AC-13). */
.option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}
.option input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.2rem 0 0;
  accent-color: var(--color-accent);
}
.option:hover {
  border-color: var(--color-accent);
}
.option:has(input:checked) {
  border-color: var(--color-accent);
  box-shadow: inset 0 0 0 1px var(--color-accent);
}
.option:has(input:focus-visible) {
  box-shadow: var(--focus-ring);
}
.option--primary {
  border-width: 2px;
  border-color: var(--color-accent);
}
.option--primary .option__title {
  font-size: var(--text-lg);
  color: var(--color-accent);
}
.option__body {
  display: grid;
  gap: var(--space-1);
}
.option__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
}
.option__meta {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.option__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.options:has([aria-invalid="true"]) .option {
  border-color: var(--color-error);
}

.form__submit {
  justify-self: start;
}
@media (max-width: 479px) {
  .form__submit {
    justify-self: stretch;
  }
}

.bot-check:empty {
  display: none;
}

.form-status:empty {
  display: none;
}
.form-status {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
}
.form-status:focus {
  outline: none;
}
.form-status--received {
  background: var(--color-success-bg);
  color: var(--color-success);
}
.form-status--limited,
.form-status--failed {
  background: var(--color-accent-soft);
  color: var(--color-text);
}
.form-status__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
}
.form-status__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  list-style: none;
  padding: 0;
  margin-top: var(--space-3);
}
.form-status__links a {
  font-weight: 500;
}

/* ---------- Wide screens ---------- */

/* Paragraphs keep a readable line length however wide the layout gets. */
main p:not(.card) {
  max-width: 72ch;
}
/* Wide screens: the form and the direct links side by side in the contact column. */
@media (min-width: 1440px) {
  .contact__body {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: var(--space-6);
    align-items: start;
  }
  .contact__direct .subsection-title {
    margin-top: 0;
  }
  .contact__direct .direct-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Scale the whole rem-based design up a little on large monitors. */
@media (min-width: 1600px) {
  html {
    font-size: 112.5%;
  }
}
@media (min-width: 2200px) {
  html {
    font-size: 125%;
  }
}

/* ---------- Frosted backdrop (default; ?design "Стандарт" turns it off) ---------- */
/* Soft warm light behind the whole page, content on frosted panels. */

html[data-effect="blur"] body {
  background: transparent;
}
html[data-effect="blur"] body::before {
  content: "";
  position: fixed;
  inset: -24px;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, color-mix(in srgb, var(--color-accent) 22%, transparent), transparent),
    radial-gradient(ellipse 60% 60% at 85% 75%, color-mix(in srgb, var(--color-accent) 16%, transparent), transparent),
    var(--color-card);
}
html[data-effect="blur"] main .section {
  background: transparent;
  padding-block: var(--space-5);
}
html[data-effect="blur"] main .section > .container {
  width: calc(100% - 2 * var(--gutter));
  padding: var(--space-6) var(--gutter);
  background: color-mix(in srgb, var(--color-surface) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid color-mix(in srgb, var(--color-surface) 60%, transparent);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgb(0 0 0 / 0.12);
}
html[data-effect="blur"] main .section > .container + .container {
  margin-top: var(--space-5);
}
html[data-effect="blur"] .site-header,
html[data-effect="blur"] .site-footer {
  background: color-mix(in srgb, var(--color-surface) 80%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
html[data-effect="blur"] .site-footer {
  margin-top: var(--space-5);
}
