/* Root variables */
:root {
  --primary-color: #4b6ebb;
  --white-color: #ffffff;
  --nav-color: #e9e9e9;
  --light-blue: #80a2ea;
  --text-color: #000000;
  --font-regular: "Montserrat Regular", sans-serif;
  --font-bold: "Montserrat Black", sans-serif;
  --bg-img-width: 1400px;
}

/* General styles */
html,
body {
  margin: 0 auto;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  font-family: var(--font-regular);
  color: var(--text-color);
  background-color: var(--white-color);
}

h1,
h3,
p {
  margin: 0;
}

.faq {
	padding: 20px;
}

.faq.active .ans {
	font-weight: bold;
	background: url(/images/arr_down.png) no-repeat right;
	background-size: 20px;
	background-position: 100% 2px;
	
	}
	
.faq.active .ansi {
	display: block;
	padding-top: 10px;
	line-height: 24px;
	opacity: 1;
	}

.faq .ans {
	font-size: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid #ddd;
	background: url(/images/arr_right.png) no-repeat right;
	background-size: 20px;
	background-position: 100% 2px;
	padding-right: 40px;
	cursor: pointer;
	transition: 0.3s
	}
	
.faqs {
	display: table;
	margin: auto;
	border: 1px solid #ddd;
	max-width: 800px;
	width: 100%;
	margin-bottom: 40px;
}

.faq .ansi {
	display: none;
	transition: 0.3s;
	opacity: 0;
}

header {
  position: relative;
  background-color: var(--white-color);
}

.slide {
	border: 1px solid #ddd;
	line-height: 30px;
	font-size: 20px;
	margin: 15px;
}

.slide .name {
	background-color: var(--primary-color);
	color: #fff;
	padding: 4px 10px;
	background-image: url(/images/ico_talk.png); background-repeat: no-repeat; background-size: 30px; background-position: 5px;
	padding-left: 40px;
	}
	
.slide .message {
	background: url('/images/stars.png') no-repeat top;
	background-position: 5px 10px;
	background-size: 120px;
	padding: 10px;
	padding-top: 40px;

	}

a {
	text-decoration:none;
}

.h1 {
	text-align: center;
	font-size: 24px;
	padding: 20px 0;
}

.flx {
	display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: flex-start;
    justify-content: center;
}

.flx .situat {
	max-width: 400px;
	width: 100%;
	min-width: 300px;
	min-height: 200px;
	background: #ccc;
	margin: 10px;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

.flx .situat .txt{
	font-size: 24px;
	background: rgba(255,255,255,0.7);
	backdrop-filter: blur(5px);
	padding: 10px;
	text-align: center;
	color: #162343
	}

.h1 div {
	font-size: 18px;

	}

.blue {
	background: var(--primary-color);
	color: #fff;
	line-height: 24px;
	padding: 30px 0;
	margin-bottom: 20px;
}

.blue .item {
	padding: 15px;
	font-size: 18px;
	padding-left: 75px;
	max-width: 800px;
	margin: auto;
	}

.table {
	display: table;
	margin: auto;
}

.td {
	display: table-cell;
	padding: 10px 6px;
}

.td.icon {
	padding-left: 40px;
	background-size: 30px;
	background-repeat: no-repeat;
	background-position: left;
	}
.tr {
	display: table-row;
}

.tr:nth-child(odd) {
	background: rgba(255,255,255,0.3)

	}
	
.tr.hed {
	background: #162343
	}

.tips {
	padding-left: 5px;
	display: flex;
	margin: auto;
	padding-bottom: 20px;
	flex-wrap: wrap;
	align-content: center;
	align-items: stretch;
	justify-content: center;
}

.tips .tip {
	border: 1px solid #ddd;
	margin: 15px;
	position: relative;
	margin-bottom: 15px;
	max-width: 500px;
	font-size: 18px;
}

.tips .tip .num {
	position: absolute;
	background: #4b6ebb;
	width: 35px;
	height: 35px;
	border-radius: 100px;
 	margin-left: -15px;
 	text-align: center;
 	color: #fff;
 	line-height: 35px;
 	margin-top: -10px;
 	font-size: 24px;
	}

.tips .hadr {
	background: #518fd6;
	color: #fff;
	font-size: 24px;
	padding: 10px;
	padding-right: 60px;
	padding-left: 30px;
}

.tips .txt {
	padding: 20px;
	padding-left: 30px;
	}

.header-top {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  align-items: center;
  margin: 20px 0;
  padding-left: 140px;
  padding-right: 140px;
}

.logo {
  max-width: 100%;
  height: auto;
}

.contact-info {
  text-align: right;
  font-size: 16px;
  line-height: 1.4;
}

.contact-info p {
  margin: 0;
}

.phone-number a {
  font-family: var(--font-bold);
  font-size: 24px;
  color: var(--text-color);
  text-decoration: none;
}

.contact p.supa {
	font-size: 26px;
}

nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 0 140px;
  align-items: center;
  width: 51%;
  color: var(--text-color);
  background-color: var(--nav-color);
  overflow: visible; /* Добавлено для отображения наслоения */
}

