/* FAM — брендовые цвета: #000000 #FFFFFF #FF008E #554DBC */

:root {
  --fam-black: #000000;
  --fam-white: #ffffff;
  --fam-page-bg: #f0e6ef;
  --fam-pink: #ff008e;
  --fam-purple: #554dbc;

  --ht-bg: var(--fam-page-bg);
  --ht-bg-mid: #ffd6ea;
  --ht-panel: #eeedf5;
  --ht-elevated: rgba(85, 77, 188, 0.08);
  --ht-cyan: var(--fam-pink);
  --ht-cyan-dim: #d60078;
  --ht-violet: var(--fam-purple);
  --ht-violet-bright: #7a6fe0;
  --ht-text: #1a1a1a;
  --ht-text-muted: #5c5c6b;
  --ht-line: rgba(85, 77, 188, 0.25);

  --fam-radius-pill: 999px;
  --fam-shadow-soft: 0 8px 32px rgba(85, 77, 188, 0.08);
}

html {
  min-height: 100%;
  background-color: var(--fam-page-bg);
}
body {
  background-color: var(--fam-page-bg);
  background-image: none;
  color: var(--ht-text-muted);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* —— Remove decorative background images from layout blocks —— */
header .fam-header-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

header .fam-header-brand__mark {
  display: block;
  height: clamp(2.65rem, 6.25vw, 3.5rem);
  width: auto;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

header .fam-header-brand:hover .fam-header-brand__mark {
  opacity: 0.9;
}

header .fam-header-brand:focus-visible {
  outline: 3px solid rgba(255, 0, 142, 0.45);
  outline-offset: 4px;
  border-radius: 4px;
}

header,
.hero,
.services-nav,
.services-nav-content,
.services-section,
.why-section,
footer {
  background-image: none;
}

.hero {
  background-color: var(--fam-page-bg);
}
.hero::before {
  display: none;
}

header {
  background-color: var(--fam-page-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
nav a {
  color: var(--ht-text);
}
nav a:hover {
  color: var(--fam-pink);
  text-shadow: none;
}

/* Главное меню FAM в шапке: явный контраст (ссылки не теряются на фоне) */
header #fam-main-nav a {
  color: #181028;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.875rem, 0.22vw + 0.8rem, 1rem);
  -webkit-tap-highlight-color: rgba(255, 0, 142, 0.15);
}

header #fam-main-nav a:hover,
header #fam-main-nav a:focus-visible {
  color: var(--fam-pink);
}

header #fam-main-nav a[aria-current="page"] {
  color: var(--fam-pink);
  font-weight: 700;
}

.phone-button {
  background: #ff008e;
  background-image: none;
  box-shadow: 0 4px 14px rgba(255, 0, 142, 0.35);
  color: var(--fam-white);
}
.phone-button:hover {
  background: #ff008e;
  background-image: none;
  filter: brightness(0.95);
  box-shadow: 0 6px 20px rgba(255, 0, 142, 0.45);
}

header .phone-button.phone-button--stand {
  background: var(--fam-purple);
  background-image: none;
  box-shadow: 0 4px 14px rgba(85, 77, 188, 0.35);
  color: #ffffff;
}
header .phone-button.phone-button--stand:hover {
  background: var(--fam-purple);
  background-image: none;
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(85, 77, 188, 0.45);
}

.menu-toggle span {
  background: var(--fam-purple);
}

.hero h1 {
  color: var(--ht-text);
  text-shadow: none;
}
.hero p {
  color: var(--ht-text-muted);
}

.btn-outline {
  color: var(--fam-purple);
  border-color: var(--fam-purple);
  background: var(--fam-white);
}
.btn-outline:hover {
  background: rgba(85, 77, 188, 0.08);
  color: var(--fam-purple);
  box-shadow: none;
}

.btn-primary {
  background-color: var(--fam-pink);
  color: var(--fam-white);
  border-color: transparent;
}
.btn-primary:hover {
  filter: brightness(0.95);
  box-shadow: 0 6px 20px rgba(255, 0, 142, 0.4);
}

.services-nav {
  background-color: var(--fam-page-bg);
}
.services-nav-content {
  background: var(--ht-bg-mid);
  border-top-color: var(--ht-line);
  border-bottom-color: var(--ht-line);
}
.services-nav-text {
  color: var(--fam-purple);
  text-shadow: none;
}

.services-section {
  background-color: transparent;
}

.services-section.fam-about-showcase {
  background: transparent;
  padding: clamp(3.75rem, 7vw, 5.75rem) 0;
}

.fam-about-showcase__header {
  width: 100%;
  max-width: none;
  margin: 0 0 clamp(2.25rem, 5vw, 3.25rem);
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
  position: static;
  z-index: auto;
}

.fam-about-showcase__strip {
  background: linear-gradient(180deg, #f8f6ff 0%, #eee8fb 100%);
  border-radius: 20px;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.fam-about-showcase__title {
  width: 100%;
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1e1548;
}

.fam-about-showcase__lead {
  margin: 0;
  font-size: clamp(0.9375rem, 1.2vw + 0.75rem, 1.0625rem);
  line-height: 1.65;
  color: #5c5c6b;
}

.fam-about-showcase__lead-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 600;
  color: var(--fam-purple);
  text-decoration: none;
  border-bottom: 1px solid rgba(85, 77, 188, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.fam-about-showcase__lead-link:hover {
  color: var(--fam-pink);
  border-bottom-color: rgba(255, 0, 142, 0.45);
}

.fam-about-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  max-width: 1200px;
  margin-inline: auto;
}

.fam-about-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: clamp(1.25rem, 2.5vw, 1.65rem);
  background: linear-gradient(155deg, #302266 0%, #1a1038 52%, #140b28 100%);
  border-radius: 16px;
  box-shadow:
    0 20px 48px rgba(18, 10, 42, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fam-about-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.fam-about-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fam-about-card__heading {
  margin: 0 0 0.55rem;
  font-size: clamp(1rem, 1.2vw + 0.82rem, 1.125rem);
  font-weight: 700;
  line-height: 1.28;
  color: #ffffff;
}

.fam-about-card__text {
  margin: 0 0 1.1rem;
  font-size: clamp(0.8125rem, 0.9vw + 0.68rem, 0.875rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.74);
}

.fam-about-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 10px;
  background: #7a6fe0;
  color: #ffffff;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.fam-about-card__btn:hover {
  filter: brightness(1.09);
}

.fam-about-card__btn:focus-visible {
  outline: 3px solid rgba(255, 0, 142, 0.55);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .fam-about-showcase__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

/* ——— Участникам (главная) ——— */
.fam-participants-section {
  padding: clamp(3.5rem, 7vw, 5.25rem) 0;
  background: transparent;
}

.fam-participants-section__header {
  max-width: 44rem;
  margin: 0 auto clamp(2rem, 4vw, 2.85rem);
  text-align: center;
}

.fam-participants-section__title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1e1548;
}

.fam-participants-section__lead {
  margin: 0;
  font-size: clamp(0.9375rem, 1.2vw + 0.75rem, 1.0625rem);
  line-height: 1.65;
  color: #5c5c6b;
}

.fam-participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  max-width: 1120px;
  margin-inline: auto;
}

.fam-participants-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: clamp(1.2rem, 2.5vw, 1.55rem);
  border-radius: 16px;
  border: 1px solid rgba(85, 77, 188, 0.14);
  background: linear-gradient(155deg, #ffffff 0%, #faf9ff 100%);
  box-shadow: 0 12px 32px rgba(85, 77, 188, 0.07);
}

.fam-participants-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(85, 77, 188, 0.1);
  color: var(--fam-purple);
}

.fam-participants-card__heading {
  margin: 0;
  font-size: clamp(1rem, 1vw + 0.85rem, 1.125rem);
  font-weight: 700;
  line-height: 1.28;
  color: #1e1548;
}

.fam-participants-card__text {
  flex: 1;
  margin: 0;
  font-size: clamp(0.8125rem, 0.35vw + 0.74rem, 0.875rem);
  line-height: 1.55;
  color: rgba(39, 39, 62, 0.78);
}

.fam-participants-card__btn {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 520px) {
  .fam-participants-card__btn {
    align-self: stretch;
    justify-content: center;
    text-align: center;
  }
}

/* Шаги на странице участников */
.fam-participants-steps {
  margin: 0;
  padding-left: 1.35rem;
  max-width: 44rem;
  font-size: clamp(0.9rem, 0.28vw + 0.82rem, 0.97rem);
  line-height: 1.58;
  color: rgba(39, 39, 62, 0.84);
}

.fam-participants-steps li {
  margin-bottom: 0.75rem;
}

.fam-participants-steps li:last-child {
  margin-bottom: 0;
}

.fam-program-note--after-steps {
  margin-top: 1.5rem;
}

/* Блоки «Участникам» (текст регламента) */
.fam-participants-doc {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 1.65rem);
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.fam-participants-block {
  border-radius: 16px;
  border: 1px solid rgba(85, 77, 188, 0.14);
  background: linear-gradient(155deg, #ffffff 0%, #faf9ff 100%);
  box-shadow: 0 10px 28px rgba(85, 77, 188, 0.06);
  padding: clamp(1.15rem, 2.5vw, 1.55rem) clamp(1.2rem, 2.5vw, 1.7rem);
  scroll-margin-top: 5.5rem;
}

.fam-participants-block__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.05rem, 1vw + 0.9rem, 1.22rem);
  font-weight: 700;
  color: var(--fam-purple);
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.fam-participants-block__sub {
  margin: 1.15rem 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fam-pink);
  line-height: 1.3;
}

.fam-participants-block > h2 + .fam-participants-block__sub {
  margin-top: 0.65rem;
}

.fam-participants-block p {
  margin: 0 0 0.7rem;
  font-size: clamp(0.875rem, 0.22vw + 0.82rem, 0.9375rem);
  line-height: 1.58;
  color: rgba(39, 39, 62, 0.86);
}

.fam-participants-block p:last-child {
  margin-bottom: 0;
}

.fam-participants-block ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  font-size: clamp(0.875rem, 0.22vw + 0.82rem, 0.9375rem);
  line-height: 1.55;
  color: rgba(39, 39, 62, 0.86);
}

