/**
 * Portal24 — общий home hero (стиль Soligorsk24): новый editorial hero
 */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Unbounded:wght@600;700;800&display=swap');

/* Full-bleed поверх общих правил entry-content */
body.p24-portal-home .site-content-fullwidth .entry-content > .as-home-hero,
body.p24-portal-home .site-content-fullwidth .entry-content > .as-home-hero {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

body.p24-portal-home .as-home-hero,
body.p24-portal-home .as-home-hero {
  --as-hero-ink: #0b1210;
  --as-hero-accent: #22a35f;
  --as-hero-accent-deep: #17824a;
  --as-hero-font: 'Manrope', system-ui, sans-serif;
  --as-hero-display: 'Unbounded', 'Manrope', system-ui, sans-serif;

  position: relative;
  isolation: isolate;
  min-height: min(78vh, 740px);
  margin: 0;
  overflow: hidden;
  color: #f4f7f5;
  background: #0d1512;
  border-radius: 0 0 40px 40px;
}

body.p24-portal-home .site-content-wrapper {
  padding-top: 0;
}

body.p24-portal-home .as-home-hero {
  margin-top: 0;
}

body.p24-portal-home .as-home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.p24-portal-home .as-home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 36%;
  transform: scale(1.05);
  animation: as-hero-ken 20s ease-out forwards;
}

body.p24-portal-home .as-home-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(7, 12, 10, 0.94) 0%, rgba(7, 12, 10, 0.72) 34%, rgba(7, 12, 10, 0.22) 62%, rgba(7, 12, 10, 0.08) 100%),
    linear-gradient(180deg, rgba(7, 12, 10, 0.45) 0%, transparent 38%, rgba(7, 12, 10, 0.55) 72%, rgba(7, 12, 10, 0.88) 100%);
  pointer-events: none;
}

/* Cover layout: copy left-bottom, popular rail full-width bottom */
body.p24-portal-home .as-home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 360px);
  align-items: end;
  gap: 36px 48px;
  max-width: 1450px;
  min-height: min(76vh, 700px);
  margin: 0 auto;
  padding: 112px 32px 64px;
  box-sizing: border-box;
}

body.p24-portal-home .as-home-hero__copy {
  max-width: 600px;
  align-self: end;
  padding-bottom: 12px;
}

