@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: #f5f5f5;
}
body.no-scroll {
  overflow: hidden;
}
h1,
h2, h3 {
  margin-bottom: 20px;
}
p {
  margin-top: 20px;
  margin-bottom: 20px;
  color: #2b2b2b;
}
li {
  list-style: none;
  text-align: center;
}
a {
  text-decoration: none;
  color: #9a5b13;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
}
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 15px;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 20px 0 30px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;

}
.header-logo > a {
    font-size: 16px;
    margin-top: 5px;
}
.logo {
  max-width: 40px;
  max-height: 40px;
  margin-left: -10px;
}
.nav-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.list-item {
  padding: 7px 12px;
  border-radius: 30px;
}
.list-item:last-child {
  margin-right: 12px;
}
.list-item:hover {
  background-color: #fdf0e1;
}
.main-screen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px;
}
.main-screen__img {
  border-radius: 30px;
  max-width: 750px;
}
.about {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
}
.about-description {
  max-width: 650px;
}
.swiper {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  max-width: 750px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 450px;
}

.swiper-slide img {
  margin-top: -40%;
  display: block;
  width: 100%;
  object-fit: cover;
  
}
.swiper-button-next, .swiper-button-prev {
color: #adadad !important; 
width: 50px !important;  
  height: 50px !important;  
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 25px !important; 
}
.services {
  max-width: 1200px;
  margin: 0px auto 30px;
}
.services > h2 {
  text-align: center;
}
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.services-table {
  max-width: 1440px;
  margin: 30px auto;
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.services-table table {
  width: 100%;
  border-collapse: collapse;
}

.services-table th {
  background: #a05a0a;
  color: white;
}

.services-table td,
.services-table th {
  border: 1px solid #ddd;
  padding: 8px;
}
.grid-item {
  display: flex;
  width: 300px;
  height: 350px;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  background-color: #fff;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.grid-item__img {
max-height: 260px;
overflow: hidden;
border-radius: 25px;
padding-top: 10px;

}
.grid-item__img >img {
  max-width: 280px;
  border-radius: 25px;
}
.footer {
  background-color: rgb(255, 255, 255);
  text-align: center;
  padding: 15px 0;
}
.footer-text > p {
  font-size: 14px;
  color: #2b2b2b;
  margin: 5px;
}

.contact-form {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  backdrop-filter: blur(6px);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
}
.contact-form__container {
  display: flex;
  background:#fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 450px;
  padding: 24px 24px 32px;

  flex-direction: column;
  gap: 20px;
  font-family: Arial, sans-serif;
  color: #2b2b2b;
  position: relative;
}

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

.form-header p {
  font-weight: 600;
  font-size: 18px;
  margin: 0;
}

.quiz-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

/* form */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: #2b2b2b;
  gap: 6px;
}

input[type="text"],
input[type="tel"],
textarea {
  outline: none;
  border: 1.5px solid #ccc;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 400;
  color: #2b2b2b;
  transition: border-color 0.3s;
}

input::placeholder,
textarea::placeholder {
  font-weight: 400;
  color: #adadad;
}

textarea {
  border-radius: 24px;
  resize: vertical;
  min-height: 40px;
  max-height: 80px;
}

input[type="text"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: #a35a09;
}

/* btn */

.btn {
  background-color: #a05a0a;
  color: #fff;
  border: none;
  border-radius: 28px;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #7b4600;
}
.form > .btn-box > .btn {
  width: 100%;
}
.contact-form.active {
  display: flex;
  opacity: 1;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 10001;
  transition: transform 0.3s ease;
}

.burger span {
  display: block;
  height: 3px;
  background: #9a5b13;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transition: right 0.4s ease;
  z-index: 10000;
}

.nav-overlay.active {
  right: 0;
}

.nav-overlay .nav-list {
  flex-direction: column;
  gap: 20px;
}
.contacts {
  position: relative;
  margin-bottom: -4px;
}
.contacts-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0px;
  left: 50px;
  
  max-width: 350px;
  height: 100%;
}
.container-box {
padding: 20px;
  background-color: #f5f5f5;
  border-radius: 30px;
}
@media (max-width: 800px) {
  .wrap {
    max-width: 750px;
  }
  .nav-list {
    display: none;
    position: absolute;
    top: 60px;
    right: 0px;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 999;
  }
  .nav-list.active {
    display: flex;
  }
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .main-screen {
    flex-direction: column;
    text-align: center;
  }
  .main-screen__img {
    max-width: 100%;
  }
  .services-grid {
    max-width: 750px;
  }
  .about {
  flex-direction: column;
  gap: 0px;
}
.about-description {
  max-width: 100%;
  text-align: center;
}
.contacts {
  position: relative;
text-align: center;
}
.contacts-container {
  position: relative;
  left: 0px;
margin: 0 auto;
}
.container-box {
padding: 0px;
  background-color: transparent;
  border-radius: 0px;
}
}

@media (max-width: 431px) {
  .main-description {
    max-width: 350px;
  }

  .services-table {
    padding: 10px;
    margin: 15px auto;
    border-radius: 12px;
  }

  .services-table table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .services-table th,
  .services-table td {
    font-size: 12px;
    padding: 6px;
  }

}
