/**
 * altay-evgenii.ru — гостевой дом «Облака»
 * Стили: mobile-first, CSS-переменные, Flexbox + Grid
 */

/* -------------------------------------------------------------------------- */
/* Переменные и сброс */
/* -------------------------------------------------------------------------- */

:root {
  /* Слои: шапка выше страницы и чата; лайтбокс и прелоадер — ещё выше */
  --z-preloader: 500000;
  --z-lightbox: 480000;
  --z-site-header: 450000;
  --z-chat-widget: 8000;

  --color-green: #4a7043;
  --color-green-soft: #5c8c5f;
  --color-sky: #4a9cb8;
  --color-sky-soft: #6bb3cc;
  --color-beige: #ede6d9;
  --color-beige-warm: #d2b48c;
  --color-bg: #faf9f6;
  --color-white: #ffffff;
  --color-text: #1e1e1e;
  --color-text-muted: #4a4a4a;
  --color-border: rgba(74, 112, 67, 0.15);
  --font-body: system-ui, -apple-system, "BlinkMacSystemFont", "Segoe UI", Roboto, sans-serif;
  --font-heading: "Manrope", var(--font-body);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 32px rgba(30, 30, 30, 0.08);
  --shadow-card: 0 4px 24px rgba(74, 112, 67, 0.1);
  --header-h: 72px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-green);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--color-sky);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.75em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.35rem);
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25rem;
}

/* -------------------------------------------------------------------------- */
/* Утилиты */
/* -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------------------- */
/* Preloader (переходы между страницами) */
/* -------------------------------------------------------------------------- */

.page-preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-preloader.is-active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.page-preloader__inner {
  text-align: center;
}

.page-preloader__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-green);
  margin-bottom: 1rem;
}

.page-preloader__bar {
  width: 120px;
  height: 3px;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.page-preloader__bar::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-green-soft), var(--color-sky));
  border-radius: var(--radius-pill);
  animation: preloader-slide 0.9s ease-in-out infinite;
}

@keyframes preloader-slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}

/* -------------------------------------------------------------------------- */
/* Шапка */
/* -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-site-header);
  height: var(--header-h);
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
  overflow: visible;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--color-green);
}

/* Телефон — только мобильная шапка, по центру между логотипом и действиями */
.header-phone {
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.65rem, 3.1vw, 0.8rem);
  letter-spacing: -0.02em;
  color: var(--color-green);
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.header-phone:hover {
  color: var(--color-sky);
}

/* Десктоп-меню */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

.nav-desktop a {
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.nav-desktop a:hover,
.nav-desktop a.is-current {
  color: var(--color-green);
  background: rgba(74, 112, 67, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.header-messengers {
  display: flex;
  align-items: center;
  gap: 0.5cm;
  flex-wrap: wrap;
}

.header-icon-link {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, filter var(--transition), opacity var(--transition);
}

.header-icon-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  opacity: 0.95;
}

.header-icon-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

@media (max-width: 1023px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
  }

  .logo {
    flex: unset;
    justify-self: start;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  }

  .header-phone {
    display: none;
  }

  .header-actions {
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 0.35rem;
  }

  .header-messengers {
    flex-wrap: nowrap;
    gap: 0.5cm;
  }

  .header-icon-link {
    width: 24px;
    height: 24px;
  }

  .header-icon-link img {
    width: 24px;
    height: 24px;
  }
}

/* Гамбургер */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  margin-right: -0.15rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Мобильное меню: в разметке сразу ПОСЛЕ </header>, не внутри шапки — иначе backdrop-filter у .site-header даёт containing block и fixed-меню обрезается по высоте шапки (~0,5 см снизу). */
.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: var(--z-site-header);
  background: var(--color-bg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-mobile.is-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-mobile a {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  color: var(--color-text);
  border: 1px solid transparent;
}

.nav-mobile a:hover,
.nav-mobile a.is-current {
  background: var(--color-white);
  border-color: var(--color-border);
  color: var(--color-green);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .nav-mobile {
    display: none;
  }
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow var(--transition), background var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-sky), var(--color-sky-soft));
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(74, 156, 184, 0.35);
}

.btn-primary:hover {
  color: var(--color-white);
  box-shadow: 0 6px 24px rgba(74, 156, 184, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--color-sky);
  border: 2px solid var(--color-sky);
}

.btn-outline:hover {
  background: rgba(74, 156, 184, 0.1);
  color: var(--color-sky);
}