body.p24-portal-home .as-home-hero__eyebrow {
  margin: 0 0 14px;
  font-family: var(--as-hero-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72) !important;
  animation: as-hero-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.p24-portal-home .as-home-hero__brand {
  margin: 0 0 10px;
  font-family: var(--as-hero-display);
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: #fff !important;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.4);
  text-transform: none;
  animation: as-hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}

body.p24-portal-home .as-home-hero__brand span {
  color: var(--as-hero-accent);
}

body.p24-portal-home .as-home-hero__title {
  margin: 0 0 14px;
  max-width: 12em;
  font-family: var(--as-hero-display);
  font-size: clamp(2.15rem, 4.4vw, 3.45rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: rgba(244, 247, 245, 0.96) !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
  animation: as-hero-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

body.p24-portal-home .as-home-hero__lead {
  margin: 0 0 22px;
  max-width: 36ch;
  font-family: var(--as-hero-font);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(244, 247, 245, 0.82) !important;
  animation: as-hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

/* Glass search — главный CTA */
body.p24-portal-home .as-home-hero__search {
  margin: 0 0 14px;
  max-width: 520px;
  animation: as-hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

body.p24-portal-home .as-home-hero__search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 6px 6px 6px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.p24-portal-home .as-home-hero__search-field:focus-within {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34), 0 0 0 3px rgba(34, 163, 95, 0.28);
}

body.p24-portal-home .as-home-hero__search-ico {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
}

body.p24-portal-home .as-home-hero__search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff !important;
  font-family: var(--as-hero-font);
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.3;
}

body.p24-portal-home .as-home-hero__search-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

body.p24-portal-home .as-home-hero__search-btn {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: var(--as-hero-accent);
  color: #fff;
  font-family: var(--as-hero-font);
  font-size: 0.95rem;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

body.p24-portal-home .as-home-hero__search-btn:hover {
  background: var(--as-hero-accent-deep);
  transform: translateY(-1px);
}

body.p24-portal-home .as-home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  font-family: var(--as-hero-font);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(244, 247, 245, 0.62) !important;
  animation: as-hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

body.p24-portal-home .as-home-hero__meta span {
  position: relative;
}

body.p24-portal-home .as-home-hero__meta span + span::before,
body.p24-portal-home .as-home-hero__meta span + a::before,
body.p24-portal-home .as-home-hero__meta a + span::before {
  content: '·';
  position: absolute;
  left: -12px;
  color: rgba(255, 255, 255, 0.35);
}

body.p24-portal-home .as-home-hero__meta a {
  position: relative;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}

body.p24-portal-home .as-paths {
  position: relative;
  z-index: 3;
  margin-top: -28px;
  padding: 0 0 8px;
}

body.p24-portal-home .as-paths__inner {
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

body.p24-portal-home .as-paths__card {
  --as-paths-accent: #1a2220;
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 188px;
  padding: 26px 28px 24px;
  border-radius: 28px;
  color: #121816 !important;
  text-decoration: none !important;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid transparent;
  box-shadow: 0 18px 40px rgba(12, 16, 20, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.p24-portal-home .as-paths__card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--as-paths-accent);
  border-radius: 28px 0 0 28px;
}

body.p24-portal-home .as-paths__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(12, 16, 20, 0.12);
}

body.p24-portal-home .as-paths__card--services {
  --as-paths-accent: #1f2933;
  background:
    radial-gradient(280px 160px at 92% 18%, rgba(31, 41, 51, 0.08), transparent 60%),
    linear-gradient(135deg, #ffffff 0%, #f4f5f6 100%);
  border-color: #e4e7ea;
}

body.p24-portal-home .as-paths__card--jobs {
  --as-paths-accent: #101613;
  background:
    radial-gradient(300px 170px at 90% 12%, rgba(16, 22, 19, 0.1), transparent 62%),
    linear-gradient(145deg, #eef0f2 0%, #e4e7eb 100%);
  border-color: #d7dce2;
}

body.p24-portal-home .as-paths__card:hover .as-paths__mark {
  transform: scale(1.06) translate(-6px, -4px);
  opacity: 0.16;
}

body.p24-portal-home .as-paths__card--services .as-paths__mark {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10.2 2.2 12 4l1.8-1.8 1.4 1.4L13.4 5.4A6 6 0 0 1 18 11v1h2v6a3 3 0 0 1-3 3h-1v-4h-2v4H10v-4H8v4H7a3 3 0 0 1-3-3v-6h2v-1a6 6 0 0 1 4.6-5.6L8.8 3.6l1.4-1.4ZM9 11a3 3 0 1 0 6 0 3 3 0 0 0-6 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10.2 2.2 12 4l1.8-1.8 1.4 1.4L13.4 5.4A6 6 0 0 1 18 11v1h2v6a3 3 0 0 1-3 3h-1v-4h-2v4H10v-4H8v4H7a3 3 0 0 1-3-3v-6h2v-1a6 6 0 0 1 4.6-5.6L8.8 3.6l1.4-1.4ZM9 11a3 3 0 1 0 6 0 3 3 0 0 0-6 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.p24-portal-home .as-paths__card--jobs .as-paths__mark {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 3h6a1 1 0 0 1 1 1v2h4a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4V4a1 1 0 0 1 1-1Zm1 3h4V5h-4v1Zm-6 4v2.2a3 3 0 0 0 2.4 2.9l.6.1V17h10v-1.8l.6-.1A3 3 0 0 0 20 12.2V10H4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 3h6a1 1 0 0 1 1 1v2h4a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4V4a1 1 0 0 1 1-1Zm1 3h4V5h-4v1Zm-6 4v2.2a3 3 0 0 0 2.4 2.9l.6.1V17h10v-1.8l.6-.1A3 3 0 0 0 20 12.2V10H4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.p24-portal-home .as-paths__top,
body.p24-portal-home .as-paths__text,
body.p24-portal-home .as-paths__go,
body.p24-portal-home .as-paths__card strong {
  position: relative;
  z-index: 1;
}

body.p24-portal-home .as-paths__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.p24-portal-home .as-paths__kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--as-paths-accent);
}

body.p24-portal-home .as-paths__tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(18, 24, 22, 0.08);
  color: #1a2220;
  font-size: 12px;
  font-weight: 800;
}

body.p24-portal-home .as-paths__card strong {
  margin-top: 2px;
  font-family: Unbounded, Manrope, system-ui, sans-serif;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

body.p24-portal-home .as-paths__text {
  max-width: 34em;
  color: #3a4a42;
  font-size: 15px;
  line-height: 1.5;
}

body.p24-portal-home .as-paths__go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  width: fit-content;
}

body.p24-portal-home .as-paths__go em {
  font-style: normal;
  font-weight: 800;
  color: var(--as-paths-accent);
}

body.p24-portal-home .as-paths__go i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--as-paths-accent);
  color: #fff;
  transition: transform 0.25s ease;
}

body.p24-portal-home .as-paths__go i::before {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, 1px);
}

body.p24-portal-home .as-paths__card:hover .as-paths__go i {
  transform: translateX(3px);
}

/* legacy trust/actions hidden if present */
body.p24-portal-home .as-home-hero__trust,
body.p24-portal-home .as-home-hero__actions {
  display: none;
}

@keyframes as-hero-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes as-hero-ken {
  from { transform: scale(1.08); }
  to { transform: scale(1.02); }
}

@keyframes as-hero-ken-mobile {
  from { transform: scale(1.1); }
  to { transform: scale(1.04); }
}

/* ——— Levitating cards (right) ——— */
body.p24-portal-home .as-home-float {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: 100%;
  max-width: 340px;
  margin: 0 0 8px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: as-hero-rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

body.p24-portal-home .as-home-float__label {
  margin: 0 0 12px 8px;
  font-family: var(--as-hero-font);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

body.p24-portal-home .as-home-float__more {
  display: inline-flex;
  margin: 14px 0 0 8px;
  font-family: var(--as-hero-font);
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

body.p24-portal-home .as-home-float__more:hover {
  color: var(--as-hero-accent) !important;
}

body.p24-portal-home .as-home-float__stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: visible;
}

body.p24-portal-home .as-home-float__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 14px 36px rgba(4, 10, 8, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
  text-decoration: none !important;
  color: #142019 !important;
  transition: box-shadow 0.25s ease, filter 0.25s ease;
  animation: as-float-bob 5.8s ease-in-out infinite;
}

body.p24-portal-home .as-home-float__card--a {
  transform: translateX(22px);
  animation-delay: 0s;
}

body.p24-portal-home .as-home-float__card--b {
  transform: translateX(0);
  animation-delay: 0.75s;
  animation-duration: 6.4s;
}

body.p24-portal-home .as-home-float__card--c {
  transform: translateX(28px);
  animation-delay: 1.35s;
  animation-duration: 5.6s;
}

body.p24-portal-home .as-home-float__card:hover {
  filter: brightness(1.02);
  box-shadow:
    0 20px 44px rgba(4, 10, 8, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  animation-play-state: paused;
}

body.p24-portal-home .as-home-float__badge {
  position: absolute;
  top: -8px;
  right: 14px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--as-hero-accent, #22a35f);
  color: #fff;
  font-family: var(--as-hero-font);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(31, 143, 86, 0.35);
}

body.p24-portal-home .as-home-float__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: #e8eee9;
  box-shadow: 0 4px 12px rgba(8, 16, 12, 0.12);
}

body.p24-portal-home .as-home-float__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.p24-portal-home .as-home-float__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

body.p24-portal-home .as-home-float__title {
  font-family: var(--as-hero-font);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #142019;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.p24-portal-home .as-home-float__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--as-hero-font);
  font-size: 0.78rem;
  font-weight: 650;
}

body.p24-portal-home .as-home-float__rating {
  color: #1f8f56;
}

body.p24-portal-home .as-home-float__votes {
  color: #7a8a81;
}

@keyframes as-float-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

/* —— Mobile cover —— */
@media (max-width: 720px) {
  body.p24-portal-home .as-home-hero {
    min-height: auto;
    border-radius: 0 0 28px 28px;
  }

  body.p24-portal-home .as-home-hero__shade {
    background:
      linear-gradient(180deg,
        rgba(7, 12, 10, 0.55) 0%,
        rgba(7, 12, 10, 0.42) 28%,
        rgba(7, 12, 10, 0.62) 58%,
        rgba(6, 10, 9, 0.9) 100%);
  }

  body.p24-portal-home .as-home-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-content: flex-end;
    align-items: end;
    gap: 0;
    min-height: min(78svh, 640px);
    min-height: min(78dvh, 640px);
    padding:
      calc(96px + env(safe-area-inset-top, 0px))
      18px
      calc(28px + env(safe-area-inset-bottom, 0px));
  }

  body.p24-portal-home .as-home-hero__copy {
    min-width: 0;
    max-width: none;
    padding-bottom: 0;
  }

  body.p24-portal-home .as-home-hero__eyebrow {
    margin-bottom: 12px;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.88) !important;
  }

  body.p24-portal-home .as-home-hero__brand {
    margin: 0 0 10px;
    font-size: clamp(1.4rem, 6vw, 1.75rem);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  }

  body.p24-portal-home .as-home-hero__title {
    max-width: 11em;
    margin: 0 0 12px;
    font-size: clamp(2.15rem, 9.2vw, 2.7rem);
    line-height: 1.02;
    color: #fff !important;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.5);
  }

  body.p24-portal-home .as-home-hero__lead {
    display: block;
    max-width: 28em;
    margin-bottom: 18px;
    font-size: 1.02rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  }

  body.p24-portal-home .as-home-hero__search {
    max-width: none;
    margin-bottom: 14px;
  }

  body.p24-portal-home .as-home-hero__search-field {
    min-height: 56px;
    padding: 5px 5px 5px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.38);
  }

  body.p24-portal-home .as-home-hero__search-input {
    font-size: 1rem;
  }

  body.p24-portal-home .as-home-hero__search-btn {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 12px;
  }

  body.p24-portal-home .as-home-hero__meta {
    gap: 8px 16px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.78) !important;
  }

  body.p24-portal-home .as-home-hero__meta a {
    color: #fff !important;
  }

  body.p24-portal-home .as-home-hero__media img {
    object-position: 50% 18%;
    animation: as-hero-ken-mobile 16s ease-out forwards;
  }

  body.p24-portal-home .as-home-float {
    display: none;
  }

  body.p24-portal-home .as-paths {
    margin-top: 16px;
  }

  body.p24-portal-home .as-home-discover {
    padding-top: 40px;
  }
}

