/* Перспектива 24 — страница команды (team-page)
   Все стили scoped под .tp, чтобы не пересекаться с Tailwind/style.css.
   Палитра и типографика — только в блоке токенов .tp. */

.tp{
  /* tokens — the only place palette + type are set */
  --tp-bg:#ffffff;
  --tp-surface:#f9fafb;
  --tp-fg:#111827;
  --tp-muted:#6b7280;
  --tp-border:#e5e7eb;
  --tp-accent:#1c93d1;
  --tp-accent-dark:#147db3;
  --tp-on-accent:#ffffff;

  --tp-accent-soft: color-mix(in oklch, var(--tp-accent) 10%, var(--tp-bg));
  --tp-fg-soft:     color-mix(in oklch, var(--tp-fg) 5%, transparent);
  --tp-shadow-md: 0 10px 30px -14px color-mix(in oklch, var(--tp-fg) 26%, transparent);

  --tp-font: 'Roboto', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --tp-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;

  --tp-container: 75rem;

  color: var(--tp-fg);
  background: var(--tp-bg);
  font-family: var(--tp-font);
  font-size: 16px;
  line-height: 1.55;
  padding-top: 4rem;
  padding-bottom: 0;
  -webkit-font-smoothing: antialiased;
}
.tp *, .tp *::before, .tp *::after{ box-sizing: border-box; }
.tp img{ max-width: 100%; }

.tp-wrap{ max-width: var(--tp-container); margin-inline: auto; padding-inline: .5rem; }
@media (min-width: 1024px){ .tp-wrap{ padding-inline: 2rem; } }

/* type */
.tp-h1{ font-family: var(--tp-font); font-size: clamp(30px, 2.4vw + 20px, 46px); font-weight: 700;
  line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 18px; max-width: 24ch; color: var(--tp-fg); }
.tp-h2{ font-family: var(--tp-font); font-size: clamp(24px, 1.2vw + 18px, 33px); font-weight: 700;
  line-height: 1.14; letter-spacing: -0.015em; margin: 0; color: var(--tp-fg); }
.tp-lead{ font-size: 18px; line-height: 1.6; color: var(--tp-muted); max-width: 60ch; margin: 0; }
.tp-eyebrow{ font-family: var(--tp-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tp-muted); margin: 0 0 12px; }

/* buttons */
.tp-btn{ display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 0 20px; border-radius: 8px; border: 1px solid transparent; font-size: 15px; font-weight: 500;
  letter-spacing: 0.01em; white-space: nowrap; cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .05s ease; }
.tp-btn:active{ transform: translateY(1px); }
.tp-btn--primary{ background: var(--tp-accent-dark); color: var(--tp-on-accent); }
.tp-btn--primary:hover{ background: color-mix(in oklch, var(--tp-accent-dark) 84%, var(--tp-fg)); box-shadow: var(--tp-shadow-md); }
.tp-btn--secondary{ background: var(--tp-bg); color: var(--tp-fg); border-color: var(--tp-border); }
.tp-btn--secondary:hover{ border-color: var(--tp-accent); background: var(--tp-accent-soft); }
.tp-btn--lg{ min-height: 52px; font-size: 16px; }
.tp-btn:focus-visible, a.tp-contact:focus-visible, a.tp-method:focus-visible,
.tp-crumbs a:focus-visible{ outline: 2px solid var(--tp-accent); outline-offset: 2px; border-radius: 8px; }

/* tags / chips */
.tp-tag{ display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--tp-border);
  border-radius: 8px; background: var(--tp-surface); font-size: 13px; color: var(--tp-muted); }