.btn-telegram {
  background: var(--color-sky);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(74, 156, 184, 0.35);
}

.btn-telegram:hover {
  color: var(--color-white);
  background: var(--color-sky-soft);
}

/* Max (мессенджер) — в палитре сайта */
.btn-max {
  background: linear-gradient(135deg, #3d4f8c, #5a6bb5);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(61, 79, 140, 0.35);
}

.btn-max:hover {
  color: var(--color-white);
  filter: brightness(1.06);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* -------------------------------------------------------------------------- */
/* Основной контент (отступ под фикс. шапку) */
/* -------------------------------------------------------------------------- */

main {
  padding-top: var(--header-h);
}

.section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.section--beige {
  background: linear-gradient(180deg, var(--color-beige) 0%, var(--color-bg) 100%);
}

.section--white {
  background: var(--color-white);
}

.section__intro {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section__intro p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sky);
  margin-bottom: 0.75rem;
}

/* -------------------------------------------------------------------------- */
/* Hero (главная) */
/* -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video,
.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__poster {
  z-index: 1;
  transition: opacity 0.28s ease;
}

.hero__video.is-ready ~ .hero__poster {
  opacity: 0;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(30, 40, 35, 0.25) 0%,
    rgba(20, 35, 40, 0.65) 55%,
    rgba(15, 30, 35, 0.85) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-block: clamp(3rem, 10vw, 6rem);
  padding-inline: clamp(1rem, 4vw, 2rem);
  max-width: var(--max-w);
  margin-inline: auto;
}

.hero h1 {
  color: var(--color-white);
  max-width: 18ch;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  animation: fade-up 0.9s ease both;
}

.hero__lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  max-width: 36ch;
  margin-bottom: 1.75rem;
  opacity: 0.95;
  animation: fade-up 0.9s 0.12s ease both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fade-up 0.9s 0.24s ease both;
}

.hero .btn-primary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-sky);
  box-shadow: var(--shadow-soft);
}

.hero .btn-primary:hover {
  background: var(--color-white);
  color: var(--color-sky);
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Главная: продающий лендинг — компактный текст, больше «воздуха» для видео */
.hero--landing .hero__content {
  padding-block: clamp(2rem, 6vw, 4rem);
}

.hero--landing h1 {
  max-width: min(16rem, 100%);
  margin-bottom: 0.65rem;
}

.hero--landing .hero__lead {
  max-width: min(20rem, 100%);
  margin-bottom: 1.25rem;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
}

.hero--landing .hero__actions {
  gap: 0.6rem;
}

.hero__subcta a:hover {
  color: #fff;
  opacity: 1;
}

.lp-ribbon {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-green);
  background: linear-gradient(90deg, rgba(92, 140, 95, 0.14), rgba(74, 156, 184, 0.14));
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

/* Главная: ближайший тренинг → якорь на странице тренингов */
.home-next-program {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(237, 230, 217, 0.35) 100%);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(1.35rem, 4vw, 2.25rem) 0;
}

.home-next-program__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  max-width: 38rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.home-next-program__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-green) 0%, #3d5c38 100%);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 12px rgba(74, 112, 67, 0.3);
}

.home-next-program__title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--color-text);
}

.home-next-program__meta {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

.home-next-program__btn {
  margin-top: 0.5rem;
  padding: 0.9rem 1.85rem;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 24px rgba(74, 112, 67, 0.28);
}

.home-next-program__btn:hover {
  box-shadow: 0 8px 28px rgba(74, 112, 67, 0.34);
}

.lp-benefits {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.75rem;
}

@media (min-width: 640px) {
  .lp-benefits {
    grid-template-columns: 1fr 1fr;
  }
}

.lp-benefit {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.05rem 1.2rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.lp-benefit__mark {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--color-sky);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lp-benefit p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.lp-benefit strong {
  color: var(--color-text);
}

.lp-program-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

@media (min-width: 720px) {
  .lp-program-grid {
    grid-template-columns: 1fr 1fr;
  }
}

a.lp-program-card {
  display: block;
  padding: 1.2rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

a.lp-program-card:hover {
  border-color: var(--color-green-soft);
  box-shadow: var(--shadow-card);
  color: inherit;
}

.lp-program-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--color-green);
}

.lp-program-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.lp-program-card__go {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-sky);
}