/* Планшет: тоже горизонтальная лента */
@media (max-width: 980px) and (min-width: 721px) {
  body.p24-portal-home .as-home-hero__inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  body.p24-portal-home .as-home-float {
    max-width: none;
    justify-self: stretch;
  }

  body.p24-portal-home .as-home-float__stage {
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body.p24-portal-home .as-home-float__card,
  body.p24-portal-home .as-home-float__card--a,
  body.p24-portal-home .as-home-float__card--b,
  body.p24-portal-home .as-home-float__card--c {
    flex: 0 0 260px;
    transform: none;
    animation: none;
  }
}

@media (max-width: 380px) {
  body.p24-portal-home .as-home-hero__brand {
    font-size: 1.2rem;
  }

  body.p24-portal-home .as-home-hero__title {
    font-size: 1.7rem;
  }

  body.p24-portal-home .as-home-hero__meta span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.p24-portal-home .as-home-hero__media img,
  body.p24-portal-home .as-home-hero__eyebrow,
  body.p24-portal-home .as-home-hero__brand,
  body.p24-portal-home .as-home-hero__title,
  body.p24-portal-home .as-home-hero__lead,
  body.p24-portal-home .as-home-hero__search,
  body.p24-portal-home .as-home-hero__meta,
  body.p24-portal-home .as-home-float,
  body.p24-portal-home .as-home-float__card {
    animation: none !important;
  }

  body.p24-portal-home .as-home-hero__media img {
    transform: none;
  }
}

/* ——— Discover (search + cats + top) ——— */
body.p24-portal-home .as-home-discover {
  --as-d-ink: #142019;
  --as-d-muted: #5b6b62;
  --as-d-line: #e4ebe6;
  --as-d-soft: #f4f7f5;
  --as-d-accent: #1f8f56;
  --as-d-accent-deep: #166b40;
  --as-d-font: 'Manrope', system-ui, sans-serif;

  background: #fff;
  padding: 56px 0 48px;
  color: var(--as-d-ink);
}

body.p24-portal-home .as-home-discover__inner {
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 28px;
}

body.p24-portal-home .as-home-discover__eyebrow,
body.p24-portal-home .as-home-how__eyebrow {
  margin: 0 0 8px;
  font-family: var(--as-d-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--as-d-accent);
}

body.p24-portal-home .as-home-discover__title,
body.p24-portal-home .as-home-how__title {
  margin: 0 0 10px;
  font-family: var(--as-d-font);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--as-d-ink);
}

