html, body {
  overflow-x: hidden;
}
.oferta-section{
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 150px;
    width: 100%;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background: transparent;
  transition: all 0.35s ease;
  background-color: #FFF9F5;
}

/* Контейнер внутри — ограничивает и центрирует */
.header .container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 10px 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 60px;
}

/* Навигация в обычном состоянии (белый текст) */
.header__nav a {
  color: #222222 !important;
  text-decoration: none !important;
  font-size: 16px;
  font-family: 'SF Pro Display', sans-serif;
  transition: opacity 0.3s ease;
}

.header__nav a:hover {
  opacity: 0.7;
}

/* ===== Состояние после скролла ===== */
.header.scrolled {
  background-color: #FFF9F5;
  padding: 14px 0;
  box-shadow: 0 4px 15px rgba(22, 22, 22, 0.1);
}

/* Состояние после скролла (светлый фон) */
.header.scrolled .header__nav a {
 color: #222222 !important;
}

/* На всякий случай ещё более сильный селектор */
.header.scrolled .header__nav a,
.header.scrolled nav a {
 color: #222222 !important;
}

/* Для логотипа-картинки */
.header .logo img {
  transition: filter 0.35s ease;
  display: block;
}

/* Когда хедер стал светлым — делаем логотип тёмным */
.header.scrolled .logo img {
  filter: brightness(0) !important; /* белый → чёрный */
}
  
.logo {
    display: block;
  flex-shrink: 0;
  height: 27px;             /* подгони под реальное изображение */
  width: auto;
  filter: brightness(0) !important;
}

  
.header__nav {
  display: flex;
  align-items: center;
  gap: 99px;
  color: #FFF5EE;
}   

.header__nav a:hover {
  opacity: 0.65;
}

.header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 0 50px;
  background-color: #EC722E;
  color: #FFF5EE;
  font-family: 'SF-Pro-Display-Medium';
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.header__btn:hover {
  background-color: #f19257;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 22px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1005;          /* выше, чем у меню */
  position: relative;     /* чтобы z-index работал */
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #222;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Меню ниже бургера */
.header__nav {
  z-index: 1002;
}

/* Когда меню открыто — крестик */
.burger.active span {
  background: #fff;       /* белый на тёмном фоне меню */
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* По умолчанию кнопка скрыта */
.hero-mobile-btn {
  display: none;
}

@media (max-width: 1280px) {

  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    background-color: #FFF9F5;
  }

  .header .container {
    max-width: 1280px;
    width: 100%;
    margin: 10px auto;
    padding: 16px 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .logo {
    flex-shrink: 0;
  }

  .logo img {
    height: 20px;
    width: auto;
    display: block;
    filter: brightness(0);
  }

  /* Бургер скрыт на 1280 */
  .burger {
    display: none;
  }

  .header__nav {
    display: flex;
    align-items: center;
    gap: 48px;
    flex: 1;
    justify-content: center;
  }

  .header__nav a {
    color: #222222 !important;
    text-decoration: none;
    font-size: 14px;
    font-family: 'SF Pro Display', sans-serif;
    white-space: nowrap;
    transition: opacity 0.2s ease;
  }

  .header__nav a:hover {
    opacity: 0.65;
  }

  .header-button {
    display: block;
    flex-shrink: 0;
  }

  .header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 32px;
    background-color: #EC722E;
    color: #FFF5EE;
    font-family: 'SF-Pro-Display-Medium', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .header__btn:hover {
    background-color: #f19257;
  }

  /* После скролла */
  .header.scrolled {
    background-color: #FFF9F5;
    box-shadow: 0 4px 15px rgba(22, 22, 22, 0.1);
  }

  .header.scrolled .logo img {
    filter: brightness(0);
  }

  .header.scrolled .header__nav a {
    color: #222222 !important;
  }
}
@media (max-width: 1100px) {
  .burger {
    display: flex !important;
    margin-left: auto;
  }

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

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #111;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transition: right 0.35s ease;
    z-index: 1002;
  }

  .header__nav.active {
    right: 0;
  }

  .header__nav a {
    color: #fff !important;
    font-size: 24px !important;
  }

  .burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  .burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 768px) {
    .header {
    padding: 0;
    padding-top: env(safe-area-inset-top, 0); /* для iPhone с чёлкой */
  }


 .burger {
    display: flex;
    margin-left: auto;
  }

  /* Прячем обычную кнопку Записаться */
  .header-button {
    display: none !important;
  }

  .header__nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #111 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

.header .container {
   max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 16px 24px;      /* отступ сверху и по бокам */
    height: auto !important; /* убираем жёсткую высоту */
    min-height: 56px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

  .header__nav.active {
    transform: translateX(0);
  }

  .header__nav a {
    font-size: 26px !important;
    color: #fff !important;
    text-decoration: none;
    opacity: 1 !important;
  }

  /* Крестик */
  .burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  .burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .header.scrolled .burger span {
    background: #222;
  }
  .header.scrolled .burger.active span {
    background: #fff;
  }

  .hero-section {
    width: 100%;
    min-height: 1024px;
    height: 1024px;
    background-size: cover;
    background-position: center center !important;
    background-repeat: no-repeat;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }

   .header.scrolled .header__nav.active a {
    color: #ffffff !important;
  }
  
  .header__nav.active a {
    color: #ffffff !important;
    opacity: 1 !important;
  }

  .oferta-container {
      max-width: 768px;
      margin: 80px 30px 30px;
}
}
@media (max-width: 480px) {

  .burger {
    display: flex;
    margin-left: auto;
  }

  /* Прячем обычную кнопку Записаться */
  .header-button {
    display: none !important;
  }

   .header .container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    align-items: center;
    padding: 14px 16px;
    height: auto !important;
    min-height: 52px;
  }

  .header__nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #111 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  .header__nav.active {
    transform: translateX(0);
  }

  .header__nav a {
    font-size: 24px !important;
    color: #fff !important;
    text-decoration: none;
    opacity: 1 !important;
  }

  /* Крестик */
  .burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  .burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .header.scrolled .burger span {
    background: #222;
  }

  .header.scrolled .burger.active span {
    background: #fff;
  }

  .oferta-container {
      max-width: 480px;

      margin: 50px 160px 20px;
}
}
@media (max-width: 320px) {

  .burger {
    display: flex;
    margin-left: auto;
  }

  /* Прячем обычную кнопку Записаться */
  .header-button {
    display: none !important;
  }

  .header__nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #111 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  .header__nav.active {
    transform: translateX(0);
  }

  .header__nav a {
    font-size: 20px !important;
    color: #fff !important;
    text-decoration: none;
    opacity: 1 !important;
  }

  /* Крестик */
  .burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  .burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .header.scrolled .burger span {
    background: #222;
  }

  .header.scrolled .burger.active span {
    background: #fff;
  }

  .hero-section {
    width: 100%;
    min-height: 320px;
    height: 525px;
    background-size: cover;
    background-position: center center !important;
    background-repeat: no-repeat;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }

  .header .container {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;       
    align-items: center;
    padding: 12px 10px;
    height: auto !important;
    min-height: 48px;
  }

  .hero {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    padding-top: 248px;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
  }

  .header.scrolled .header__nav.active a {
    color: #ffffff !important;
  }
  
  .header__nav.active a {
    color: #ffffff !important;
    opacity: 1 !important;
  }
  .oferta-container {
      max-width: 320px;
      margin: 50px 10px 30px;
}
}















