  /* ---- Обёртка хедера ---- */
  .palitra-header-wrap {
    position: relative;
    width: 100%;
    background: #eeebe4;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-family: 'TildaSans', Arial, sans-serif;
    margin-bottom: 0px; /* ← исправлено на 80px */
  }

  /* ---- Десктопная версия (верхняя строка) ---- */
  .palitra-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 60px;
    min-height: 60px;
  }
  .palitra-header .logo img {
    max-height: 45px;
    width: auto;
  }
  .palitra-header .header-contacts {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }
  .palitra-header .header-contacts .socials {
    display: flex;
    gap: 6px;
  }
  .palitra-header .header-contacts .socials a {
    display: inline-block;
    width: 26px;
    height: 26px;
    color: #000000 !important;
    transition: color 0.2s;
  }
  .palitra-header .header-contacts .socials a:hover {
    color: #810000 !important;
  }
  .palitra-header .header-contacts .socials svg {
    width: 100%;
    height: 100%;
    fill: #000000 !important;
    transition: fill 0.2s;
  }
  .palitra-header .header-contacts .socials a:hover svg {
    fill: #810000 !important;
  }
  .palitra-header .header-contacts .phone {
    font-size: 16px;
    font-weight: 600;
    color: #000000 !important;
    text-decoration: none;
    transition: color 0.2s;
  }
  .palitra-header .header-contacts .phone:hover {
    color: #810000 !important;
  }
  .palitra-header .header-contacts .zapis-btn {
    background: #810000;
    color: #ffffff !important;
    border: none;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
  }
  .palitra-header .header-contacts .zapis-btn:hover {
    background: #a00202;
  }

  /* ---- Черта ---- */
  .palitra-header-divider {
    height: 1px;
    background: #000000;
    margin: 0 60px;
  }

  /* ---- Меню под чертой (десктоп) ---- */
  .palitra-header-nav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
  }
  .palitra-header-nav .nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .palitra-header-nav .nav-menu a {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #000000 !important;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
  }
  .palitra-header-nav .nav-menu a:hover {
    color: #810000 !important;
  }

  /* ---- Мобильное меню ---- */
  .palitra-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    min-height: 50px;
    background: #eeebe4;
    position: relative;
  }
  .palitra-mobile-header .mobile-logo img {
    max-height: 35px;
    width: auto;
  }
  .palitra-mobile-header .burger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
    border: none;
    background: none;
  }
  .palitra-mobile-header .burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #000000;
    border-radius: 2px;
    transition: all 0.3s;
  }
  .palitra-mobile-header .burger.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .palitra-mobile-header .burger.open span:nth-child(2) {
    opacity: 0;
  }
  .palitra-mobile-header .burger.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Выпадающее мобильное меню */
  .palitra-mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    background: #eeebe4;
    padding: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid rgba(0,0,0,0.1);
    z-index: 1000;
  }
  .palitra-mobile-menu.open {
    display: flex;
  }
  .palitra-mobile-menu .nav-menu {
    flex-direction: column;
    gap: 15px;
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    width: 100%;
    text-align: center;
  }
  .palitra-mobile-menu .nav-menu a {
    font-size: 16px;
    color: #000000 !important;
    text-decoration: none;
    transition: color 0.3s;
  }
  .palitra-mobile-menu .nav-menu a:hover {
    color: #810000 !important;
  }
  .palitra-mobile-menu .mobile-contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
    width: 100%;
  }
  .palitra-mobile-menu .mobile-contacts .socials {
    display: flex;
    gap: 6px;
  }
  .palitra-mobile-menu .mobile-contacts .socials a {
    display: inline-block;
    width: 24px;
    height: 24px;
    color: #000000 !important;
    transition: color 0.2s;
  }
  .palitra-mobile-menu .mobile-contacts .socials a:hover {
    color: #810000 !important;
  }
  .palitra-mobile-menu .mobile-contacts .socials svg {
    width: 100%;
    height: 100%;
    fill: #000000 !important;
    transition: fill 0.2s;
  }
  .palitra-mobile-menu .mobile-contacts .socials a:hover svg {
    fill: #810000 !important;
  }
  .palitra-mobile-menu .mobile-contacts .phone {
    font-size: 14px;
    font-weight: 600;
    color: #000000 !important;
    text-decoration: none;
    transition: color 0.2s;
  }
  .palitra-mobile-menu .mobile-contacts .phone:hover {
    color: #810000 !important;
  }
  .palitra-mobile-menu .mobile-contacts .zapis-btn {
    background: #810000;
    color: #ffffff !important;
    border: none;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
  }
  .palitra-mobile-menu .mobile-contacts .zapis-btn:hover {
    background: #a00202;
  }

  /* ---- Кастомный попап (центрированный) ---- */
  .custom-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
  }
  .custom-popup-overlay.active {
    display: flex;
  }
  .custom-popup {
    background: #eeebe4;
    max-width: 500px;
    width: 90%;
    padding: 30px 25px;
    position: relative;
    box-sizing: border-box;
    border-top: 4px solid #810000;
    max-height: 90vh;
    overflow-y: auto;
  }
  .custom-popup .close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
    line-height: 1;
  }
  .custom-popup .close-btn:hover {
    color: #000;
  }
  .custom-popup img {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
  }
  .custom-popup h2 {
    font-size: 20px;
    color: #810000;
    font-family: 'Playfair Display SC', serif;
    margin: 0 0 10px 0;
    text-align: center;
  }
  .custom-popup p {
    font-size: 16px;
    color: #000;
    text-align: center;
    margin: 0 0 25px 0;
    line-height: 1.5;
  }
  .custom-popup .form-group {
    margin-bottom: 15px;
  }
  .custom-popup .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    margin-bottom: 5px;
  }
  .custom-popup .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #810000;
    background: #fff;
    box-sizing: border-box;
    font-size: 16px;
    border-radius: 0;
    outline: none;
  }
  .custom-popup .form-group input:focus {
    border-color: #a00202;
  }
  .custom-popup .submit-btn {
    width: 100%;
    padding: 14px;
    background: #810000;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
  }
  .custom-popup .submit-btn:hover {
    background: #a00202;
  }
  .custom-popup .form-footer {
    font-size: 14px;
    text-align: center;
    margin-top: 15px;
    color: #333;
  }
  .custom-popup .form-footer a {
    color: #810000;
  }

  /* ---- Адаптив ---- */
  @media screen and (max-width: 980px) {
    .palitra-header {
      display: none;
    }
    .palitra-header-divider {
      display: none;
    }
    .palitra-header-nav {
      display: none;
    }
    .palitra-mobile-header {
      display: flex;
    }
  }

  @media screen and (max-width: 480px) {
    .custom-popup {
      padding: 20px 15px;
      width: 95%;
    }
    .custom-popup h2 {
      font-size: 18px;
    }
    .custom-popup p {
      font-size: 14px;
    }
    .custom-popup .form-group input {
      font-size: 14px;
      padding: 10px 12px;
    }
    .custom-popup .submit-btn {
      font-size: 14px;
      padding: 12px;
    }
  }
/*Это настройка для все форматы*/
#rec761020488 {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(https://static.tildacdn.com/tild3731-3933-4335-a533-353766373766/photo.svg);
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    
}

#rec760043437 {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(https://static.tildacdn.com/tild3731-3933-4335-a533-353766373766/photo.svg);
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    
}
#rec761024342 {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(https://static.tildacdn.com/tild3731-3933-4335-a533-353766373766/photo.svg);
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    
}
#rec761024359 {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(https://static.tildacdn.com/tild3731-3933-4335-a533-353766373766/photo.svg);
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    
}

/*Это настройка для все темы*/
#rec765335678 {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(https://static.tildacdn.com/tild3731-3933-4335-a533-353766373766/photo.svg);
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    
}