.fam-participants-block ul:last-child {
  margin-bottom: 0;
}

.fam-participants-block li {
  margin-bottom: 0.4rem;
}

.fam-participants-block li:last-child {
  margin-bottom: 0;
}

.fam-participants-block a {
  font-weight: 600;
  color: var(--fam-purple);
  text-decoration: none;
  border-bottom: 1px solid rgba(85, 77, 188, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.fam-participants-block a:hover {
  color: var(--fam-pink);
  border-bottom-color: rgba(255, 0, 142, 0.45);
}

.fam-participants-block__route {
  list-style: disc;
}

.fam-participants-block__contacts {
  list-style: none;
  padding-left: 0;
}

.fam-participants-block__contacts li {
  margin-bottom: 0.5rem;
}

.fam-participants-block__contacts li:last-child {
  margin-bottom: 0;
}

.fam-participants-block__footnote {
  margin-top: 0.9rem !important;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(85, 77, 188, 0.12);
  font-size: clamp(0.82rem, 0.2vw + 0.76rem, 0.875rem) !important;
  line-height: 1.5;
  color: rgba(39, 39, 62, 0.72) !important;
}

/* ——— FAM EXPO thematic accordion ——— */
.fam-expo-accordion-section {
  padding: clamp(2.25rem, 4vw, 3.25rem) 0 clamp(2.5rem, 5vw, 3.75rem);
  background: linear-gradient(180deg, #faf9ff 0%, #ffffff 45%);
}

.fam-expo-accordion-section__header {
  max-width: 42rem;
  margin-bottom: clamp(1.35rem, 3vw, 2rem);
}

.fam-expo-accordion-section__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 2vw + 0.85rem, 1.65rem);
  font-weight: 700;
  color: var(--fam-purple);
  letter-spacing: -0.02em;
}

.fam-expo-accordion-section__lead {
  margin: 0;
  font-size: clamp(0.9rem, 0.35vw + 0.82rem, 0.97rem);
  line-height: 1.55;
  color: rgba(39, 39, 62, 0.72);
}

.fam-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fam-accordion__item {
  border: 1px solid rgba(85, 77, 188, 0.22);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(85, 77, 188, 0.06);
  overflow: clip;
}

.fam-accordion__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  font-size: clamp(0.95rem, 0.25vw + 0.88rem, 1.05rem);
  font-weight: 600;
  color: var(--fam-purple);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color 0.2s ease;
}

.fam-accordion__item > summary::-webkit-details-marker {
  display: none;
}

.fam-accordion__item > summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--fam-purple);
  border-bottom: 2px solid var(--fam-purple);
  transform: rotate(45deg);
  margin-top: -0.2rem;
  opacity: 0.85;
  transition: transform 0.22s ease, opacity 0.2s ease;
}

.fam-accordion__item[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 0.15rem;
}

.fam-accordion__item > summary:hover {
  background-color: rgba(85, 77, 188, 0.045);
}

.fam-accordion__item > summary:focus-visible {
  outline: 3px solid rgba(255, 0, 142, 0.45);
  outline-offset: -3px;
}

.fam-accordion__panel {
  padding: 0 1.15rem 1.1rem;
  border-top: 1px solid rgba(85, 77, 188, 0.1);
}

.fam-accordion__list {
  margin: 0.75rem 0 0;
  padding: 0 0 0 1.15rem;
  font-size: clamp(0.84rem, 0.2vw + 0.78rem, 0.9rem);
  line-height: 1.52;
  color: rgba(39, 39, 62, 0.82);
}

.fam-accordion__list:first-child {
  margin-top: 0.6rem;
}

.fam-accordion__list li + li {
  margin-top: 0.35rem;
}

.fam-accordion__list--ordered {
  list-style-type: decimal;
  list-style-position: outside;
  padding-left: 1.65rem;
}

.fam-accordion__panel > ol.fam-accordion__list--ordered:first-child {
  margin-top: 0.6rem;
}

.fam-accordion__subblock .fam-accordion__list--ordered {
  margin-top: 0.55rem;
}

.fam-accordion__item--nested .fam-accordion__list--ordered {
  padding-left: 1.45rem;
}

.fam-accordion__subblock {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(85, 77, 188, 0.2);
}

.fam-accordion__subblock:first-of-type {
  margin-top: 0.85rem;
}

.fam-accordion__subblock-title {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fam-pink);
}

.fam-accordion__item--nested {
  margin-top: 1rem;
  border: 1px solid rgba(85, 77, 188, 0.14);
  border-radius: 10px;
  background: rgba(85, 77, 188, 0.04);
  box-shadow: none;
}

.fam-accordion__item--nested > summary {
  padding: 0.75rem 1rem;
  font-size: clamp(0.88rem, 0.2vw + 0.82rem, 0.95rem);
  font-weight: 600;
}

.fam-accordion__item--nested .fam-accordion__panel {
  padding: 0 1rem 0.85rem;
  border-top-color: rgba(85, 77, 188, 0.12);
}

.fam-accordion__item--nested .fam-accordion__list {
  font-size: clamp(0.8rem, 0.18vw + 0.75rem, 0.865rem);
}

@media (max-width: 520px) {
  .fam-accordion__item > summary {
    padding: 0.85rem 0.95rem;
  }

  .fam-accordion__panel {
    padding: 0 0.95rem 0.95rem;
  }

  .fam-accordion__list,
  .fam-accordion__list--ordered {
    padding-left: 1.35rem;
  }
}