body.p24-portal-home .as-home-discover__lead {
  margin: 0 0 24px;
  max-width: 46ch;
  font-family: var(--as-d-font);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--as-d-muted);
}

body.p24-portal-home .as-home-discover__search {
  margin: 0 0 20px;
}

body.p24-portal-home .as-home-discover__search-field {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 720px;
  background: var(--as-d-soft);
  border: 1px solid var(--as-d-line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

body.p24-portal-home .as-home-discover__search-field:focus-within {
  border-color: rgba(31, 143, 86, 0.45);
  box-shadow: 0 0 0 3px rgba(31, 143, 86, 0.12);
  background: #fff;
}

body.p24-portal-home .as-home-discover__search-ico {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-left: 16px;
  color: var(--as-d-muted);
}

body.p24-portal-home .as-home-discover__search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  border: 0;
  background: transparent;
  padding: 0 12px;
  font-family: var(--as-d-font);
  font-size: 1rem;
  color: var(--as-d-ink);
  outline: none;
}

body.p24-portal-home .as-home-discover__search-btn {
  flex: 0 0 auto;
  height: 52px;
  padding: 0 22px;
  border: 0;
  background: var(--as-d-accent);
  color: #fff;
  font-family: var(--as-d-font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

body.p24-portal-home .as-home-discover__search-btn:hover {
  background: var(--as-d-accent-deep);
}

body.p24-portal-home .as-home-discover__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 36px;
}

body.p24-portal-home .as-home-discover__cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--as-d-soft);
  border: 1px solid transparent;
  color: var(--as-d-ink) !important;
  text-decoration: none !important;
  font-family: var(--as-d-font);
  font-size: 0.88rem;
  font-weight: 650;
  transition: background 0.15s, border-color 0.15s;
}

body.p24-portal-home .as-home-discover__cat:hover {
  background: #fff;
  border-color: var(--as-d-line);
}

body.p24-portal-home .as-home-discover__cat-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--as-d-muted);
}

body.p24-portal-home .as-home-discover__cat--all {
  background: transparent;
  color: var(--as-d-accent) !important;
}

body.p24-portal-home .as-home-discover__top-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

body.p24-portal-home .as-home-discover__top-title {
  margin: 0;
  font-family: var(--as-d-font);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.p24-portal-home .as-home-discover__top-more {
  font-family: var(--as-d-font);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--as-d-accent) !important;
  text-decoration: none !important;
}

body.p24-portal-home .as-home-discover__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.p24-portal-home .as-home-discover__card {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--as-d-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}

body.p24-portal-home .as-home-discover__card:hover {
  border-color: rgba(31, 143, 86, 0.35);
  transform: translateY(-2px);
}

