/* Атлас: небо, оранжевые метки, ссылки как посадочные талоны.
   Все правила только внутри .pack-atlas. */
.public-page.pack-atlas {
  --page-bg: #e6f3fa;
  --page-text: #0f2a3d;
  --page-accent: #0f2a3d;
  --page-soft: #ffffff;
  --page-muted: #34556b;
  --page-line: #c6dce8;
  --page-input: #ffffff;
  --atlas-orange: #ff7a1a;
  --atlas-ink: #1d0e00;
  --atlas-shadow: 0 8px 20px rgb(15 42 61 / 0.08);
  --pack-radius: 22px;
  --pack-space: 26px;
  max-width: 960px;
  font-family: Manrope, system-ui, sans-serif;
}
/* Небо по вертикали только в режиме «По теме»: свой цвет, градиент или фото
   владельца страницы не перекрываем. Где нет запросов стиля, фон ровный голубой. */
@container style(--pack-background: none) and style(--pack-background-color: #e6f3fa) {
  .pack-atlas .pack-backdrop {
    background-image: linear-gradient(
      180deg,
      #bfe3f5 0%,
      #eaf6fc 45%,
      #f7fbfd 100%
    );
  }
}
.public-page.pack-atlas,
.preview-device .public-page.pack-atlas,
.preview-device.mobile .public-page.pack-atlas,
.design-pack-preview .public-page.pack-atlas {
  padding: 0 0 12px;
}
.pack-atlas .pack-content {
  --atlas-gutter: clamp(14px, 4.2cqi, 40px);
  --atlas-pad: clamp(18px, 5cqi, 36px);
}
.pack-atlas .pack-content > * {
  padding-inline: var(--atlas-gutter);
}