.doc-page {
      max-width: 1600px;
      margin: 0 auto;
      padding: 100px 150px 80px;
      font-family: 'SF Pro Display', 'Inter', sans-serif;
      color: #222;
      line-height: 1.6;
    }

    .doc-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 20px;
      margin-bottom: 40px;
    }

    .doc-title {
      font-family: 'Playfair Display', serif;
      font-size: 36px;
      font-weight: 400;
      line-height: 1.15;
      margin: 0;
      text-transform: uppercase;
    }

    .doc-date {
      flex-shrink: 0;
      font-size: 14px;
      color: #666;
      white-space: nowrap;
    }

    .doc-page h2 {
      font-size: 18px;
      font-weight: 600;
      margin: 32px 0 12px;
    }

    .doc-page p,
    .doc-page li {
      font-size: 15px;
      margin-bottom: 10px;
    }

    .doc-page ul {
      padding-left: 20px;
      margin: 0 0 16px;
    }

    .doc-page a {
      color: #EC722E;
    }

    .doc-requisites {
      margin-top: 40px;
      padding-top: 20px;
      border-top: 1px solid #e5e5e5;
      font-size: 14px;
    }

@media (max-width: 1280px) {
  .doc-page {
    max-width: 800px;
    padding: 120px 40px 70px;
  }

  .doc-title {
    font-size: 36px;
  }

  .doc-page p,
  .doc-page li {
    font-size: 15px;
  }
}

/* ===== 768px ===== */
@media (max-width: 768px) {
  .doc-page {
    max-width: 100%;
    padding: 100px 30px 60px;
  }

  .doc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .doc-title {
    font-size: 32px;
    order: 1;
  }

  .doc-date {
    order: 2;
    white-space: normal;
    padding-top: 0;
    margin-bottom: 8px;
  }

  .doc-page h2 {
    font-size: 17px;
  }

  .doc-page p,
  .doc-page li {
    font-size: 15px;
  }
}

/* ===== 480px ===== */
@media (max-width: 480px) {
  .doc-page {
    padding: 90px 16px 50px;
  }

  .doc-title {
    font-size: 26px;
    line-height: 1.15;
  }

  .doc-date {
    font-size: 13px;
  }

  .doc-page h2 {
    font-size: 16px;
    margin: 24px 0 10px;
  }

  .doc-page p,
  .doc-page li {
    font-size: 14px;
    line-height: 1.55;
  }
}

/* ===== 320px ===== */
@media (max-width: 320px) {
  .doc-page {
    padding: 80px 12px 40px;
  }

  .doc-title {
    font-size: 22px;
  }

  .doc-date {
    font-size: 12px;
  }

  .doc-page h2 {
    font-size: 15px;
  }

  .doc-page p,
  .doc-page li {
    font-size: 13px;
  }

  .doc-page ul {
    padding-left: 16px;
  }
}


















.agree-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  padding: 16px;
}

.agree-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-agree {
  margin-top: 20px; /* отступ всего блока от цены/кнопки */
}

.popup-agree .agree-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.popup-agree .agree-check:first-child {
  margin-top: 16px; /* только первая строка */
}

.agree-popup {
  background: #FFF5EE;
  border-radius: 16px;
  padding: 32px 24px 24px;
  max-width: 440px;
  width: 100%;
  position: relative;
}

.agree-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #999;
}

.agree-popup-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 20px;
  color: #222;
  text-align: center;
}

.agree-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #222;
  cursor: pointer;
  text-align: left;
}

.agree-check input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: #EC722E;
}

.agree-check a {
  color: #EC722E;
}

.agree-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 0;
  background: #EC722E;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  padding: 12px 36px;
  font-size: 15px;
  font-weight: 500;
  transition: 0.2s ease;
}

.agree-popup-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none; /* нельзя нажать */
  cursor: not-allowed;
}

.agree-popup-btn:not(.is-disabled):hover {
  background: #f19257;
}

.popup-btn.is-disabled {
  opacity: 0.4 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

.nav-text-oferta{
  color: #222222;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
  font-family: 'SF Pro Display';
}