/* ——— Программа выставки ——— */
.fam-program-section {
  padding: clamp(2.25rem, 4vw, 3.25rem) 0 clamp(2.35rem, 5vw, 3.5rem);
  background: #ffffff;
  border-top: 1px solid rgba(85, 77, 188, 0.12);
}

.fam-program-section__header {
  max-width: 40rem;
  margin-bottom: clamp(1.35rem, 3vw, 2rem);
}

.fam-program-section__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 2vw + 0.85rem, 1.65rem);
  font-weight: 700;
  color: var(--fam-purple);
  letter-spacing: -0.02em;
}

.fam-program-section__lead {
  margin: 0;
  font-size: clamp(0.9rem, 0.35vw + 0.82rem, 0.97rem);
  line-height: 1.55;
  color: rgba(39, 39, 62, 0.72);
}

/* Страница «Участникам»: блок «Как стать участником» */
.fam-program-section--participants-process {
  margin-top: clamp(0.25rem, 1.5vw, 0.75rem);
  padding: clamp(1.35rem, 2.8vw, 1.85rem) clamp(1.2rem, 2.5vw, 1.75rem) clamp(1.5rem, 3vw, 2rem);
  border-radius: 16px;
  border: 1px solid rgba(85, 77, 188, 0.14);
  background: linear-gradient(155deg, #ffffff 0%, #faf9ff 100%);
  box-shadow: 0 10px 28px rgba(85, 77, 188, 0.06);
  scroll-margin-top: 5.5rem;
}

.fam-program-section--participants-process .fam-program-section__header {
  max-width: 44rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  padding-bottom: clamp(1rem, 2vw, 1.25rem);
  border-bottom: 1px solid rgba(85, 77, 188, 0.1);
}

.fam-program-section--participants-process .fam-participants-steps {
  list-style: none;
  padding-left: 0;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  counter-reset: fam-participant-step;
}

.fam-program-section--participants-process .fam-participants-steps li {
  position: relative;
  margin-bottom: 0;
  padding: clamp(1rem, 2vw, 1.15rem) clamp(1rem, 2vw, 1.25rem) clamp(1rem, 2vw, 1.15rem)
    clamp(3.55rem, 5vw, 3.85rem);
  border-radius: 12px;
  border: 1px solid rgba(85, 77, 188, 0.12);
  background: rgba(255, 255, 255, 0.65);
  font-size: clamp(0.9rem, 0.26vw + 0.82rem, 0.97rem);
  line-height: 1.58;
  color: rgba(39, 39, 62, 0.86);
  counter-increment: fam-participant-step;
  box-shadow: 0 2px 10px rgba(85, 77, 188, 0.04);
}

.fam-program-section--participants-process .fam-participants-steps li::before {
  content: counter(fam-participant-step);
  position: absolute;
  left: clamp(1rem, 2vw, 1.25rem);
  top: clamp(1rem, 2vw, 1.25rem);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--fam-purple) 0%, #4439a8 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(85, 77, 188, 0.28);
}

.fam-program-section--participants-process .fam-participants-steps li strong {
  color: #1e1548;
  font-weight: 700;
}

.fam-program-section--participants-process .fam-program-note--after-steps {
  margin-top: clamp(1.25rem, 2.5vw, 1.65rem);
}

/* Страница «Контакты»: блок «Часы работы офиса» */
.fam-program-section--contacts-office {
  margin-top: clamp(0.5rem, 2vw, 1rem);
  padding: clamp(1.35rem, 2.8vw, 1.85rem) clamp(1.2rem, 2.5vw, 1.75rem) clamp(1.5rem, 3vw, 2rem);
  border-radius: 16px;
  border: 1px solid rgba(85, 77, 188, 0.14);
  background: linear-gradient(155deg, #ffffff 0%, #faf9ff 100%);
  box-shadow: 0 10px 28px rgba(85, 77, 188, 0.06);
  scroll-margin-top: 5.5rem;
}

.fam-program-section--contacts-office .fam-program-section__header {
  max-width: 44rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  padding-bottom: clamp(1rem, 2vw, 1.25rem);
  border-bottom: 1px solid rgba(85, 77, 188, 0.1);
}

.fam-program-section--contacts-office .fam-contacts-hours-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.65rem, 2vw, 0.9rem);
  list-style: none;
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.65rem);
  padding: 0;
  max-width: none;
}

.fam-program-section--contacts-office .fam-contacts-hours-list li {
  margin: 0;
  padding: clamp(1rem, 2vw, 1.2rem) clamp(1.05rem, 2vw, 1.3rem);
  border-radius: 12px;
  border: 1px solid rgba(85, 77, 188, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 12px rgba(85, 77, 188, 0.05);
  font-size: clamp(0.94rem, 0.3vw + 0.85rem, 1.05rem);
  line-height: 1.45;
  color: rgba(39, 39, 62, 0.9);
}

.fam-program-section--contacts-office .fam-contacts-hours-list li strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fam-pink);
  line-height: 1.35;
}

.fam-program-section--contacts-office .fam-program-note {
  margin-top: 0;
  margin-bottom: 0;
}

@media (max-width: 520px) {
  .fam-program-section--contacts-office .fam-contacts-hours-list {
    grid-template-columns: 1fr;
  }
}

/* Фильтр по дням программы */
.fam-program-days-widget {
  margin-top: 0.25rem;
}

.fam-program-days-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem clamp(0.75rem, 3vw, 1.85rem);
  padding-bottom: 0.75rem;
  margin-bottom: clamp(1.15rem, 2.5vw, 1.65rem);
  border-bottom: 1px solid rgba(85, 77, 188, 0.22);
}

.fam-program-days-tab {
  margin: 0;
  padding: 0.48rem 0.2rem;
  font-family: inherit;
  font-size: clamp(0.875rem, 0.35vw + 0.78rem, 0.9375rem);
  font-weight: 600;
  color: rgba(39, 39, 62, 0.52);
  background: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.fam-program-days-tab:hover {
  color: var(--fam-purple);
}

.fam-program-days-tab:focus-visible {
  outline: 3px solid rgba(255, 0, 142, 0.45);
  outline-offset: 3px;
}

.fam-program-days-tab[aria-selected="true"] {
  padding: 0.48rem 1.2rem;
  color: #ffffff;
  background: var(--fam-purple);
  box-shadow: 0 6px 18px rgba(85, 77, 188, 0.35);
}

.fam-program-days-tab[aria-selected="true"]:hover {
  color: #ffffff;
  filter: brightness(1.03);
}

.fam-program-days-panels {
  position: relative;
}

.fam-program-day-panel[hidden] {
  display: none !important;
}

.fam-program-day-panel:not([hidden]) {
  animation: fam-program-panel-in 0.28s ease-out;
}

@keyframes fam-program-panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fam-program-day-panel:not([hidden]) {
    animation: none;
  }
}

.fam-program-day-panel .fam-program-day {
  max-width: 42rem;
}

.fam-program-day {
  border: 1px solid rgba(85, 77, 188, 0.18);
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(165deg, #faf9ff 0%, #ffffff 52%);
  box-shadow: 0 10px 28px rgba(85, 77, 188, 0.06);
}

.fam-program-day__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(85, 77, 188, 0.12);
}

.fam-program-day__date {
  font-weight: 700;
  font-size: clamp(1rem, 0.35vw + 0.9rem, 1.0625rem);
  color: var(--fam-purple);
}

.fam-program-day__dow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(39, 39, 62, 0.52);
  text-transform: lowercase;
}

.fam-program-day__hours {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fam-pink);
}

