/* ==== RESET & BASE STYLES ==== */
*, *::before, *::after {
  box-sizing: border-box;
  font-family:"Onest", sans-serif; 
}

:root { --font-base: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
html { font-family: var(--font-base); }
body { font-weight: 400; }

body, h1, h2, h3, p, ul, ol, li {
  margin: 0;
  padding: 0;
  h1, h2, h3, h4, h5, h6 { font-family: inherit; font-weight: 700; }
}

ul {
  list-style: none;
}

button, input, textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: #fff !important;
}



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

/* ==== BASE LAYOUT ==== */
body {
  font-family: 'Onest', sans-serif;
  background: #fff;
  color: grey;
}

section{
	background: #fff;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}

h1, h2, h3 {
  margin: 0 0 10px;
}

/* ==== BUTTONS ==== */

.button{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px !important;
  border-radius: 999px !important;
  background: #B15540;
  color: #fff;
  text-decoration: none;
  font-weight: 700 !important;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}

.button::after{
  content: "";
  position: absolute;
  top: -30%;
  left: -75%;
  width: 42%;
  height: 160%;
  transform: rotate(20deg);
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.08) 35%,
    rgba(255,255,255,0.28) 50%,
    rgba(255,255,255,0.08) 65%,
    rgba(255,255,255,0) 100%
  );
  animation: buttonShine 3.8s ease-in-out infinite;
  pointer-events: none;
}

.button:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(177, 85, 64, 0.28);
  cursor: pointer;
}

@keyframes buttonShine{
  0%{
    left: -75%;
  }
  55%{
    left: -75%;
  }
  100%{
    left: 140%;
  }
}
/*.button {
  padding: 15px 20px !important;
  background: #B15540;
  color: #fff;
  border-radius: 25px !important;
  cursor: pointer;
  transition: background 0.3s ease;
  border: 1px solid transparent;
}



.button:hover {
  background: #fff;
  color: #B15540;
  border: 1px solid #B15540;
}
*/
/* ==== HEADER ==== */
header {
  padding: 15px 0;
  background: #fff;  
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-right{
	display: flex;
	align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
}

.logo img{
	width: 177px;
}

nav ul {
  display: flex;
  gap: 20px;

}

nav a {
  font-weight: 300;
  color: #B15540;
  margin: 0 15px;
  transition: all 500ms ease;
}

nav a:hover{
	color: #111;
	text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
}

header button {
  margin-left: 20px;
}

#site-header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 100;
  transition: top 0.3s ease, position 0.3s ease;
}

.burger-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 320;
  color: grey;
}

#mobile-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ====== МОБІЛЬНЕ МЕНЮ ====== */
@media (max-width: 1020px) {
  .burger-btn {
    display: block;
  }

  #mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 200;
  }

  #mobile-nav.open {
    right: 0;
  }

  #mobile-nav ul {
    flex-direction: column;
    gap: 20px;
  }

  #mobile-nav .button {
    margin-top: 30px;
  }

  .header-right nav {
    display: none; /* сховати десктопну навігацію */
  }
}



/* ==== MAIN SECTION ==== */
#main {
  position: relative;
  margin-top: 90px;
  margin-bottom: 100px;
}

#main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

#main h1{
	font-size: 4em;
	text-transform: uppercase;
	font-weight: 700;
}

#main h1 strong{
	color: #B15540;
	font-weight: 700;
}

.main-top h2{
	font-weight: 300;
}


#main .container {
  background-image: url('../img/main-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
  border-radius: 15px;
}

.main-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  overflow: hidden;
}

.main-top {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.main-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  position: absolute;
  bottom: 30px;
}

.buttons img{
	display: inline-block;
	width: 16px;
	margin: 0 10px ;
	visibility: hidden;
	width: 0;
	margin: 0;
	transition: all 300ms ease;
}

.buttons .button:hover {
	background: rgba(240, 226, 222, 0.7);
}

.buttons .button:hover img{
	visibility: visible;
	width: 16px;
	margin: 0 10px ;
}