body.p24-portal-home .as-home-discover__card-link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  text-decoration: none !important;
  color: inherit !important;
}

body.p24-portal-home .as-home-discover__card-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--as-d-soft);
}

body.p24-portal-home .as-home-discover__card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.p24-portal-home .as-home-discover__card-body {
  min-width: 0;
}

body.p24-portal-home .as-home-discover__card-title {
  margin: 0 0 4px;
  font-family: var(--as-d-font);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--as-d-ink);
}

body.p24-portal-home .as-home-discover__rating {
  font-family: var(--as-d-font);
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--as-d-accent);
}

body.p24-portal-home .as-home-discover__card-phone {
  display: block;
  margin: 0 12px 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--as-d-soft);
  color: var(--as-d-ink) !important;
  font-family: var(--as-d-font);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none !important;
  text-align: center;
  transition: background 0.15s, color 0.15s;
}

body.p24-portal-home .as-home-discover__card-phone:hover {
  background: var(--as-d-accent);
  color: #fff !important;
}

/* How it works */
body.p24-portal-home .as-home-how {
  background: var(--as-d-soft, #f4f7f5);
  padding: 48px 0;
}

body.p24-portal-home .as-home-how__inner {
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 28px;
}

body.p24-portal-home .as-home-how__head {
  margin-bottom: 28px;
}

body.p24-portal-home .as-home-how__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.p24-portal-home .as-home-how__step {
  background: #fff;
  border: 1px solid var(--as-d-line, #e4ebe6);
  border-radius: 16px;
  padding: 22px 20px;
}

body.p24-portal-home .as-home-how__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(31, 143, 86, 0.12);
  color: var(--as-d-accent, #1f8f56);
  font-family: var(--as-d-font, Manrope, sans-serif);
  font-size: 0.9rem;
  font-weight: 800;
}

body.p24-portal-home .as-home-how__step-title {
  margin: 0 0 8px;
  font-family: var(--as-d-font, Manrope, sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.p24-portal-home .as-home-how__step-text {
  margin: 0;
  font-family: var(--as-d-font, Manrope, sans-serif);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--as-d-muted, #5b6b62);
}

/* Catalog anchor spacing on home */
body.p24-portal-home .sitemap-catalog,
body.p24-portal-home.as-home-page .sitemap-catalog {
  scroll-margin-top: 96px;
  max-width: 1450px;
  margin: 0 auto;
  padding: 8px 28px 72px;
  font-family: Manrope, system-ui, sans-serif;
}

body.p24-portal-home .sitemap-letter-title,
body.p24-portal-home.as-home-page .sitemap-letter-title {
  font-family: Unbounded, Manrope, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #146b3a;
  border-bottom-color: #e1e8e3;
}

body.p24-portal-home .sitemap-links-list a,
body.p24-portal-home.as-home-page .sitemap-links-list a,
body.p24-portal-home .sitemap-stats,
body.p24-portal-home.as-home-page .sitemap-stats {
  font-family: Manrope, system-ui, sans-serif;
}

body.p24-portal-home .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (max-width: 980px) {
  body.p24-portal-home .as-home-discover__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.p24-portal-home .as-home-how__steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.p24-portal-home .as-home-discover,
  body.p24-portal-home .as-home-how {
    padding: 36px 0;
  }
  body.p24-portal-home .as-home-discover__inner,
  body.p24-portal-home .as-home-how__inner,
  body.p24-portal-home .as-paths__inner {
    padding: 0 18px;
  }
  body.p24-portal-home .as-paths__inner {
    grid-template-columns: 1fr;
  }
  body.p24-portal-home .as-paths {
    margin-top: 16px;
  }
  body.p24-portal-home .as-home-discover__grid {
    grid-template-columns: 1fr;
  }
  body.p24-portal-home .as-home-discover__search-btn {
    padding: 0 16px;
  }
}

body.p24-portal-home .as-home-how__lead {
  margin: 8px 0 0;
  max-width: 42rem;
  font-family: var(--as-d-font, Manrope, sans-serif);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--as-d-muted, #5b6b62);
}

/* Full catalog on home */
body.p24-portal-home .as-home-catalog__head,
body.p24-portal-home.as-home-page .as-home-catalog__head {
  max-width: 1450px;
  margin: 0 auto 22px;
  padding: 12px 28px 0;
}

body.p24-portal-home .as-home-catalog__eyebrow,
body.p24-portal-home.as-home-page .as-home-catalog__eyebrow {
  margin: 0 0 8px;
  font-family: var(--as-d-font, Manrope, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--as-d-accent, #1f8f56);
}

body.p24-portal-home .as-home-catalog__title,
body.p24-portal-home.as-home-page .as-home-catalog__title {
  margin: 0 0 8px;
  font-family: var(--as-d-font, Manrope, sans-serif);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #122018;
}

body.p24-portal-home .as-home-catalog__lead,
body.p24-portal-home.as-home-page .as-home-catalog__lead {
  margin: 0;
  max-width: 40rem;
  font-family: var(--as-d-font, Manrope, sans-serif);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--as-d-muted, #5b6b62);
}

body.p24-portal-home .as-home-catalog > .sitemap-quick-nav,
body.p24-portal-home.as-home-page .as-home-catalog > .sitemap-quick-nav {
  display: none;
}

body.p24-portal-home .as-home-catalog .sitemap-letter-title,
body.p24-portal-home.as-home-page .as-home-catalog .sitemap-letter-title {
  font-size: 1.15rem;
}

@media (max-width: 640px) {
  body.p24-portal-home .as-home-catalog__head,
  body.p24-portal-home.as-home-page .as-home-catalog__head {
    padding: 8px 18px 0;
  }
}

/* ——— Page atmosphere: calm wash (no tiles / icons / stripes) ——— */
body.p24-portal-home,
body.p24-portal-home.as-home-page {
  background-color: #f6f7f6;
  background-image:
    linear-gradient(180deg, #f3f5f4 0%, #f7f8f7 42%, #f4f5f4 100%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(120, 140, 128, 0.07), transparent 70%),
    radial-gradient(ellipse 55% 40% at 0% 70%, rgba(100, 120, 110, 0.05), transparent 65%);
  background-repeat: no-repeat;
  background-attachment: scroll;
}

body.p24-portal-home::before,
body.p24-portal-home.as-home-page::before {
  content: none;
}

body.p24-portal-home .site-content-wrapper,
body.p24-portal-home.as-home-page .site-content-wrapper,
body.p24-portal-home .site-content-fullwidth,
body.p24-portal-home.as-home-page .site-content-fullwidth,
body.p24-portal-home .entry-content,
body.p24-portal-home.as-home-page .entry-content {
  background: transparent !important;
  position: relative;
  z-index: 1;
}

/* Ритм секций: чередование белого и едва тёплого тона */
body.p24-portal-home .as-home-discover {
  background: #fff;
}

body.p24-portal-home .as-home-how {
  background: #f0f2f1;
}

body.p24-portal-home .home-blog-section,
body.p24-portal-home.as-home-page .home-blog-section {
  background: #fff !important;
}

body.p24-portal-home .home-blog-inner,
body.p24-portal-home.as-home-page .home-blog-inner {
  max-width: 1450px;
  padding: 0 28px;
  box-sizing: border-box;
}

body.p24-portal-home .as-dual-section,
body.p24-portal-home.as-home-page .as-dual-section {
  background: transparent !important;
  padding: 8px 0 48px;
  font-family: Manrope, system-ui, sans-serif;
}

body.p24-portal-home .as-dual-container,
body.p24-portal-home.as-home-page .as-dual-container {
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
}

body.p24-portal-home .as-dual-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

body.p24-portal-home .as-dual-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  min-height: 420px;
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.p24-portal-home .as-dual-card:hover {
  transform: translateY(-3px);
}

body.p24-portal-home .as-dual-card--client {
  display: grid;
  grid-template-columns: minmax(180px, 42%) 1fr;
  background:
    linear-gradient(145deg, #ffffff 0%, #f3f5f4 100%);
  border: 1px solid #e4e9e6;
  box-shadow: 0 18px 44px rgba(16, 22, 19, 0.08);
}

body.p24-portal-home .as-dual-card--client:hover {
  box-shadow: 0 24px 52px rgba(16, 22, 19, 0.12);
}

body.p24-portal-home .as-dual-card__media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #e8ece9;
}

body.p24-portal-home .as-dual-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(255, 255, 255, 0.35) 100%);
  pointer-events: none;
}

body.p24-portal-home .as-dual-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

body.p24-portal-home .as-dual-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 36px 34px 34px;
  box-sizing: border-box;
}

body.p24-portal-home .as-dual-card--partner {
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
  color: #f5f5f5;
}

body.p24-portal-home .as-dual-card--partner .as-dual-card__body {
  height: 100%;
  padding: 40px 36px 36px;
}

body.p24-portal-home .as-dual-card__tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 163, 95, 0.12);
  color: #146b3a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.p24-portal-home .as-dual-card__tag--light {
  background: rgba(255, 255, 255, 0.08);
  color: #cfcfcf;
}

body.p24-portal-home .as-dual-card__title {
  margin: 0 0 12px;
  font-family: Unbounded, Manrope, system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #122018;
}

body.p24-portal-home .as-dual-card--partner .as-dual-card__title {
  color: #fff;
}

body.p24-portal-home .as-dual-card__lead {
  margin: 0 0 22px;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #5b6b62;
}

body.p24-portal-home .as-dual-card--partner .as-dual-card__lead {
  color: #9a9a9a;
}

body.p24-portal-home .as-dual-card__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}