.lp-cta-band {
  background: linear-gradient(135deg, var(--color-sky) 0%, var(--color-sky-soft) 55%, #3d8aa3 100%);
  color: var(--color-white);
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 12px 40px rgba(74, 156, 184, 0.28);
}

.lp-cta-band h2 {
  color: var(--color-white);
  margin-bottom: 0.65rem;
}

.lp-cta-band > p {
  margin: 0 auto 1.35rem;
  opacity: 0.95;
  max-width: 36rem;
}

.lp-cta-band .btn-primary {
  background: var(--color-white);
  color: #2a6f86;
}

.lp-cta-band .btn-primary:hover {
  background: #f0f9fc;
  color: #245a6e;
}

.lp-cta-band .btn-outline {
  border-color: rgba(255, 255, 255, 0.88);
  color: var(--color-white);
}

.lp-cta-band .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
}

/* Узкий экран: кнопки столбиком, по центру, без наложения и «съезда» margin у второй */
@media (max-width: 560px) {
  .lp-cta-row {
    flex-direction: column;
    align-items: center;
  }

  .lp-cta-row .btn {
    width: min(22rem, 100%);
    box-sizing: border-box;
  }
}

.lp-cta-note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  opacity: 0.88;
}

.lp-cta-note a {
  color: #dff6fb;
  text-decoration: underline;
}

.lp-cta-note a:hover {
  color: #fff;
}

/* Внутренние hero (другие страницы) */
.page-hero {
  position: relative;
  min-height: min(45vh, 420px);
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(30, 50, 45, 0.75) 0%, rgba(74, 156, 184, 0.45) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.page-hero p {
  margin: 0;
  max-width: 42ch;
  opacity: 0.95;
  font-size: 1.05rem;
}

/* О специалисте: панорама Алтая, текст справа — не перекрывает фигуру на снимке */
.page-hero--evgeniya {
  min-height: min(56vh, 560px);
}

.page-hero--evgeniya .page-hero__bg {
  background-position: center 35%;
}

.page-hero--evgeniya .page-hero__overlay {
  background: linear-gradient(
    105deg,
    rgba(22, 42, 38, 0.08) 0%,
    rgba(22, 42, 38, 0.35) 42%,
    rgba(22, 42, 38, 0.72) 68%,
    rgba(22, 42, 38, 0.82) 100%
  );
}

.page-hero--evgeniya .container {
  margin-left: auto;
  margin-right: 0;
  max-width: min(100%, 38rem);
  text-align: right;
}

.page-hero--evgeniya p {
  margin-left: auto;
}

.page-hero--evgeniya .page-hero__subtitle {
  margin: 0 0 0.65rem;
  margin-left: auto;
  max-width: 36ch;
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 600;
  line-height: 1.4;
  opacity: 0.98;
}

.page-hero--evgeniya .page-hero__list {
  margin: 0.85rem 0 0;
  margin-left: auto;
  padding: 0;
  list-style: none;
  width: fit-content;
  max-width: 100%;
  font-size: 0.98rem;
  line-height: 1.5;
  opacity: 0.95;
}

.page-hero--evgeniya .page-hero__list li {
  position: relative;
  margin-bottom: 0.35rem;
  padding-right: 1rem;
}

.page-hero--evgeniya .page-hero__list li::before {
  content: "•";
  position: absolute;
  right: 0;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .page-hero--evgeniya .container {
    margin-inline: 0;
    max-width: none;
    text-align: left;
  }

  .page-hero--evgeniya .page-hero__subtitle,
  .page-hero--evgeniya .page-hero__list {
    margin-left: 0;
  }

  .page-hero--evgeniya .page-hero__overlay {
    background: linear-gradient(180deg, rgba(22, 42, 38, 0.12) 35%, rgba(22, 42, 38, 0.88) 100%);
  }

  .page-hero--evgeniya .page-hero__list li {
    padding-right: 0;
    padding-left: 1rem;
  }

  .page-hero--evgeniya .page-hero__list li::before {
    right: auto;
    left: 0;
  }
}

/* Панорамный hero (локальный файл images/dom/hero-wide.jpg, рекомендуемо 1920×640–800 px) */
.page-hero--panorama {
  min-height: 0;
  display: block;
  position: relative;
}

.page-hero--panorama .page-hero__panorama {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: clamp(220px, 38vw, 480px);
  object-fit: cover;
}

.page-hero--panorama .page-hero__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  height: clamp(220px, 38vw, 480px);
  z-index: 1;
}