.search-form {
  background-color: #FFFFFF;
  border-radius: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 50px;
  margin-bottom: -30px;
}

.search-form form{
	width: 100%;
	display: flex;
	justify-content: space-between;
}

.search-form h3{
	font-weight: 400;
	font-size: 24px;
	text-align: left;
	width: 100%;
}

.search-form input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  margin: 5px;
  min-width: 200px;
}

.search-form button {
  padding: 10px 20px;
  margin: 5px;
}

.main-image {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.main-image img {
  max-width: 100%;
  height: auto;
}

@media(max-width: 875px){
	.search-form form{
  	flex-wrap: wrap;
  }
}

/* Адаптивність */
@media (max-width: 600px) {
  .main-content{
  	justify-content: flex-end;
  }

  .main-top {
    padding-top: 20px;
    padding-bottom: 30px;
  }
  

  .main-top h1 {
    font-size: 1.5rem;
  }

  .main-top h2 {
    font-size: 1rem;
  }

  .buttons {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .main-image img {
    width: auto;
    margin-top: 20px;
    height: 50%;
    max-width: unset;
  }

  #main .container{
  	border-radius: 0;
  }
}



/* ==== PRINCIPLES SECTION ==== */
#principles {
  padding: 200px 0;
  background: #fff;
}
@media(max-width: 600px){
  #principles {
  padding: 100px 0;
  }
}

.principles-layout {
  display: flex;
  align-items: flex-end; /* вирівнює все по нижньому краю */
  gap: 40px;
  flex-wrap: wrap;
}

.principles-logo {
  flex: 0 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.principles-logo img {
  width: 150px;
  height: auto;
  max-width: 200px;
  padding: 10px;
}

.principles-text {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* опускає текст донизу */
}

.principles-text h2 {
  margin-bottom: 10px;
  color: #B15540;
  font-weight: 600;
  font-size: 2.5em;
}

.principles-text p{
	font-size: 1.1em;
}

.principles-stats {
  flex: 1 1 300px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.principles-stats div {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
}

.principles-stats h3{
	color: #B15540;
	font-size: 2.5em;
	font-weight: 600;
}

.principles-stats p{
	font-size: 1.1em;
	font-weight: 400;
}

/* Адаптивність */
@media (max-width: 768px) {
  .principles-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .principles-text{
  flex: 1 1 0;
}

  .principles-stats {
    grid-template-columns: 1fr;
  }
}



/* ==== OBJECTS SECTION ==== */
#objects,
#partners {
  padding: 120px 0;
  background: #f9f9f9;
}

#objects h2, #objects h1{
  font-weight: 900;
  color: #B15540;
}

#partners h2{
  font-weight: 300;
}

#objects h2,
#partners h2{
	margin: 20px;
  font-size: 2.5em;
}

#objects button,
#partners button{
	padding: 10px;
	border-radius: 10px;
	cursor: pointer;	
	transition: all 300ms ease;
	color: grey;
}

#objects .button,
#partners .button{
	color: white;
}


#objects .button:hover,
#partners .button:hover{
	background-color: lightgrey;	
	color:  #B15540;;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.object-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}



.object-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  margin-top: 10px;
  padding-right: : 10px;
}

.object-footer span{
  margin-left: 20px;
  font-size: 1em;
  font-weight: 300;
  color: #B15540;
}

.object-footer span strong{
  font-weight: 900;
  font-size: 1.2em;
}





.object-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  flex-direction: column;
  border-radius: 15px;
  padding: 15px;
  overflow: hidden;
  transition: all 300ms ease;
}

.object-card:hover{
	background: #F5F3F0;
	transform: scale(1.02);
}

.object-card p{
	font-weight: 100;
}

.object-card strong{
	font-weight: 300;
}

.object-card h3{
	font-weight: 600;
}
.object-card .price{
    color: #B15540;
}


/* Обгортка для картинки — створюється в CSS */
/*.object-card > img {
  width: 100%;
  aspect-ratio: 396 / 213;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
  border-radius: 15px;
}*/

