:root {
  --flex-hero-bg: rgba(7, 10, 20, 0.9);
  --flex-hero-text: #f7f9ff;
  --flex-surface: rgba(12, 17, 32, 0.9);
  --flex-border: rgba(255, 255, 255, 0.08);
}

.theme-dark :root {
  --flex-hero-bg: rgba(3, 6, 14, 0.9);
  --flex-surface: rgba(5, 8, 18, 0.95);
}

body.template-flexible-info,
body.template-flexible-index {
  color: #0f172a;
}

body.theme-dark.template-flexible-info,
body.theme-dark.template-flexible-index {
  color: #f7f9ff;
  background: transparent;
}

body.theme-dark.template-flexible-info::after,
body.theme-dark.template-flexible-index::after {
  display: none;
}

.flex-hero {
  padding: 80px 0 50px;
  background: none;
  color: inherit;
}

.flex-hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.flex-hero__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flex-hero__content h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 1.1;
  margin: 0;
}

.flex-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

.flex-hero__subtitle {
  font-size: 1.2rem;
  color: inherit;
}

.flex-hero__intro {
  margin-top: 20px;
  color: inherit;
  line-height: 1.7;
}

.flex-hero__media img {
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

.flex-content {
  padding: 40px 0 80px;
}

.flex-content__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1040px;
  margin: 0 auto;
}

.flex-glass-wrap {
  border-radius: 36px;
  padding: 40px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.12),
    0 1px 3px rgba(255, 255, 255, 0.35) inset;
  backdrop-filter: blur(28px);
}

body.theme-dark .flex-glass-wrap {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(8, 12, 20, 0.55);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.45),
    0 1px 3px rgba(255, 255, 255, 0.1) inset;
}

.flex-content__block {
  padding: 0;
  border: none;
}

.flex-content__block > :first-child {
  margin-top: 0;
}

.flex-content__block > :last-child {
  margin-bottom: 0;
}

.flex-content__placeholder {
  border-radius: 24px;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  padding: 32px;
  color: rgba(15, 23, 42, 0.5);
  text-align: center;
  background: transparent;
}

body.theme-dark .flex-content__placeholder {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.6);
}

/* Стили для обычных ссылок, исключая кнопки */
.flex-page a:not(.about-btn):not(.about-btn *) {
  color: #0b63f3;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.flex-page a:not(.about-btn):not(.about-btn *)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(11, 99, 243, 0.9), rgba(110, 195, 255, 0.9));
  opacity: 0.5;
  transform: scaleX(0.6);
  transform-origin: left;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.flex-page a:not(.about-btn):not(.about-btn *):hover,
.flex-page a:not(.about-btn):not(.about-btn *):focus-visible {
  color: #083cc5;
}

.flex-page a:not(.about-btn):not(.about-btn *):hover::after,
.flex-page a:not(.about-btn):not(.about-btn *):focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.flex-page a:not(.about-btn):not(.about-btn *):focus-visible {
  outline: none;
  box-shadow: inset 0 -8px 0 rgba(11, 99, 243, 0.12);
}

body.theme-dark .flex-page a:not(.about-btn):not(.about-btn *) {
  color: #7fc5ff;
}

body.theme-dark .flex-page a:not(.about-btn):not(.about-btn *)::after {
  background: linear-gradient(120deg, rgba(127, 197, 255, 0.9), rgba(95, 152, 255, 0.9));
  opacity: 0.6;
}

body.theme-dark .flex-page a:not(.about-btn):not(.about-btn *):hover,
body.theme-dark .flex-page a:not(.about-btn):not(.about-btn *):focus-visible {
  color: #a7d8ff;
}

body.theme-dark .flex-page a:not(.about-btn):not(.about-btn *):focus-visible {
  box-shadow: inset 0 -8px 0 rgba(127, 197, 255, 0.18);
}

/* Shared block styles */
.about-heading {
  font-weight: 600;
  margin: 0 0 12px;
  color: inherit;
}

.about-heading__kicker {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
}

.about-text {
  color: inherit;
  line-height: 1.7;
}

.about-image {
  margin: 12px 0;
  text-align: center;
}

.about-image img {
  width: 100%;
}

.about-image--rounded img {
  border-radius: 24px;
}

.about-image figcaption {
  margin-top: 10px;
  color: inherit;
}

.about-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: center;
}