.page-hero--panorama .container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

/* Панорама без затемнения фото — только тень у текста для читаемости */
.page-hero--panorama.page-hero--clean-photo .container .eyebrow,
.page-hero--panorama.page-hero--clean-photo .container h1,
.page-hero--panorama.page-hero--clean-photo .container p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 16px rgba(0, 0, 0, 0.35);
}

.page-hero--panorama.page-hero--clean-photo .page-hero__overlay {
  display: none;
}

/* -------------------------------------------------------------------------- */
/* Сетки карточек */
/* -------------------------------------------------------------------------- */

.grid-2 {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* Иначе на узком экране колонка с формой/картой может не сжиматься и даёт гориз. скролл */
.grid-2 > * {
  min-width: 0;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.card__img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.card__body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.card__body h3 {
  margin-bottom: 0.5rem;
}

.card__body h4 {
  font-size: 1rem;
  margin: 1.15em 0 0.4em;
}

.card__body p:last-child {
  margin-bottom: 0;
}

/* Раскрывающиеся блоки в карточке «коллаборация» (programmy) */
.collab-disclosures {
  margin: 1rem 0 0;
  border-top: 1px solid var(--color-border);
}

.collab-disclosure {
  border-bottom: 1px solid var(--color-border);
}

.collab-disclosure__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.85rem 0;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm, 6px);
}

.collab-disclosure__toggle:hover {
  color: var(--color-sky);
}

.collab-disclosure__toggle:focus-visible {
  outline: 2px solid var(--color-sky);
  outline-offset: 2px;
}

.collab-disclosure__label {
  flex: 1;
  min-width: 0;
}

.collab-disclosure__chevron {
  flex-shrink: 0;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.15em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.28s ease;
  opacity: 0.75;
}

.collab-disclosure.is-open .collab-disclosure__chevron {
  transform: rotate(-135deg);
  margin-top: 0.35em;
}

.collab-disclosure__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.collab-disclosure.is-open .collab-disclosure__panel {
  grid-template-rows: 1fr;
}

.collab-disclosure__panel-inner {
  min-height: 0;
  overflow: hidden;
}

.collab-disclosure__panel-inner > :first-child {
  margin-top: 0;
}

.collab-disclosure__panel-inner > :last-child {
  margin-bottom: 0;
}

.collab-disclosure.is-open .collab-disclosure__panel-inner {
  padding-bottom: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .collab-disclosure__panel,
  .collab-disclosure__chevron {
    transition-duration: 0.01ms;
  }
}

/* -------------------------------------------------------------------------- */
/* Галерея + лайтбокс */
/* -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.gallery button {
  position: relative;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--color-beige);
}

.gallery button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery button:hover img {
  transform: scale(1.05);
}

.gallery button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.35));
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.gallery button:hover::after {
  opacity: 1;
}

.gallery--credentials {
  margin-top: 2rem;
}

.gallery--credentials button {
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.gallery--credentials button img {
  object-fit: contain;
  padding: 0.5rem;
}

.gallery--credentials button::after {
  background: linear-gradient(transparent 60%, rgba(30, 50, 45, 0.25));
}

@media (min-width: 900px) {
  .gallery--credentials {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 25, 30, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lightbox__close:hover {
  transform: scale(1.05);
}

/* -------------------------------------------------------------------------- */
/* Видео-блок */
/* -------------------------------------------------------------------------- */

.video-embed {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
}

.video-embed iframe,
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed video {
  object-fit: contain;
  background: #1a1a1a;
}

/* Вертикальное видео на главной (блок «Атмосфера Алтая»): 464×848 — без полос 16:9 */
.video-embed--464x848 {
  aspect-ratio: 464 / 848;
  width: 100%;
  max-width: min(464px, 100%);
  margin-inline: auto;
}

.video-embed--464x848 video {
  object-fit: contain;
}

/* -------------------------------------------------------------------------- */
/* Отзывы */
/* -------------------------------------------------------------------------- */

.quote-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  position: relative;
}

.quote-card::before {
  content: "“";
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--color-sky);
  opacity: 0.35;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
}

.quote-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
  font-style: italic;
  color: var(--color-text-muted);
}

.quote-card footer {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-green);
}

.contact-social__lead {
  margin: 1rem 0 0.45rem;
  color: var(--color-text-muted);
}