.object-card > picture,
.object-card > img {
  display: block;
  width: 100%;
  margin-bottom: 20px;
}

.object-card > picture{
  line-height: 0;
}

.object-card > picture > img,
.object-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 396 / 213;
  object-fit: cover;
  border-radius: 15px;
}



/* ==== WHY US SECTION ==== */
#why-us {
  padding: 60px 0;
}

#why-us h2{
	text-align: center;
	margin-bottom: 50px; 
	font-size: 2em;
}

.why-content {
  display: flex;
  gap: 40px;
  flex-wrap: nowrap;
  align-items: stretch; /* дає однакову висоту */
  justify-content: space-between;
}

.why-content img{
  border-radius: 15px;
}

.advantages {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.advantages div {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 6px;
}

.advantages p{
	font-weight: 300;
}

.advantages h3{
	font-weight: 600;
	color: #B15540;
}


.why-image {
  flex: 0 0 auto;
  aspect-ratio: 1 / 1; /* квадратна область */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}

.why-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .why-content {
    flex-wrap: wrap;
  }
  .why-image{
      order: -1;
  }
}

#team{
    padding-top: 120px;
}

#google-reviews{
    padding-top: 50px;
}

#team .team-content {
  display: flex;
  align-items: center;
  gap: 24px;
}

#team .team-image {
  flex: 0 0 800px;   /* фіксуємо колонку під зображення */
  max-width: 800px;
}

#team .team-image img {
  width: 100%;
  max-width: 650px;
  height: auto;
  aspect-ratio: 4 / 3;   /* 800×600 */
  object-fit: cover;
  margin: 0 auto;
  border-radius: 15px;
  margin-bottom: 20px;
}

#team .team-text {
  flex: 1 1 auto;
}

/* Адаптив: на вузьких екранах стовпчиком */
@media (max-width: 1024px) {
  #team .team-content { flex-direction: column; }
  #team .team-image { max-width: 100%; flex-basis: auto; }
}


/* ==== CONTACTS SECTION ==== */
#contacts {
  padding: 120px 0;
}


#contacts h2{
	color: #B15540;
	padding-top: 20px;
}


#contacts .container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  max-width: 400px;
  height: 100%;
}

.contact-form input {
  width: 100%;
  padding: 10px 0;
  font-size: 1rem;
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  outline: none;
  color: #111;
  box-sizing: border-box;
}


.contact-form input::placeholder {
  color: #888;
  text-align: left;
}

.contact-form input:focus {
  border-bottom: 1px solid #007aff;
}

.contact-form button{
	width: auto;
	align-self: flex-start;
	margin-top: 20px;
}


.contacts-layout {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: stretch; /* дуже важливо для синхронної висоти */
}



.contact-map {
  flex: 1 1 500px;
  min-height: 300px;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding: 20px;  
  border-radius: 8px;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height:300px; 
  filter: grayscale(100%);
  border: none;
  border-radius: 8px;
}