.about-media__image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.about-quote {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: transparent;
}

body.theme-dark .about-quote {
  border-color: rgba(255, 255, 255, 0.12);
}

.about-quote__text {
  font-size: 1.1rem;
  color: inherit;
}

.about-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0;
  width: 100%;
}

.about-button-group--left {
  justify-content: flex-start;
}

.about-button-group--center {
  justify-content: center;
}

.about-button-group--right {
  justify-content: flex-end;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
  min-height: 48px;
  border: none;
  cursor: pointer;
  line-height: 1.4;
  position: relative;
  /* Убираем все стили ссылок */
  text-decoration: none;
  text-underline-offset: 0;
  text-decoration-thickness: 0;
}

.about-btn::after {
  display: none !important;
}

.about-btn:hover {
  transform: translateY(-2px);
  text-decoration: none !important;
}

.about-btn:active {
  transform: translateY(0);
}

.about-btn:focus {
  outline: 2px solid rgba(60, 130, 255, 0.5);
  outline-offset: 2px;
}

.about-btn--primary {
  background: linear-gradient(135deg, #3c82ff, #14d1ff);
  color: #041024 !important;
  box-shadow: 0 4px 12px rgba(20, 209, 255, 0.3);
}

.about-btn--primary:hover {
  box-shadow: 0 6px 20px rgba(20, 209, 255, 0.4);
  background: linear-gradient(135deg, #2d6eff, #0fb8e0);
  color: #041024 !important;
}

body.theme-dark .about-btn--primary {
  background: linear-gradient(135deg, #3c82ff, #14d1ff);
  color: #041024 !important;
}

body.theme-dark .about-btn--primary:hover {
  background: linear-gradient(135deg, #4d92ff, #25e1ff);
  box-shadow: 0 6px 20px rgba(20, 209, 255, 0.5);
}

.about-btn--secondary {
  border: 2px solid;
  background: transparent;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
  color: #1f2937 !important;
  border-color: #1f2937;
}

.about-btn--secondary:hover {
  background: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  border-color: #1f2937;
  color: #1f2937 !important;
}

body.theme-dark .about-btn--secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: #f7f9ff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.theme-dark .about-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  color: #f7f9ff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.about-btn--text {
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 8px;
  color: #1f2937 !important;
  text-decoration: none !important;
  border: 1px solid transparent;
}

.about-btn--text:hover {
  background: rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 23, 42, 0.15);
  color: #1f2937 !important;
  text-decoration: none !important;
}

body.theme-dark .about-btn--text {
  background: rgba(255, 255, 255, 0.08);
  color: #f7f9ff !important;
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .about-btn--text:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f7f9ff !important;
}

.about-btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .about-button-group {
    flex-direction: column;
    gap: 12px;
  }
  
  .about-button-group--left,
  .about-button-group--center,
  .about-button-group--right {
    justify-content: stretch;
  }
  
  .about-btn {
    width: 100%;
    justify-content: center;
  }
}

.about-map-card {
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  gap: 32px;
  padding: 32px;
  border-radius: 32px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(28px);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

body.theme-dark .about-map-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(6, 10, 20, 0.55);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.35);
}

.about-map-card__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-map-card__kicker {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
  color: rgba(15, 23, 42, 0.6);
}

body.theme-dark .about-map-card__kicker {
  color: rgba(255, 255, 255, 0.6);
}

.about-map-card__info h4 {
  margin: 0;
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
}