.contact-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  transition: transform 0.2s ease, opacity var(--transition);
}

.contact-social__link:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.contact-social__link img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.otzyvy-videos {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.otzyvy-videos__title {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.otzyvy-videos__lead {
  margin: 0 0 1.75rem;
  max-width: 42rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.otzyvy-videos__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
  justify-items: center;
}

.otzyvy-videos__figure {
  margin: 0;
  width: 100%;
  max-width: 22rem;
}

.otzyvy-videos__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 1280;
  border-radius: var(--radius-lg);
  background: #1a1a1a;
  box-shadow: var(--shadow-card);
}

@media (max-width: 720px) {
  .otzyvy-videos__grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* Форма контактов */
/* -------------------------------------------------------------------------- */

.form-wrap {
  max-width: 560px;
  width: 100%;
  min-width: 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus:not([type="checkbox"]):not([type="radio"]),
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-sky);
  box-shadow: 0 0 0 3px rgba(74, 156, 184, 0.2);
}

.form-group input.is-invalid:not([type="checkbox"]):not([type="radio"]),
.form-group textarea.is-invalid {
  border-color: #c44;
}

.form-error {
  font-size: 0.8rem;
  color: #b33;
  margin-top: 0.35rem;
  display: none;
}

.form-error.is-visible {
  display: block;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  min-width: 0;
  max-width: 100%;
}

.form-group .checkbox-row label {
  margin-bottom: 0;
  font-weight: 400;
  flex: 1 1 0;
  min-width: 0;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: break-word;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  max-width: none;
  margin: 0;
  margin-top: 0.2rem;
  flex-shrink: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--color-sky);
}

.checkbox-row input[type="checkbox"]:focus {
  outline: 2px solid var(--color-sky);
  outline-offset: 2px;
}

.form-success {
  display: none;
  padding: 1rem 1.25rem;
  background: rgba(92, 140, 95, 0.15);
  border-radius: var(--radius-md);
  color: var(--color-green);
  font-weight: 600;
  margin-top: 1rem;
}

.form-success.is-visible {
  display: block;
}

.form-messenger-choice {
  margin-top: 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  background: var(--color-beige);
  border: 1px solid var(--color-border);
}

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

.form-messenger-choice:not([hidden]) {
  display: block;
}

.form-messenger-choice__lead {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
}

.form-messenger-choice__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1rem 0 0.85rem;
}

@media (min-width: 480px) {
  .form-messenger-choice__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.form-messenger-choice__actions .btn {
  flex: 1 1 auto;
  min-width: min(100%, 12rem);
  justify-content: center;
}

.form-messenger-choice__back {
  width: 100%;
  max-width: 22rem;
}

/* -------------------------------------------------------------------------- */
/* Страница «Тренинги»: блок одной программы (шаблон для следующих) */
/* -------------------------------------------------------------------------- */

.program-detail {
  padding: clamp(1.75rem, 4vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2.5rem;
}

#samopoznanie {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.program-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-sky);
  margin-bottom: 0.75rem;
}

.program-detail__title {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.program-detail__lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
}

.program-detail__lead p {
  margin-bottom: 1em;
}

.program-detail__lead p:last-child {
  margin-bottom: 0;
}

.program-detail h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
}

