@font-face {
  font-family: Inter;
  src: url("./assets/inter-cyrillic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Inter;
  src: url("./assets/inter-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Inter;
  src: url("./assets/inter-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #f5f5f7;
  --surface: #ffffff;
  --surface-hover: #e8e8ed;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --orange: #e66e43;
  --brand-blue: #006bd6;
  --radius: 12px;
  --gutter: clamp(20px, 3.125vw, 64px);
  --header-height: 72px;
  --section-flow-gap: clamp(64px, 7vw, 112px);
  --closing-font: clamp(2rem, min(6.4vw, 11.5svh), 7rem);
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body { margin: 0; }

::selection { background: #e66e4340; }

.header {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.brand-logo {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
}

.accent { color: var(--brand-blue); }

.page {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(128px, min(25svh, 240px)) auto;
  grid-template-areas: "start start" "photo photo" "description end";
  align-content: space-between;
  gap: clamp(24px, 5vh, 48px) 32px;
  padding: clamp(24px, 4.4vh, 48px) var(--gutter) clamp(28px, 5.5vh, 56px);
}

/* Keep the split visual title a single heading in reading order. */
.headline {
  display: contents;
  font-size: clamp(3rem, min(8.5vw, 15svh), 9.5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.headline-start {
  grid-area: start;
  align-self: start;
  overflow-wrap: anywhere;
}

.headline-end {
  grid-area: end;
  align-self: end;
  justify-self: end;
  max-width: 100%;
  text-align: right;
  overflow-wrap: anywhere;
  font-size: var(--closing-font);
}

.photograph {
  grid-area: photo;
  position: relative;
  height: 114%;
  align-self: center;
  min-width: 0;
  min-height: 128px;
  margin: 0 calc(-1 * var(--gutter));
  background: transparent;
  isolation: isolate;
}

.photograph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 75%;
}

.status {
  position: relative;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 16px 16px 16px auto;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius);
  padding: 12px 18px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--orange);
}

.description {
  grid-area: description;
  align-self: start;
  max-width: 355px;
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.011em;
  text-wrap: pretty;
}

@media (max-width: 760px) {
  :root { --header-height: 64px; --closing-font: clamp(1.5rem, min(9vw, 7svh), 4rem); }

  .brand-logo { width: 184px; }

  .page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(110px, min(22svh, 200px)) auto auto;
    grid-template-areas: "start" "photo" "description" "end";
    align-content: space-between;
    gap: clamp(24px, 4svh, 36px);
    padding-top: clamp(28px, 5svh, 40px);
    padding-bottom: clamp(28px, 5svh, 40px);
  }

  .headline {
    font-size: clamp(1.75rem, min(13.4vw, 10svh), 6.5rem);
    letter-spacing: -0.055em;
  }

  .headline-end {
    justify-self: end;
    font-size: var(--closing-font);
  }

  .photograph { min-height: 110px; }

  .status {
    max-width: calc(100% - 24px);
    margin: 12px 12px 12px auto;
    padding: 10px 14px;
    font-size: 0.8125rem;
  }

  .description {
    max-width: 360px;
    font-size: 1rem;
    line-height: 1.55;
  }
}

@media (max-width: 760px) and (max-height: 620px) {
  :root { --header-height: 56px; --closing-font: clamp(1.5rem, 8.5vw, 3.5rem); }
  .brand-logo { width: 144px; }
  .page {
    grid-template-rows: auto 100px auto auto;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .headline { font-size: clamp(1.75rem, min(10.8vw, 8svh), 4.5rem); }
  .headline-end { font-size: var(--closing-font); }
  .photograph { min-height: 100px; }
  .description { font-size: 0.875rem; line-height: 1.5; }
}

@media (max-height: 540px) and (min-width: 761px) {
  :root { --header-height: 56px; }
  .page {
    gap: 20px 28px;
    padding-top: 20px;
    padding-bottom: 24px;
  }
  .description { font-size: 0.9375rem; }
}

@media (forced-colors: active) {
  .status { border: 1px solid CanvasText; }
  .status-dot { background: CanvasText; }
}

/* The photo opens vertically from a central rule, like the reference hero. */
.photo-reveal {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--surface-hover);
}

.photograph::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(var(--line-scale, 0));
  transform-origin: left center;
  opacity: var(--line-opacity, 0);
}

.photograph img { user-select: none; }

.motion-ready .photo-reveal { clip-path: inset(50% 0); }
.motion-ready .photograph img { transform: scale(1.22); will-change: transform; }
.motion-ready .headline-start,
.motion-ready .headline-end,
.motion-ready .status { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .motion-ready .photo-reveal { clip-path: none !important; }
  .motion-ready .photograph img { transform: none !important; will-change: auto; }
  .motion-ready .headline-start,
  .motion-ready .headline-end,
  .motion-ready .status { opacity: 1 !important; transform: none !important; }
  .photograph::before { display: none; }
}

/* One interactive tick for each management task. */
.photo-ruler {
  position: absolute;
  bottom: 100%;
  left: var(--gutter);
  right: var(--gutter);
  height: 50px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  z-index: 1;
}

.ruler-mark {
  position: relative;
  appearance: none;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.ruler-mark::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: calc(50% - .75px);
  width: 1.5px;
  height: var(--tick-height, 7px);
  background: var(--line);
  transform-origin: center bottom;
  transition: transform .3s cubic-bezier(.22, .8, .18, 1), background-color .3s;
}
.ruler-mark.is-major::after { height: var(--tick-height, 12px); }
.ruler-mark.has-dots::after,
.ruler-mark:first-child::after { background: var(--ink); }
.ruler-dots {
  position: absolute;
  /* Clear the tallest tick at full hover: 3px + 12px * 1.6 + 6px. */
  bottom: 28.2px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column-reverse;
  gap: 3px;
}
.ruler-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-blue);
}
@media (hover: hover) and (pointer: fine) {
  .ruler-mark:hover::after { transform: scaleY(1.6); background: var(--ink); }
}
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .photo-ruler { animation: ruler-appear 1s 1.1s both; }
  @keyframes ruler-appear {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .ruler-mark::after { transition: none; }
}

.ruler-tooltip {
  position: absolute;
  bottom: 58px;
  left: calc(50% + var(--tooltip-offset, 0px));
  transform: translateX(-50%);
  width: max-content;
  max-width: min(260px, calc(100vw - 24px));
  padding: 9px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-blue);
  font-size: .8125rem;
  line-height: 1.4;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .15s;
  z-index: 2;
}
/* Keep the hint open while the pointer crosses the gap to its text. */
.ruler-tooltip::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
}
.ruler-mark:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.ruler-mark:focus::after { transform: scaleY(1.6); background: var(--ink); }
.ruler-mark:focus:not(.is-dismissed) .ruler-tooltip { visibility: visible; opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .ruler-mark:hover:not(.is-dismissed) .ruler-tooltip { visibility: visible; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ruler-tooltip { transition: none; }
}

.service-copy {
  grid-area: description;
  align-self: end;
  min-width: 0;
  color: var(--ink);
}
.service-prefix {
  margin: 0 0 8px;
  font-size: var(--prefix-font, var(--closing-font));
  line-height: .98;
  letter-spacing: -.025em;
}
.service-swap {
  display: grid;
  perspective: 600px;
  overflow: hidden;
  padding: 3px 0;
  font-size: var(--swap-font, clamp(1.25rem, 2.65vw, 2.75rem));
  line-height: 1.2;
  letter-spacing: -.04em;
}
.service-phrase {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transform-origin: center bottom;
  overflow-wrap: anywhere;
}
.service-phrase.is-current { visibility: visible; opacity: 1; }
.service-phrase.is-leaving { visibility: visible; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .service-phrase.is-current { animation: service-in .55s cubic-bezier(.22, 1, .36, 1) both; }
  .service-phrase.is-leaving { animation: service-out .35s cubic-bezier(.4, 0, .7, .3) both; }
  @keyframes service-in {
    from { opacity: 0; transform: translateY(85%) rotateX(-65deg); }
    to { opacity: 1; transform: translateY(0) rotateX(0); }
  }
  @keyframes service-out {
    from { opacity: 1; transform: translateY(0) rotateX(0); }
    to { opacity: 0; transform: translateY(-85%) rotateX(65deg); }
  }
}
@media (max-width: 760px) {
  .service-copy { align-self: center; }
  .service-swap { font-size: var(--swap-font, clamp(1.25rem, 5.3vw, 2rem)); }
}
@media (max-width: 760px) and (max-height: 620px) {
  .service-prefix { margin-bottom: 5px; }
}

/* Independent positions for the copy group and its two text elements. */
.service-copy {
  width: var(--copy-width, auto);
  transform: translate(var(--copy-x, 0px), var(--copy-y, 0px));
}
.service-prefix {
  width: var(--prefix-width, auto);
  transform: translate(var(--prefix-x, 0px), var(--prefix-y, 0px));
}
.service-swap {
  width: var(--swap-width, auto);
  transform: translate(var(--swap-x, 0px), var(--swap-y, 0px));
}
.layout-editing .service-copy,
.layout-editing .service-prefix,
.layout-editing .service-swap { touch-action: none; }
.layout-editing .layout-selected {
  outline: 1px dashed var(--brand-blue);
  outline-offset: 6px;
  cursor: move;
  user-select: none;
}
.layout-panel {
  position: fixed;
  top: 88px;
  right: 18px;
  z-index: 100;
  width: 300px;
  max-width: calc(100vw - 24px);
  max-height: calc(100svh - 100px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 40px rgb(29 29 31 / .15);
  color: var(--ink);
  font: 13px/1.4 Inter, Arial, sans-serif;
}
.layout-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.layout-panel strong { font-size: 15px; }
.layout-panel .layout-help { margin: 14px 0; color: var(--muted); }
.layout-panel label { display: grid; gap: 5px; margin: 12px 0; }
.layout-panel input,
.layout-panel select,
.layout-panel button {
  min-width: 0;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.layout-panel button { cursor: pointer; }
.layout-panel button:hover { border-color: var(--brand-blue); }
.layout-panel :focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.layout-panel .layout-collapse { width: auto; padding: 5px; font-size: 11px; }
.layout-fields,
.layout-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.layout-actions { margin-top: 12px; }
.layout-panel .layout-save-status { margin: 12px 0; font-size: 11px; color: var(--muted); }
.layout-done { color: var(--brand-blue); text-underline-offset: 3px; }
.layout-panel input:disabled { opacity: .4; }
@media (max-width: 760px) {
  .layout-panel { top: 76px; right: 12px; }
}

.layout-panel [hidden] { display: none !important; }
.layout-panel textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: 11px/1.4 monospace;
  resize: vertical;
}
.layout-panel .layout-copy { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }

/* Keep the layout canvas stable while placing text, including in Safari. */
.layout-editing .photo-reveal { clip-path: none !important; }
.layout-editing .photograph img { transform: scale(1.08) !important; }
.layout-editing .headline-start,
.layout-editing .headline-end,
.layout-editing .status { opacity: 1 !important; transform: none !important; }
.layout-editing .photograph::before { display: none; }
.layout-editing .photo-ruler { animation: none !important; }
.layout-editing .service-phrase.is-current { animation: none !important; }
.layout-editing .service-phrase.is-leaving { visibility: hidden; animation: none !important; }

/* Approved service line: aligned to the main title, equal type sizes. */
:root { --service-font: clamp(1.5rem, 3.40136vw, 3.125rem); }
.page {
  grid-template-rows: auto minmax(128px, min(25svh, 240px)) auto auto;
  grid-template-areas: "start start" "photo photo" "description description" ". end";
  gap: clamp(16px, 2.5vh, 24px) 32px;
}
.service-copy {
  display: flex;
  align-items: baseline;
  align-self: start;
  gap: .25em;
  font-size: var(--service-font);
}
.service-prefix {
  flex: 0 0 auto;
  margin: 0;
  font-size: var(--prefix-font, var(--service-font));
  line-height: 1.2;
}
.service-swap {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  font-size: var(--swap-font, var(--service-font));
  line-height: 1.2;
  color: var(--brand-blue);
}
.ruler-mark.is-current::after {
  transform: scaleY(1.6);
  background: var(--ink);
}
@media (max-width: 760px) {
  :root { --service-font: clamp(1.25rem, 5.3vw, 2rem); }
  .page {
    grid-template-rows: auto minmax(110px, min(22svh, 200px)) auto auto;
    grid-template-areas: "start" "photo" "description" "end";
    gap: clamp(24px, 4svh, 36px);
  }
  .service-copy { display: block; }
  .service-prefix { margin: 0 0 5px; }
}
@media (max-width: 760px) and (max-height: 620px) {
  .page { grid-template-rows: auto 100px auto auto; gap: 16px; }
}

/* A single service sentence centered in the area below the photograph. */
:root { --photo-row: max(128px, min(25svh, 240px)); }
.page {
  grid-template-rows: auto var(--photo-row) minmax(130px, 1fr);
  grid-template-areas: "start start" "photo photo" "sentence sentence";
  align-content: stretch;
  row-gap: 0;
  padding-bottom: 0;
}
.headline-start { margin-bottom: 120px; }
.service-line {
  grid-area: sentence;
  align-self: center;
  /* Leave the service text clear of the fixed dock's soft upper edge. */
  margin-bottom: clamp(40px, 6svh, 56px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .25em;
  min-width: 0;
  min-height: 0;
  padding-top: clamp(28px, 3vw, 48px);
  font-size: var(--service-font);
}
.service-copy { flex: 0 1 auto; align-self: auto; min-width: 0; }
.service-prefix { white-space: nowrap; }
.service-swap {
  flex: 0 0 auto;
  width: var(--swap-width, max-content);
  transition: none;
}
.service-phrase { width: max-content; justify-self: center; text-align: center; }
.service-line .headline-end {
  align-self: auto;
  flex: 0 0 auto;
  font-size: var(--service-font);
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}
.ruler-mark.is-current:not(.is-dismissed) .ruler-tooltip { visibility: visible; opacity: 1; }
@media (max-width: 760px) {
  :root { --photo-row: max(110px, min(22svh, 200px)); }
  .page {
    grid-template-rows: auto var(--photo-row) minmax(150px, 1fr);
    grid-template-areas: "start" "photo" "sentence";
    row-gap: 0;
  }
  .headline-start { margin-bottom: 110px; }
  .service-line { flex-direction: column; justify-content: center; gap: 5px; text-align: center; }
  .service-copy { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; }
  .service-prefix { white-space: normal; margin: 0; }
  .service-swap { max-width: 100%; }
  .service-phrase { max-width: 100%; }
}
@media (max-width: 760px) and (max-height: 620px) {
  :root { --photo-row: 100px; }
  .headline-start { margin-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-swap { transition: none; }
}

/* A restrained display size; the final position stays fixed across services. */
body { overflow-x: clip; }
.service-line .headline-end {
  font-size: var(--ending-font, clamp(2rem, 4.6vw, 5rem));
  line-height: 1;
}
.motion-ready .headline-end { transform: translateX(100vw); }
@media (max-width: 760px) {
  .service-line .headline-end { font-size: var(--ending-font, clamp(2rem, 8vw, 3rem)); }
}

.service-line { overflow: clip; overflow-clip-margin: var(--gutter); }
.layout-editing .service-line { overflow: visible; }

.service-line .headline-end {
  translate: var(--ending-x, 0px) var(--ending-y, 0px);
  width: var(--ending-width, auto);
}
.layout-editing .headline-end { touch-action: none; }

/* Accepted desktop layout at 1470×843; scale down on narrower screens. */
@media (min-width: 761px) {
  :root {
    --ending-font: min(6.59863946vw, 97px);
    --ending-width: min(33.60544218vw, 494px);
    --ending-x: 0px;
    --ending-y: -2px;
  }
}

.intro-complete .service-line,
html:not(.motion-ready) .service-line { overflow: visible; }

@media (min-width: 761px) {
  .service-line {
    --service-font: min(3.125rem, 3.40136vw, calc((100vw - 2 * var(--gutter) - var(--ending-width) - 26px) / 20.5));
  }
}

.header { justify-content: space-between; gap: 24px; }
.account-links { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); }
.account-links a {
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.4;
  text-decoration: none;
  text-underline-offset: 5px;
}
.account-links a:hover { color: var(--brand-blue); text-decoration: underline; }
.account-links a:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 4px; }
.access-page {
  min-height: calc(100svh - var(--header-height));
  padding: 64px var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.access-page h1 { margin: 16px 0 24px; font-size: clamp(2rem, 5vw, 5rem); font-weight: 400; line-height: 1.05; letter-spacing: -.05em; }
.access-page p { max-width: 480px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.access-page .access-status { color: var(--brand-blue); font-size: .875rem; }
.access-back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 28px; color: var(--ink); text-underline-offset: 5px; }
@media (max-width: 760px) {
  :root { --header-height: 88px; }
  .header { gap: 12px; }
  .header .brand-logo { width: 144px; }
  .account-links { flex-direction: column; align-items: flex-end; gap: 0; }
  .account-links a { min-height: 28px; font-size: .75rem; white-space: nowrap; }
}
@media (max-width: 760px) and (max-height: 620px) {
  :root { --header-height: 81px; }
  .header .brand-logo { width: 124px; }
  .page { grid-template-rows: auto var(--photo-row) minmax(120px, 1fr); }
}

/* Three header links retain their spacing and fit compact phone screens. */
.account-links { gap: clamp(18px, 2.5vw, 40px); }
@media (max-width: 760px) {
  :root { --header-height: 112px; }
  .account-links { gap: 0; }
}
@media (max-width: 760px) and (max-height: 620px) {
  :root { --header-height: 109px; }
  .page { grid-template-rows: auto var(--photo-row) minmax(92px, 1fr); }
}

/* Keep the complete sentence on a shared typographic baseline. */
@media (min-width: 761px) {
  .service-line { align-items: baseline; }
}
@font-face {
  font-family: "TD Closing";
  src: url("./assets/td-closing-d.woff2?v=alternate-2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0434;
}
.closing-flat-d { font-family: "TD Closing", Inter, Arial, sans-serif; }


/* Stronger interactive emphasis, with clear space below the dot stacks. */
.ruler-dot { transition: transform .25s ease; }
.ruler-mark:focus-visible::after { transform: scale(2, 1.8); background: var(--ink); }
.ruler-mark:focus-visible .ruler-dot { transform: translateY(-3px) scale(1.3); }
@media (hover: hover) and (pointer: fine) {
  .ruler-mark:hover::after { transform: scale(2, 1.8); background: var(--ink); }
  .ruler-mark:hover .ruler-dot { transform: translateY(-3px) scale(1.3); }
}
@media (prefers-reduced-motion: reduce) {
  .ruler-dot { transition: none; }
}

/* FAQ follows the hero naturally rather than filling a separate viewport. */
.faq-screen {
  min-height: 0;
  padding: clamp(48px, 8svh, 96px) var(--gutter);
}
.faq-screen h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5.6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.045em;
}

/* Floating editorial tabs, shared by both screens. */
.floating-tabs {
  --dock-edge-gap: calc(20px + env(safe-area-inset-bottom, 0px));
  --dock-fade-height: clamp(56px, 8svh, 80px);
  position: fixed;
  isolation: isolate;
  z-index: 10;
  bottom: var(--dock-edge-gap);
  left: 50%;
  transform: translateX(-50%);
  width: min(840px, calc(100% - 2 * var(--gutter)));
  padding: 8px 20px;
  background: transparent;
}
/* Full-width page-colored fade: solid beneath the controls, soft above them. */
.floating-tabs::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(-1 * var(--dock-fade-height));
  bottom: calc(-1 * var(--dock-edge-gap));
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent 0, var(--paper) var(--dock-fade-height), var(--paper) 100%);
  pointer-events: none;
}
.floating-tab-list { position: relative; display: grid; grid-template-columns: repeat(var(--tab-count, 3), minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.floating-tab {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 8px; border: 0; background: transparent;
  color: var(--muted); font: inherit; font-size: 18px; cursor: pointer;
}
.floating-tab[aria-selected="true"], .floating-tab:hover { color: var(--ink); }
.tab-index { color: var(--brand-blue); font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .05em; }
.floating-tab:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: -3px; }
.tab-indicator { position: absolute; left: 0; bottom: -1px; width: calc(100% / var(--tab-count, 3)); height: 2px; background: var(--brand-blue); transform: translateX(calc(var(--active-tab, 0) * 100%)); transition: transform .35s cubic-bezier(.22,.8,.18,1); pointer-events: none; }
/* A quiet light sweep clipped to the primary action's letters. */
.floating-tab.floating-tab--primary { color: var(--brand-blue); }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .floating-tab--primary .cta-label {
    background-image: linear-gradient(110deg, var(--brand-blue) 0%, var(--brand-blue) 42%, #69a7e5 50%, var(--brand-blue) 58%, var(--brand-blue) 100%);
    background-size: 300% 100%;
    background-position: 100% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: cta-text-shine 8s ease-in-out 2.6s infinite;
  }
  @keyframes cta-text-shine {
    0% { background-position: 100% 50%; transform: scale(1); }
    12% { background-position: 50% 50%; transform: scale(1.04); }
    24%, 100% { background-position: 0% 50%; transform: scale(1); }
  }
  .floating-tabs.is-open .cta-label { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-tab--primary .cta-label { animation: none; background: none; color: var(--brand-blue); }
}
@media (forced-colors: active) {
  .floating-tab--primary .cta-label { animation: none; background: none; color: ButtonText; }
}

.faq-screen { padding-bottom: 120px; }
@media (max-width: 760px) {
  .floating-tabs { --dock-edge-gap: calc(12px + env(safe-area-inset-bottom, 0px)); bottom: var(--dock-edge-gap); padding: 6px 8px; }
  .floating-tab { gap: 6px; padding: 12px 2px; font-size: 13px; }
  .tab-index { font-size: 9px; }
  .page { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .tab-indicator { transition: none; } }

/* The closed dock yields to the inline form and the footer. */
.floating-tabs { transition: opacity .22s ease, transform .22s ease, visibility .22s; }
.floating-tabs.is-scroll-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px);
}
@media (prefers-reduced-motion: reduce) { .floating-tabs { transition: none; } }

/* Four navigation links keep a clear layout on narrow screens. */
@media (max-width: 960px) {
  :root { --header-height: 140px; }
  .account-links { flex-direction: column; align-items: flex-end; gap: 0; }
  .account-links a { min-height: 28px; font-size: .75rem; white-space: nowrap; }
}
@media (max-width: 760px) and (max-height: 620px) {
  :root { --header-height: 137px; }
}

.brand-home { display: block; flex: 0 0 auto; max-width: 45%; }
.brand-home:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 6px; }

/* Make room for text below the editorial tab row. */
.headline-start {
  width: 100%;
  text-align: center;
  font-size: var(--title-font, clamp(2.5rem, 6.4vw, 7rem));
  margin-bottom: 110px;
}
.page {
  --photo-row: max(110px, min(22svh, 190px));
  /* Keep FAQ beyond the initial fold, with spare room balanced around the service line. */
  min-height: max(0px, calc(100vh - var(--header-height) - var(--section-flow-gap) + 12px));
  min-height: max(0px, calc(100svh - var(--header-height) - var(--section-flow-gap) + 12px));
  grid-template-rows: auto var(--photo-row) minmax(min-content, 1fr);
  align-content: start;
  padding-top: clamp(18px, 3svh, 24px);
  padding-bottom: 0;
}
.floating-tab-panel { min-height: 90px; padding: 14px 8px 10px; text-align: left; }
.floating-tab-panel[hidden] { display: none; }
.floating-tab-panel h3 { margin: 0 0 7px; font-size: 21px; font-weight: 400; letter-spacing: -.03em; }
.floating-tab-panel p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.floating-tab-panel:not([hidden]) { animation: tab-text-in .25s ease both; }
@keyframes tab-text-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.faq-screen { padding-bottom: 210px; }
@media (max-width: 760px) {
  .headline-start { font-size: var(--title-font, clamp(2.25rem, 9vw, 4rem)); margin-bottom: 110px; }
  .page { --photo-row: max(100px, min(20svh, 170px)); grid-template-rows: auto var(--photo-row) minmax(min-content, 1fr); padding-bottom: 0; }
  .floating-tab-panel { min-height: 112px; padding: 12px 6px 10px; }
  .floating-tab-panel h3 { font-size: 18px; }
  .floating-tab-panel p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .floating-tab-panel:not([hidden]) { animation: none; } }

.floating-tabs:not(.is-open) .tab-indicator { visibility: hidden; }

/* Expand above the dock without moving its tab row. */
.floating-tab-panel {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  padding-left: 28px;
  padding-right: 28px;
  max-height: calc(100svh - 140px);
  overflow-y: auto;
  background: var(--surface);
}
@media (max-width: 760px) {
  .floating-tab-panel { padding-left: 14px; padding-right: 14px; }
}

.contact-panel { padding-top: 24px; padding-bottom: 24px; border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -12px 32px rgb(29 29 31 / .06); }
.contact-panel h3 { padding-right: 32px; font-size: 24px; }
.panel-close { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; border: 0; background: transparent; font: inherit; font-size: 27px; color: var(--muted); cursor: pointer; }
.contact-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.contact-fields label { display: grid; gap: 8px; color: var(--ink); font-size: 13px; }
.contact-fields input { min-width: 0; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.contact-fields input:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.contact-fields input[aria-invalid="true"] { border-color: #a33427; }
.contact-actions { display: flex; align-items: center; gap: 20px; }
.contact-submit { flex: 0 0 auto; min-height: 44px; padding: 12px 18px; border: 0; border-radius: var(--radius); background: var(--brand-blue); color: white; font: inherit; font-size: 14px; cursor: pointer; }
.contact-submit:hover { background: #0059b3; }
.contact-submit:focus-visible, .panel-close:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
.contact-actions p { max-width: 330px; font-size: 12px; }
.contact-form .contact-error { scroll-margin-block: 8px; margin: 0 0 16px; color: #a33427; font-size: 13px; }
@media (max-width: 760px) {
  .contact-panel { padding-top: 20px; padding-bottom: 18px; }
  .contact-panel h3 { font-size: 21px; }
  .contact-fields { grid-template-columns: 1fr; gap: 12px; margin: 16px 0; }
  .contact-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .contact-actions p { max-width: none; }
}

/* Place the action directly below the chosen contact method. */
.contact-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
.contact-field { min-width: 0; }
.contact-field.is-selected label { color: var(--brand-blue); }
.contact-actions { display: block; margin-top: 12px; }
.contact-submit { width: 100%; padding: 11px 8px; font-size: 13px; line-height: 1.35; }
.contact-submit:disabled { background: var(--line); color: var(--muted); cursor: default; }
.contact-panel .contact-method-note { font-size: 12px; line-height: 1.5; }
@media (max-width: 760px) {
  .contact-fields { grid-template-columns: 1fr; }
  .contact-submit { font-size: 14px; }
}

.max-draft { display: grid; gap: 8px; margin: 12px 0; font-size: 13px; }
.max-draft[hidden] { display: none; }
.max-draft textarea { width: 100%; resize: vertical; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--ink); font: inherit; line-height: 1.5; }

/* Equal label rows keep every input on the same horizontal line. */
.contact-panel {
  --contact-panel-width: min(1000px, calc(100vw - 2 * var(--gutter)));
  width: var(--contact-panel-width);
  left: calc(50% - var(--contact-panel-width) / 2);
  right: auto;
}
.contact-fields label { grid-template-rows: 2.8em 44px; line-height: 1.4; }
.contact-fields input { height: 44px; }
@media (max-width: 760px) {
  .contact-fields label { grid-template-rows: auto 44px; }
}

.contact-submit { height: 44px; white-space: nowrap; }

/* Shared corporate footer. The floating dock stops above its top edge. */
.site-footer { border-top: 1px solid var(--line); padding: 30px var(--gutter) 26px; background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr 1.2fr; gap: clamp(40px, 6vw, 80px); max-width: 1280px; margin: 0 auto; align-items: start; }
.footer-brand .brand-home { max-width: 100%; width: fit-content; }
.footer-brand .brand-logo { width: 160px; }
.footer-brand p { max-width: 230px; margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.footer-brand .footer-copyright { margin-top: 16px; font-size: 11px; }
.footer-column { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer-column h2 { margin: 0 0 12px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.site-footer a { color: var(--ink); text-decoration: none; text-underline-offset: 4px; }
.footer-column > a { min-height: 28px; padding: 4px 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--brand-blue); text-decoration: underline; }
.site-footer a:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 4px; }
.footer-messengers { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.footer-messengers a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 44px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.footer-bottom p { margin: 0; }
.footer-bottom p:last-child { text-align: right; }
.footer-bottom span { color: var(--muted); }
.floating-tabs { bottom: calc(var(--dock-edge-gap) + var(--dock-footer-offset, 0px)); }
.document-page { max-width: 1200px; margin: 0 auto; min-height: calc(100svh - var(--header-height)); padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(56px, 8vw, 96px); }
.document-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 20px; color: var(--muted); text-decoration: none; }
.document-page h1 { margin: 0 0 28px; max-width: 1000px; font-size: clamp(2rem, 4.7vw, 4.5rem); font-weight: 400; line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
.document-status { max-width: 780px; margin: 0 0 32px; padding-left: 16px; border-left: 2px solid var(--brand-blue); color: var(--muted); font-size: 14px; line-height: 1.6; }
.document-body { max-width: 800px; font-size: 16px; line-height: 1.75; }
.document-body section { margin-top: 36px; }
.document-body h2 { margin: 0 0 12px; font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.3; }
.document-body p { margin: 0 0 16px; }
.document-body .document-lead { font-size: clamp(1.125rem, 2vw, 1.4rem); line-height: 1.6; }
.document-body a, .contact-consent a { color: var(--brand-blue); text-underline-offset: 3px; }
.document-body .document-review { color: var(--muted); font-size: 14px; }
.company-details { margin: 0; }
.company-details > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.company-details dt { color: var(--muted); }
.company-details dd { margin: 0; overflow-wrap: anywhere; }
.contact-consent { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.contact-consent input { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--brand-blue); }
.contact-consent input:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1.4fr; gap: 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { margin-top: 14px; }
  .footer-column { gap: 2px; }
  .footer-column h2 { margin-bottom: 8px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 32px; }
  .footer-bottom p:last-child { text-align: left; }
  .company-details > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 760px) { .floating-tabs { bottom: calc(var(--dock-edge-gap) + var(--dock-footer-offset, 0px)); } }

.floating-tab-panel { min-height: 0; max-height: var(--dock-panel-height, calc(100svh - 140px)); overscroll-behavior-y: contain; }

@media (max-width: 360px) { .header { gap: 12px; } .header .brand-logo { width: 96px; } }

/* The footer rule replaces the dock rule where the two meet. */
.floating-tabs.is-footer-docked::before { bottom: 0; }
.floating-tabs.is-footer-docked .floating-tab-list { border-bottom-color: transparent; }
.floating-tabs.is-footer-docked .tab-indicator { opacity: 0; }

.floating-tab[hidden] { display: none; }


/* Two-column FAQ with a shared answer slot: opening a card keeps the section stable. */
.faq-screen { display: block; padding-top: var(--section-flow-gap); padding-bottom: clamp(108px, 10vw, 144px); }
.faq-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.25fr); gap: clamp(48px, 6vw, 96px); width: 100%; max-width: 1440px; margin: 0 auto; align-items: stretch; }
.faq-intro { position: relative; min-width: 0; padding-top: 8px; }
.faq-intro h2 { max-width: 440px; font-size: clamp(28px, 3vw, 44px); line-height: 1.1; letter-spacing: -.045em; }
.faq-intro > p { max-width: 330px; margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.faq-contacts { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; margin-top: clamp(28px, 5svh, 48px); }
.faq-contact-trigger { display: flex; align-items: center; gap: 14px; width: fit-content; max-width: 100%; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; border: 0; padding: 0; background: transparent; cursor: pointer; text-align: left; overflow-wrap: anywhere; }
.faq-contact-trigger:hover { color: var(--brand-blue); }
.faq-contact-trigger:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 6px; border-radius: var(--radius); }
.faq-contact-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; color: var(--brand-blue); background: rgb(0 107 214 / .06); }
.faq-contact-icon svg { width: 22px; height: 22px; }
.faq-watermark { position: absolute; left: -8px; bottom: 4px; color: var(--line); opacity: .35; font-size: clamp(120px, 15vw, 220px); line-height: .9; letter-spacing: -.085em; user-select: none; pointer-events: none; }
.faq-accordion { overflow-anchor: none; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.faq-accordion.is-enhanced { min-height: var(--faq-block-height); }
.faq-item { flex: 0 0 auto; border: 1px solid transparent; border-radius: var(--radius); background: var(--surface); box-shadow: 0 2px 8px rgb(29 29 31 / .025); }
.faq-question-heading { margin: 0; font: inherit; }
.faq-question {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) 20px; align-items: center;
  gap: 14px; width: 100%; padding: 18px 20px;
  border: 0; border-radius: var(--radius); background: transparent; color: var(--ink); text-align: left;
  font: inherit; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.3; letter-spacing: -.025em;
  cursor: pointer;
}
.faq-question:disabled { opacity: 1; cursor: default; }
.faq-question:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
.faq-index { color: var(--muted); font-size: 14px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.faq-icon { position: relative; width: 20px; height: 20px; color: var(--brand-blue); transition: transform .35s ease; }
.faq-icon::before { content: ''; position: absolute; width: 8px; height: 8px; left: 6px; top: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-accordion.is-enhanced .faq-answer { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .4s cubic-bezier(.22,.8,.18,1), opacity .25s ease, visibility .4s; }
.faq-accordion.is-enhanced .faq-item.is-open .faq-answer { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
.faq-answer-inner { min-height: 0; overflow: hidden; }
.faq-answer-body { padding: 0 24px 22px 58px; }
.faq-accordion.is-enhanced .faq-answer-body { min-height: var(--faq-answer-space); }
.faq-answer-text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (hover: hover) and (pointer: fine) { .faq-question:not(:disabled):hover { color: var(--brand-blue); } }
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-intro h2 { max-width: none; font-size: clamp(28px, 5vw, 38px); }
  .faq-intro > p { max-width: 480px; }
  .faq-contacts { flex-direction: row; flex-wrap: wrap; gap: 18px 28px; margin-top: 24px; }
  .faq-watermark { display: none; }
}
@media (max-width: 480px) {
  .faq-question { grid-template-columns: 20px minmax(0, 1fr) 18px; gap: 10px; padding: 17px 14px; }
  .faq-index { font-size: 12px; }
  .faq-answer-body { padding-left: 44px; padding-right: 16px; }
  .faq-answer-text { font-size: 14px; }
  .faq-contact-trigger { font-size: 14px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-accordion.is-enhanced .faq-answer, .faq-icon { transition: none; }
}


/* FAQ contact buttons reuse the existing form in a focused, accessible dialog. */
.faq-contact-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100svh - 32px); margin: auto; padding: 28px; overflow-y: auto; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 16px 64px rgb(29 29 31 / .16); }
.faq-contact-dialog::backdrop { background: rgb(29 29 31 / .3); }
.faq-contact-dialog h2 { margin: 0; padding-right: 30px; font-size: 26px; font-weight: 400; line-height: 1.15; letter-spacing: -.035em; }
.faq-contact-dialog > p { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.faq-contact-dialog .contact-fields { grid-template-columns: 1fr; margin: 22px 0 18px; }
.faq-contact-dialog .contact-fields label { grid-template-rows: auto 44px; }
.faq-contact-dialog .contact-field[hidden] { display: none; }
.faq-contact-dialog .contact-submit { font-size: 14px; }
.faq-contact-dialog .contact-method-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
@media (max-width: 480px) { .faq-contact-dialog { padding: 24px 20px; } .faq-contact-dialog h2 { font-size: 24px; } }

/* Independent title positioning leaves its entrance transform intact. */
.headline-start {
  width: var(--title-width, 100%);
  translate: var(--title-x, 0px) var(--title-y, 0px);
}
.layout-editing .headline-start { touch-action: none; }

@media (min-width: 761px) {
  :root {
    --title-font: min(4.82993197vw, 71px);
    --title-width: min(100%, 1340px);
  }
  .headline-start { justify-self: center; }
}

/* Reserve each complete phrase in the grid so typing never moves “под ключ”. */
.service-phrase { display: grid; }
.service-phrase::before { content: attr(data-text); visibility: hidden; grid-area: 1 / 1; }
.service-phrase .typewriter-text { position: relative; grid-area: 1 / 1; justify-self: center; }
.service-phrase.is-current { animation: none; transform: none; }
.typewriter-text::after {
  content: ""; position: absolute; left: calc(100% + .06em); top: .16em; width: 1px; height: .82em;
  background: currentColor;
  animation: typewriter-caret 1s step-end infinite;
}
@keyframes typewriter-caret { 50% { opacity: 0; } }
.layout-editing .typewriter-text::after { display: none; }
@media (prefers-reduced-motion: reduce) { .typewriter-text::after { display: none; animation: none; } }

.recruitment-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.recruitment-fields label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.recruitment-fields input, .recruitment-fields select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--surface); font: inherit; }
.recruitment-optional { color: var(--muted); display: contents; }
.recruitment-districts { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.recruitment-districts legend { padding: 0; margin-bottom: 12px; font-size: 14px; }
.recruitment-districts label { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.4; min-height: 36px; cursor: pointer; }
.recruitment-districts input { flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--brand-blue); }
.recruitment-districts .recruitment-any { color: var(--brand-blue); font-size: 14px; margin-bottom: 8px; }
.recruitment-district-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 16px; }
.recruitment-district-list input:disabled + span { color: var(--muted); opacity: .6; }
.recruitment-form .contact-submit { width: auto; padding-inline: 20px; margin-top: 12px; }
.recruitment-panel .recruitment-note { font-size: 12px; color: var(--muted); margin-top: 12px; }
.recruitment-panel .recruitment-error { color: #a33427; margin-top: 12px; font-size: 13px; }
.recruitment-form :focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
@media (max-width: 760px) {
  .recruitment-fields { grid-template-columns: 1fr; gap: 12px; }
  .recruitment-district-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
  .recruitment-form .contact-submit { width: 100%; }
}
@media (max-width: 380px) { .recruitment-district-list { grid-template-columns: 1fr; } }

/* Consistent contact controls and clear, whole-card district targets. */
.recruitment-fields label { display: grid; grid-template-rows: 20px 48px; gap: 8px; font-size: 14px; line-height: 20px; }
.recruitment-fields input, .recruitment-fields select { height: 48px; min-width: 0; margin: 0; font-family: inherit; font-size: 14px; line-height: 20px; padding: 12px 14px; }
.recruitment-fields select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.recruitment-districts legend { font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.recruitment-panel .recruitment-district-help { font-size: 13px; margin-bottom: 12px; }
.recruitment-district-list { gap: 8px; }
.recruitment-district-list label { padding: 9px 12px; min-height: 60px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, background-color .15s; }
.district-caption { display: grid; gap: 2px; }
.district-caption strong { color: var(--ink); font-size: 14px; font-weight: 500; }
.district-caption > span { color: var(--muted); font-size: 12px; }
.recruitment-district-list label:has(input:checked) { border-color: var(--brand-blue); background: #edf5ff; }
.recruitment-district-list label:has(input:checked) .district-caption strong { color: var(--brand-blue); }
.recruitment-district-list label:has(input:focus-visible) { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.recruitment-district-list label:has(input:disabled) { background: var(--paper); opacity: .6; cursor: default; }
.recruitment-districts .recruitment-any { width: fit-content; min-height: 44px; padding: 8px 12px; margin-bottom: 12px; border-radius: var(--radius); background: var(--paper); }
@media (hover: hover) { .recruitment-district-list label:not(:has(input:disabled)):hover { border-color: var(--brand-blue); } }
@media (max-width: 760px) { .recruitment-fields { grid-template-columns: 1fr; } .recruitment-fields input, .recruitment-fields select { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .recruitment-district-list label { transition: none; } }

.district-map-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 12px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.district-map { display: block; width: 100%; height: 270px; overflow: visible; }
.district-map-region { cursor: pointer; outline: none; }
.district-map-region path { fill: #dfe6ee; stroke: var(--surface); stroke-width: 1.6px; stroke-linejoin: round; fill-rule: evenodd; transition: fill .15s ease; }
.district-map-region text { pointer-events: none; font-family: inherit; font-size: 12px; font-weight: 500; fill: var(--ink); paint-order: stroke; stroke: #dfe6ee; stroke-width: 2px; stroke-linejoin: round; }
.district-map-region:hover path, .district-map-region:focus-visible path { fill: #b2d3f4; stroke: var(--brand-blue); }
.district-map-region[aria-checked="true"] path { fill: var(--brand-blue); }
.district-map-region[aria-checked="true"] text { fill: white; stroke: var(--brand-blue); }
.district-map-region:focus-visible path { stroke: var(--ink); stroke-width: 2.5px; }
.district-map-region[aria-disabled="true"] { cursor: default; }
.recruitment-panel .district-map-name { color: var(--ink); font-size: 18px; margin-bottom: 8px; }
.recruitment-panel .district-map-hint { font-size: 13px; }
.recruitment-panel .district-map-selection { color: var(--brand-blue); font-size: 13px; margin-top: 16px; }
.recruitment-panel .district-map-credit { margin: 8px 0; font-size: 10px; }
.district-map-credit a { color: inherit; text-underline-offset: 2px; }
.district-list-alternative summary { cursor: pointer; color: var(--brand-blue); font-size: 13px; padding: 8px 0; }
.district-list-alternative .recruitment-district-list { margin-top: 8px; }
@media (max-width: 760px) { .district-map-layout { grid-template-columns: 1fr; gap: 12px; padding: 12px; } .district-map { height: 260px; } .district-map-info { min-height: 90px; } }
@media (prefers-reduced-motion: reduce) { .district-map-region path { transition: none; } }

.recruitment-form .district-map-region:focus-visible { outline: none; }

/* Wider map, compact information rail; Moscow Oblast locations are selectable pins. */
.district-map-layout { grid-template-columns: minmax(0, 3.4fr) minmax(150px, 1fr); align-items: start; gap: 16px; padding: 12px; }
.district-map { height: 290px; }
.district-map-info { padding: 12px 0; }
.recruitment-panel .district-map-name { font-size: 14px; line-height: 1.4; margin-bottom: 6px; }
.recruitment-panel .district-map-hint, .recruitment-panel .district-map-selection { font-size: 12px; }
.recruitment-panel .district-map-selection { margin-top: 10px; }
.mo-map-place .mo-map-hit { fill: transparent; stroke: none; }
.mo-map-place .mo-map-pin { fill: var(--surface); stroke: var(--brand-blue); stroke-width: 2px; }
.mo-map-place text { pointer-events: auto; font-size: 12px; fill: var(--ink); stroke: var(--paper); stroke-width: 3px; }
.mo-map-place:hover .mo-map-pin, .mo-map-place:focus-visible .mo-map-pin, .mo-map-place[aria-checked="true"] .mo-map-pin { fill: var(--brand-blue); stroke-width: 3px; }
.mo-map-place[aria-checked="true"] text { fill: var(--brand-blue); stroke: var(--paper); }
.mo-map-place:focus-visible .mo-map-hit { fill: #006bd618; stroke: var(--brand-blue); stroke-width: 1px; }
.mo-map-place[aria-checked="true"] .mo-map-hit { fill: #006bd618; }
.mo-map-inset { fill: var(--surface); stroke: var(--line); }
.mo-map-label { fill: var(--muted); font-size: 11px; letter-spacing: 1px; }
.mo-map-subtitle { fill: var(--muted); font-size: 8px; letter-spacing: .6px; }
@media (max-width: 760px) { .district-map-layout { grid-template-columns: 1fr; gap: 4px; padding: 8px; } .district-map { height: auto; min-height: 170px; } .district-map-info { min-height: 0; padding: 4px; } }

.district-map-mobile-help { display: none; }
@media (max-width: 760px) {
  .district-map-canvas { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .district-map { width: 630px; max-width: none; height: 320px; }
  .recruitment-panel .district-map-mobile-help { display: block; margin: 8px 0; font-size: 12px; color: var(--muted); }
}

/* Compact recruitment panel: only the choice area scrolls, submission stays visible. */
.recruitment-panel { display: flex; flex-direction: column; padding: 16px 24px; max-height: var(--dock-panel-height, calc(100svh - 112px)); overflow: hidden; }
.recruitment-panel h3 { flex-shrink: 0; font-size: 21px; margin-bottom: 4px; }
.recruitment-panel > p { flex-shrink: 0; font-size: 13px; line-height: 1.4; }
.recruitment-form { display: flex; flex-direction: column; min-height: 0; margin-top: 8px; }
.recruitment-scroll { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 0 3px; }
.recruitment-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); margin: 0 0 12px; gap: 20px; }
.recruitment-fields label { grid-template-rows: 18px 40px; gap: 3px; font-size: 12px; line-height: 18px; }
.recruitment-fields input, .recruitment-fields select { height: 40px; min-height: 40px; padding: 8px 12px; font-size: 13px; }
.recruitment-fields select { padding-right: 36px; background-position: calc(100% - 19px) 17px, calc(100% - 14px) 17px; }
.recruitment-districts { margin-bottom: 4px; }
.recruitment-location-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); align-items: start; gap: 20px; }
.recruitment-location-sidebar, .recruitment-map-column { min-width: 0; }
.recruitment-location-sidebar h4 { font-size: 15px; font-weight: 500; line-height: 1.35; margin: 0 0 4px; }
.recruitment-panel .recruitment-district-help { font-size: 12px; margin-bottom: 5px; }
.recruitment-districts .recruitment-any { min-height: 32px; padding: 5px 10px; margin-bottom: 6px; font-size: 12px; }
.recruitment-map-column .district-map-layout { display: block; padding: 6px; }
.recruitment-map-column .district-map { height: 300px; }
.recruitment-location-sidebar .district-map-info { padding: 14px 0 8px; min-height: 112px; }
.recruitment-panel .district-map-name { font-size: 15px; min-height: 42px; }
.recruitment-panel .district-map-hint { font-size: 11px; }
.recruitment-panel .district-map-selection { font-size: 11px; margin-top: 6px; }
.district-map-about { max-width: 100%; text-align: right; }
.district-map-about .district-map-credit { text-align: left; }
.district-map-about summary, .district-list-alternative summary { padding: 4px 0; font-size: 11px; cursor: pointer; color: var(--muted); }
.district-map-about[open] { float: none; }
.recruitment-footer { flex: 0 0 auto; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); background: var(--surface); }
.recruitment-footer .contact-consent { font-size: 11px; margin-bottom: 6px; }
.recruitment-footer .contact-submit { margin-top: 0; min-height: 40px; padding: 9px 18px; }
.recruitment-panel .recruitment-note { margin-top: 5px; font-size: 11px; }
.recruitment-panel .recruitment-error:not([hidden]) { margin: 0 0 6px; font-size: 12px; }
@media (max-width: 760px) {
  .recruitment-panel { padding: 14px; max-height: var(--dock-panel-height, calc(100svh - 100px)); }
  .recruitment-panel h3 { font-size: 19px; }
  .recruitment-fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); gap: 8px; }
  .recruitment-fields label { font-size: 11px; }
  .recruitment-fields input, .recruitment-fields select { font-size: 16px; }
  .recruitment-location-grid { grid-template-columns: 1fr; gap: 8px; }
  .recruitment-location-sidebar { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
  .recruitment-location-sidebar h4, .recruitment-location-sidebar .recruitment-district-help, .recruitment-location-sidebar .district-list-alternative { grid-column: 1 / -1; }
  .recruitment-districts .recruitment-any { align-self: start; font-size: 11px; }
  .recruitment-location-sidebar .district-map-info { min-height: 0; padding: 0; grid-column: 2; grid-row: 3; }
  .recruitment-panel .district-map-name { font-size: 12px; min-height: 0; margin-bottom: 2px; }
  .recruitment-panel .district-map-selection { font-size: 10px; margin-top: 0; }
  .recruitment-map-column .district-map { height: 280px; width: 552px; }
  .recruitment-panel .district-map-hint { display: none; }
  .recruitment-panel .district-map-mobile-help { margin: 4px 0; font-size: 10px; }
  .recruitment-footer .contact-submit { width: 100%; }
}

.is-compact .recruitment-panel { overflow-y: auto; }
.is-compact .recruitment-form { flex: 0 0 auto; }
.is-compact .recruitment-scroll { overflow: visible; }

.recruitment-form[hidden], .recruitment-success[hidden] { display: none; }
.recruitment-success { padding: 32px 0; outline: none; }
.recruitment-success h4 { margin: 0 0 8px; font-size: 24px; font-weight: 400; }
.recruitment-footer .contact-submit:disabled { opacity: .65; cursor: wait; }

/* Keep focus inside the control so the scroll container never clips the ring. */
.recruitment-fields input:focus-visible, .recruitment-fields select:focus-visible {
  outline: none; border-color: var(--brand-blue); box-shadow: inset 0 0 0 1px var(--brand-blue);
}
.mo-map-place .mo-map-pill { fill: var(--surface); stroke: var(--line); stroke-width: 1px; transition: fill .15s, stroke .15s; }
.mo-map-place text { stroke: none; font-size: 12px; }
.mo-map-place:hover .mo-map-pill, .mo-map-place:focus-visible .mo-map-pill { stroke: var(--brand-blue); fill: #edf5ff; }
.mo-map-place[aria-checked="true"] .mo-map-pill { stroke: var(--brand-blue); fill: #edf5ff; }
.mo-map-place[aria-checked="true"] text { stroke: none; }
.mo-map-place:focus-visible .mo-map-pill { stroke-width: 2px; }
.mo-map-place .mo-map-hit, .mo-map-place:focus-visible .mo-map-hit, .mo-map-place[aria-checked="true"] .mo-map-hit { fill: transparent; stroke: none; }
@media (prefers-reduced-motion: reduce) { .mo-map-place .mo-map-pill { transition: none; } }

/* Public analytics consent; editor assets never load here. */
.td-consent{position:fixed;z-index:900;bottom:12px;left:12px;max-width:min(420px,calc(100vw - 24px));padding:12px 16px;background:#fff;color:#1d1d1f;border:1px solid #d2d2d7;border-radius:12px;box-shadow:0 4px 24px #0002;font:14px/1.5 sans-serif}.td-consent p{margin:0 0 10px}.td-consent button{font:inherit;min-height:44px;margin:3px;padding:8px 12px;border:1px solid #006bd6;border-radius:8px;background:#fff;color:#0056ac;cursor:pointer}.td-consent button:focus-visible{outline:3px solid #006bd6;outline-offset:2px}.td-consent [hidden]{display:none!important}

/* Shared visual language for management tariffs and purchase service cards. */
.pricing-card, .purchase-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); font-family: Inter, Arial, sans-serif; }
.pricing-card .pricing-title, .purchase-card h3 { font-family: Inter, Arial, sans-serif; font-weight: 500; letter-spacing: -.035em; line-height: 1.2; }
.pricing-amount, .purchase-price { color: var(--ink); font-family: Inter, Arial, sans-serif; font-weight: 500; letter-spacing: -.045em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pricing-features, .purchase-card ul { display: grid; list-style: none; margin: 0; padding: 0; }
.pricing-features li, .purchase-card ul li { position: relative; padding-left: 26px; color: var(--muted); font-size: 13px; line-height: 1.55; overflow-wrap: break-word; }
.pricing-features li::before, .purchase-card ul li::before { position: absolute; left: 0; top: 2px; content: ''; width: 17px; height: 17px; border-radius: 50%; background: var(--brand-blue) url('./assets/tariff-check.svg') center / 10px 10px no-repeat; }
@media (max-width: 760px) { .pricing-features li, .purchase-card ul li { font-size: 14px; } }