.about-map-card__address {
  margin: 0;
  font-size: 1rem;
  color: rgba(15, 23, 42, 0.7);
}

body.theme-dark .about-map-card__address {
  color: rgba(255, 255, 255, 0.7);
}

.about-map-card__hint {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.58);
}

body.theme-dark .about-map-card__hint {
  color: rgba(255, 255, 255, 0.62);
}

.about-map-card__canvas {
  width: 100%;
  min-height: 320px;
  position: relative;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

  .about-map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e7eb;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.4s ease;
  }

body.theme-dark .about-map-placeholder {
  background-color: #0f172a;
}

.about-map-placeholder__spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(15, 23, 42, 0.25);
  border-top-color: rgba(15, 23, 42, 0.65);
  animation: about-map-spin 1s linear infinite;
}

body.theme-dark .about-map-placeholder__spinner {
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: rgba(255, 255, 255, 0.75);
}

@keyframes about-map-spin {
  to {
    transform: rotate(360deg);
  }
}

.about-map-card__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.45);
  pointer-events: none;
  transition: opacity 0.2s ease;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
}

body.theme-dark .about-map-card__fallback {
  color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05));
}

.about-map-card__canvas.is-ready .about-map-placeholder {
  opacity: 0;
  pointer-events: none;
}

.about-map-card__canvas.is-ready .about-map-card__fallback {
  opacity: 0;
  visibility: hidden;
}

.about-map-full {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-map-full__info h4 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
}

.about-map-full__address {
  margin: 6px 0 0;
  color: rgba(15, 23, 42, 0.65);
}

body.theme-dark .about-map-full__address {
  color: rgba(255, 255, 255, 0.75);
}

.about-map-full__canvas {
  width: 100%;
  min-height: 360px;
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

body.theme-dark .about-map-full__canvas {
  border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
  .about-map-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .about-map-card__canvas {
    min-height: 280px;
  }
}

.about-document {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: transparent;
  color: inherit;
  text-decoration: none;
}

body.theme-dark .about-document {
  border-color: rgba(255, 255, 255, 0.12);
}

.about-table {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

body.theme-dark .about-table {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.about-table table {
  width: 100%;
  border-collapse: collapse;
  color: inherit;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.about-table caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px;
  font-weight: 600;
  color: #0f172a;
}

body.theme-dark .about-table caption {
  color: #f7f9ff;
}

.about-table th,
.about-table td {
  padding: 14px 18px;
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
  vertical-align: top;
  transition: background-color 0.2s ease;
}

.about-table th:last-child,
.about-table td:last-child {
  border-right: none;
}

.about-table th {
  font-weight: 600;
  background-color: rgba(15, 23, 42, 0.04);
  color: #1f2937;
  position: sticky;
  top: 0;
  z-index: 1;
}

body.theme-dark .about-table th {
  background-color: rgba(255, 255, 255, 0.06);
  color: #f7f9ff;
}

body.theme-dark .about-table th,
body.theme-dark .about-table td {
  border-right-color: rgba(255, 255, 255, 0.06);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.about-table thead th {
  border-bottom: 2px solid rgba(15, 23, 42, 0.15);
  text-transform: none;
  letter-spacing: 0;
}

body.theme-dark .about-table thead th {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.about-table tbody tr {
  transition: background-color 0.15s ease;
}

.about-table tbody tr:hover {
  background-color: rgba(15, 23, 42, 0.02);
}

body.theme-dark .about-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.about-table tbody tr:last-child td {
  border-bottom: none;
}

.about-table tbody th {
  background-color: rgba(15, 23, 42, 0.02);
  font-weight: 500;
}

body.theme-dark .about-table tbody th {
  background-color: rgba(255, 255, 255, 0.03);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .about-table {
    margin: 16px 0;
    border-radius: 8px;
  }
  
  .about-table th,
  .about-table td {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}

.info-field {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: transparent;
  margin: 8px 0;
}

body.theme-dark .info-field {
  border-color: rgba(255, 255, 255, 0.12);
}

.info-field__label {
  flex: 0 0 180px;
  font-weight: 600;
  color: inherit;
  margin: 0;
}

.info-field__value {
  flex: 1;
  color: inherit;
}

/* Разделители */
.about-divider {
  width: 100%;
  display: block;
}

/* Базовые отступы для всех разделителей, кроме отступа */
.about-divider:not(.about-divider--space) {
  margin: 0;
}

/* Разделитель - Линия */
.about-divider--line {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(15, 23, 42, 0.15) 20%,
    rgba(15, 23, 42, 0.25) 50%,
    rgba(15, 23, 42, 0.15) 80%,
    transparent 100%
  );
  border: none;
  margin: 48px 0;
  position: relative;
  overflow: visible;
}

body.theme-dark .about-divider--line {
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.15) 80%,
    transparent 100%
  );
}

/* Декоративный элемент в центре линии */
.about-divider--line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(135deg, #3c82ff, #14d1ff);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(60, 130, 255, 0.3);
}

body.theme-dark .about-divider--line::before {
  background: linear-gradient(135deg, #4d92ff, #25e1ff);
  box-shadow: 0 2px 8px rgba(77, 146, 255, 0.4);
}

/* Разделитель - Точки */
.about-divider--dots {
  height: 20px;
  margin: 48px 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.about-divider--dots::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(15, 23, 42, 0.15) 30%,
    rgba(15, 23, 42, 0.15) 70%,
    transparent 100%
  );
  z-index: 0;
}

body.theme-dark .about-divider--dots::before {
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 30%,
    rgba(255, 255, 255, 0.15) 70%,
    transparent 100%
  );
}

.about-divider--dots::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 20px;
  background-image: radial-gradient(
    circle,
    rgba(15, 23, 42, 0.5) 2.5px,
    transparent 2.5px
  );
  background-size: 12px 12px;
  background-repeat: repeat-x;
  background-position: center;
  z-index: 1;
}

body.theme-dark .about-divider--dots::after {
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.5) 2.5px,
    transparent 2.5px
  );
}

