html,
body {
  margin: 0;
  padding: 0;
  background: black;
  /* или другой фоновый */
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}




.site-header {
  padding: 50px 20px 0;
  /* отступ сверху и по бокам */
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(95, 95, 95, 0.425);
  /* полупрозрачный тёмный фон */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 40px;
  border-radius: 3px;

}


.logo img {
  height: 70px;
}

.main-nav {
  display: flex;
  gap: 40px;
}

.main-nav a {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: #e0dcdc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #ffffff;
  /* акцент при наведении */
}

.header-icons {
  display: flex;
  gap: 20px;
}

.header-icons img {
  width: 30px;
  height: 30px;
  transition: opacity 0.3s ease;
}

.header-icons a:hover img {
  opacity: 0.7;
}


















.main-hero {
  position: relative;
  padding: 25px 20px 40px;
  text-align: center;
  color: white;
  z-index: 1;
  overflow: hidden;
}


.hero-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  height: 320px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 32px;
  margin: 0;
}

.hero-address {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 16px;
  opacity: 0.9;
}

.hero-button {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #2b472c;
  color: white;
  padding: 14px 26px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  margin-top: 30px;
}

.hero-button:hover {
  transform: scale(1.1);
}

.hero-button img {
  height: 20px;
}


.hero-telegram-link {
  font-family: 'Oswald', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  text-decoration: none;
  color: rgb(255, 255, 255);
  font-weight: 400;
  font-size: 18px;
  transition: opacity 0.3s;
}

.hero-telegram-link img {
  height: 36px;
  width: 36px;
}

.hero-telegram-link:hover {
  opacity: 0.7;
}