.contact-form,
.contact-map {
  /*width: 50%;*/
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .contacts-layout {
    flex-direction: column;
  }

  .contact-form,
  .contact-map {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ==== FOOTER ==== */
.site-footer {
  width: 100%;
  background-color: #122433;
  color: #fff;
  padding: 40px 0;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-info {
  display: flex;
  align-items: center;
  text-align: center;
  gap: 10px; /* відступи між елементами */
}

.footer-info span {
  display: inline-block;
  margin-right: 20px;
  font-weight: 100;
  font-size: 1em;
}

.footer-info span strong{
	font-weight: 300;
}

.footer-info img {
  width: 20px;
  vertical-align: middle;
  margin: 0 5px;
}

.footer-logo img{
	width: 123px;
}

.footer-info .social{
	display: flex;
	justify-content: flex-start;
	align-items: center;
}



/* ==== MEDIA QUERIES ==== */
@media (max-width: 992px) {
  header .container {
    align-items: center;
    gap: 15px;
  }

  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .why-content {
    flex-direction: column;
  }

  .advantages {
    grid-template-columns: 1fr;
  }

  .contact-map iframe {
    min-height: 250px;
  }

  .object-card {
    padding: 10px;
  }

  .team-member {
    flex: 0 0 70%;
  }

  .footer-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  #main h1 {
    font-size: 1.8rem;
  }

  #main h2 {
    font-size: 1.2rem;
  }

  .buttons {
    flex-direction: column;
    gap: 10px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .principles-stats {
    flex-direction: column;
  }

  .team-member {
    flex: 0 0 90%;
  }

  .object-list {
    grid-template-columns: 1fr;
  }

  footer .container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}


/* Кнопка виклику */
/*.callback-toggle {
  position: fixed;
  bottom: 40px;
  right: 20px;
  background: rgba(177, 85, 64, 1);
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 15px;
  font-size: 24px;
  cursor: pointer;
  animation: pulse 1.5s infinite;
  z-index: 999;
  box-shadow: 2px 2px 5px #122433;
  transition: all 200ms ease;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 122, 255, 0,6);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(0, 122, 255, 0);
  }
}*/

.callback-toggle {
  position: fixed;
  bottom: 40px;
  right: 20px;
  background: #B15540;
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 15px;
  font-size: 24px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 2px 2px 5px #122433;
  transition: transform 200ms ease, box-shadow 200ms ease;
  overflow: visible;
  isolation: isolate;
  animation: callbackBreath 2.4s ease-in-out infinite;
}

.callback-toggle::before,
.callback-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(177, 85, 64, 0.35);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transform: scale(1);
}

.callback-toggle::before {
  animation: callbackRing 2.8s linear infinite;
}

.callback-toggle::after {
  animation: callbackRing 2.8s linear infinite 1.4s;
}

.callback-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 18px rgba(18, 36, 51, 0.28);
}

@keyframes callbackBreath {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes callbackRing {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}



/* Панель форми */
.callback-bar {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background: #122433; color: #fff;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 20px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 998;
}

.callback-bar.active {
  transform: translateY(0);
}

@media(max-width:400px){
  .callback-bar.active{
      padding-bottom: 100px;
  }  
}

.callback-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 0 0 auto;
}

.callback-side h3 {
  margin: 0; font-size: 1.2rem;
  font-weight: 100;
}

.callback-contacts {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
 }

.callback-contacts img {
  width: 32px; height: 32px;
}

.callback-contacts a[href^="tel:"] {
 /* color: #B15540;*/
 	color: #fff;
  text-decoration: none;
  font-size: 1.5em;
  font-weight: 600;
}

.callback-form {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  flex: 1 1 auto;
}

.callback-form input {
 /* flex: 1 1 200px;*/
  padding: 10px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  background: #fff;
  color: #000;
}

.callback-form .button {
  flex: 0 0 auto;
}

@media (max-width: 600px) {
  .callback-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .callback-side {
    align-items: center;
    text-align: center;
  }
  .callback-contacts {
    justify-content: center;
  }
  .callback-form {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 50px;
  }
}

.callback-toggle img{
	width: 20px; 
	height: 20px;
}





.single-object-full-layout {
  max-width: 1200px;
  margin: 0 auto;
}

.single-object-title {
  text-align: left;
  margin-bottom: 40px;
  font-size: 2.5em;
}

.single-object-inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/*#video-preview {
  padding: 60px 0;
  text-align: center;
}

.video-preview-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.video-placeholder {
  position: relative;
  display: inline-block;
  width: 100%;
}

.video-placeholder img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1877f2;
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background 0.3s;
}

.video-button:hover {
  background: #145bd4;
}*/

/* VIDEO PREVIEW: заголовок зліва (притиснутий), центр по сторінці, свайп на мобілці */

#video-preview{
  padding-top: 120px;
}

#video-preview .video-preview-layout{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* відступ тексту від відео */
}

