* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  background: transparent;
  font-family: sans-serif;
  height: 100%;
  overflow-x: hidden;
  font-family: "Playfair Display", serif;
}

h3 {
	font-size: 1.6rem;
	margin-bottom: 5%;
	margin-top: 0;
	font-weight: 700;
}

.menu-toggle {
  position: fixed;
  top: 5%;
	right: 3.7%;
  width: 50px;
  height: 50px;
  font-size: 1.4rem;
  background-color: #f2e8c9;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.menu-toggle i {
  width: 1.2em;
  text-align: center;
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.menu-toggle:hover {
  background-color: #e0dfc6;
}

.menu-open .menu-toggle {
  background-color: transparent;
  box-shadow: none;
}


.menu {
	display: none;
	position: fixed;
	top: 5%;
	right: 3.7%;
	width: 20%;
	background-color: #f2e8c9;
	padding: 2%;
	border-radius: 30px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
	flex-direction: column;
	gap: 0.8em;
	z-index: 99;
	font-size: 1.5rem;
}

.menu.open {
  display: flex;
}

.menu[hidden] {
  display: none !important;
}

.menu-icon-link {
  display: flex;
  align-items: center;
  gap: 0.4em;
  text-decoration: none;
  color: #262626;
  font-size: 1.5rem;
  padding: 5% 7% 5%;
  border-radius: 30px;
  background-color: #e8d6a0;
}

.menu-icon-link i {
  width: 1.2em; /* фиксированная ширина для всех иконок */
  text-align: center;
  flex-shrink: 0; /* иконка не сжимается */
}

.menu-icon-link:hover {
	background-color: #262626;
	color: #e8d6a0;

}

.icon-link .menu-link-text {
  text-decoration: none; /* подчёркиваем только текст */
}

/* Небо на заднем плане */
.sky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #87CEEB, #4682B4);
  z-index: 0;
  transition: background 2s ease-in-out;
  overflow: hidden;
  pointer-events: none;
}

/* Движущиеся облака */
.cloud {
  position: absolute;
  width: 200px;
  height: 100px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.6;
  animation: floatClouds 90s linear infinite;
  will-change: transform;
}

.cloud1 {
  background-image: url('images/cloud1.png');
  top: 10%;
  left: 90%;
  --xOffset: translateX(0);
}

.cloud2 {
  background-image: url('images/cloud2.png');
  top: 30%;
  left: 50%;
  --xOffset: translateX(0);
}

.cloud3 {
  background-image: url('images/cloud1.png');
  top: 60%;
  left: 30%;
  --xOffset: translateX(0);
}

@keyframes floatClouds {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-150vw); }
}

.site-content {
	display: flex;
	  flex-direction: row;
}

.house-container {
	position: relative;
	z-index: 0;
	width: 50%;
}


/* "Свет" за окнами */
.light-behind {
  position: absolute;
  top: 30%;
  left: 0%;
  width: 85%;
  height: 50%;
  background-color: #000000;
  z-index: 1;
  pointer-events: none;
  transition: background-color 1s ease-in-out;
}

.light-behind-bottom {
  position: absolute;
  top: 80%;
  left: 0%;
  width: 75%;
  height: 20%;
  background-color: #000000;
  z-index: 1;
  pointer-events: none;
  transition: background-color 1s ease-in-out;
}

/* Дом */
.house {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: left;
  padding-top: 60px;
  width: 100%;
}

.house img {
  max-width: 100%;
  pointer-events: none;
}

.information {
	display: flex;
	flex-direction: column;
	position: relative;
	z-index: 6;
	width: 44%;
	max-height: 285vh;
	margin-top: 3%;
	margin-right: 3%;
	margin-left: 3%;



	
}

.logo {
	width: 100%;
	padding: 0% 5% 0%;
	border-radius: 30px;
	margin-bottom: 5%;
}

.logo img {
	width: 100%;
}

.info-block-containter {
		width: 100%;
		padding: 5%;
		background-color: #f5f5dc;
		box-shadow: 0 4px 20px rgba(0,0,0,0.1);
		border-radius: 30px;
		max-height: 222vh;
		position: relative;

}

.info-block {
	width: 100%;
	font-size: 1.5rem;
	line-height: 1.4;
	margin-bottom: 5%;
	position: relative;
	max-height: 212vh;
	overflow-y: auto;
	padding-right: 3%;
}


/* Кастомизация полосы */
.info-block::-webkit-scrollbar {
  width: 10px;
}

.info-block::-webkit-scrollbar-track {
  background: #f5f5dc;
  border-radius: 10px;
}

.info-block::-webkit-scrollbar-thumb {
  background-color: #a9a9a9;
  border-radius: 10px;
}

.info-block::-webkit-scrollbar-thumb:hover {
  background-color: #7a7a7a;
}

.icon-link {
	text-decoration: none; /* убираем подчёркивание со всей ссылки */
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	color: #262626;
}



.icon-link:hover {
	color: #262626;
}

.icon-link:visited {
	color: #262626;
}

.icon-link .link-text {
  text-decoration: underline; /* подчёркиваем только текст */
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
  animation: zoomIn 0.3s ease-in-out;
  border-radius: 8px;
}

@keyframes zoomIn {
  from {transform: scale(0.8); opacity: 0;}
  to   {transform: scale(1); opacity: 1;}
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #f1f1f1;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.image-container {
  text-align: center;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

.image-container .image-alt {
  display: block;
  font-size: 1.2rem;
  color: #555;
  margin-top: 0.5em;
}