/* Разделитель - Отступ */
.about-divider--space {
  display: block !important;
  width: 100%;
  height: 64px;
  min-height: 64px;
  margin: 0 !important;
  padding: 0;
  border: none;
  background: none;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Если разделитель является первым или последним элементом в блоке */
.flex-content__block > .about-divider--space:first-child {
  margin-top: 0 !important;
  height: 64px;
  min-height: 64px;
}

.flex-content__block > .about-divider--space:last-child {
  margin-bottom: 0 !important;
  height: 64px;
  min-height: 64px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .about-divider--line {
    margin: 32px 0;
  }
  
  .about-divider--line::before {
    width: 60px;
    height: 2px;
  }
  
  .about-divider--dots {
    margin: 32px 0;
    background-size: 10px 10px;
  }
  
  .about-divider--space {
    height: 48px !important;
    min-height: 48px !important;
  }
  
  .flex-content__block > .about-divider--space:first-child,
  .flex-content__block > .about-divider--space:last-child {
    height: 48px !important;
    min-height: 48px !important;
  }
}

@media (max-width: 768px) {
  .flex-hero {
    padding: 60px 0 30px;
  }

  body.template-flexible-info .flex-hero {
    padding-top: 24px;
    padding-bottom: 12px;
  }

  body.template-flexible-info .flex-content {
    padding-top: 0;
  }

  .flex-content__block {
    padding: 18px;
  }
}

@media (max-width: 768px) {
  body.template-flexible-info .flex-content__inner {
    padding-left: 0;
    padding-right: 0;
  }

  body.template-flexible-info .flex-glass-wrap {
    padding: 32px 24px;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.template-flexible-info .flex-content__block {
    padding: 0;
  }
}