#video-preview .video-preview-title{
  flex: 0 0 auto;
  text-align: right;
}

#video-preview .video-preview-title h2{
  margin: 0;
  line-height: 1.05;
}

#video-preview .video-preview-track{
  display: inline-flex;  /* щоб блок не розтягувався і не “з’їжджало” */
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

#video-preview .video-card{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  text-decoration: none;

  flex: 0 0 280px;
  max-width: 280px;
}

#video-preview .video-card img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

#video-preview .video-card__btn{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;

  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-weight: 600;
  text-align: center;
}

/* Планшет */
@media (max-width: 1024px){
  #video-preview .video-card{
    flex-basis: 260px;
    max-width: 260px;
  }
}

/* Мобілка: заголовок зверху + свайп */
@media (max-width: 768px){
  #video-preview .video-preview-layout{
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
  }

  #video-preview .video-preview-title{
    text-align: left;
  }

  #video-preview .video-preview-track{
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    width: 100%;
  }

  #video-preview .video-card{
    flex: 0 0 85%;
    max-width: 85%;
    scroll-snap-align: start;
  }

  /* Якщо відео одне — центруємо */
  #video-preview .video-preview-track .video-card:only-child{
    margin-left: auto;
    margin-right: auto;
    scroll-snap-align: center;
  }
}

#object-features{padding:24px 0 56px}
    #object-features .container{width:min(1200px,92vw);margin:0 auto;}
    #object-features .feature-section{margin-bottom: 150px;}
    #object-features .feature-inner{display:flex;gap:24px;align-items:center}

    /* чергування: кожна парна секція міняє порядок */
    #object-features .feature-section:nth-child(even) .feature-inner{flex-direction:row-reverse}

    /* Медіа: показуємо зображення у природному розмірі */
    #object-features .feature-media{
      position:relative; isolation:isolate; border-radius:16px;
      box-shadow:0 10px 30px rgba(0,0,0,.08);
      flex:0 0 auto;              /* ключ: не розтягувати колонку */
      display:inline-block;       /* контейнер під розмір зображення */
    }
    #object-features .feature-media-img{
      position:relative; z-index:1; display:block;
      width:auto; height:auto;     /* ключ: природні розміри 801x600 */
      max-width:100%;              /* але не виходимо за контейнер на вузьких екранах */
      height:auto;                 /* (на випадок, якщо зображення більше за колонку) */
      backface-visibility:hidden;
    }
    /* Розмитий фон позаду — трохи більший за фото */
    #object-features .feature-media-bg{
      position:absolute; top:-10%; left:-10%;
      width:120%; height:120%; object-fit:cover;
      opacity:.2; z-index:0; pointer-events:none; backface-visibility:hidden; filter:blur(5px);
    }

    #object-features .feature-content{flex:1 1 0}
    #object-features .feature-content h3{margin:0 0 10px;font-size:clamp(20px,2.2vw,28px);line-height:1.25}
    #object-features .feature-content p{margin:0;line-height:1.65;color:#445}

    .feature-content button{
      margin-top: 25px;
    }

    @media(max-width:900px){
      #object-features .feature-inner{flex-direction:column}
      #object-features .feature-section:nth-child(even) .feature-inner{flex-direction:column}
      /* картинка вже адаптивна через max-width:100% */
    }





     /* той самий лейаут, що і для object-features, але прив’язаний до нового id */
    #domix-arguments{padding:24px 0 56px}
    #domix-arguments .container{width:min(1200px,92vw);margin:0 auto;}
    #domix-arguments .feature-section{margin:24px 0; margin-bottom:150px;}
    #domix-arguments .feature-inner{display:flex;gap:24px;align-items:center}
    /* чергування: кожна парна секція дзеркалить порядок */
    #domix-arguments .feature-section:nth-child(even) .feature-inner{flex-direction:row-reverse}
    /* медіа: natural size (як домовлялись) + фон ззаду */
    #domix-arguments .feature-media{
      position:relative; isolation:isolate; 
      border-radius:16px; box-shadow:0 10px 30px rgba(0,0,0,.08);
      flex:0 0 auto; display:inline-block;
    }
    #domix-arguments .feature-media-img{
      position:relative; z-index:1; display:block;
      width:auto; height:auto; max-width:100%; backface-visibility:hidden;
    }
    #domix-arguments .feature-media-bg{
      position:absolute; top:-10%; left:-10%;
      width:120%; height:120%; object-fit:cover;
      opacity:.2; z-index:0; pointer-events:none; filter:blur(5px);
      backface-visibility:hidden;
    }
    #domix-arguments .feature-content{flex:1 1 0}
    #domix-arguments .feature-content h3{margin:0 0 10px; font-size:clamp(20px,2.2vw,28px); line-height:1.25}
    #domix-arguments .feature-content p{margin:0; line-height:1.65; color:#445}
    @media(max-width:900px){
      #domix-arguments .feature-inner{flex-direction:column}
      #domix-arguments .feature-section:nth-child(even) .feature-inner{flex-direction:column}
    }