nav ul {
  display: flex;
  list-style: none;
  padding: 20px 0;
  gap: 2.5rem;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
  font-size: 1rem;
}

.buy-houses {
  position: absolute;
  top: 15px;
  right: 0;
  transform: translateX(calc(100% - 40px));
  z-index: 1;
  background-color: var(--light-blue);
  color: var(--text-color);
  padding: 25px 15px;
  font-family: var(--font-bold);
  font-size: 20px;
  white-space: nowrap;
  font-weight: bold;
}

.mobile-logo {
	position: absolute;
    translate: -50%;
    left: 50%;
}

.hero {
  background-color: var(--primary-color);
  padding-top: 1vh;
  padding-bottom: 1vh;
  color: var(--white-color);
  padding-top: 20px;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  align-items: stretch;
  background-color: var(--primary-color);
  color: var(--white-color);
  position: relative;
  padding-left: 140px;
}

.hero-left-content {
  flex: 0 0 28%;
  min-width: 360px;
  position: relative;
  flex-direction: column;
  align-items: center;
  padding-right: 20px;
}

.hero-left-content::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--white-color);
}

.hero h1 {
  font-family: var(--font-bold);
}

.hero ul {
  list-style: none;
  padding: 0;
}

.hero ul li {
  margin-bottom: 0.3vh;
}

.hero-right-content {
  flex: 0 0 65%;
  min-width: 300px;
  position: relative;
  padding-left: 40px;
  flex-direction: column;
  align-items: center;
}

.contact p {
  font-size: 16px;
}

.contact a {
  text-decoration: none;
  color: var(--white-color);
  font-size: 26px;
  font-family: var(--font-bold);
}

.form-section {
  background-image: url("../images/USA_Houses_Villa_Laguna_Niguel_Design_Pools_546702_2560x1706.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white-color);
}

.form-content {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;

  margin: 0 auto;
  padding-top: 2vh;
  padding-bottom: 6vh;
  padding-left: 140px;
  padding-right: 140px;
}

.left-form-content {
  background-color: var(--white-color);
  padding: 2vh 2vw;
  width: 32vw;
  color: var(--text-color);
}

.left-form-content h2 {
  color: var(--primary-color);
}

.right-form-content {
  background-color: rgba(19, 47, 108, 0.67);
  width: 44vw;
  backdrop-filter: blur(5px);
}

.right-form-content h3 {
  background-color: var(--primary-color);
  padding: 10px 15px;
  margin-bottom: 50px;
  border-bottom: 1px solid var(--white-color);
  color: var(--white-color);
  text-align: left;
}

.form-section h2 {
  font-family: var(--font-bold);
}

.form-section ul {
  list-style: none;
  padding: 0;
}

.form-section ul li {
  margin-bottom: 1vh;
  position: relative;
  padding-left: 2.5vw;
  font-size: 18px;
}

.form-section ul li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.3vh;
  width: 15px;
  height: 15px;
  background-color: var(--primary-color);
}

form {
  display: flex;
  flex-direction: column;

  align-items: center;
}

form input {
  padding: 1vh;
  margin-bottom: 30px;
  border: none;
  width: 74%;
}

form textarea {
  padding: 1vh;
  margin-bottom: 30px;
  border: none;
  width: 74%;
  min-height: 130px;
}

form input::placeholder,
form textarea::placeholder {
  font-size: 18px;
  color: black;
}

form button {
  padding: 5px 25px;
  margin-bottom: 30px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: 2px solid var(--white-color);
  font-family: var(--font-regular);
  font-size: 18px;
  cursor: pointer;
  width: auto;
}

footer {
  background-color: #162343;
  padding-bottom: 40px;
  padding-top: 20px;
}

.flexfooter {
	display: flex;
	margin: auto;
	max-width: 600px;
	color: #fff;
}

.flexfooter p {
	margin: 10px 0;

	}

.flexfooter .contactf a {
	color: #fff;
	display: inline-block;
	padding: 3px 6px;
	background: rgba(255,255,255,0.3)
}

.flexfooter .footmenu {
	width: 50%
}

.flexfooter .footmenu a {
	display: block;
	float: left;
	clear :both;
	color: #fff;
	margin-bottom: 8px;
	}

.flexfooter .h1 {
	text-align: left;

	}

/* Media queries */
@media (max-width: 1280px) {
  nav ul {
    gap: 20px;
  }

  .buy-houses {
    transform: translateX(calc(100% - 40px));
  }

  .form-section ul li {
    padding-left: 2.5vw;
  }
}

@media (max-width: 1024px) {
  .header-top {
    padding: 0 3vw;
  }

  nav {
    padding: 0 3vw;
    width: 64vw;
  }

  nav a {
    font-size: 1.1rem;
  }

  .buy-houses {
    transform: translateX(calc(100% - 30px));
    font-size: 16px;
    padding: 20px;
  }

  .contact h2 {
    font-size: 16px;
  }

  .contact a {
    font-size: 18px;
  }

  .hero-content {
    max-width: 90%;
    padding: 0 30px;
  }

  .hero,
  .form-section {
    padding: 3vh 1vw;
  }

  .form-section ul li {
    padding-left: 3.5vw;
  }

  .form-content {
    padding: 0 20px;
  }

  .left-form-content,
  .right-form-content {
    width: 50vw;
  }
}