.program-detail__tools {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.program-detail__tools li {
  margin-bottom: 1rem;
  padding-left: 0;
  line-height: 1.55;
}

.program-detail__tools li:last-child {
  margin-bottom: 0;
}

.program-detail__mark {
  margin-right: 0.35rem;
}

.program-detail__days h3 {
  margin-top: 0;
}

.program-detail__days-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.program-detail__days-list li {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.program-detail__days-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.program-detail__days-list strong {
  display: block;
  font-size: 1.05rem;
  color: var(--color-green);
  margin-bottom: 0.35rem;
}

.program-detail__footnote {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------- */
/* Футер */
/* -------------------------------------------------------------------------- */

.site-footer {
  background: linear-gradient(180deg, var(--color-text) 0%, #2a3530 100%);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 3rem 2rem;
  margin-top: 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
  color: var(--color-sky-soft);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--color-white);
}

.footer-meta {
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0.85;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.55;
  margin-top: 1rem;
}

.footer-credit {
  font-size: 0.75rem;
  opacity: 0.45;
  margin-top: 0.75rem;
  text-align: center;
}

.footer-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit a:hover {
  color: var(--color-sky-soft);
  opacity: 1;
}

/* -------------------------------------------------------------------------- */
/* Анимация появления при скролле */
/* -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------------------- */
/* Прочее: список, карта-заглушка */
/* -------------------------------------------------------------------------- */

.feature-list li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

/* Страница «О Евгении»: границы запроса */
.scope-exclude {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(74, 112, 67, 0.07);
  border: 1px solid var(--color-border);
}

.scope-exclude h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.scope-exclude ul {
  margin-bottom: 0;
}

.map-placeholder {
  border-radius: var(--radius-lg);
  background: var(--color-beige);
  border: 1px dashed var(--color-beige-warm);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--color-text-muted);
}

.tagline-block {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.tagline-block h2 {
  margin-bottom: 1rem;
}

/* -------------------------------------------------------------------------- */
/* Бегущая строка фото (страница «Дом Облака») ~800×600, промежуток 1 см */
/* -------------------------------------------------------------------------- */

.dom-carousel-wrap {
  width: 100%;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* На всю ширину окна */
.full-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.dom-photo-marquee {
  width: 100%;
  overflow: hidden;
  background: var(--color-beige);
  padding-block: 0.75rem;
}

.dom-photo-marquee__viewport {
  overflow: hidden;
  width: 100%;
}

.dom-photo-marquee__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1cm;
  width: max-content;
  animation: dom-photo-marquee-scroll 55s linear infinite;
}

.dom-photo-marquee:hover .dom-photo-marquee__track {
  animation-play-state: paused;
}

.dom-photo-marquee__item {
  flex: 0 0 auto;
  width: min(800px, calc(100vw - 2rem));
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--color-white);
}

.dom-photo-marquee__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes dom-photo-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dom-photo-marquee__viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dom-photo-marquee__track {
    animation: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Яндекс.Карты */
/* -------------------------------------------------------------------------- */

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  background: var(--color-beige);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: min(420px, 55vh);
  border: 0;
}

/* -------------------------------------------------------------------------- */
/* Оповещение «Дом закрыт» — снизу слева, рядом с «Написать мне» */
/* -------------------------------------------------------------------------- */

.house-notice {
  position: fixed;
  left: clamp(0.75rem, 3vw, 1.25rem);
  bottom: clamp(0.75rem, 3vw, 1.25rem);
  z-index: 7900;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: min(calc(100vw - 6.5rem), 380px);
  padding: 0.7rem 0.7rem 0.7rem 1.05rem;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 28px rgba(30, 50, 45, 0.18);
  animation: house-notice-in 0.55s ease;
}

.house-notice[hidden] {
  display: none;
}

.house-notice__text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.house-notice__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(74, 156, 184, 0.12);
  color: var(--color-sky);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.house-notice__close:hover {
  background: rgba(74, 156, 184, 0.22);
}

@keyframes house-notice-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------------------------------------------------------- */
/* Плавающий виджет «Написать в Telegram» */
/* -------------------------------------------------------------------------- */

.chat-widget {
  position: fixed;
  right: clamp(0.75rem, 3vw, 1.25rem);
  bottom: clamp(0.75rem, 3vw, 1.25rem);
  z-index: var(--z-chat-widget);
  font-family: var(--font-body);
}

.chat-widget__fab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--color-sky), var(--color-sky-soft));
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(74, 156, 184, 0.42);
  animation: chat-widget-bounce 2.2s ease-in-out infinite;
}

@keyframes chat-widget-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.chat-widget__fab:hover {
  animation: none;
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.chat-widget__fab-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.95;
}

@media (max-width: 480px) {
  .chat-widget__fab-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .chat-widget__fab {
    padding: 0.85rem;
    border-radius: 50%;
  }
}

.chat-widget__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(100vw - 2rem, 340px);
  padding: 1.25rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.chat-widget__panel[hidden] {
  display: none !important;
}

.chat-widget__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.chat-widget__hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  line-height: 1.45;
}

.chat-widget__hint a {
  color: var(--color-sky);
  font-weight: 600;
}

.chat-widget__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--color-beige);
  border-radius: var(--radius-pill);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
}

.chat-widget .form-group {
  margin-bottom: 0.85rem;
}

.chat-widget .form-group label {
  font-size: 0.8rem;
}

/* -------------------------------------------------------------------------- */
/* Главная: консультации (лендинг) */
/* -------------------------------------------------------------------------- */