/* Слайдер */
.slider-container {
  flex: 2 1 65%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.slider-main img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: cover;
  border-radius: 8px;
}
.slider-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.thumbnails::-webkit-scrollbar {
  display: none;
}
.thumbnails img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
}

/* Навігація стрілками */
.slider-arrow {
  background: #fff !important;
  color: darkgrey;
  border: none;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

#object-features{padding:24px 0 56px}
    #object-features .container{width:min(1200px,92vw);margin:0 auto;}
    #object-features .feature-section{ margin-bottom: 150px;}
    #object-features .feature-inner{display:flex;gap:24px;align-items:center}

    /* чергування: кожна парна секція міняє порядок */
    #object-features .feature-section:nth-child(even) .feature-inner{flex-direction:row-reverse}

    /* Медіа: показуємо зображення у природному розмірі */
    #object-features .feature-media{
      position:relative; isolation:isolate; border-radius:16px;
      box-shadow:0 10px 30px rgba(0,0,0,.08);
      flex:0 0 auto;              /* ключ: не розтягувати колонку */
      display:inline-block;       /* контейнер під розмір зображення */
    }
    #object-features .feature-media-img{
      position:relative; z-index:1; display:block;
      width:auto; height:auto;     /* ключ: природні розміри 801x600 */
      max-width:100%;              /* але не виходимо за контейнер на вузьких екранах */
      height:auto;                 /* (на випадок, якщо зображення більше за колонку) */
      backface-visibility:hidden;
    }
    /* Розмитий фон позаду — трохи більший за фото */
    #object-features .feature-media-bg{
      position:absolute; top:-10%; left:-10%;
      width:120%; height:120%; object-fit:cover;
      opacity:.2; z-index:0; pointer-events:none; backface-visibility:hidden; filter:blur(5px);
    }

    #object-features .feature-content{flex:1 1 0}
    #object-features .feature-content h3{margin:0 0 10px;font-size:clamp(20px,2.2vw,28px);line-height:1.25}
    #object-features .feature-content p{margin:0;line-height:1.65;color:#445}

    @media(max-width:900px){
      #object-features .feature-inner{flex-direction:column}
      #object-features .feature-section:nth-child(even) .feature-inner{flex-direction:column}
      /* картинка вже адаптивна через max-width:100% */
    }

.slider-main img {
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
}

.slider-main img.fade-out {
  opacity: 0;
}

/* Деталі */
.object-details {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.object-details h3.price {
  font-size: 2.5rem;
  color: #B15540;
  font-weight: 900;  
}
.object-details p {
  margin: 0;
  font-size: 1rem;
}
.object-details p strong {
  font-weight: 600;
}
.object-details h3:not(.price) {
  margin-top: 20px;
  font-size: 1.4rem;
}
.object-details .button {
  width: fit-content;
}

/* Адаптив */
@media (max-width: 768px) {
  .single-object-inner {
    flex-direction: column;
  }
  .slider-container,
  .object-details {
    flex-basis: 100%;
  }
  .thumbnails img {
    width: 80px;
    height: 60px;
  }
}


#about-us {
  padding: 60px 0;
  background: #f9f9f9;
}