body.p24-portal-home .as-dual-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.4;
  color: #1a2a22;
}

body.p24-portal-home .as-dual-card--partner .as-dual-card__list li {
  color: #e8e8e8;
}

body.p24-portal-home .as-dual-card__list span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(34, 163, 95, 0.14);
  color: #1f8f56;
  font-size: 0.75rem;
  font-weight: 800;
}

body.p24-portal-home .as-dual-card--partner .as-dual-card__list span {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body.p24-portal-home .as-dual-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: auto;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none !important;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.p24-portal-home .as-dual-card__btn--solid {
  background: #146b3a;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(20, 107, 58, 0.28);
}

body.p24-portal-home .as-dual-card__btn--solid:hover {
  background: #0f5530;
  transform: translateY(-1px);
}

body.p24-portal-home .as-dual-card__btn--light {
  background: #fff;
  color: #171717 !important;
}

body.p24-portal-home .as-dual-card__btn--light:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  body.p24-portal-home .as-dual-grid {
    grid-template-columns: 1fr;
  }
  body.p24-portal-home .as-dual-card--client {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  body.p24-portal-home .as-dual-card__media {
    min-height: 240px;
    max-height: 280px;
  }
  body.p24-portal-home .as-dual-card__media::after {
    background: linear-gradient(180deg, transparent 40%, rgba(255, 255, 255, 0.55) 100%);
  }
}

@media (max-width: 640px) {
  body.p24-portal-home .as-dual-section {
    padding: 4px 0 36px;
  }
  body.p24-portal-home .as-dual-container {
    padding: 0 18px;
  }
  body.p24-portal-home .as-dual-card,
  body.p24-portal-home .as-dual-card--partner {
    border-radius: 24px;
  }
  body.p24-portal-home .as-dual-card__body,
  body.p24-portal-home .as-dual-card--partner .as-dual-card__body {
    padding: 24px 20px 22px;
  }
}

body.p24-portal-home .as-faq-section,
body.p24-portal-home.as-home-page .as-faq-section {
  background: #fff !important;
  padding: 72px 0 80px;
  font-family: Manrope, system-ui, sans-serif;
}

body.p24-portal-home .as-faq-container,
body.p24-portal-home.as-home-page .as-faq-container {
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
}

body.p24-portal-home .as-faq-list,
body.p24-portal-home.as-home-page .as-faq-list {
  max-width: none;
}

body.p24-portal-home .as-faq-eyebrow,
body.p24-portal-home.as-home-page .as-faq-eyebrow {
  margin: 0 0 8px;
  color: #146b3a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

body.p24-portal-home .as-faq-title,
body.p24-portal-home.as-home-page .as-faq-title {
  margin: 0 0 28px;
  color: #122018 !important;
  font-family: Unbounded, Manrope, system-ui, sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
  text-align: center;
}

body.p24-portal-home .as-faq-item,
body.p24-portal-home.as-home-page .as-faq-item {
  background: #fff;
  border: 1px solid #e1e8e3;
  border-radius: 18px;
  margin-bottom: 10px;
}

body.p24-portal-home .as-faq-trigger,
body.p24-portal-home.as-home-page .as-faq-trigger {
  gap: 16px;
  padding: 18px 18px 18px 20px;
  color: #17211c;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
}

body.p24-portal-home .as-faq-icon,
body.p24-portal-home.as-home-page .as-faq-icon {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef6f1;
  color: #146b3a;
  font-size: 18px;
  line-height: 1;
}

body.p24-portal-home .as-faq-inner,
body.p24-portal-home.as-home-page .as-faq-inner {
  padding: 0 64px 18px 20px;
  color: #314038;
  font-size: 15px;
  line-height: 1.55;
}

body.p24-portal-home .as-faq-item.active,
body.p24-portal-home.as-home-page .as-faq-item.active {
  border-color: #b7e4c8;
  background: #f7fbf8;
}

body.p24-portal-home .as-home-catalog:not(.as-home-catalog--hub),
body.p24-portal-home.as-home-page .as-home-catalog:not(.as-home-catalog--hub),
body.p24-portal-home .sitemap-catalog,
body.p24-portal-home.as-home-page .sitemap-catalog {
  background: #f7f8f7;
  border-radius: 0;
  margin-top: 0;
  border: 0;
}

/* ——— Compact catalog hub (footer-style, all cities) ——— */
body.p24-portal-home .as-home-catalog--hub {
  --hub-ink: #f5f5f5;
  --hub-muted: #9a9a9a;
  --hub-line: rgba(255, 255, 255, 0.1);
  --hub-chip: #242424;
  --hub-soft: #2a2a2a;
  scroll-margin-top: 96px;
  max-width: 1450px;
  margin: 8px auto 56px;
  padding: 0 28px;
  font-family: Manrope, system-ui, sans-serif;
  box-sizing: border-box;
  background: transparent !important;
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__inner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  max-width: none;
  margin: 0;
  padding: 40px 42px 36px;
  border-radius: 32px;
  color: var(--hub-ink);
  background: #1c1c1c !important;
  border: 1px solid var(--hub-line);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__head {
  margin: 0 0 26px;
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__eyebrow {
  margin: 0 0 10px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9a9a !important;
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__title {
  margin: 0 0 10px;
  font-family: Unbounded, Manrope, system-ui, sans-serif !important;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff !important;
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__lead {
  margin: 0;
  max-width: 38rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #9a9a9a !important;
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--hub-chip);
  border: 1px solid var(--hub-line);
  color: #f0f0f0;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__cat:hover {
  background: var(--hub-soft);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateY(-1px);
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__cat-count {
  color: #c8c8c8;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__letters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hub-line);
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 7px;
  border-radius: 10px;
  background: var(--hub-chip);
  border: 1px solid var(--hub-line);
  color: #e8e8e8;
  font-family: Unbounded, Manrope, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__letter:hover {
  background: #fff;
  border-color: #fff;
  color: #171717;
  transform: translateY(-1px);
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__popular {
  margin: 0 0 26px;
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__popular-title {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9a9a !important;
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--hub-chip);
  border: 1px solid transparent;
  color: #f0f0f0 !important;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__list a::after {
  content: "→";
  margin-left: auto;
  opacity: 0;
  transform: translateX(-4px);
  color: #fff;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__list a:hover {
  background: var(--hub-soft);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff !important;
  transform: translateY(-1px);
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__list a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding-top: 4px;
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: #fff !important;
  color: #171717 !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: none !important;
  transition: background 0.18s ease, transform 0.15s ease;
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__cta:hover {
  background: #f0f0f0 !important;
  color: #171717 !important;
  transform: translateY(-1px);
}

body.p24-portal-home .as-home-catalog--hub .as-home-catalog__cta-note {
  margin: 0;
  color: #9a9a9a !important;
  font-size: 0.9rem;
}

/* Hide legacy city catalog headings when hub is nested inside */
body.p24-portal-home .zb24-home-catalog:has(.as-home-catalog--hub) > .zb24-container,
body.p24-portal-home .mz24-home-catalog:has(.as-home-catalog--hub) > .mz24-container,
body.p24-portal-home .or24-home-catalog:has(.as-home-catalog--hub) > .or24-container,
body.p24-portal-home .gr24-home-catalog:has(.as-home-catalog--hub) > .gr24-container,
body.p24-portal-home .lb24-home-catalog:has(.as-home-catalog--hub) > .lb24-container,
body.p24-portal-home .md24-home-catalog:has(.as-home-catalog--hub) > .md24-container,
body.p24-portal-home .np24-home-catalog:has(.as-home-catalog--hub) > .np24-container,
body.p24-portal-home .pl24-home-catalog:has(.as-home-catalog--hub) > .pl24-container,
body.p24-portal-home .vt24-home-catalog:has(.as-home-catalog--hub) > .vt24-container,
body.p24-portal-home .mg24-home-catalog:has(.as-home-catalog--hub) > .mg24-home-catalog__head,
body.p24-portal-home .brn-home-catalog:has(.as-home-catalog--hub) > .brn-container,
body.p24-portal-home .slc-home-catalog:has(.as-home-catalog--hub) .slc-home-catalog__head {
  display: none !important;
}

body.p24-portal-home .zb24-home-catalog:has(.as-home-catalog--hub),
body.p24-portal-home .mz24-home-catalog:has(.as-home-catalog--hub),
body.p24-portal-home .or24-home-catalog:has(.as-home-catalog--hub),
body.p24-portal-home .mg24-home-catalog:has(.as-home-catalog--hub),
body.p24-portal-home .brn-home-catalog:has(.as-home-catalog--hub),
body.p24-portal-home .slc-home-catalog:has(.as-home-catalog--hub) {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 900px) {
  body.p24-portal-home .as-home-catalog--hub .as-home-catalog__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.p24-portal-home .as-home-catalog--hub {
    padding: 0 18px;
    margin-bottom: 40px;
  }
  body.p24-portal-home .as-home-catalog--hub .as-home-catalog__inner {
    padding: 28px 20px 26px;
    border-radius: 24px;
  }
  body.p24-portal-home .as-home-catalog--hub .as-home-catalog__list {
    grid-template-columns: 1fr;
  }
  body.p24-portal-home .as-home-catalog--hub .as-home-catalog__list a::after {
    opacity: 0.45;
    transform: none;
  }
}

/* Скрываем старые hero-блоки городов — сверху новый as-home-hero */
body.p24-portal-home .brn-home-hero,
body.p24-portal-home .slc-home-hero,
body.p24-portal-home .pl24-home-hero,
body.p24-portal-home .zb24-home-hero,
body.p24-portal-home .vt24-home-hero,
body.p24-portal-home .or24-home-hero,
body.p24-portal-home .np24-home-hero,
body.p24-portal-home .mz24-home-hero,
body.p24-portal-home .md24-home-hero,
body.p24-portal-home .gr24-home-hero,
body.p24-portal-home .lb24-home-hero,
body.p24-portal-home .msk100-home-hero,
body.p24-portal-home .g24-hero-section,
body.p24-portal-home .p24-hero-section,
body.p24-portal-home .lida24-main-hero,
body.p24-portal-home .b24-home-hero,
body.p24-portal-home #b24-hero-section,
body.p24-portal-home .brn-about-hero--edge {
  display: none !important;
}