/* Шапка: профиль и карточка-обложка */
.pack-atlas .pack-hero-atlas {
  display: grid;
  gap: 14px;
  padding-top: clamp(20px, 6cqi, 44px);
}
.pack-atlas .pack-atlas-id {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.pack-atlas .pack-avatar {
  width: clamp(52px, 13cqi, 72px);
  height: clamp(52px, 13cqi, 72px);
  border: 3px solid #ffffff;
  background: #ffffff;
  box-shadow: var(--atlas-shadow);
}
.pack-atlas .pack-initials {
  font-family: "Pack Unbounded", "Arial Black", sans-serif;
  font-size: clamp(16px, 4.4cqi, 24px);
  font-weight: 800;
  color: var(--page-text);
}
.pack-atlas .pack-hero :is(h1, :where(.preview-name)) {
  margin: 0;
  font-size: clamp(17px, 4.6cqi, 26px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.pack-atlas .pack-atlas-id .location {
  margin: 2px 0 0;
  font-size: 13px;
}
.pack-atlas .pack-atlas-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(300px, 92cqi, 520px);
  padding: var(--atlas-pad);
  overflow: hidden;
  border-radius: clamp(24px, 8cqi, 36px);
  background: #1d4f6e;
  color: #ffffff;
}
.pack-atlas .pack-atlas-card .pack-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}
/* Без обложки: тёмно-синий плакат, ниже и без фото-рамки. */
.pack-atlas .pack-atlas-poster {
  min-height: clamp(200px, 56cqi, 380px);
  background: linear-gradient(160deg, #0f2a3d 0%, #1d5272 100%);
}
.pack-atlas .pack-atlas-caption {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 14px;
}
/* Подложка поднимается вместе с длинным слоганом. */
.pack-atlas .pack-atlas-card:has(.pack-photo) .pack-atlas-caption::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -140px calc(-1 * var(--atlas-pad)) calc(-1 * var(--atlas-pad) - 1px);
  background: linear-gradient(
    180deg,
    rgb(15 42 61 / 0) 0,
    rgb(15 42 61 / 0.66) 140px,
    rgb(15 42 61 / 0.8) 100%
  );
  pointer-events: none;
}
.pack-atlas .pack-atlas-title {
  margin: 0;
  font-family: "Pack Unbounded", "Arial Black", sans-serif;
  /* Кегль от длины слогана, но самое длинное слово всегда влезает в карточку. */
  font-size: clamp(
    28px,
    min(
      var(--atlas-scale, 11) * 1cqi,
      (100cqi - 2 * var(--atlas-gutter) - 2 * var(--atlas-pad)) /
        (var(--atlas-word, 8) * 0.84)
    ),
    70px
  );
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.pack-atlas .pack-atlas-title[data-long] {
  font-size: clamp(22px, 5.6cqi, 36px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.pack-atlas .pack-atlas-pin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin: 0;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--atlas-orange);
  color: var(--atlas-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.pack-atlas .pack-atlas-pin svg {
  flex: 0 0 auto;
}
.pack-atlas .pack-hero > .profile-about {
  max-width: 40em;
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

/* Разделы */
.pack-atlas .public-blocks {
  margin-top: clamp(22px, 6cqi, 40px);
}
.public-page.pack-atlas .contact-action {
  margin: clamp(22px, 6cqi, 40px) 0 0;
}
.pack-atlas .public-blocks :is(h2, :where(.preview-heading)) {
  margin-bottom: 14px;
  font-family: "Pack Unbounded", "Arial Black", sans-serif;
  font-size: clamp(19px, 4.8cqi, 30px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.pack-atlas .section-align-center {
  text-align: center;
}
.pack-atlas .text-block p {
  max-width: 62ch;
}
.pack-atlas .variant-card :is(.text-block, .inquiry-block) {
  padding: clamp(18px, 5cqi, 30px);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--atlas-shadow);
}

/* Ссылки: белый талон с оранжевым корешком, вырезы и линия отрыва */
.pack-atlas .section-link + .section-link {
  margin-top: calc(10px - var(--pack-space));
}
.pack-atlas .link-block {
  --atlas-stub: 60px;
  position: relative;
  isolation: isolate;
  min-height: 64px;
  padding: 14px calc(var(--atlas-stub) + 16px) 14px 20px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: var(--page-text);
  filter: drop-shadow(0 6px 12px rgb(15 42 61 / 0.1));
  transition: transform 160ms ease;
}
.pack-atlas .link-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(
    to left,
    var(--atlas-orange) var(--atlas-stub),
    #ffffff var(--atlas-stub)
  );
  /* Два слоя маски по половине высоты: вырез сверху и снизу на линии отрыва. */
  mask:
    radial-gradient(
        circle at calc(100% - var(--atlas-stub)) 0,
        #0000 8px,
        #000 8.5px
      )
      top / 100% 51% no-repeat,
    radial-gradient(
        circle at calc(100% - var(--atlas-stub)) 100%,
        #0000 8px,
        #000 8.5px
      )
      bottom / 100% 51% no-repeat;
}
.pack-atlas .link-block::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  right: calc(var(--atlas-stub) - 1px);
  border-left: 2px dashed #ffffff;
}
.pack-atlas .link-block > svg:last-child {
  position: absolute;
  top: 50%;
  right: calc(var(--atlas-stub) / 2);
  translate: 50% -50%;
  color: var(--atlas-ink);
}
.pack-atlas .link-block strong {
  font-size: 16px;
  font-weight: 700;
}
.pack-atlas .link-block small {
  color: var(--page-muted);
}
.pack-atlas .section-link.variant-feature .link-block::before {
  background: linear-gradient(
    to left,
    #e2650c var(--atlas-stub),
    var(--atlas-orange) var(--atlas-stub)
  );
}
.pack-atlas .section-link.variant-feature .link-block {
  color: var(--atlas-ink);
}
.pack-atlas .section-link.variant-feature .link-block small {
  color: #3d2000;
}
.pack-atlas .section-link.variant-card .link-block {
  padding-right: 20px;
  filter: none;
  background: #ffffff;
  box-shadow: var(--atlas-shadow);
}
.pack-atlas .section-link.variant-card .link-block::before,
.pack-atlas .section-link.variant-card .link-block::after {
  display: none;
}
.pack-atlas .section-link.variant-card .link-block > svg:last-child {
  position: static;
  translate: none;
  color: var(--page-text);
}

/* Галерея: подписи с оранжевой меткой */
.pack-atlas .gallery {
  gap: 10px;
}
.pack-atlas .gallery img {
  border-radius: 22px;
}
.pack-atlas .variant-feature .gallery img {
  aspect-ratio: 4 / 5;
}
.pack-atlas .variant-feature .gallery figure:first-child img {
  aspect-ratio: 16 / 10;
}
/* После широкого первого кадра нечётный остаток: последний тоже во всю ширину. */
.pack-atlas .variant-feature .gallery figure:last-child:nth-child(even) {
  grid-column: 1 / -1;
}
.pack-atlas .variant-feature .gallery figure:last-child:nth-child(even) img {
  aspect-ratio: 16 / 10;
}
.pack-atlas .gallery figcaption {
  font-size: 13px;
  font-weight: 600;
  color: var(--page-muted);
}
.pack-atlas .gallery figcaption::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--atlas-orange);
  vertical-align: 1px;
}

/* Услуги: «В одном блоке» как тёмно-синяя карточка «что входит» */
.pack-atlas .services-list > div {
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--page-line);
}
.pack-atlas .services-list strong {
  font-weight: 700;
}
.pack-atlas .services-list b {
  /* Цена не сжимается раньше названия и не рвёт число без нужды. */
  flex-shrink: 0;
  font-weight: 800;
}
.pack-atlas .section-services.variant-card > section {
  padding: clamp(18px, 5cqi, 30px);
  border-radius: 26px;
  background: #0f2a3d;
  color: #eaf6fc;
}
.pack-atlas
  .public-blocks
  .section-services.variant-card
  :is(h2, :where(.preview-heading)) {
  margin-bottom: 4px;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fd0ea;
}
.pack-atlas .variant-card .services-list > div {
  border-top-color: rgb(234 246 252 / 0.16);
}
.pack-atlas .variant-card .services-list > div:first-child {
  border-top: 0;
}
.pack-atlas .variant-card .services-list p {
  color: #9fd0ea;
}
.pack-atlas .variant-card .services-list b {
  color: #ffb27a;
}
.pack-atlas .variant-grid .services-list > div {
  border: 0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--atlas-shadow);
}