.about-us-layout {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 300px;
}

.about-text h2 {
  margin-bottom: 20px;
  font-size: 2.5em;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 30px;
}

.about-text .button {
  padding: 12px 24px;
  font-size: 1rem;
}

.about-image {
   width: 100%;
  /* Для десктопної колонки: задав flex-блок */
  flex: 1 1 400px;
  display: flex;

}

.about-image img {
   width: 100%;
  aspect-ratio: 1 / 1;        /* формує квадратний контейнер */
  object-fit: cover;
  border-radius: 8px;
}

/* Адаптивність */
@media (max-width: 768px) {
  .about-us-layout {
    flex-direction: column;
  }

  .about-text, .about-image {
    width: 100%;
  }

  .about-text {
    text-align: center;
  }

  .about-text .button {
    margin: 0 auto;
  }
}



#advantages-single {
  padding: 60px 0;
  background: #f9f9f9;
  text-align: center;
}

.advantages-single-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.advantages-single-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.advantages-single-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.advantages-single-item p {
  margin: 0;
  font-size: 1rem;
  color: #333;
}


.description-text {
  white-space: pre-wrap;    /* зберігає усі переноси */
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  margin: 20px 0;
  background: transparent;
  border: none;
  padding: 0;
}


#comfort-single {
  padding: 60px 0;
  background: #fff;
  text-align: center;
}

#comfort-single h2{
  text-align: left;
   border-bottom: 1px solid rgba(177, 85, 64, 0.3);
}

/* Грід контейнер для зручностей і наповнення */
.comfort-single-grid,
.accessories-single-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Стиль кожного елемента */
.comfort-single-item,
.accessory-single-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: 8px;
  background: #f9f9f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: center;
}

/* Картинка в елементі */
.comfort-single-item img,
.accessory-single-item img {
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

/* Текст */
.comfort-single-item p,
.accessory-single-item p {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

/* Додатково — примусово 2 колонки на мобілках */
@media (max-width: 767px) {
  .comfort-single-grid,
  .accessories-single-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}



#plans-single {
  padding: 60px 0;
  text-align: center;
}

#plans-single h2{
  text-align: right;
  border-bottom: 1px solid rgba(177, 85, 64, 0.3);
}

.plans-single-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.plans-single-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.plans-single-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  cursor: zoom-in;
  max-width: 150px;
}

.plan-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  overflow: auto;
}

.plan-modal.active {
  display: flex;
}

.plan-modal-content {
   max-width: 95vw;
  max-height: 95vh;
  overflow: auto;         /* 🆕 внутрішнє прокручування, якщо img забагато */
  background: transparent;
  border-radius: 8px;
  position: relative;
}

.plan-modal-content img {
   display: block;
  max-width: 100%;
  max-height: none;       /* знімає обмеження, щоб full-розмір міг прокручуватись */
  width: auto;
  height: auto;
}

.plan-close {
  position: fixed;
  top: 10px;
  right: 10px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

@keyframes blink_2{
    0%{
       box-shadow: 0 10px 25px rgba(0,0,0,0.45); 
    }
    50%{
      box-shadow: 0 10px 10px rgba(0,0,0,0.45);   
    }
    100%{
       box-shadow: 0 10px 25px rgba(0,0,0,0.45); 
    }
}

.buy-terms h3{
  font-size: 2em;
  color: rgba(177, 85, 64, 1);
}


/*#chess_active_btn{
 right: 18px !important;
 bottom: 100px !important;
 height: 56px !important;
 width: 56px !important;
 line-height: 50px !important;
 background: rgba(177, 85, 64, 1) !important;
 animation: blink_2 1300ms infinite !important;

}*/

#chess_active_btn{
    position: fixed !important;
    right: 18px !important;
    bottom: 100px !important;
    height: 56px !important;
    width: 56px !important;
    line-height: 50px !important;
    background: rgba(177, 85, 64, 1) !important;
    border-radius: 50% !important;
    overflow: visible !important;
    isolation: isolate !important;
    animation: chessBreath 2.4s ease-in-out infinite !important;
}

