/* Страница «О нас» — единая колонка, как на главной и в «Услугах» */

body[data-cms-page="about"] .container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

body[data-cms-page="about"] .about-page {
  padding: 1.15rem 0 1.75rem;
}

body[data-cms-page="about"] .section {
  padding: 0.55rem 0;
}

body[data-cms-page="about"] .card,
body[data-cms-page="about"] .hero-card {
  background: var(--theme-surface, #fff);
  border: 1px solid var(--theme-border, #d4deef);
  border-radius: 18px;
  padding: 1.2rem 1.35rem;
}

body[data-cms-page="about"] .hero-card {
  background: linear-gradient(
    140deg,
    color-mix(in srgb, var(--theme-primary-soft, #e9f0ff) 65%, var(--theme-surface, #fff)) 0%,
    var(--theme-surface, #fff) 70%
  );
  box-shadow: var(--theme-shadow, 0 10px 28px rgba(18, 45, 95, 0.07));
}

body[data-cms-page="about"] .hero-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--theme-primary, #243b84);
  font-weight: 800;
}

body[data-cms-page="about"] .about-breadcrumb {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: var(--theme-muted, #5f6d8c);
}

body[data-cms-page="about"] .about-breadcrumb a {
  color: var(--theme-primary, #243b84);
  text-decoration: none;
  font-weight: 700;
}

body[data-cms-page="about"] .about-hero h1 {
  margin: 0 0 0.65rem;
  line-height: 1.15;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  max-width: 48rem;
}

body[data-cms-page="about"] .about-lead {
  margin: 0;
  line-height: 1.65;
  font-size: 1.05rem;
  color: var(--theme-text, #18243d);
  max-width: 52rem;
}

body[data-cms-page="about"] .about-legal {
  margin: 0.6rem 0 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--theme-muted, #5f6d8c);
  max-width: 52rem;
}

body[data-cms-page="about"] .hero-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body[data-cms-page="about"] .hero-actions a {
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--theme-border, #d4deef) 85%, var(--theme-primary, #243b84) 15%);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--theme-text, #18243d);
  background: var(--theme-surface, #fff);
}

body[data-cms-page="about"] .hero-actions a:hover {
  border-color: color-mix(in srgb, var(--theme-primary, #243b84) 45%, var(--theme-border));
  background: color-mix(in srgb, var(--theme-primary-soft, #e9f0ff) 45%, var(--theme-surface));
}

body[data-cms-page="about"] .hero-actions__quiet {
  font-weight: 600;
  border-style: dashed;
}

body[data-cms-page="about"] .about-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--theme-border, #d4deef);
}

body[data-cms-page="about"] .about-page-nav a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--theme-primary, #243b84);
  text-decoration: none;
}

body[data-cms-page="about"] .about-page-nav a:hover {
  text-decoration: underline;
}

body[data-cms-page="about"] .section-head {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  line-height: 1.25;
}

body[data-cms-page="about"] .about-subhead {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--theme-text, #18243d);
}

/* Организация: одна карточка, две колонки */
body[data-cms-page="about"] .about-org-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 1.5rem;
  align-items: start;
}

body[data-cms-page="about"] .about-mission-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.65;
}

body[data-cms-page="about"] .about-mission-list li {
  margin-bottom: 0.5rem;
}

body[data-cms-page="about"] .about-areas-stack {
  display: grid;
  gap: 0.65rem;
}

body[data-cms-page="about"] .about-areas-stack > div {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--theme-border, #d4deef);
  background: color-mix(in srgb, var(--theme-surface-soft, #f7f9ff) 45%, var(--theme-surface));
  line-height: 1.6;
  font-size: 0.98rem;
}

body[data-cms-page="about"] .about-areas-stack > div p {
  margin: 0;
}

/* Председатель */
body[data-cms-page="about"] .leader-welcome {
  box-shadow: none;
}

body[data-cms-page="about"] .leader-welcome__glow {
  display: none !important;
}

body[data-cms-page="about"] .leader-grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 1.25rem;
  align-items: start;
}

body[data-cms-page="about"] .leader-grid--large {
  grid-template-columns: minmax(240px, 320px) 1fr;
}

body[data-cms-page="about"] .leader-photo {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--theme-border, #d4deef);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

body[data-cms-page="about"] .leader-photo--featured {
  min-height: 280px;
  max-height: 400px;
}

body[data-cms-page="about"] .leader-welcome__quote {
  margin: 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid color-mix(in srgb, var(--theme-primary, #243b84) 40%, var(--theme-border));
}

body[data-cms-page="about"] .leader-welcome__quote p {
  margin: 0 0 0.85rem;
  line-height: 1.65;
  font-size: 1.02rem;
  animation: none !important;
}

body[data-cms-page="about"] .leader-welcome__list {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.25rem;
}

body[data-cms-page="about"] .leader-welcome__list li {
  animation: none !important;
}

body[data-cms-page="about"] .leader-welcome__motto {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--theme-border, #d4deef);
  background: color-mix(in srgb, var(--theme-primary-soft, #e9f0ff) 35%, var(--theme-surface));
  text-align: center;
  animation: none !important;
}

body[data-cms-page="about"] .leader-welcome__motto-kicker {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--theme-muted, #5f6d8c);
}

body[data-cms-page="about"] .leader-welcome__motto-line {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--theme-primary, #243b84);
  background: none;
  -webkit-text-fill-color: unset;
  animation: none !important;
}

body[data-cms-page="about"] .leader-welcome__sign {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--theme-border, #d4deef);
}

/* Офисы и график — одна карточка */
body[data-cms-page="about"] .about-hours-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 0.25rem;
}

body[data-cms-page="about"] .about-hours-panel {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--theme-border, #d4deef);
  background: color-mix(in srgb, var(--theme-surface-soft, #f7f9ff) 40%, var(--theme-surface));
}

body[data-cms-page="about"] .about-hours-schedule {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
}

body[data-cms-page="about"] .about-hours-schedule > div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  background: var(--theme-surface, #fff);
  border: 1px solid var(--theme-border, #d4deef);
}

body[data-cms-page="about"] .about-hours-schedule dt {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--theme-muted, #5f6d8c);
}

body[data-cms-page="about"] .about-hours-schedule dd {
  margin: 0;
  font-weight: 800;
}

body[data-cms-page="about"] .about-hours-note,
body[data-cms-page="about"] .about-hours-lead {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--theme-muted, #5f6d8c);
}

body[data-cms-page="about"] .about-hours-phone a {
  font-weight: 800;
  color: var(--theme-primary, #243b84);
  text-decoration: none;
}

body[data-cms-page="about"] .about-hours-channels {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-cms-page="about"] .about-hours-channel {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--theme-border, #d4deef);
  background: var(--theme-surface, #fff);
  text-decoration: none;
  color: var(--theme-text, #18243d);
}

body[data-cms-page="about"] .about-hours-channel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  flex-shrink: 0;
  color: #fff;
}

body[data-cms-page="about"] .about-hours-channel__icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

body[data-cms-page="about"] .about-hours-channel--vk .about-hours-channel__icon {
  background: #0077ff;
}

body[data-cms-page="about"] .about-hours-channel--tg .about-hours-channel__icon {
  background: #229ed9;
}

body[data-cms-page="about"] .about-hours-channel--max .about-hours-channel__icon {
  background: linear-gradient(135deg, #6b4cff, #a855f7);
}

body[data-cms-page="about"] .about-hours-channel__text {
  display: grid;
  gap: 0.05rem;
  line-height: 1.2;
}

body[data-cms-page="about"] .about-hours-channel__text span {
  font-size: 0.82rem;
  color: var(--theme-muted, #5f6d8c);
}

body[data-cms-page="about"] .about-visit-divider {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--theme-border, #d4deef);
}

body[data-cms-page="about"] .office-caption {
  margin: 0 0 0.85rem;
  color: var(--theme-muted, #5f6d8c);
  line-height: 1.55;
}

body[data-cms-page="about"] .offices-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

body[data-cms-page="about"] .office-block {
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--theme-border, #d4deef);
  background: color-mix(in srgb, var(--theme-surface-soft, #f7f9ff) 35%, var(--theme-surface));
}

body[data-cms-page="about"] .office-block--luch {
  border-color: color-mix(in srgb, #d8a847 35%, var(--theme-border));
  background: color-mix(in srgb, #fff8e8 30%, var(--theme-surface));
}

body[data-cms-page="about"] .office-block h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

body[data-cms-page="about"] .office-block > p {
  margin: 0 0 0.65rem;
}

body[data-cms-page="about"] .office-map-wrap {
  border: 1px solid var(--theme-border, #d4deef);
  border-radius: 12px;
  padding: 0.5rem;
  background: var(--theme-surface, #fff);
}

body[data-cms-page="about"] .office-map {
  width: 100%;
  min-height: 220px;
  border: 0;
  border-radius: 8px;
  display: block;
}

body[data-cms-page="about"] .map-actions {
  margin-top: 0.55rem;
}

body[data-cms-page="about"] .map-actions a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--theme-primary, #243b84);
}

/* Контакты */
body[data-cms-page="about"] .about-summary {
  margin: 0 0 0.85rem;
  color: var(--theme-muted, #5f6d8c);
  line-height: 1.6;
}

body[data-cms-page="about"] .contacts-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.1rem;
  align-items: start;
}

body[data-cms-page="about"] .contact-unified {
  display: grid;
  gap: 0.65rem;
}

body[data-cms-page="about"] .contact-item {
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--theme-border, #d4deef);
  background: color-mix(in srgb, var(--theme-surface-soft, #f7f9ff) 40%, var(--theme-surface));
}

body[data-cms-page="about"] .contact-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

body[data-cms-page="about"] .contact-item p {
  margin: 0;
  line-height: 1.5;
}

body[data-cms-page="about"] .feedback-form {
  display: grid;
  gap: 0.55rem;
}

body[data-cms-page="about"] .feedback-form input,
body[data-cms-page="about"] .feedback-form textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--theme-border, #d4deef);
  padding: 0.6rem 0.7rem;
  font: inherit;
  background: var(--theme-surface, #fff);
  color: var(--theme-text, #18243d);
}

body[data-cms-page="about"] .feedback-form textarea {
  min-height: 110px;
  resize: vertical;
}

body[data-cms-page="about"] .feedback-form button {
  justify-self: start;
  border-radius: 999px;
  border: 1px solid var(--theme-border, #d4deef);
  padding: 0.45rem 1rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: color-mix(in srgb, var(--theme-primary-soft, #e9f0ff) 55%, var(--theme-surface));
}

body[data-cms-page="about"] .feedback-status {
  margin: 0;
  min-height: 1.2em;
  font-weight: 600;
}

/* Вступление */
body[data-cms-page="about"] #join-section {
  scroll-margin-top: 5rem;
}

body[data-cms-page="about"] #join-section .section-lead {
  margin: 0.4rem 0 0;
  color: var(--theme-muted, #5f6d8c);
  line-height: 1.55;
}

body[data-cms-page="about"] #join-section .join-block {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--theme-border, #d4deef);
  border-radius: 14px;
  background: var(--theme-surface, #fff);
}

body[data-cms-page="about"] #join-section .join-block legend {
  font-weight: 800;
  padding: 0 0.3rem;
}

body[data-cms-page="about"] #join-section .join-fields {
  display: grid;
  gap: 0.65rem;
}

body[data-cms-page="about"] #join-section .join-fields--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  body[data-cms-page="about"] #join-section .join-fields--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-cms-page="about"] #join-section .join-fields--2 .join-field--wide {
    grid-column: 1 / -1;
  }
}

body[data-cms-page="about"] #join-section .join-field label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

body[data-cms-page="about"] #join-section .join-field input,
body[data-cms-page="about"] #join-section .join-field textarea,
body[data-cms-page="about"] #join-section .join-field select {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--theme-border, #d4deef);
  padding: 0.6rem 0.7rem;
  font: inherit;
}

body[data-cms-page="about"] #join-section .join-docs {
  display: grid;
  gap: 0.6rem;
}

@media (min-width: 640px) {
  body[data-cms-page="about"] #join-section .join-docs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-cms-page="about"] #join-section .join-doc--wide {
    grid-column: 1 / -1;
  }
}

body[data-cms-page="about"] #join-section .join-doc {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--theme-border, #d4deef);
  background: color-mix(in srgb, var(--theme-surface-soft, #f7f9ff) 40%, var(--theme-surface));
}

body[data-cms-page="about"] #join-section .join-form-submit {
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

body[data-cms-page="about"] .join-form-toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 12000;
  max-width: min(420px, calc(100% - 2rem));
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--theme-border, #d4deef);
  background: var(--theme-surface, #fff);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

body[data-cms-page="about"] .join-form-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

body[data-cms-page="about"] #missionTitle,
body[data-cms-page="about"] #about-areas,
body[data-cms-page="about"] #leaderWelcome,
body[data-cms-page="about"] #about-visit,
body[data-cms-page="about"] #contacts-unified,
body[data-cms-page="about"] #join-section {
  scroll-margin-top: 5.5rem;
}

@media (max-width: 900px) {
  body[data-cms-page="about"] .about-org-columns,
  body[data-cms-page="about"] .about-hours-layout,
  body[data-cms-page="about"] .offices-grid,
  body[data-cms-page="about"] .contacts-grid,
  body[data-cms-page="about"] .leader-grid,
  body[data-cms-page="about"] .leader-grid--large {
    grid-template-columns: 1fr;
  }
}

/* Тёмная тема */
:root[data-theme="dark"] body[data-cms-page="about"] #contacts-unified .contact-item {
  background: var(--theme-surface-soft, #1c2948) !important;
}

:root[data-theme="dark"] body[data-cms-page="about"] #contacts-unified .contact-item a {
  color: var(--theme-primary, #8ab0ff) !important;
}

:root[data-theme="dark"] body[data-cms-page="about"] #join-section .join-block,
:root[data-theme="dark"] body[data-cms-page="about"] #join-section .join-doc {
  background: var(--theme-surface-soft, #1c2948) !important;
}