/* Отзыв */
.pack-atlas blockquote {
  padding: clamp(18px, 5cqi, 30px);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--atlas-shadow);
}
.pack-atlas .variant-plain blockquote {
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.pack-atlas blockquote svg {
  color: #e2650c;
  opacity: 1;
}
.pack-atlas .public-blocks blockquote p {
  margin: 10px 0 14px;
  font-size: clamp(18px, 4.6cqi, 26px);
  font-weight: 600;
  line-height: 1.45;
}
.pack-atlas .public-blocks .variant-feature blockquote p {
  font-family: "Pack Unbounded", "Arial Black", sans-serif;
  font-size: clamp(20px, 5.4cqi, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.pack-atlas cite {
  font-size: 13px;
  color: var(--page-muted);
}

/* Форма */
.pack-atlas .lead-form :is(input, textarea, select) {
  min-height: 48px;
  border: 1px solid #6f8ea3;
  border-radius: 14px;
  background: #ffffff;
  color: var(--page-text);
}
.pack-atlas .lead-form :is(input, textarea, select):focus {
  border-color: var(--page-text);
}
.pack-atlas .lead-form .consent input {
  min-height: 0;
  accent-color: var(--page-text);
}
.pack-atlas .public-button {
  min-height: 58px;
  border-radius: 999px;
  background: var(--atlas-orange);
  color: var(--atlas-ink);
  font-size: 16px;
  font-weight: 700;
}

/* Вопросы, отсчёт, видео, иконки */
.pack-atlas .faq-block details {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--atlas-shadow);
}
.pack-atlas .faq-block summary {
  align-items: center;
  min-height: 56px;
  padding: 14px 20px;
  font-weight: 700;
}
.pack-atlas .faq-block details p {
  padding: 0 20px 18px;
  color: var(--page-muted);
  opacity: 1;
}
.pack-atlas .countdown-grid > div {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--atlas-shadow);
}
.pack-atlas .countdown-grid b {
  font-family: "Pack Unbounded", "Arial Black", sans-serif;
  font-size: clamp(22px, 7cqi, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.pack-atlas :is(.video-poster, .video-frame iframe) {
  border-radius: 22px;
}
.pack-atlas .video-poster {
  background: #ffffff;
}
.public-page.pack-atlas .social-icon-link {
  border: 0;
  background: #ffffff;
  box-shadow: var(--atlas-shadow);
}
@media (hover: hover) {
  .public-page.pack-atlas .social-icon-link[href]:hover {
    background: var(--atlas-orange);
    color: var(--atlas-ink);
  }
}
.pack-atlas :is(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--page-text);
  outline-offset: 3px;
}

@container (max-width: 420px) {
  .pack-atlas .lead-form .field-pair {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pack-atlas .link-block {
    transition: none;
  }
}

/* Кнопка в шапке, липкая кнопка и акцентная ссылка: оранжевый билет с тёмным текстом.
   Общее правило из blocks-extra.css красит текст в цвет фона, а «Атлас» рисует под
   кнопкой белый билет, и текст пропадал (белое на белом). Специфичность выше общей:
   blocks-extra.css подключается после темы. */
.public-page.design-pack.pack-atlas :is(.hero-cta, .sticky-cta, .section-accent) .link-block {
  background: transparent;
  color: var(--atlas-ink);
}
.public-page.design-pack.pack-atlas :is(.hero-cta, .sticky-cta, .section-accent) .link-block::before {
  background: linear-gradient(
    to left,
    #e2650c var(--atlas-stub),
    var(--atlas-orange) var(--atlas-stub)
  );
}
.public-page.design-pack.pack-atlas :is(.hero-cta, .sticky-cta, .section-accent) .link-block small {
  color: #3d2000;
}

/* Свой фон, на котором текст дизайна не читается (класс ink-auto и --auto-ink ставит
   design-style.ts):
   текст и линии прямо на фоне страницы берут цвет под фон. Карточки дизайна
   возвращают свои цвета; правило без веса, поэтому цвета самого дизайна и цветной секции главнее. */
.public-page.pack-atlas.ink-auto {
  --page-bg: var(--pack-background-color);
  --page-text: var(--auto-ink);
  --page-muted: var(--auto-muted);
  --page-accent: var(--auto-ink);
  --page-line: color-mix(in srgb, var(--auto-ink) 24%, transparent);
  --page-input: color-mix(in srgb, var(--auto-ink) 8%, var(--page-bg));
  color: var(--auto-ink);
}
:where(.public-page.pack-atlas.ink-auto)
  :where(.map-poster, .section-countdown div, .section-faq details, .section-testimonial blockquote, .video-poster, .link-block, .social-icon-link):where(
    :not(.section-colored, .section-colored *)
  ) {
  --page-bg: #e6f3fa;
  --page-text: #0f2a3d;
  --page-muted: #34556b;
  --page-accent: #0f2a3d;
  --page-line: #c6dce8;
  --page-input: #ffffff;
  color: var(--page-text);
  color-scheme: light;
}
.public-page.pack-atlas.ink-auto
  .page-section:not(.section-colored)
  .lead-form
  :is(input, textarea, select) {
  border-color: var(--page-line);
  background: var(--page-input);
}