#chess_active_btn::before,
#chess_active_btn::after{
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 50% !important;
    border: 2px solid rgba(177, 85, 64, 0.35) !important;
    pointer-events: none !important;
    z-index: -1 !important;
    opacity: 0 !important;
    transform: scale(1) !important;
}

#chess_active_btn::before{
    animation: chessRing 2.8s linear infinite !important;
}

#chess_active_btn::after{
    animation: chessRing 2.8s linear infinite 1.4s !important;
}

@keyframes chessBreath{
    0%, 100%{
        transform: scale(1);
    }
    50%{
        transform: scale(1.05);
    }
}

@keyframes chessRing{
    0%{
        transform: scale(1);
        opacity: 0.55;
    }
    70%{
        transform: scale(1.8);
        opacity: 0;
    }
    100%{
        transform: scale(2.1);
        opacity: 0;
    }
}

.chess_active_btn_text{
   font-size: 7px !important; 
}

#preloader{
 background:rgba(177, 85, 64, 1) !important;   
}


.form-status{
  display:none;
  margin:12px 0;
  align-items:center;
  gap:10px;
  font-weight:600;

}

.is-sent .form-status{
  display:flex;
}

.form-status__icon{
  width:22px;
  height:22px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#22c55e;
  color:#fff;
  font-size:14px;
  line-height:1;
}


.object-card__image-wrap {
  position: relative;
  margin-bottom: 15px;
  border-radius: 15px;
  overflow: hidden;
}

.object-card__image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.object-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.object-card__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.object-card__badge.badge--sold {
  background: #d62828;
}

.object-card__badge.badge--done {
  background: #2a9d8f;
}

.object-card__badge.badge--new {
  background: #c9a227;
}

/* Single post */
.single {
    position: relative;
    margin-top: 90px;
    margin-bottom: 100px;	
}

.single h1, 
.single h2, 
.single h3, 
.single p, 
.single ul, 
.single ol {
  margin: 0 0 10px;
}

.single h1 {
	font-weight: 900;
    color: #B15540;
}

.single ul {
	display: block;
  	list-style-type: disc;
  	margin-block-start: 1em;
  	margin-block-end: 1em;
  	margin-inline-start: 0px;
  	margin-inline-end: 0px;
  	padding-inline-start: 40px;
}

.single ol {
  display: block;
  list-style-type: decimal; 
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  padding-inline-start: 40px; 
}

.single .alignleft {
    display: inline;
    float: left;
    margin: 20px 20px 0;
}

.single .alignright {
    display: inline;
    float: right;
    margin: 20px 0 20px;
}

.single .aligncenter {
    clear: both;
    display: block;
	margin: 20px auto;
}

.single table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  line-height: 1.5;
  text-align: left;
  overflow-x: auto;
  display: block; 
}

@media screen and (min-width: 768px) {
  .single table {
    display: table;
  }
}

/* Ховаємо плаваючу кнопку дзвінка (звільняємо правий нижній кут під Telegram-чат).
   Коли форма відкрита — кнопка з'являється як хрестик угорі, щоб форму можна було закрити. */
#callbackToggle {
  display: none !important;
}
#callbackBar.active ~ #callbackToggle {
  display: inline-block !important;
}

.single table th {
  background-color: #f4f4f6;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 2px solid #d1d1d6;
}

.single table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e5ea;
}

.single table tr:nth-child(even) {
  background-color: #fafafa;
}

.single .section-header > * {
	margin-top: 40px;
	margin-bottom: 0;
	font-weight: 900;
	color: #B15540;
}

/* Blog */
.blog__image {
	aspect-ratio: 500/269;
	object-fit: cover;
}
