/* ======== Общие переменные и шрифты ======== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap&subset=cyrillic');
@import url('https://fonts.googleapis.com/css?family=Poiret+One&display=swap&subset=cyrillic');

:root {
  --color-gold: #BCA882;
  --color-graphite: #737373;
  --color-beige: #f6f2ea;
  --color-light: #e4d8c3;
  --color-dark: #222;
  --color-white: #ffffff;
  --font-main: 'Montserrat', 'Microsoft YaHei', Arial, sans-serif;
  --font-decor: 'Poiret One', 'Montserrat', Arial, sans-serif;
  --font-serif: Georgia, 'Bookman Old Style', serif;
  --font-mono: 'Courier New', Courier, monospace;
}

/* ======== Reset и базовые теги ======== */
body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-graphite);
  background: var(--color-white);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--color-graphite);
  font-family: var(--font-main);
  font-weight: 700;
  margin-top: 0;
}
a { color: var(--color-gold); transition: color .2s; }
a:hover { color: var(--color-dark); text-decoration: none; }

/* ======== Утилитарные классы ======== */
/* Класс для секций на всю ширину экрана */
.full-width-section {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Класс для полноэкранных секций с фоном */
.fullscreen-section {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Класс для секций на всю ширину с ограниченной высотой */
.full-width-hero {
  width: 100vw;
  min-height: 400px;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Класс для модальных окон на весь экран */
.fullscreen-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Класс для контента внутри полноэкранных секций */
.fullscreen-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Класс для фоновых изображений на весь экран */
.fullscreen-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Адаптивные варианты */
@media (max-width: 768px) {
  .fullscreen-section {
    height: 100vh;
    min-height: 100vh;
  }
  
  .full-width-hero {
    min-height: 300px;
  }
  
  .fullscreen-content {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .full-width-hero {
    min-height: 250px;
  }
  
  .fullscreen-content {
    padding: 0 10px;
  }
}

/* ======== HEADER ======== */
header {
  background: #fff;
  border-bottom: 1.5px solid var(--color-gold);
  margin-bottom: 0;
  padding-top: 15px;
}
.nigai-header {
  background: #fff;
  padding: 0;
  border-bottom: 2px solid #bca882;
  height: 110px;
  min-height: 110px;
  max-height: 110px;
}
.nigai-header .container-fluid {
  padding-left: 0px;
  padding-right: 0px;
}
.nigai-header__flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}
.nigai-header__logo-combo {
  min-width: 240px;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  height: 100%;
}
.nigai-header__logo-bg {
  position: relative;
  width: 184px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nigai-header__logo-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('image/column2.svg') center center no-repeat;
  background-size: contain;
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}
.nigai-header__logo-img {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 68px;
  object-fit: contain;
  display: block;
  margin: auto;
}
.nigai-header__center-img {
  flex: 1 1 0%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 100%;
}
.nigai-header__center-img img {
  max-height: 100px;
  height: 100px;
  margin: auto;
}
.nigai-header__contacts {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  height: 111px;
  gap: 8px;
}
.nigai-header__phone {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 19px;
  color: #737373;
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.1;
  padding-right: 3px;
}
.nigai-header__btn {
  background: #373737;
  color: #bca882;
  font-family: 'Poiret One', 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  width: 174px;
  height: 37px;
  line-height: 37px;
  box-shadow: 0 2px 8px rgba(34,34,34,0.08);
  transition: background .2s, color .2s;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.02em;
  text-shadow: none;
  margin: 0;
  display: block;
  padding: 0;
}
.nigai-header__btn:hover {
  background: #bca882;
  color: #373737;
}

/* ======== Кнопки ======== */
.btn, button, input[type="submit"], input[type="button"] {
  font-family: var(--font-main);
  background: var(--color-gold);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 18px;
  transition: background .2s, color .2s;
  letter-spacing: 0.02em;
}
.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  background: var(--color-graphite); color: #fff;
}
.btn-gold { background: var(--color-gold); color: #fff; }
.btn-gold:hover { background: var(--color-graphite); color: #fff; }
.btn-graphite { background: var(--color-graphite); color: #fff; }
.btn-graphite:hover { background: var(--color-gold); color: #fff; }

/* Footer */
footer {
  background: var(--color-beige);
  border-top: 1.5px solid var(--color-gold);
  color: var(--color-graphite);
  padding: 30px 0 20px 0;
  font-family: var(--font-main);
}
footer a {
  color: var(--color-gold);
}
footer a:hover {
  color: var(--color-dark);
}
.footer-logo {
  height: 40px;
  margin-right: 16px;
}

/* ======== Стандартные блоки (why, steps, forms, contacts, gallery) ======== */
/* ...оставляю как у тебя, с подписями, чтоб не засорять тут */

@media (max-width: 1000px) {
  .nigai-header, .nigai-header__flex { min-height: 70px; height: 70px; }
  .nigai-header__logo-bg, .nigai-header__center-img, .nigai-header__contacts { height: 70px; }
  .nigai-header__logo-img { width: 70px; height: 50px; }
  .nigai-header__center-img img { max-height: 70px; }
}

html, body { margin: 0; padding: 0; overflow-x: hidden; }

/* Модальное окно формы */
.modal-form-overlay {
  position: fixed; z-index: 9999; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(34,34,34,0.55); display: flex; align-items: center; justify-content: center;
}
.modal-form-window {
  background: #fff; border-radius: 16px; padding: 32px 24px 24px 24px; max-width: 480px; width: 100%;
  box-shadow: 0 8px 32px rgba(34,34,34,0.18);
  position: relative;
}
.modal-form-close {
  position: absolute; right: 18px; top: 12px; font-size: 32px; color: #bca882; cursor: pointer; z-index: 2;
}
@media (max-width: 700px) {
  .modal-form-window { padding: 12px 2px 12px 2px; }
}


/* ======== Мобильная адаптация шапки ======== */
@media (max-width: 700px) {
  body, html {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    overflow-x: hidden !important;
  }
  .nigai-header {
    height: 70px;
    min-height: 70px;
    max-height: 70px;
    padding-top: 10px;
    background: #fff;
    border-bottom: none;
    box-shadow: none;
  }
  .nigai-header__flex {
    display: grid !important;
    grid-template-columns: 124px 1fr 68px;
    align-items: center !important;
    position: relative;
    min-height: 70px;
    height: 70px;
    padding: 0 !important;
  }
  .nigai-header__logo-combo {
    grid-column: 1;
    z-index: 3;
    justify-self: start;
    width: 124px !important;
    min-width: 124px !important;
    max-width: 124px !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    display: flex;
    align-items: center;
  }
  .nigai-header__logo-bg {
    width: 124px !important;
    height: 68px !important;
    min-width: 124px !important;
    min-height: 68px !important;
    max-width: 124px !important;
    max-height: 68px !important;
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nigai-header__logo-img--mobile {
    width: 124px !important;
    height: 68px !important;
    object-fit: contain;
    display: block !important;
  }
  .nigai-header__center-img {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: static !important;
    transform: none !important;
    height: 70px;
    justify-self: center;
  }
  .nigai-header__center-img-mobile {
    display: block !important;
    height: 60px !important;
    width: 150px !important;
    object-fit: contain;
    margin: 0 auto;
  }
  .hfe-nav-menu-icon, .your-burger-class {
    grid-column: 3;
    justify-self: end;
  }
  .nigai-header__phonebar {
    left: 50vw;
    right: 50vw;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    box-sizing: border-box;
    background: #bca882 !important;
  }
  .nigai-header__phone-link {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 19px;
    color: #737373;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    display: block;
    width: 100%;
    padding: 0;
  }
  .nigai-header__phone-link:active, .nigai-header__phone-link:hover {
    color: #bca882;
    text-decoration: underline;
  }
  /* Слайдер */
  .custom-slider, .custom-slide { width: 100vw; max-width: 412px; height: 600px; min-height: 600px; }
  .slider-caption h1, .slider-caption h2 { font-size: 32px; word-break: break-word; }
  .slider-subtitle { font-size: 20px; }
  .slider-caption { gap: 8px; padding: 0 4px; }
  /* Кнопка под слайдером */
  .nigai-main-btn-bar { height: 48px; min-height: 48px; }
  .nigai-main-btn { width: 300px; height: 36px; font-size: 18px; line-height: 36px; border-radius: 8px; }
  .nigai-header__center-img,
  .nigai-header__center-img-mobile {
    margin-right: 16px !important;
  }
  .hfe-nav-menu-icon {
    margin-left: 12px !important;
  }
}
@media (min-width: 701px) {
  .nigai-header__phonebar { display: none !important; }
}

/* ======== ПК-версия: возвращаю прежние стили ======== */
@media (min-width: 701px) {
  .nigai-header {
    height: 110px;
    min-height: 110px;
    max-height: 110px;
    padding-top: 0;
    background: #fff;
    border-bottom: 2px solid #bca882;
  }
  .nigai-header__flex {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .nigai-header__logo-bg {
    width: 184px;
    height: 108px;
    min-width: 184px;
    min-height: 108px;
    max-width: 184px;
    max-height: 108px;
    padding: 0;
  }
  .nigai-header__logo-img {
    width: 100px;
    height: 68px;
    object-fit: contain;
  }
  .nigai-header__center-img {
    min-width: 200px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nigai-header__center-img img {
    max-height: 100px;
    height: 100px;
  }
  .nigai-header__contacts {
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    height: 111px;
    gap: 8px;
    font-size: 19px;
  }
  .nigai-header__btn {
    background: #373737;
    color: #bca882;
    font-family: 'Poiret One', 'Montserrat', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    width: 174px;
    height: 37px;
    line-height: 37px;
    box-shadow: 0 2px 8px rgba(34,34,34,0.08);
    transition: background .2s, color .2s;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.02em;
    text-shadow: none;
    margin: 0;
    display: block;
    padding: 0;
  }
  .nigai-header__phonebar { display: none !important; }
}

@media (max-width: 700px) {
  /* Скрыть ПК-логотип и ПК-картинку, показать мобильные */
  .nigai-header__logo-img--pc, .nigai-header__center-img-pc { display: none !important; }
  .nigai-header__logo-img--mobile, .nigai-header__center-img-mobile { display: block !important; }
  .nigai-header__logo-img--mobile {
    width: 94px !important;
    height: 70px !important;
    object-fit: contain;
    margin-right: 4px;
  }
  .nigai-header__center-img-mobile {
    width: 160px !important;
    height: 60px !important;
    object-fit: contain;
    margin: 0;
    margin-left: 0;
    margin-right: auto;
  }
  .nigai-header__logo-bg, .nigai-header__center-img {
    background: none !important;
  }
  /* Мобильный логотип через background */
  .nigai-header__logo-bg {
    background: url('image/catalog/newSmall.svg') center center no-repeat;
    background-size: contain;
    width: 70px !important;
    height: 70px !important;
    min-width: 70px;
    min-height: 70px;
    max-width: 70px;
    max-height: 70px;
  }
  /* Мобильная центральная картинка через background */
  .nigai-header__center-img {
    background: url('image/catalog/logoShortMob2.svg') left center no-repeat;
    background-size: contain;
    width: 90px !important;
    height: 60px !important;
    min-width: 90px;
    min-height: 60px;
    max-width: 90px;
    max-height: 60px;
    margin-left: 38px;
    margin-right: auto;
    padding: 0;
  }
  /* Контакты и кнопка скрыть */
  .nigai-header__contacts, .nigai-header__btn { display: none !important; }
  /* Полоска с телефоном */
  .nigai-header__phonebar {
    display: flex !important;
    width: 100vw;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    background: #bca882 !important;
    align-items: center;
    justify-content: center;
    margin: 22px 0 0 0;
    padding: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
    border-radius: 0;
    box-shadow: none;
    border-bottom: none;
  }
  .nigai-header__phone-link {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 19px;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    display: block;
    width: 100%;
    padding: 0;
  }
  .nigai-header__phone-link:active, .nigai-header__phone-link:hover {
    color: #222;
    text-decoration: underline;
  }
}
@media (min-width: 701px) {
  /* На ПК — скрыть мобильные картинки */
  .nigai-header__logo-img--mobile, .nigai-header__center-img-mobile { display: none !important; }
  .nigai-header__logo-img--pc, .nigai-header__center-img-pc { display: block !important; }
}

.nigai-header__center-img-mobile {
  max-height: 58px;
}

.hfe-nav-menu-icon, .your-burger-class {
  grid-column: 3;
  justify-self: end;
}

.nigai-header__phonebar {
  display: flex;
}

@media (min-width: 701px) {
  .nigai-header__phonebar { display: none !important; }
}

@media (min-width: 701px) {
  .nigai-header {
    height: 110px;
    min-height: 110px;
    max-height: 110px;
  }
  .nigai-header__flex {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .nigai-header__logo-bg {
    width: 184px;
    height: 108px;
    min-width: 184px;
    min-height: 108px;
    max-width: 184px;
    max-height: 108px;
    padding: 0;
  }
  .nigai-header__logo-img {
    width: 100px;
    height: 68px;
    object-fit: contain;
  }
  .nigai-header__center-img {
    min-width: 200px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nigai-header__center-img img {
    max-height: 100px;
    height: 100px;
  }
  .nigai-header__contacts {
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    height: 111px;
    gap: 8px;
    font-size: 19px;
  }
  .nigai-header__btn {
    background: #373737;
    color: #bca882;
    font-family: 'Poiret One', 'Montserrat', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    width: 174px;
    height: 37px;
    line-height: 37px;
    box-shadow: 0 2px 8px rgba(34,34,34,0.08);
    transition: background .2s, color .2s;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.02em;
    text-shadow: none;
    margin: 0;
    display: block;
    padding: 0;
  }
  .nigai-header__phonebar { display: none !important; }
}

@media (min-width: 1001px) {
  .nigai-header .container-fluid {
    padding-left: 200px;
    padding-right: 200px;
  }
}

/* ======= Горизонтальное меню подкатегорий ======= */
.category-submenu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 32px 0 24px 0;
  padding: 0;
  list-style: none;
}
.category-submenu li {
  display: inline-block;
}
.category-submenu a {
  font-family: inherit;
  font-size: 16px;
  color: #444;
  text-decoration: none;
  padding: 0 4px 4px 4px;
  border: none;
  background: none;
  font-weight: 400;
  transition: color 0.2s, border-bottom 0.2s;
  position: relative;
  border-bottom: 2px solid transparent;
}
.category-submenu a:hover,
.category-submenu .active > a,
.category-submenu a.active {
  color: #222;
  font-weight: 600;
  border-bottom: 2px solid #444;
}

/* ======== Фон на всю ширину для блока в категориях ======== */
.category-full-bg {
    width: calc(100vw + 86px);
    min-width: calc(100vw + 16px);
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #f1f1f1;
    padding: 40px 0;
    box-sizing: border-box;
    z-index: 1;
}

.category-full-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .category-full-content {
        padding: 0 10px;
    }
    .category-full-bg {
        padding: 20px 0;
    }
    .category-submenu {
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      margin: 16px 0 12px 0;
      padding: 0;
      justify-content: flex-start;
      background: none;
    }
    .category-submenu li {
      display: block;
      width: 100%;
      margin: 0;
    }
    .category-submenu a {
      font-family: 'Montserrat', Arial, sans-serif;
      font-size: 18px;
      color: #444;
      font-weight: 400;
      padding: 14px 12px 14px 12px;
      background: none;
      border: none;
      border-radius: 0;
      width: 100%;
      display: block;
      text-align: left;
      line-height: 1.4;
      box-shadow: none;
      margin: 0;
      transition: background 0.2s, color 0.2s;
    }
    .category-submenu a.active,
    .category-submenu .active > a {
      background: #393939;
      color: #fff;
      font-weight: 700;
      border: none;
      border-radius: 0;
    }
}