.fam-program-day__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fam-program-day__list li {
  position: relative;
  padding-left: 1rem;
  font-size: clamp(0.84rem, 0.2vw + 0.78rem, 0.9rem);
  line-height: 1.48;
  color: rgba(39, 39, 62, 0.82);
}

.fam-program-day__list li + li {
  margin-top: 0.55rem;
}

.fam-program-day__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fam-purple);
  opacity: 0.65;
}

.fam-program-note {
  margin: clamp(1.35rem, 3vw, 1.85rem) 0 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(85, 77, 188, 0.06);
  border: 1px solid rgba(85, 77, 188, 0.12);
  font-size: clamp(0.82rem, 0.25vw + 0.76rem, 0.875rem);
  line-height: 1.52;
  color: rgba(39, 39, 62, 0.68);
}

@media (max-width: 899px) {
  .fam-program-day__hours {
    margin-left: 0;
    flex-basis: 100%;
  }
}

.section-title {
  color: var(--ht-text);
}

.services-header .section-title {
  margin-bottom: 0.35rem;
}

.services-header {
  margin-bottom: 2rem;
}

.tab-wrapper:first-child .tab.tab-active,
.tab-wrapper:last-child .tab.tab-active {
  background-color: var(--fam-pink);
  color: var(--fam-white);
  border: 2px solid transparent;
}

.tab-wrapper:first-child .tab.tab-inactive,
.tab-wrapper:last-child .tab.tab-inactive {
  background-color: rgba(255, 255, 255, 0.94);
  color: var(--fam-purple);
  border: 2px solid rgba(85, 77, 188, 0.28);
}

.tab-wrapper:first-child .tab.tab-inactive:hover,
.tab-wrapper:last-child .tab.tab-inactive:hover {
  border-color: rgba(85, 77, 188, 0.45);
  background-color: var(--fam-white);
}

.service-list li {
  color: var(--ht-text-muted);
}
.service-list li::before {
  color: var(--fam-purple);
}

.why-section {
  background: var(--fam-white);
  border: 1px solid var(--ht-line);
}
.why-section::before {
  background: var(--fam-purple);
}
.why-section h3 {
  color: var(--ht-text);
}
.why-section p,
.why-section ul li {
  color: var(--ht-text-muted);
}
/* List marker: glow dot — no external/svg background-image */
.why-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--fam-pink);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255, 0, 142, 0.85);
  background-image: none;
  opacity: 1;
}

.footer-decoration::before,
.footer-decoration::after {
  background-color: var(--fam-purple);
}

footer {
  background: var(--fam-white);
  color: var(--ht-text-muted);
  border-top: 1px solid var(--ht-line);
}

.footer-column:nth-child(1),
.footer-column:nth-child(2) {
  border-right-color: var(--ht-line);
}
.footer-column h3 {
  color: var(--fam-purple);
}
.footer-column p {
  color: var(--ht-text-muted);
}
.footer-logo-icon {
  background-color: var(--fam-pink);
}
.footer-logo-text {
  color: var(--ht-text);
}
.footer-social-top a {
  background: rgba(85, 77, 188, 0.1);
  color: var(--fam-purple);
  border: 1px solid var(--ht-line);
}
.footer-social-top a:hover {
  background: rgba(255, 0, 142, 0.12);
  color: var(--fam-pink);
  box-shadow: none;
}
.footer-column ul li a {
  color: var(--ht-text-muted);
}
.footer-column ul li a:hover {
  color: var(--fam-pink);
}
.footer-contact-item,
.footer-contact-item a {
  color: var(--ht-text-muted);
}
.footer-contact-item a:hover {
  color: var(--fam-pink);
}
.footer-contact-icon {
  color: var(--fam-purple);
  filter: none;
}
.footer-working-hours-title,
.footer-working-hours-text {
  color: var(--ht-text-muted);
}
.footer-bottom {
  border-top-color: var(--ht-line);
}
.footer-bottom p,
.footer-bottom a {
  color: var(--ht-text-muted);
}
.footer-bottom a:hover {
  color: var(--fam-pink);
}

/* —— Expo hero: промо-блок, карточки действий —— */
.fam-scroll-anchor {
  scroll-margin-top: 5.5rem;
  height: 0;
  margin: 0;
  padding: 0;
}

#participants {
  scroll-margin-top: 5.5rem;
}

#schedule {
  scroll-margin-top: 5.5rem;
}

#program {
  scroll-margin-top: 5.5rem;
}

@keyframes hero-chip-float {
  0%,
  100% {
    transform: perspective(480px) rotateX(12deg) rotateY(-6deg) translateY(0);
  }
  50% {
    transform: perspective(480px) rotateX(12deg) rotateY(-6deg) translateY(-11px);
  }
}

@keyframes hero-rings-drift {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero.hero-expo.hero-expo--dark {
  position: relative;
  padding: clamp(4.5rem, 11vw, 6rem) 0 clamp(2.75rem, 5vw, 4rem);
  text-align: center;
  overflow: hidden;
  min-height: unset;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: #120722;
  background-image: linear-gradient(
    165deg,
    #0f0622 0%,
    #1a0b42 38%,
    #321878 72%,
    #4a2088 100%
  );
}

.hero.hero-expo.hero-expo--dark::before {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 90% 62% at 50% 118%,
      rgba(255, 0, 142, 0.26),
      transparent 54%
    ),
    radial-gradient(circle at 14% 22%, rgba(122, 111, 224, 0.38), transparent 44%),
    radial-gradient(circle at 88% 16%, rgba(85, 77, 188, 0.26), transparent 40%);
}

.hero-expo-bg-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-expo-rings {
  position: absolute;
  width: min(125vmin, 820px);
  height: auto;
  aspect-ratio: 1;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  opacity: 0.82;
  animation: hero-rings-drift 140s linear infinite;
}

.hero-expo-decocube {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4),
    rgba(255, 0, 142, 0.45)
  );
  box-shadow: 0 0 22px rgba(255, 0, 142, 0.35);
  opacity: 0.55;
}

.hero-expo-decocube--1 {
  left: 11%;
  top: 21%;
  transform: rotate(-16deg);
}

.hero-expo-decocube--2 {
  right: 13%;
  top: 28%;
  transform: rotate(22deg);
}

.hero-expo-decocube--3 {
  left: 20%;
  bottom: 17%;
  width: 10px;
  height: 10px;
  transform: rotate(10deg);
}

.hero-expo .hero-expo-layout.container {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-expo-meta.hero-expo-meta--pills {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: min(100%, 34rem);
  margin: clamp(1.05rem, 3.2vw, 1.65rem) auto 0;
  text-align: left;
}

.hero-expo-meta__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem 0.6rem;
  width: 100%;
}

.hero-expo-meta__pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.78rem;
  min-height: 2.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  color: #ffffff;
}

.hero-expo-meta__pill--wide {
  width: 100%;
  justify-content: flex-start;
}

.hero-expo-meta__pill-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95);
}

.hero-expo-meta__pill-icon svg {
  display: block;
}