.hero-wrapper {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.hero-wrapper::before {
  content: "";
  position: absolute;
  inset: -2%;
  background:
    linear-gradient(rgba(0, 0, 0, .8), rgba(0, 0, 0, .8)),
    url('/static/image/foon.png') center 20% /cover no-repeat;
  transform: translate(var(--px, 0), var(--py, 0)) scale(1.08);
  will-change: transform;
  transition: transform .06s linear;
  z-index: -1;
}

/* чтобы шапка всегда поверх */
.site-header {
  position: relative;
  z-index: 2;
}













.features-section {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 50px 0;
  background-color: #1c1717;
}

.feature-block {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.feature-block.reverse {
  flex-direction: row-reverse;
}

.feature-image img {
  max-width: 300px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.feature-text {

  max-width: 450px;
  color: white;
}

.feature-text h2 {
  font-family: 'Oswald', sans-serif;
  text-align: center;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.feature-text p {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.6;
}

.btn-outline {
  justify-content: center;
  text-align: center;
  font-family: 'Playfair Display', serif;
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 600;
}

.btn-outline:hover {
  background: white;
  color: black;
}




.history-section {
  position: relative;
  padding: 10px 20px 100px;
  /* было 100px сверху — сделал 40px */
  color: white;
  font-family: 'Georgia', serif;
}

.history-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/static/image/fon_1.png') center 10%/cover no-repeat;
  filter: brightness(0.2);
  z-index: 0;
}

.history-overlay {
  position: relative;
  z-index: 1;
}

.history-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.history-title {
  font-family: 'Playfair Display', serif;
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  font-weight: 500;
}

.history-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.history-text-block {
  font-family: 'Playfair Display', serif;
  flex: 1;
  min-width: 300px;
}

.history-text-box {
  border: 1px solid #b48b57;
  padding: 20px 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  background-color: rgba(0, 0, 0, 0.4);
}

.history-text-bottom {
  font-size: 16px;
  line-height: 1.6;
  padding-left: 10px;
}

.history-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-image img {
  max-width: 100%;
  border: 1px solid #b48b57;
  border-radius: 12px;
}













.gallery-section {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.gallery-slider {
  position: relative;
  width: 100%;
  height: 100vh;
}

.gallery-slider .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.gallery-slider .slide.active {
  opacity: 1;
  z-index: 1;
}

.gallery-label {
  position: absolute;
  bottom: 40px;
  width: 100%;
  text-align: center;
  font-size: 120px;
  font-weight: bold;
  color: rgba(213, 213, 213, 0.671);
  z-index: 2;
  pointer-events: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  letter-spacing: 4px;
}

.gallery-border {
  height: 2px;
  background-color: #FFD700;
  /* золотисто-жёлтый */
  width: 100%;
  z-index: 3;
}

.gallery-border.top {
  position: absolute;
  top: 0;
  left: 0;
}

.gallery-border.bottom {
  position: absolute;
  bottom: 0;
  left: 0;
}




















.contacts-section {
  position: relative;
  background: url('/static/image/fon_contact.jpg') center/cover no-repeat;
  color: #fff;
  padding: 20px 20px 20px;
  text-align: center;
  font-family: 'Playfair Display', serif;
  z-index: 1;
  overflow: hidden;
}

.contacts-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  /* прозрачный чёрный фон */
  z-index: 0;
}

.contacts-section>* {
  position: relative;
  z-index: 1;
}

.contacts-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 30px;
  font-weight: 500;
  letter-spacing: 1px;
}

.contacts-map iframe {
  width: 100%;
  max-width: 1000px;
  height: 400px;
  border: none;
  border-radius: 8px;
  margin-bottom: 40px;
}

.contacts-columns {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
  flex-wrap: wrap;
  text-align: left;
}

.contact-col {
  flex: 1;
  min-width: 260px;
  max-width: 340px;
}

.contact-col p {
  font-family: 'Playfair Display', serif;
  line-height: 1.6;
  font-size: 16px;
}

.contacts-note {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
}




.site-footer {
  position: relative;
  background: url('/static/image/fon.png') center 15%/cover no-repeat;
  color: #fff;
  padding: 100px 20px;
  font-family: 'Oswald', sans-serif;
  z-index: 1;
  overflow: hidden;
  border-top: 2px solid #FFD700;
  /* жёлтая линия */
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  /* затемнение */
  z-index: 0;
}

.footer-overlay {
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  text-align: center;
}

.footer-column {
  flex: 1;
  min-width: 260px;
}

.footer-column h3 {
  color: #d0d0d0;
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 400;
  letter-spacing: 1px;
}

.footer-phone {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
}

.footer-address {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.footer-icons img {
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease;
}

.footer-icons img:hover {
  transform: scale(1.1);
}






















.burger {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: transform .25s ease, opacity .2s ease;
}

.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);
}

body.no-scroll {
  overflow: hidden;
}










/* ======== MOBILE======== */
@media (max-width: 767px) {

  /* шапка компактнее */
  .site-header {
    padding: 12px 10px 0;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
    overflow-x: hidden;
    /* убираем возможность горизонтального скролла */
  }

  .logo img {
    height: 48px;
    max-width: 100%;
  }


  /* показать бургер, спрятать inline-меню */
  .burger {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    background: #2b2b2b;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    z-index: 1000;

    max-width: 90%;
    /* чтобы меню было уже экрана */
    margin: 0 auto;
    /* выравниваем по центру */
    border-radius: 4px;
    /* чуть скруглим углы */
    gap: unset;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    display: block;
    padding: 10px 14px;
    /* было 14px 16px — уменьшил */
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    color: #eaeaea;
    font-size: 15px;
    /* чуть меньше текст */
    line-height: 1.4;
    border-top: 1px solid rgba(255, 255, 255, .06);
    background: #1f4a28;
    box-sizing: border-box;
    /* зелёный фон */
  }

  .main-nav a:first-child {
    background: #3a3a3a;
    /* верхний серый */
  }

  .main-nav a:active {
    opacity: .85;
  }

  /* перестановка в хеддере: логотип слева, иконки справа, бургер по центру */
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .logo {
    grid-column: 1/2;
    justify-self: start;
  }

  .burger {
    grid-column: 2/3;
    justify-self: center;
  }

  .header-icons {
    grid-column: 3/4;
    justify-self: end;
    gap: 12px;
  }

  .logo img {
    height: 48px;
  }

  .header-icons img {
    width: 26px;
    height: 26px;
  }

  /* десктопный вид меню в строке отключаем */
  .main-nav:not(.open) {
    position: absolute;
  }


  .feature-block {
    flex-direction: column !important;
    gap: 20px;
    text-align: center;
  }

  .feature-image img {
    max-width: 90%;
  }

  .feature-text p {
    text-align: justify;
    padding: 0px 22px;
  }

  .history-content {
    flex-direction: column;
    gap: 20px;
  }

  .history-title {
    font-size: 26px;
  }


  .history-text-bottom {
    text-align: justify;
  }


  .history-text-box {
    text-align: justify;
  }


  .gallery-slider {
    height: 40vh;
  }

  .gallery-label {
    font-size: 48px;
    bottom: 20px;
  }

  .contacts-columns {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .contact-col p {
    text-align: justify;
  }

  .contact-col {
    max-width: 100%;
  }

  .site-footer {
    padding: 60px 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }

  .footer-phone {
    font-size: 20px;
  }
}













@media (min-width: 768px) and (max-width: 1194px) {

  /* шапка компактнее */
  .site-header {
    padding: 12px 10px 0;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
    overflow-x: hidden;
    /* убираем возможность горизонтального скролла */
  }

  .logo img {
    height: 48px;
    max-width: 100%;
  }


  /* показать бургер, спрятать inline-меню */
  .burger {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    background: #2b2b2b;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    z-index: 1000;

    max-width: 90%;
    /* чтобы меню было уже экрана */
    margin: 0 auto;
    /* выравниваем по центру */
    border-radius: 4px;
    /* чуть скруглим углы */
    gap: unset;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    color: #eaeaea;
    font-size: 15px;
    line-height: 1.4;
    border-top: 1px solid rgba(255, 255, 255, .06);
    background: #1f4a28;
    box-sizing: border-box;
  }

  .main-nav a:first-child {
    background: #3a3a3a;

  }

  .main-nav a:active {
    opacity: .85;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .logo {
    grid-column: 1/2;
    justify-self: start;
  }

  .burger {
    grid-column: 2/3;
    justify-self: center;
  }

  .header-icons {
    grid-column: 3/4;
    justify-self: end;
    gap: 12px;
  }

  .logo img {
    height: 48px;
  }

  .header-icons img {
    width: 26px;
    height: 26px;
  }

  .main-nav:not(.open) {
    position: absolute;
  }

  .history-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .history-section .history-text {
    max-width: 90%;
    font-size: 16px;
    line-height: 1.6em;
    margin-bottom: 20px;
  }

  .history-section .history-image {
    max-width: 90%;
  }

  .history-section .history-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .gallery-slider {
    height: 60vh;
  }


  .contact-col p {
    font-size: 14px;
  }


  .contacts-map iframe {
    height: 340px !important;
  }

  .contacts-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 32px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto 30px;
    text-align: left;
    /* как на макете */
  }

  .contact-col {
    min-width: 0;
    max-width: none;
  }

  .contact-col p {
    font-size: 15.5px;
    line-height: 1.6;
  }

  .contacts-note {
    margin-top: 0;
    padding-top: 6px;
  }

  .site-footer{
    padding: 20px 20px;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
  }

  .footer-column {
    flex: 1 1 100%;
  }

  .footer-column h3 {
    font-size: 20px;
    white-space: normal; 
    word-break: break-word;
  }

  .footer-phone,
  .footer-address {
    font-size: 16px;
  }

}