.hero-consult {
  background: linear-gradient(135deg, rgba(237, 230, 217, 0.55) 0%, rgba(255, 255, 255, 0.98) 45%, rgba(74, 156, 184, 0.08) 100%);
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--color-border);
}

.hero-consult__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-consult__grid {
    grid-template-columns: 1fr min(38%, 420px);
  }
}

.hero-consult h1 {
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.hero-consult__motto {
  max-width: 36rem;
  margin-bottom: 0.85rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.45;
  color: var(--color-text);
}

.hero-consult__lead {
  max-width: 36rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-consult__media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.hero-consult--profile .hero-consult__text h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.45rem);
  line-height: 1.2;
}

.hero-consult--profile .hero-consult__lead {
  margin-bottom: 0;
}

.hero-consult--profile .hero-consult__media img {
  object-position: center 22%;
}

.hero-consult__media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 55% 20%;
}

.btn-lg {
  padding: 0.85rem 1.65rem;
  font-size: 1rem;
}

.request-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .request-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .request-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .request-card--wide {
    grid-column: span 2;
  }
}

.request-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-card);
}

.request-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.request-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.request-photos {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--color-border);
}

.request-photos__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 767px) {
  .request-photos__grid {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-inline: auto;
  }
}

.request-photos__item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.request-photos__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.about-layout {
  align-items: start;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.about-aside {
  position: sticky;
  top: calc(var(--header-height, 4rem) + 1rem);
}

@media (max-width: 899px) {
  .about-aside {
    position: static;
    max-width: 22rem;
    margin-inline: auto;
  }
}

.about-narrative__lead {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.about-chapter {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding-top: clamp(1.25rem, 2.5vw, 1.5rem);
  border-top: 1px solid var(--color-border);
}

.about-chapter:first-of-type {
  margin-top: 1.25rem;
  padding-top: 0;
  border-top: none;
}

.about-chapter h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--color-green);
}

.about-chapter p {
  margin: 0 0 0.85rem;
  line-height: 1.65;
  color: var(--color-text);
}

.about-chapter p:last-child {
  margin-bottom: 0;
}

.about-path-list {
  margin: 0 0 0.85rem;
  padding-left: 0;
  list-style: none;
}

.about-path-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.65rem;
  line-height: 1.55;
  font-size: 0.95rem;
}

.about-path-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--color-sky);
}

.about-highlight {
  margin: 1rem 0;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(237, 230, 217, 0.55);
  border-left: 3px solid var(--color-green);
}

.about-highlight p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.about-formats {
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  gap: 1rem;
}

.pricing-grid {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card--wide {
    grid-column: 1 / -1;
  }
}

.pricing-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  border-color: var(--color-sky);
  box-shadow: 0 8px 32px rgba(74, 156, 184, 0.18);
}

.pricing-card__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-sky);
  background: rgba(74, 156, 184, 0.12);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.65rem;
}

.pricing-card__badge--accent {
  color: var(--color-green);
  background: rgba(74, 112, 67, 0.12);
}

.pricing-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.pricing-card__subtitle {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-green);
  margin: 0 0 0.65rem;
}

.pricing-card__desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin: 0 0 0.85rem;
  line-height: 1.5;
}

.pricing-card__list {
  flex: 1;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.pricing-card__price {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 0.35rem;
}

.pricing-card__note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

.booking-modal[hidden] {
  display: none;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 600000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 40, 35, 0.55);
}

.booking-modal__panel {
  position: relative;
  width: min(100%, 420px);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-soft);
  z-index: 1;
}

.booking-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--color-beige);
  border-radius: var(--radius-pill);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.booking-modal__panel h2 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  padding-right: 2rem;
}

.booking-modal__lead {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
}

.booking-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.booking-modal__actions .btn {
  width: 100%;
  justify-content: center;
}

.footer-copy a {
  color: inherit;
  text-decoration: underline;
  margin-left: 0.35rem;
}

.altai-program-list {
  margin: 0 0 0.25rem;
  padding-left: 0;
  list-style: none;
}

.altai-program-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.75rem;
  line-height: 1.55;
  font-size: 0.95rem;
}

.altai-program-list li:last-child {
  margin-bottom: 0;
}

.altai-program-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 0 3px rgba(74, 112, 67, 0.15);
}

.chat-widget .form-group input,
.chat-widget .form-group textarea {
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
}

.chat-widget__send {
  width: 100%;
  margin-top: 0.25rem;
}