.hero-expo-meta__pill-label {
  font-size: clamp(0.6875rem, 0.9vw + 0.58rem, 0.8125rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.hero-expo-main--immersive {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-expo-center-wrap {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  min-height: unset;
  padding-inline: clamp(1rem, 4vw, 2rem);
  padding-bottom: 0;
}

.hero-expo-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 0 auto;
  max-width: min(92vw, 820px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero.hero-expo .hero-expo-copy.hero-content {
  max-width: min(92vw, 820px);
  margin-inline: auto;
}

.hero.hero-expo.hero-expo--dark .hero-expo-copy h1 {
  font-size: clamp(1.875rem, 2.4vw + 1.05rem, 3.05rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  color: #ffffff;
}

.hero.hero-expo.hero-expo--dark .hero-expo-copy > p {
  font-size: clamp(1rem, 0.22vw + 0.96rem, 1.125rem);
  line-height: 1.65;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36em;
}

.hero.hero-expo.hero-expo--dark .hero-expo-copy > p.hero-expo-tagline {
  max-width: min(100%, 560px);
  margin-inline: auto;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.hero-expo-eyebrow {
  margin: 0.35rem auto 0.75rem;
  font-size: clamp(0.75rem, 1vw + 0.55rem, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hero-expo-tagline--slogan {
  font-weight: 600;
  font-size: clamp(1rem, 1.8vw + 0.7rem, 1.25rem);
  color: #ffffff;
  margin-bottom: 0.25rem !important;
}

.hero-expo-tagline--slogan-sub {
  font-weight: 500;
  font-size: clamp(0.9rem, 1.2vw + 0.65rem, 1.05rem);
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1rem !important;
}

.hero-expo-tagline__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 4vw, 2rem);
  align-items: start;
  direction: ltr;
}

.hero-expo-tagline__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.6vw + 0.68rem, 1.125rem);
  letter-spacing: 0.02em;
  color: #ffffff;
}

.hero-expo-tagline__ru {
  display: block;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.6vw + 0.68rem, 1.125rem);
  letter-spacing: 0.02em;
  color: #ffffff;
}

.hero-expo-tagline__en {
  display: block;
  font-weight: 500;
  font-size: clamp(0.78rem, 0.85vw + 0.62rem, 0.9375rem);
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 420px) {
  .hero-expo-tagline__cols {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.hero-expo-chips {
  position: static;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1.25rem, 4vw, 3rem);
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding: 0 clamp(0.25rem, 2vw, 1rem) clamp(0.75rem, 2vw, 1.25rem);
  pointer-events: none;
  direction: ltr;
}

.hero-expo-chip--franch {
  order: 1;
}

.hero-expo-chip--advert {
  order: 2;
}

.hero-expo-chip--marketing {
  order: 3;
}

.hero-expo-chip {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  flex: 0 1 auto;
  transform: none !important;
}

.hero-expo-chip__orb {
  width: clamp(88px, 18vw, 112px);
  height: clamp(88px, 18vw, 112px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(
    148deg,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(85, 77, 188, 0.62) 42%,
    rgba(255, 0, 142, 0.38) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow:
    0 0 46px rgba(255, 0, 142, 0.36),
    0 18px 42px rgba(0, 0, 0, 0.45),
    inset 0 2px 0 rgba(255, 255, 255, 0.38),
    inset 0 -8px 22px rgba(85, 77, 188, 0.38);
  animation: hero-chip-float 5.6s ease-in-out infinite;
}

.hero-expo-chip--franch .hero-expo-chip__orb {
  animation-delay: 0s;
}

.hero-expo-chip--advert .hero-expo-chip__orb {
  animation-delay: 0.65s;
}

.hero-expo-chip--marketing .hero-expo-chip__orb {
  animation-delay: 1.25s;
}

.hero-expo-chip__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

@media (max-width: 900px) {
  .hero-expo-chip__orb {
    width: clamp(74px, 19vw, 96px);
    height: clamp(74px, 19vw, 96px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-expo-rings,
  .hero-expo-chip__orb {
    animation: none !important;
  }

  .hero-expo-chip__orb {
    transform: perspective(480px) rotateX(12deg) rotateY(-6deg);
  }
}

/* Блок «Бронь стенда» + таймер — внутри hero, слева / справа */
.fam-hero-actions {
  position: relative;
  z-index: 3;
}

.fam-hero-actions--in-hero {
  margin-top: clamp(0.75rem, 3vw, 2rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
}

.fam-hero-actions__menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: clamp(1rem, 3vw, 1.75rem);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fam-hero-actions .stand-book-card,
.fam-hero-actions .countdown-card {
  border-radius: 20px;
}

.fam-hero-actions--in-hero .stand-book-card,
.fam-hero-actions--in-hero .countdown-card {
  flex: 0 1 min(380px, calc(50% - 0.875rem));
  max-width: min(380px, calc(50% - 0.875rem));
  width: auto;
}

.stand-book-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.375rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background-color: var(--fam-purple);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  box-shadow:
    0 12px 36px rgba(85, 77, 188, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stand-book-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 44px rgba(85, 77, 188, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.stand-book-card:focus-visible {
  outline: 3px solid rgba(255, 0, 142, 0.65);
  outline-offset: 3px;
}

.stand-book-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.1) 100%);
  color: var(--fam-white);
  border-radius: 12px;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.stand-book-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  line-height: 1.25;
}

.countdown-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 20px;
  background-color: var(--fam-purple);
  padding: 1.125rem 1.375rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 12px 36px rgba(85, 77, 188, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Контраст текста на карточках #554DBC (перебиваем .hero p из index.css на страницах с hero) */
.fam-hero-actions .countdown-card p {
  margin: 0;
  color: #ffffff;
}

.fam-hero-actions .countdown-card .countdown-card__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

.fam-hero-actions .countdown-card .countdown-card__days {
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.fam-hero-actions .countdown-card .countdown-card__days-unit {
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 0.35rem;
  color: #ffffff;
}

.fam-hero-actions .countdown-card .countdown-card__time {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  color: #ffffff;
  opacity: 0.98;
  padding-top: 0.75rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

/* —— Модальное окно бронирования стенда —— */
.stand-modal[hidden] {
  display: none !important;
}

.stand-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.stand-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}

.stand-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: min(90vh, 900px);
  overflow: auto;
  background: var(--fam-white);
  border-radius: 16px;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.stand-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.stand-modal__close:hover {
  background: rgba(85, 77, 188, 0.1);
  color: var(--fam-black);
}

.stand-modal__title {
  margin: 0 0 0.5rem;
  padding-right: 2rem;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--fam-pink);
  border-bottom: 1px solid rgba(85, 77, 188, 0.25);
  padding-bottom: 0.85rem;
}

.stand-modal__note {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: #64748b;
}

.stand-modal__note .req,
.stand-form .req {
  color: var(--fam-pink);
}

.stand-form__row {
  display: grid;
  grid-template-columns: minmax(120px, 38%) 1fr;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.stand-form__row label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.stand-form__row input,
.stand-form__row select,
.stand-form__row textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--fam-black);
}

.stand-form__row input:focus,
.stand-form__row select:focus,
.stand-form__row textarea:focus {
  outline: none;
  border-color: var(--fam-purple);
  box-shadow: 0 0 0 2px rgba(255, 0, 142, 0.2);
}

.stand-form__row input::placeholder,
.stand-form__row textarea::placeholder {
  color: #94a3b8;
}

.stand-form__fieldset {
  margin: 0 0 1rem;
  padding: 0;
  border: none;
}

.stand-form__fieldset legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
  padding: 0;
}

.stand-form__legend-hint {
  font-weight: 400;
  color: #64748b;
  font-size: 0.8rem;
}

.stand-form__checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: min(38%, 200px);
  margin-left: auto;
  width: fit-content;
  max-width: 100%;
}

.stand-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #334155;
  cursor: pointer;
}

.stand-check input {
  width: auto;
  accent-color: var(--fam-purple);
}

.stand-form__error {
  color: var(--fam-pink);
  font-size: 0.82rem;
  margin: 0.35rem 0 0;
  padding-left: min(38%, 200px);
}

.stand-form__submit-wrap {
  text-align: center;
  margin-top: 1.25rem;
}

.stand-form__submit {
  padding: 0.65rem 2.75rem;
  border: none;
  border-radius: 8px;
  background-color: var(--fam-purple);
  color: var(--fam-white);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 4px 14px rgba(85, 77, 188, 0.35);
}

.stand-form__submit:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.stand-form__submit:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 24px rgba(85, 77, 188, 0.42);
  transform: translateY(-1px);
}

.stand-form__row--consent {
  grid-template-columns: 1fr;
  align-items: start;
  margin-top: 0.25rem;
}

.stand-check--consent {
  align-items: flex-start;
  line-height: 1.45;
}

.stand-check--consent span {
  font-size: 0.8125rem;
  color: #475569;
}

.stand-check--consent a {
  color: var(--fam-purple);
  font-weight: 600;
  text-decoration: underline;
}

.stand-form__submit-error {
  padding-left: 0;
  margin: 0 0 0.75rem;
  text-align: center;
}

.stand-form__success {
  padding: 0.5rem 0 0.25rem;
  text-align: center;
}

.stand-form__success-title {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--fam-purple);
}

.stand-form__success-text {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #475569;
}

.stand-form__success .stand-form__submit {
  min-width: 160px;
}

.stand-form[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  .hero.hero-expo.hero-expo--dark {
    padding: clamp(4.75rem, 14vw, 5.25rem) 0 2.75rem;
    min-height: unset;
  }

  .hero-expo-meta__row {
    grid-template-columns: 1fr;
  }

  .hero-expo-meta.hero-expo-meta--pills {
    max-width: 100%;
    padding-inline: 0.25rem;
  }

  .hero.hero-expo.hero-expo--dark .hero-expo-copy h1 {
    font-size: clamp(1.625rem, 4.5vw + 0.65rem, 2.35rem);
    letter-spacing: -0.025em;
    line-height: 1.18;
  }

  .hero.hero-expo.hero-expo--dark .hero-expo-copy > p {
    margin-bottom: 1.25rem;
  }

  .hero-expo-center-wrap {
    padding-inline: clamp(0.75rem, 3vw, 1.25rem);
  }

  .hero-expo-chips {
    gap: 1rem 1.35rem;
    margin-top: 1.85rem;
  }

  .hero-expo-chip__orb {
    transform: perspective(400px) rotateX(10deg) rotateY(4deg);
  }

  .fam-hero-actions--in-hero {
    margin-top: 1.25rem;
    padding-bottom: 1.75rem;
  }

  .fam-hero-actions--in-hero .fam-hero-actions__menu {
    flex-direction: column;
    align-items: stretch;
    max-width: 380px;
    margin-inline: auto;
  }

  .fam-hero-actions--in-hero .stand-book-card,
  .fam-hero-actions--in-hero .countdown-card {
    flex: none;
    max-width: none;
    width: 100%;
  }

  .hero-expo-copy {
    margin-bottom: 0;
  }

  .stand-form__row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .stand-form__checkboxes {
    padding-left: 0;
    margin-left: 0;
    width: 100%;
  }

  .stand-form__error {
    padding-left: 0;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .hero.hero-expo.hero-expo--dark {
    min-height: unset;
    padding-top: 4.25rem;
    padding-bottom: 1.75rem;
  }
}

/* —— Плавающие контакты справа: иконки #FF008E, раскрытие при hover/focus —— */
.fam-contact-dock {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1100;
  padding-right: max(10px, env(safe-area-inset-right));
  pointer-events: none;
}

.fam-contact-dock__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  pointer-events: auto;
}

.fam-contact-dock__link {
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  align-self: flex-end;
  min-height: 50px;
  text-decoration: none;
  outline: none;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: -4px 6px 22px rgba(255, 0, 142, 0.3), 0 2px 8px rgba(85, 77, 188, 0.1);
  transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.fam-contact-dock__icon {
  flex: 0 0 50px;
  box-sizing: border-box;
  width: 50px;
  min-height: 50px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ff008e;
  color: #ffffff;
  border-radius: 16px 0 0 16px;
  transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.fam-contact-dock__panel {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
  box-sizing: border-box;
  min-height: 50px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  background-color: #ffffff;
  color: #1a1a1a;
  border: 1px solid rgba(85, 77, 188, 0.22);
  border-right: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  transition:
    max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.22s ease 0.04s,
    padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.fam-contact-dock__panel::before {
  content: attr(data-label);
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #554dbc;
  margin-bottom: 2px;
  line-height: 1.25;
}

.fam-contact-dock__text {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.fam-contact-dock__link:focus-visible {
  outline: 3px solid rgba(85, 77, 188, 0.55);
  outline-offset: 2px;
  box-shadow:
    -4px 10px 28px rgba(255, 0, 142, 0.37),
    0 4px 12px rgba(85, 77, 188, 0.14);
}

.fam-contact-dock__link:focus-visible .fam-contact-dock__panel {
  max-width: min(300px, 72vw);
  opacity: 1;
  padding: 11px 12px 11px 16px;
}

.fam-contact-dock__link:focus-visible .fam-contact-dock__icon {
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.2);
}

@media (hover: hover) and (pointer: fine) {
  .fam-contact-dock__link:hover {
    box-shadow:
      -4px 10px 28px rgba(255, 0, 142, 0.37),
      0 4px 12px rgba(85, 77, 188, 0.14);
  }

  .fam-contact-dock__link:hover .fam-contact-dock__panel {
    max-width: min(300px, 72vw);
    opacity: 1;
    padding: 11px 12px 11px 16px;
  }

  .fam-contact-dock__link:hover .fam-contact-dock__icon {
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fam-contact-dock__link,
  .fam-contact-dock__panel,
  .fam-contact-dock__icon {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  .fam-contact-dock {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    padding: 12px max(12px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-right));
    background: linear-gradient(
      180deg,
      rgba(255, 233, 245, 0) 0%,
      rgba(255, 233, 245, 0.97) 35%,
      #ffe9f5 100%
    );
    pointer-events: none;
  }

  .fam-contact-dock__list {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    pointer-events: auto;
  }

  .fam-contact-dock__link {
    flex-direction: column;
    align-items: center;
    align-self: auto;
    min-height: 0;
    border-radius: 12px;
    gap: 4px;
    overflow: visible;
  }

  .fam-contact-dock__icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    min-height: 0;
    align-self: center;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(255, 0, 142, 0.35);
  }

  .fam-contact-dock__panel {
    display: none;
  }
}

/* —— Страница «О выставке» —— */
.fam-about-page {
  padding: 0 0 clamp(3rem, 5vw, 4rem);
  background-color: var(--fam-page-bg);
}

.fam-about-page__content {
  padding: clamp(2.25rem, 4vw, 3rem) 0 0;
}

.fam-about-page__content .fam-program-page__intro strong {
  color: var(--fam-purple);
  font-weight: 700;
}

@media (min-width: 768px) {
  .fam-about-page__pillars.fam-program-formats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fam-about-page__content .fam-about-article {
  margin-top: 0.35rem;
}

.fam-about-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.fam-about-article {
  max-width: 760px;
  margin: 0 auto;
}

.fam-about-article h1 {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 800;
  color: var(--ht-text);
  margin: 0 0 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.fam-about-article h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fam-purple);
  margin: 2.25rem 0 0.875rem;
  line-height: 1.35;
}

.fam-about-article p {
  color: var(--ht-text-muted);
  margin: 0 0 1rem;
  line-height: 1.78;
  font-size: 1rem;
}

.fam-about-article ul {
  margin: 0 0 1.35rem;
  padding-left: 1.2rem;
  color: var(--ht-text-muted);
  line-height: 1.72;
}

.fam-about-article li {
  margin-bottom: 0.45rem;
}

.fam-about-article li strong {
  color: var(--ht-text);
  font-weight: 600;
}

.fam-about-lead {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  color: var(--fam-purple) !important;
  margin-top: 2.25rem !important;
  margin-bottom: 0 !important;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(85, 77, 188, 0.22);
  line-height: 1.45 !important;
}

.fam-about-exhibitions {
  margin: 0 0 2rem;
  padding-left: 1.25rem;
  color: var(--ht-text-muted);
  line-height: 1.65;
}

.fam-about-exhibitions li {
  margin-bottom: 0.35rem;
}

.fam-about-mission {
  margin: 0 0 1.75rem;
  padding-left: 1.25rem;
  color: var(--ht-text-muted);
  line-height: 1.65;
}

.fam-about-mission li {
  margin-bottom: 1rem;
}

.fam-about-mission li strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ht-text);
}

.fam-about-back {
  margin-top: 2rem !important;
  margin-bottom: 0 !important;
}

.fam-link-after-list {
  margin-top: 2rem;
  display: inline-block;
}

.fam-section-about-link {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.fam-section-about-link a {
  color: var(--fam-purple);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(85, 77, 188, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.fam-section-about-link a:hover {
  color: var(--fam-pink);
  border-bottom-color: rgba(255, 0, 142, 0.45);
}

nav a[aria-current="page"] {
  color: var(--fam-pink);
  font-weight: 700;
}

@media (max-width: 768px) {
  .fam-about-page {
    padding: 0 0 3rem;
  }
}

/* —— Страница «Программа выставки» —— */
.fam-program-page {
  padding-top: 0;
  background-color: var(--fam-page-bg);
}

.fam-program-page__hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 11vw, 6.35rem) 0 clamp(2rem, 5vw, 3rem);
  background: linear-gradient(165deg, #0f0622 0%, #1a0b42 38%, #321878 72%, #4a2088 100%);
  color: #ffffff;
}

.fam-program-page__hero-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 118%, rgba(255, 0, 142, 0.22), transparent 52%),
    radial-gradient(circle at 12% 28%, rgba(122, 111, 224, 0.35), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(85, 77, 188, 0.22), transparent 38%);
}

.fam-program-page__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.fam-program-page__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.fam-program-page__hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4vw + 0.85rem, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.fam-program-page__lead {
  margin: 0 0 1.35rem;
  font-size: clamp(0.95rem, 1.2vw + 0.82rem, 1.0625rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 38em;
}

.fam-program-page__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.fam-program-page__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: clamp(0.75rem, 0.35vw + 0.69rem, 0.8125rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.fam-program-page__chip svg {
  flex-shrink: 0;
  opacity: 0.88;
}

.fam-program-page__content {
  padding: clamp(2.25rem, 4vw, 3rem) 0 clamp(2.75rem, 6vw, 4rem);
}

.fam-program-page__intro {
  margin: 0 0 clamp(1.75rem, 3vw, 2.35rem);
  max-width: 44rem;
  font-size: clamp(0.95rem, 0.35vw + 0.86rem, 1.02rem);
  line-height: 1.62;
  color: rgba(39, 39, 62, 0.78);
}

.fam-program-formats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.85rem;
  margin-bottom: clamp(2rem, 4vw, 2.85rem);
}

.fam-program-format-card {
  padding: 1.05rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(85, 77, 188, 0.16);
  background: linear-gradient(155deg, #ffffff 0%, #faf9ff 100%);
  box-shadow: 0 10px 26px rgba(85, 77, 188, 0.06);
}

.fam-program-format-card__label {
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fam-pink);
}

.fam-program-format-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 0 0.75rem;
  border-radius: 14px;
  background: rgba(85, 77, 188, 0.1);
  color: var(--fam-purple);
  flex-shrink: 0;
}

.fam-program-format-card__icon svg {
  display: block;
}

.fam-program-formats--contacts-icons .fam-program-format-card__label {
  margin-bottom: 0.45rem;
}

.fam-program-format-card__text {
  margin: 0;
  font-size: clamp(0.82rem, 0.22vw + 0.76rem, 0.875rem);
  line-height: 1.48;
  color: rgba(39, 39, 62, 0.82);
}

.fam-program-format-card__text a {
  font-weight: 600;
  color: var(--fam-purple);
  text-decoration: none;
  border-bottom: 1px solid rgba(85, 77, 188, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.fam-program-format-card__text a:hover {
  color: var(--fam-pink);
  border-bottom-color: rgba(255, 0, 142, 0.45);
}

.fam-program-section--embed {
  border-top: none;
  padding: 0;
  background: transparent;
}

.fam-program-section--embed .fam-program-section__header {
  margin-bottom: clamp(1.15rem, 2.5vw, 1.65rem);
}

.fam-program-page__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid rgba(85, 77, 188, 0.14);
}

/* Кнопки брони стенда: #554DBC (шапка — выше; здесь — CTA и заявка на главной) */
#openStandModalParticipants.btn-primary,
#participantsCtaStandBtn.btn-primary,
#contactsCtaStandBtn.btn-primary,
#scheduleCtaStandBtn.btn-primary,
#programCtaStandBtn.btn-primary {
  background-color: var(--fam-purple);
  background-image: none;
  box-shadow: 0 4px 14px rgba(85, 77, 188, 0.35);
}

#openStandModalParticipants.btn-primary:hover,
#participantsCtaStandBtn.btn-primary:hover,
#contactsCtaStandBtn.btn-primary:hover,
#scheduleCtaStandBtn.btn-primary:hover,
#programCtaStandBtn.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(85, 77, 188, 0.45);
}

.fam-program-page__back {
  margin: 1.35rem 0 0;
}

.fam-program-page__back a {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--fam-purple);
  text-decoration: none;
  border-bottom: 1px solid rgba(85, 77, 188, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.fam-program-page__back a:hover {
  color: var(--fam-pink);
  border-bottom-color: rgba(255, 0, 142, 0.45);
}

.fam-program-note__link {
  margin-left: 0.35rem;
  font-weight: 600;
  color: var(--fam-purple);
  text-decoration: none;
  border-bottom: 1px solid rgba(85, 77, 188, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.fam-program-note__link:hover {
  color: var(--fam-pink);
  border-bottom-color: rgba(255, 0, 142, 0.45);
}

@media (max-width: 520px) {
  .fam-program-page__chip {
    width: 100%;
    justify-content: flex-start;
  }

  .fam-program-note__link {
    display: block;
    margin: 0.5rem 0 0;
    white-space: normal;
  }
}

/* ——— FAM: бургер-меню (≤991px) + затемнение фона ——— */
.fam-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1190;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  cursor: pointer;
  background: rgba(15, 6, 34, 0.48);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.fam-nav-backdrop.fam-nav-backdrop--visible {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 992px) {
  .fam-nav-backdrop {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fam-nav-backdrop {
    transition-duration: 0.01ms !important;
  }
}

header button.menu-toggle {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  margin: 0;
  border-radius: 10px;
  color: inherit;
  font: inherit;
  display: none;
}

header button.menu-toggle:focus-visible {
  outline: 3px solid rgba(255, 0, 142, 0.45);
  outline-offset: 2px;
}

@media (min-width: 992px) {
  header #fam-main-nav {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 0 0.5rem;
    border-top: none;
    gap: clamp(1.1rem, 2.2vw, 2.25rem);
  }

  header #fam-main-nav a {
    padding: 0.35rem 0;
    border-bottom: none;
    width: auto;
    white-space: nowrap;
  }

  header button.menu-toggle {
    display: none !important;
  }

  header.fam-header--nav-open {
    z-index: 1000;
  }
}

@media (max-width: 991px) {
  header.fam-header--nav-open {
    z-index: 1200;
  }

  header .container {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    row-gap: 0.65rem;
    position: relative;
    padding-top: clamp(0.65rem, 2vw, 1rem);
    padding-bottom: clamp(0.65rem, 2vw, 1rem);
  }

  header .fam-header-brand {
    flex: 1 1 auto;
    min-width: 0;
    order: 0;
  }

  header .menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    order: 2;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    z-index: 1202;
  }

  header .menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--fam-purple);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  header .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  header .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  header .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  header .fam-header-actions {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
  }

  header .fam-header-actions .phone-button.phone-button--stand {
    flex: 1 1 auto;
    margin-left: 0;
    min-width: 0;
    width: auto;
    height: auto;
    padding: 0.55rem 0.95rem;
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    text-align: center;
    white-space: nowrap;
    z-index: 1201;
  }

  header #fam-main-nav {
    order: 3;
    flex: 1 1 100%;
    display: none !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-height: min(70vh, 28rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.35rem 0 0.5rem;
    margin: 0;
    border-top: 1px solid rgba(85, 77, 188, 0.14);
    background: var(--fam-page-bg);
    z-index: 1201;
    animation: fam-nav-panel-in 0.22s ease-out;
  }

  header.fam-header--nav-open #fam-main-nav {
    display: flex !important;
  }

  header #fam-main-nav a {
    padding: 0.875rem 0;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(85, 77, 188, 0.1);
    white-space: normal;
    width: 100%;
  }

  header #fam-main-nav a:last-child {
    border-bottom: none;
    padding-bottom: 0.15rem;
  }
}