@media (min-width: 769px) {
  .burger-container,
  .mobile-menu-header,
  .mobile-contact-info {
    display: none;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 65px;
  }

  .logo {
    display: none;
  }

  .header-top {
    flex-direction: column;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact-info {
    text-align: center;
    margin-top: 10px;
  }

  .contact a {
    font-size: 18px;
  }

  nav {
    display: block;
    width: 100%;
    padding: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu {
    display: block;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 1001;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-menu-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
  }

  .mobile-menu-logo {
    height: 40px;
    width: auto;
  }

  .nav-menu ul {
    list-style: none;
    padding: 20px;
    margin: 0;
    text-align: center;
  }

  .nav-menu li {
    margin: 20px 0;
  }

  .nav-menu ul li a {
    font-size: 18px;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
  }

  .nav-menu ul li a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.5s ease;
  }

  .nav-menu ul li a:hover,
  .nav-menu ul li a:focus,
  .nav-menu ul li a:active {
    color: var(--primary-color);
  }

  .nav-menu ul li a:hover::after,
  .nav-menu ul li a:focus::after,
  .nav-menu ul li a:active::after {
    visibility: visible;
    transform: scaleX(1);
  }

  .nav-menu ul li a.active {
    color: var(--primary-color);
  }

  .nav-menu ul li a.active::after {
    visibility: visible;
    transform: scaleX(1);
  }

  .burger-container {
    height: 40px;
    align-items: center;
    background-color: white;
    padding: 15px 30px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
    gap: unset;
  }

  .burger-container img {
    height: 40px;
    width: auto;
  }

  .burger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
  }

  .burger span,
  .burger span::before,
  .burger span::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: black;
    transition: 0.3s ease;
    left: 0;
  }

  .burger span {
    top: 50%;
    transform: translateY(-50%);
  }

  .burger span::before {
    top: -8px;
  }

  .burger span::after {
    top: 8px;
  }

  .burger.active span {
    transform: translateY(-50%) rotate(90deg);
  }

  .burger.active span::before {
    transform: translateY(8px) rotate(0);
  }

  .burger.active span::after {
    transform: translateY(-8px) rotate(0);
  }

  .mobile-contact-info {
    margin-top: auto;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
  }

  .mobile-contact-info p {
    margin: 5px 0;
    font-size: 14px;
  }

  .mobile-phone-number a {
    font-family: var(--font-bold);
    font-size: 20px;
    color: var(--text-color);
    text-decoration: none;
  }

  .close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .close-menu::before,
  .close-menu::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: black;
    transition: all 0.2s ease;
  }
  
  .close-menu::before {
    transform: rotate(45deg);
  }
  
  .close-menu::after {
    transform: rotate(-45deg);
  }
  
  .close-menu.disappearing::before {
    transform: rotate(45deg);
  }
  
  .close-menu.disappearing::after {
    transform: rotate(45deg);
  }
  
  .close-menu.disappearing {
    transform: rotate(-45deg) scale(0);
    transition: transform 0.3s ease-in-out;
  }

  .buy-houses {
    position: static;
    transform: none;
    margin-top: 10px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    font-size: 18px;
  }

  .hero {
    width: 100%;
    max-width: 100%;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
  }

  .hero-left-content,
  .hero-right-content {
    width: 100%;
    min-width: unset;
    padding: 0;
  }

  .hero-left-content::after {
    display: none;
  }

  .form-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .form-section ul li {
    padding-left: 7.5vw;
  }

  .left-form-content,
  .right-form-content {
    width: 90vw;
  }
  
  .left-form-content {
  	padding-top: 0;
  }

  .right-form-content {
    padding: 2vh 2vw;
  }
}

@media (max-width: 640px) {
	
	.flexfooter {
		display: table;
		margin: auto;
	}
	
	.flexfooter .footmenu {
		width: unset;
	}
	
	.flexfooter .contactf {
		clear: both;
		padding-top: 40px;
	}
	
	.faqs {
		border-bottom: 0;
	}
	
	}

@media (max-width: 480px) {
	
	.hideonmobile {
		display: none;
	}
	
	.hero-left-content {
		display: none;
	}
	
.contact {
	padding-top: 0px;
}
	
  nav ul {
    flex-direction: column;
    gap: 20px;
  }

  .burger-container {
    justify-content: space-between;
    gap: unset;
  }

  .mobile-menu-logo {
    height: 35px;
    width: auto;
  }

  .buy-houses {
    position: static;
    margin-top: 10px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero ul li {
    font-size: 14px;
  }

  .contact a {
    font-size: 16px;
  }
}

@media (max-width: 320px) {
  .burger-container {
    padding: 15px 10px;
  }

  .mobile-menu-logo {
    height: 30px;
  }

  .contact-info p .hero ul li,
  .contact p,
  nav a {
    font-size: 16px;
  }

  .phone-number,
  .hero h1 {
    font-size: 20px;
  }

  nav ul {
    gap: 5px;
  }

  .contact a {
    font-size: 14px;
  }
}