/* hero */
.tp-hero{ padding-block: 0 clamp(56px, 8vw, 96px); }
.tp-actions{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.tp-actions--end{ justify-content: flex-end; }
.tp-chips{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* sections */
.tp-section{ padding-block: clamp(52px, 7vw, 84px); border-top: 1px solid var(--tp-border); }
.tp-section--flush-top{ border-top: 0; padding-top: clamp(24px, 3vw, 40px); }
.tp-sechead{ max-width: 62ch; margin-bottom: clamp(34px, 4vw, 52px); }
.tp-sechead .tp-h2{ margin-top: 2px; }
.tp-sechead .tp-lead{ margin-top: 14px; font-size: 17px; }

/* leadership spotlight */
.tp-spot{ display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.tp-spot-body{ display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tp-spot-role{ display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.tp-spot-name{ font-family: var(--tp-font); font-weight: 700; font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.02em; line-height: 1.08; margin: 0; color: var(--tp-fg); }
.tp-spot-bio{ max-width: 62ch; color: var(--tp-muted); }
.tp-spot-bio p{ margin: 0; }
.tp-spot-bio p + p{ margin-top: 14px; }
.tp-spot-bio strong{ color: var(--tp-fg); font-weight: 500; }
.tp-facts{ display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; max-width: 520px;
  background: var(--tp-border); border: 1px solid var(--tp-border); border-radius: 8px; overflow: hidden; }
.tp-facts > div{ background: var(--tp-bg); padding: 14px 18px; }
.tp-facts > div:last-child:nth-child(odd){ grid-column: 1 / -1; }
.tp-facts dt{ font-size: 12px; color: var(--tp-muted); }
.tp-facts dd{ margin: 5px 0 0; font-family: var(--tp-mono); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 500; color: var(--tp-fg); }
.tp-facts dd a{ color: inherit; }
.tp-facts dd a:hover{ color: var(--tp-accent-dark); text-decoration: underline; text-underline-offset: 3px; }

/* monogram / photo avatar */
.tp-avatar{ display: grid; place-items: center; position: relative; overflow: hidden; aspect-ratio: 1 / 1;
  border: 1px solid var(--tp-border); border-radius: 12px; background: var(--tp-surface); color: var(--tp-fg);
  font-family: var(--tp-font); font-weight: 700; letter-spacing: 0.02em;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.tp-avatar::after{ content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .18s ease;
  background: radial-gradient(130% 120% at 28% 0%, var(--tp-accent-soft), transparent 58%); }
.tp-avatar img{ width: 100%; height: 100%; object-fit: cover; }
.tp-avatar span{ position: relative; z-index: 1; font-size: clamp(26px, 4.6vw, 42px); }
.tp-avatar--lg span{ font-size: clamp(52px, 9vw, 88px); }

/* roster grid */
.tp-grid{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.tp-member{ min-width: 0; }
.tp-member > a{ display: block; color: inherit; text-decoration: none; }
.tp-member .tp-avatar{ margin-bottom: 16px; }
.tp-member:hover .tp-avatar{ border-color: var(--tp-accent); transform: translateY(-2px); box-shadow: var(--tp-shadow-md); }
.tp-member:hover .tp-avatar::after{ opacity: 1; }
.tp-member-name{ font-family: var(--tp-font); font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
  line-height: 1.25; margin: 0; color: var(--tp-fg); transition: color .15s ease; }
.tp-member:hover .tp-member-name{ color: var(--tp-accent-dark); }
.tp-member-role{ font-size: 14px; color: var(--tp-muted); margin: 4px 0 0; }
.tp-member-meta{ margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--tp-border);
  font-family: var(--tp-mono); font-size: 12px; color: var(--tp-muted); }
.tp-badge{ display: inline-flex; margin-top: 10px; padding: 4px 10px; border-radius: 999px;
  background: var(--tp-accent-soft); color: var(--tp-accent-dark); font-size: 12px; }

/* vacancies band */
.tp-band{ display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center;
  background: var(--tp-surface); border: 1px solid var(--tp-border); border-radius: 12px; padding: clamp(28px, 4vw, 46px); }
.tp-band .tp-h2{ margin-top: 2px; }
.tp-band .tp-lead{ margin-top: 12px; font-size: 17px; }

@media (max-width: 960px){
  .tp-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px){
  .tp-spot{ grid-template-columns: 1fr; }
  .tp-band{ grid-template-columns: 1fr; gap: 24px; }
  .tp-actions--end{ justify-content: flex-start; }
}
@media (max-width: 720px){
  .tp-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px){
  .tp-grid{ grid-template-columns: 1fr; }
}
/* breadcrumbs */
.tp-crumbs{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px;
  color: var(--tp-muted); padding-block: 2px 20px; }
.tp-crumbs a{ color: var(--tp-muted); transition: color .15s ease; }
.tp-crumbs a:hover{ color: var(--tp-accent-dark); }
.tp-crumbs .sep{ color: var(--tp-border); }
.tp-crumbs [aria-current]{ color: var(--tp-fg); }

/* button modifiers */
.tp-btn--ghost{ background: transparent; color: var(--tp-fg); padding-inline: 6px; }
.tp-btn--ghost:hover{ color: var(--tp-accent-dark); }
.tp-btn--block{ width: 100%; }

/* profile hero */
.tp-profile{ display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px); align-items: start; }
.tp-profile-body{ display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tp-profile-role{ display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.tp-profile-name{ font-family: var(--tp-font); font-weight: 700; font-size: clamp(30px, 3.2vw, 44px);
  letter-spacing: -0.02em; line-height: 1.06; margin: 0; color: var(--tp-fg); }
.tp-profile-lead{ max-width: 56ch; color: var(--tp-muted); font-size: 17px; margin: 0; }
.tp-profile-actions{ display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.tp-profile .tp-avatar{ box-shadow: var(--tp-shadow-md); }

/* detail: prose + sticky aside */
.tp-detail{ display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(28px, 4vw, 56px); align-items: start; }
.tp-prose{ max-width: 70ch; color: var(--tp-muted); font-size: 17px; line-height: 1.7; }
.tp-prose p + p{ margin-top: 16px; }
.tp-prose strong{ color: var(--tp-fg); font-weight: 500; }
.tp-prose a{ color: var(--tp-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.tp-prose a:hover{ color: var(--tp-fg); }

.tp-aside{ position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.tp-card{ background: var(--tp-bg); border: 1px solid var(--tp-border); border-radius: 12px;
  box-shadow: var(--tp-shadow-md); overflow: hidden; }
.tp-card-head{ padding: 18px 20px 14px; border-bottom: 1px solid var(--tp-border); }
.tp-card-head h3{ font-family: var(--tp-font); font-weight: 700; font-size: 16px; margin: 0; color: var(--tp-fg); }
.tp-card-body{ padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; }

.tp-contact{ display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--tp-border);
  border-radius: 10px; background: var(--tp-surface); transition: border-color .15s ease, background .15s ease; }
.tp-contact:hover{ border-color: var(--tp-accent); background: var(--tp-accent-soft); }
.tp-contact svg{ width: 18px; height: 18px; color: var(--tp-accent-dark); flex: none; }
.tp-contact-txt{ min-width: 0; }
.tp-contact .k{ display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tp-muted); }
.tp-contact .v{ font-family: var(--tp-mono); font-variant-numeric: tabular-nums; font-size: 15px;
  font-weight: 500; color: var(--tp-fg); overflow-wrap: anywhere; }

/* callback band */
.tp-callback{ background: var(--tp-surface); border: 1px solid var(--tp-border); border-radius: 12px;
  padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px; align-items: center; }
.tp-callback form{ display: flex; flex-direction: column; gap: 12px; }
.tp-field{ display: flex; gap: 10px; }
.tp-input{ flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--tp-border);
  border-radius: 8px; background: var(--tp-bg); font: inherit; font-size: 15px; color: var(--tp-fg); }
.tp-input::placeholder{ color: var(--tp-muted); }
.tp-input:focus{ outline: none; border-color: var(--tp-accent); box-shadow: 0 0 0 3px var(--tp-accent-soft); }
.tp-consent{ display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--tp-muted); line-height: 1.5; }
.tp-consent input{ margin-top: 2px; flex: none; width: 18px; height: 18px; accent-color: var(--tp-accent-dark); }
.tp-consent a{ color: var(--tp-accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.tp-note{ font-size: 13px; color: var(--tp-accent-dark); min-height: 18px; margin: 0; }

@media (max-width: 1024px){
  .tp-detail{ grid-template-columns: 1fr; }
  .tp-aside{ position: static; }
}
@media (max-width: 860px){
  .tp-profile{ grid-template-columns: 1fr; }
  .tp-profile .tp-avatar{ max-width: 320px; }
  .tp-callback{ grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 680px){
  .tp-field{ flex-direction: column; }
}
@media (max-width: 420px){
  .tp-facts{ grid-template-columns: 1fr; }
}
/* ============================== vacancies ==============================
   Shared content-page system (used by the team page too). Tokens above
   remain the single source of palette + type. */

/* list */
.tp-vac-list{ display: flex; flex-direction: column; gap: 16px; }
.tp-vac{ display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center;
  background: var(--tp-bg); border: 1px solid var(--tp-border); border-radius: 12px;
  padding: clamp(22px, 3vw, 32px); text-decoration: none; color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.tp-vac:hover{ border-color: var(--tp-accent); box-shadow: var(--tp-shadow-md); transform: translateY(-2px); }
.tp-vac:focus-visible{ outline: 2px solid var(--tp-accent); outline-offset: 3px; }
.tp-vac-main{ min-width: 0; }
.tp-vac-eyebrow{ display: inline-flex; align-items: center; gap: 8px; font-family: var(--tp-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--tp-accent-dark); margin: 0 0 12px; }
.tp-vac-eyebrow::before{ content: ""; width: 20px; height: 1px; background: var(--tp-accent); }
.tp-vac-title{ font-family: var(--tp-font); font-weight: 700; font-size: clamp(21px, 1.5vw + 14px, 27px);
  letter-spacing: -.01em; line-height: 1.2; margin: 0; color: var(--tp-fg); transition: color .15s ease; }
.tp-vac:hover .tp-vac-title{ color: var(--tp-accent-dark); }
.tp-vac-summary{ display: block; margin: 10px 0 0; color: var(--tp-muted); max-width: 62ch; }
.tp-vac-more{ display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-weight: 500;
  font-size: 15px; color: var(--tp-accent-dark); transition: gap .15s ease; }
.tp-vac:hover .tp-vac-more{ gap: 11px; }
.tp-vac-more svg{ width: 16px; height: 16px; }
.tp-vac-side{ align-self: stretch; display: flex; align-items: center; }
.tp-vac-cta{ display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  border-radius: 8px; background: var(--tp-surface); border: 1px solid var(--tp-border); color: var(--tp-fg);
  font-weight: 500; white-space: nowrap; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.tp-vac:hover .tp-vac-cta{ background: var(--tp-accent-soft); border-color: var(--tp-accent); color: var(--tp-accent-dark); }

/* empty state */
.tp-empty{ text-align: center; border: 1px dashed var(--tp-border); border-radius: 12px;
  background: var(--tp-surface); padding: clamp(32px, 5vw, 56px); }
.tp-empty .tp-h2{ margin-inline: auto; }
.tp-empty .tp-lead{ margin: 12px auto 0; }
.tp-empty .tp-actions{ justify-content: center; }

/* apply block (detail) */
.tp-apply{ background: var(--tp-bg); border: 1px solid var(--tp-border); border-radius: 12px;
  box-shadow: var(--tp-shadow-md); padding: clamp(24px, 3.4vw, 44px); }
.tp-form{ display: flex; flex-direction: column; gap: 22px; }
.tp-form-row{ display: flex; flex-direction: column; gap: 8px; }
.tp-label{ font-size: 14px; font-weight: 500; color: var(--tp-fg); }
.tp-label .req{ color: var(--tp-accent-dark); }
.tp-input, .tp-select, .tp-textarea{ width: 100%; border: 1px solid var(--tp-border); border-radius: 8px;
  background: var(--tp-bg); font: inherit; font-size: 15px; color: var(--tp-fg); }
.tp-input, .tp-select{ height: 48px; padding: 0 16px; }
.tp-textarea{ padding: 13px 16px; min-height: 132px; resize: vertical; line-height: 1.6; }
.tp-select{ appearance: none; padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--tp-muted) 50%), linear-gradient(135deg, var(--tp-muted) 50%, transparent 50%);
  background-position: calc(100% - 21px) 21px, calc(100% - 16px) 21px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.tp-input::placeholder, .tp-textarea::placeholder{ color: var(--tp-muted); }
.tp-input:focus, .tp-select:focus, .tp-textarea:focus{ outline: none; border-color: var(--tp-accent); box-shadow: 0 0 0 3px var(--tp-accent-soft); }
.tp-input[aria-invalid="true"], .tp-select[aria-invalid="true"], .tp-textarea[aria-invalid="true"]{ border-color: #dc2626; }
.tp-input[aria-invalid="true"]:focus, .tp-select[aria-invalid="true"]:focus, .tp-textarea[aria-invalid="true"]:focus{ box-shadow: 0 0 0 3px #fee2e2; }
.tp-help{ font-size: 13px; color: var(--tp-muted); margin: 0; }
.tp-error{ font-size: 13px; color: #dc2626; font-weight: 500; margin: 0; }
.tp-error::before{ content: "! "; font-weight: 700; }
.tp-check{ display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--tp-fg); line-height: 1.5; }
.tp-check input{ margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--tp-accent-dark); }
.tp-check a{ color: var(--tp-accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.tp-file{ display: block; width: 100%; font-size: 14px; color: var(--tp-fg); }
.tp-file::file-selector-button{ margin-right: 14px; padding: 10px 16px; border: 1px solid var(--tp-border);
  border-radius: 8px; background: var(--tp-surface); color: var(--tp-fg); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .16s ease, border-color .16s ease; }
.tp-file::file-selector-button:hover{ background: var(--tp-accent-soft); border-color: var(--tp-accent); }
.tp-form-actions{ padding-top: 4px; }

/* inline notices */
.tp-success{ display: flex; gap: 12px; align-items: flex-start; background: var(--tp-accent-soft);
  border: 1px solid var(--tp-accent); border-radius: 10px; padding: 16px 18px; margin-bottom: 24px; }
.tp-success svg{ width: 20px; height: 20px; color: var(--tp-accent-dark); flex: none; margin-top: 1px; }
.tp-success p{ margin: 0; }
.tp-success .t{ font-weight: 700; color: var(--tp-fg); }
.tp-success .d{ font-size: 14px; color: var(--tp-muted); margin-top: 2px; }

/* photo dropzone (dropzone.js) */
.tp-drop.dropzone{ min-height: 9.5rem; border: 2px dashed var(--tp-border);
  border-radius: 10px; background: var(--tp-surface); padding: 20px 16px; }
.tp-drop.dropzone .dz-message{ margin: 12px 0; color: var(--tp-muted); font-size: 15px; }
.tp-drop.dropzone.dz-drag-hover{ border-color: var(--tp-accent); background: var(--tp-accent-soft); }
.tp-drop.dropzone .dz-preview{ margin: 8px; }

/* richer prose (vacancy descriptions contain headings + lists) */
.tp-prose h2{ font-family: var(--tp-font); font-weight: 700; font-size: clamp(20px, 1.3vw + 14px, 25px);
  letter-spacing: -.01em; line-height: 1.22; color: var(--tp-fg); margin: 34px 0 0; }
.tp-prose h3{ font-family: var(--tp-font); font-weight: 700; font-size: 18px; color: var(--tp-fg); margin: 24px 0 0; }
.tp-prose > *:first-child{ margin-top: 0; }
.tp-prose ul, .tp-prose ol{ margin: 12px 0 0; padding-left: 1.25em; }
.tp-prose li{ margin-top: 6px; }
.tp-prose li::marker{ color: var(--tp-accent-dark); }
.tp-prose h2 + p, .tp-prose h2 + ul, .tp-prose h2 + ol{ margin-top: 8px; }
.tp-prose ul + p, .tp-prose p + ul, .tp-prose p + ol, .tp-prose ul + ul, .tp-prose ol + ul{ margin-top: 14px; }

@media (max-width: 820px){
  .tp-vac{ grid-template-columns: 1fr; }
  .tp-vac-side{ display: none; }
}

/* ============================== about company ==============================
   Editorial layout for the «О компании» page. Reuses the shared .tp tokens;
   no new palette values are introduced here. */

/* hero: copy + facts panel */
.tp-about-hero{ display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px); align-items: start; }
.tp-about-hero .tp-lead{ margin-top: 6px; }
.tp-about-hero .tp-facts{ margin: 0; }

/* stats band */
.tp-stats{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--tp-border); border: 1px solid var(--tp-border); border-radius: 12px; overflow: hidden; }
.tp-stat{ background: var(--tp-bg); padding: clamp(24px, 3vw, 38px); }
.tp-stat-value{ font-family: var(--tp-font); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  font-size: clamp(32px, 3vw + 12px, 54px); line-height: 1; margin: 0; color: var(--tp-fg); }
.tp-stat-label{ margin: 14px 0 0; font-weight: 500; color: var(--tp-fg); }
.tp-stat-sub{ margin: 6px 0 0; font-size: 14px; color: var(--tp-muted); }

/* about body: prose + requisites aside */
.tp-about{ display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 4vw, 56px); align-items: start; }
.tp-about .tp-prose{ max-width: 68ch; }
.tp-about-aside{ position: sticky; top: 88px; }
.tp-about-aside .tp-card-body{ gap: 8px; }

/* quotes */
.tp-quotes{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.tp-quote{ display: flex; flex-direction: column; gap: 16px; margin: 0;
  background: var(--tp-surface); border: 1px solid var(--tp-border); border-radius: 12px;
  padding: clamp(22px, 2.6vw, 30px); }
.tp-quote-mark{ width: 26px; height: 26px; color: var(--tp-accent); }
.tp-quote-text{ margin: 0; color: var(--tp-fg); font-size: 15px; line-height: 1.65; }
.tp-quote-author{ margin-top: auto; padding-top: 14px; border-top: 1px solid var(--tp-border);
  display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--tp-fg); }
.tp-quote-avatar{ display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 999px;
  background: var(--tp-accent-soft); color: var(--tp-accent-dark); font-size: 13px; font-weight: 700; }

@media (max-width: 1024px){
  .tp-about{ grid-template-columns: 1fr; }
  .tp-about-aside{ position: static; }
  .tp-quotes{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px){
  .tp-about-hero{ grid-template-columns: 1fr; }
  .tp-stats{ grid-template-columns: 1fr; }
}
@media (max-width: 680px){
  .tp-quotes{ grid-template-columns: 1fr; }
}

/* ============================== contacts ==============================
   Editorial layout for the «Контакты» page. Reuses the shared .tp tokens;
   no new palette values are introduced here. */

/* contact method cards */
.tp-methods{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.tp-method{ display: flex; flex-direction: column; gap: 14px; min-width: 0;
  background: var(--tp-bg); border: 1px solid var(--tp-border); border-radius: 12px;
  padding: clamp(20px, 2.4vw, 26px); color: inherit; text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
a.tp-method:hover{ border-color: var(--tp-accent); box-shadow: var(--tp-shadow-md); transform: translateY(-2px); }
a.tp-method:focus-visible{ outline: 2px solid var(--tp-accent); outline-offset: 3px; }
.tp-method-icon{ display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 10px; background: var(--tp-accent-soft); color: var(--tp-accent-dark); }
.tp-method-icon svg{ width: 21px; height: 21px; }
.tp-method-body{ display: flex; flex-direction: column; min-width: 0; }
.tp-method-label{ font-family: var(--tp-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--tp-muted); }
.tp-method-value{ margin-top: 6px; font-family: var(--tp-mono); font-variant-numeric: tabular-nums;
  font-size: 17px; font-weight: 500; line-height: 1.35; color: var(--tp-fg); overflow-wrap: anywhere; }
.tp-method-note{ margin-top: 3px; font-size: 13px; color: var(--tp-muted); }
a.tp-method:hover .tp-method-value{ color: var(--tp-accent-dark); }

/* contacts about: prose + location map */
.tp-contact-about{ display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px); align-items: start; }
.tp-contact-about .tp-prose{ max-width: 68ch; }
.tp-contact-about .tp-map{ position: sticky; top: 88px; }

/* location card */
.tp-map{ border: 1px solid var(--tp-border); border-radius: 12px; overflow: hidden; background: var(--tp-bg); }
.tp-map-frame{ position: relative; aspect-ratio: 4 / 3; background: var(--tp-surface); }
.tp-map-frame iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.tp-map-foot{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; padding: 15px 18px; border-top: 1px solid var(--tp-border); }
.tp-map-foot .addr{ font-size: 14px; color: var(--tp-muted); }
.tp-map-foot a{ font-weight: 500; color: var(--tp-accent-dark); white-space: nowrap; }
.tp-map-foot a:hover{ color: var(--tp-fg); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1024px){
  .tp-methods{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-contact-about{ grid-template-columns: 1fr; }
  .tp-contact-about .tp-map{ position: static; }
}
@media (max-width: 560px){
  .tp-methods{ grid-template-columns: 1fr; }
}

/* ============================== services ==============================
   Editorial layout for the service landings (/services/<slug>): exchange,
   valuation, house sale, etc. Reuses the shared .tp tokens; no new palette. */

/* hero for a service: copy column, action row.
   Vertical scale decided: tight inside the form row (8–12px),
   one step to the lead (~24px), a real break to the action (~44px). */
.tp-service-hero{ display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 3vw, 34px); }
.tp-service-hero .tp-h1{ max-width: 22ch; margin-bottom: clamp(20px, 2.2vw, 26px); }
.tp-service-hero .tp-lead{ max-width: 56ch; }
.tp-service-hero .tp-actions{ margin-top: clamp(32px, 4.5vw, 48px); }

/* hero phone capture: country code (CIS, BY default) + masked number.
   One decided action column (~560px): button's right edge aligns with the lead's. */
.tp-hero-phone{ display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; min-width: 0; max-width: 560px; }
.tp-hero-phone-row{ display: flex; gap: 8px; flex: 1 1 340px; min-width: 0; }
.tp-hero-phone-code{ display: inline-flex; align-items: center; }
.tp-hero-phone-code > span{ position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }
.tp-hero-phone-code select{ height: 52px; padding: 0 10px; border: 1px solid var(--tp-border); border-radius: 8px;
  background: var(--tp-bg); font: inherit; font-size: 15px; color: var(--tp-fg); cursor: pointer; }
.tp-hero-phone-code select:focus-visible{ outline: none; border-color: var(--tp-accent); box-shadow: 0 0 0 3px var(--tp-accent-soft); }
.tp-hero-phone-input{ height: 52px; font-size: 16px; }
.tp-hero-phone .tp-consent{ flex-basis: 100%; margin: 0; }
@media (max-width: 680px){
  .tp-hero-phone{ flex-basis: 100%; max-width: none; }
  .tp-hero-phone .tp-btn{ width: 100%; }
}

/* media figure */
.tp-figure{ margin: 0; border: 1px solid var(--tp-border); border-radius: 12px; overflow: hidden; background: var(--tp-surface); }
.tp-figure img{ display: block; width: 100%; height: auto; }
.tp-caption{ padding: 14px 18px; border-top: 1px solid var(--tp-border); font-size: 14px; color: var(--tp-muted); }

/* benefits grid (icon + copy) */
.tp-benefits{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 30px); }
.tp-benefit{ display: flex; flex-direction: column; gap: 16px; min-width: 0;
  border-top: 1px solid var(--tp-border); padding-top: 20px; }
.tp-benefit-icon{ display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  border-radius: 10px; background: var(--tp-accent-soft); color: var(--tp-accent-dark); }
.tp-benefit-icon svg{ width: 21px; height: 21px; color: var(--tp-accent-dark); }
.tp-benefit-title{ font-family: var(--tp-font); font-weight: 700; font-size: 18px; line-height: 1.25;
  letter-spacing: -0.01em; margin: 0; color: var(--tp-fg); }
.tp-benefit-text{ margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--tp-muted); }

/* steps */
.tp-steps{ display: flex; flex-direction: column; max-width: 62ch; }
.tp-step{ display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; position: relative;
  padding-bottom: 30px; }
.tp-step:last-child{ padding-bottom: 0; }
.tp-step:not(:last-child)::before{ content: ""; position: absolute; left: 19px; top: 42px; bottom: 2px;
  width: 1px; background: var(--tp-border); }
.tp-step-num{ display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--tp-border); background: var(--tp-bg); color: var(--tp-accent-dark);
  font-family: var(--tp-mono); font-size: 15px; font-weight: 600; position: relative; z-index: 1; }
.tp-step-title{ font-family: var(--tp-font); font-weight: 700; font-size: 17px; margin: 7px 0 0; color: var(--tp-fg); }
.tp-step-text{ margin: 7px 0 0; font-size: 15px; line-height: 1.65; color: var(--tp-muted); }

/* faq accordion */
.tp-faq{ display: flex; flex-direction: column; gap: 12px; max-width: 74ch; }
.tp-faq-item{ border: 1px solid var(--tp-border); border-radius: 10px; background: var(--tp-bg);
  overflow: hidden; transition: border-color .16s ease, background .16s ease; }
.tp-faq-item[open]{ border-color: var(--tp-accent); background: var(--tp-surface); }
.tp-faq-q{ display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer;
  list-style: none; padding: 18px 20px; font-weight: 500; font-size: 16px; color: var(--tp-fg); }
.tp-faq-q::-webkit-details-marker{ display: none; }
.tp-faq-q:hover{ color: var(--tp-accent-dark); }
.tp-faq-q:focus-visible{ outline: 2px solid var(--tp-accent); outline-offset: -2px; }
.tp-faq-q .ico{ flex: none; width: 18px; height: 18px; color: var(--tp-accent-dark);
  transition: transform .2s ease; }
.tp-faq-item[open] .tp-faq-q .ico{ transform: rotate(45deg); }
.tp-faq-a{ margin: 0; padding: 0 20px 20px; color: var(--tp-muted); font-size: 15px; line-height: 1.7; }

/* service intro: prose + summary aside */
.tp-service{ display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 4vw, 56px); align-items: start; }
.tp-service .tp-prose{ max-width: 68ch; }
.tp-service-aside{ position: sticky; top: 88px; }

@media (max-width: 1024px){
  .tp-benefits{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-service{ grid-template-columns: 1fr; }
  .tp-service-aside{ position: static; }
}
@media (max-width: 560px){
  .tp-benefits{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){
  .tp *{ transition: none !important; }
}