@keyframes fam-nav-panel-in {
  from {
    opacity: 0.85;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  header #fam-main-nav {
    animation: none !important;
  }
}

/* ——— Mobile: общая адаптация FAM EXPO ——— */
@media (max-width: 991px) {
  header .container,
  .container,
  .hero .container,
  .hero-expo .hero-expo-layout.container,
  .services-section .container,
  footer .container {
    width: 100%;
    max-width: 100%;
    padding-left: clamp(0.875rem, 4vw, 1.25rem);
    padding-right: clamp(0.875rem, 4vw, 1.25rem);
  }

  .fam-program-page__hero {
    padding-top: clamp(4.25rem, 11vw, 5.25rem);
    padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
  }

  .fam-program-page__cta,
  .fam-about-page__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fam-program-page__cta .btn,
  .fam-about-page__actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  body:has(.fam-contact-dock) {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  body:has(.fam-contact-dock) footer {
    padding-bottom: calc(2rem + 76px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 768px) {
  .hero.hero-expo.hero-expo--dark {
    padding-top: clamp(4rem, 12vw, 4.75rem);
    padding-bottom: 2rem;
  }

  .hero.hero-expo.hero-expo--dark .hero-expo-copy > p:not(.hero-expo-tagline) {
    margin-bottom: 1rem;
  }

  .hero-expo-meta__pill {
    min-height: unset;
    padding: 0.5rem 0.75rem;
    border-radius: 14px;
  }

  .hero-expo-meta__pill-label {
    white-space: normal;
    text-align: left;
    line-height: 1.35;
    font-size: 0.75rem;
  }

  .hero-expo-meta__pill--wide {
    align-items: flex-start;
  }

  .hero-expo-rings {
    width: 140vmin;
    opacity: 0.4;
  }

  .hero-expo-decocube {
    display: none;
  }

  .stand-modal {
    padding: 0;
    align-items: flex-end;
  }

  .stand-modal__dialog {
    max-width: none;
    max-height: min(94vh, 900px);
    border-radius: 18px 18px 0 0;
    padding: 1.25rem 1.15rem calc(1.35rem + env(safe-area-inset-bottom, 0px));
  }

  .stand-modal__title {
    font-size: 1.125rem;
  }

  .stand-form__fieldset legend {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .services-section.fam-about-showcase,
  .fam-participants-section,
  .fam-expo-accordion-section,
  .fam-program-section {
    padding-top: clamp(2.25rem, 6vw, 3rem);
    padding-bottom: clamp(2.25rem, 6vw, 3rem);
  }

  .fam-program-days-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .fam-program-days-tab {
    width: 100%;
    padding: 0.55rem 0.35rem;
    font-size: 0.8125rem;
    text-align: center;
  }

  .fam-program-days-tab[aria-selected="true"] {
    padding: 0.55rem 0.5rem;
  }

  .fam-program-day {
    padding: 1rem;
  }

  .fam-program-note {
    padding: 0.85rem 0.9rem;
  }

  .fam-program-page__content {
    padding-top: clamp(1.75rem, 4vw, 2.25rem);
    padding-bottom: clamp(2rem, 5vw, 2.75rem);
  }

  .fam-program-formats {
    grid-template-columns: 1fr;
  }

  footer .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  footer .footer-column:nth-child(1),
  footer .footer-column:nth-child(2),
  footer .footer-column:nth-child(3) {
    grid-column: auto;
    border-right: none;
    border-top: none;
    padding-right: 0;
    padding-top: 0;
    margin-top: 0;
  }

  footer .footer-logo,
  footer .footer-social-top,
  footer .footer-contact-item {
    justify-content: center;
  }

  footer .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  header .fam-header-brand__mark {
    height: 2.35rem;
  }

  header .phone-button.phone-button--stand {
    font-size: 0.6875rem;
    padding: 0.5rem 0.7rem;
  }

  .hero.hero-expo.hero-expo--dark .hero-expo-copy h1 {
    font-size: clamp(1.4rem, 5.8vw + 0.5rem, 1.85rem);
    line-height: 1.2;
  }

  .hero-expo-tagline--slogan {
    font-size: clamp(0.9375rem, 3.5vw + 0.65rem, 1.0625rem);
  }

  .hero-expo-chips {
    gap: 0.75rem 1rem;
    margin-top: 1.25rem;
  }

  .hero-expo-chip__orb {
    width: 62px;
    height: 62px;
  }

  .hero-expo-chip__orb svg {
    width: 30px;
    height: 30px;
  }

  .hero-expo-chip__label {
    font-size: 0.6rem;
  }

  .stand-book-card,
  .countdown-card {
    padding: 0.95rem 1.05rem;
  }

  .stand-book-card__icon {
    width: 44px;
    height: 44px;
  }

  .stand-book-card__title {
    font-size: 0.9375rem;
  }

  .fam-hero-actions .countdown-card .countdown-card__days {
    font-size: 1.375rem;
  }

  .fam-hero-actions .countdown-card .countdown-card__time {
    font-size: 1.0625rem;
    letter-spacing: 0.08em;
  }

  .fam-program-page__hero h1 {
    font-size: clamp(1.5rem, 5.5vw + 0.55rem, 1.85rem);
  }

  .fam-program-page__chip {
    width: 100%;
    justify-content: flex-start;
  }

  .fam-about-showcase__strip {
    padding: 0.85rem;
    border-radius: 14px;
  }

  .fam-about-showcase__title,
  .fam-participants-section__title {
    font-size: clamp(1.55rem, 5vw + 0.75rem, 1.85rem);
  }

  .fam-accordion__item > summary {
    font-size: 0.875rem;
    gap: 0.65rem;
  }

  .btn {
    padding: 0.75rem 1.35rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 360px) {
  header .phone-button.phone-button--stand {
    font-size: 0.625rem;
    padding: 0.45rem 0.55rem;
  }

  .hero.hero-expo.hero-expo--dark .hero-expo-copy h1 br {
    display: none;
  }
}

/* ——— RTL и шрифты для ar / fa / zh ——— */

html[dir="rtl"] header .container {
  flex-direction: row-reverse;
}

html[dir="rtl"] header #fam-main-nav {
  text-align: right;
}

html[dir="rtl"] .fam-accordion__list--ordered {
  padding-right: 1.25rem;
  padding-left: 0;
}

html[dir="rtl"] .fam-lang__select {
  padding: 0.4rem 0.65rem 0.4rem 1.75rem;
  background-position: left 0.5rem center;
}

html[lang="ar"] body,
html[lang="fa"] body {
  font-family: "Noto Sans Arabic", "Montserrat", system-ui, sans-serif;
}

html[lang="zh"] body {
  font-family: "Noto Sans SC", "Montserrat", system-ui, sans-serif;
}
