:root {
  --font-family: 'Open Sans', sans-serif;
  --second-family: 'Playfair Display', serif;
  --third-family: 'Montserrat', sans-serif;
  --primary-color: #005f73;
  --secondary-color: #0a9396;
  --primary-hover: #94d2bd;
  --text-inverted: #ffffff;
  --text-primary: #001219;
  --text-secondary: #001219;
  --background-color: #f0f0f0;
  --secondary-background: #e9d8a6;
  --border-radius-primary: 12px;
  --border-radius-secondary: 8px;
  --border-radius-third: 4px;
}

/* === Header === */

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--secondary-color);
  width: 100%;
  padding: 15px 25px;
  overflow-x: hidden;
}

.header-nav {
  display: flex;
  gap: 430px;
  align-items: center;
}

.header-nav-list {
  display: flex;
  gap: 30px;
}

.header-nav-list a {
  transition: all 0.3s ease;
  color: var(--text-inverted);
}

.header-nav-list a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.burger-btn {
  display: none;
}

.mobile-menu {
  display: none;
}

@media screen and (max-width: 1240px) {
  .header {
    padding: 10px 25px;
  }

  .header .secondary-btn,
  .header-nav {
    display: none;
  }

  .burger-btn {
    display: block;
    border: none;
    background-color: transparent;
    cursor: pointer;
    padding: 3px;
  }

  .burger-btn svg {
    width: 45px;
        height: 45px;
        color: #333;
        border: 1px solid #333;
  }

  .burger-btn:active svg {
    color: var(--primary-hover);
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--secondary-background);
    padding: 15px 30px;
    z-index: 1000;
    transition: all 0.3s ease;
  }

  .mobile-menu-active {
    right: 0;
  }

  .close-btn {
    display: block;
    border: none;
    background-color: transparent;
    cursor: pointer;
    padding: 3px;
    margin-left: auto;
  }

  .close-btn svg {
    width: 35px;
    height: 35px;
    stroke: var(--text-inverted);
  }

  .close-btn:active svg {
    stroke: var(--primary-hover);
  }

  .mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}

/* === Hero === */

.hero {
  padding: 160px 0 100px;
}

.hero .container {
  padding: 0 30px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  max-width: 630px;
  width: calc(100% / 2 - 80px);
}

.section-name {
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 72px;
  line-height: 108%;
  color:#fff;
  margin-bottom: 23px;
}

.hero-content .descr {
  margin-bottom: 46px;
}

.wrapper {
  display: flex;
  position: relative;
  max-width: 630px;
  width: calc(100% / 2 - 80px);
  min-height: 600px;
  max-height: 760px;
  overflow: hidden;
  padding: 0 30px 30px 0;
}

.wrapper::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 30px;
  bottom: 0;
  right: 0;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius-primary);
  z-index: 1;
}

.wrapper.left {
  padding: 30px 0 0 30px;
}

.wrapper.left::after {
  top: 0;
  left: 0;
  bottom: 30px;
  right: 30px;
}

.wrapper-img {
  position: relative;
  z-index: 2;
  flex: 1;
  object-fit: cover;
  border-radius: var(--border-radius-primary);
}

@media screen and (max-width: 1240px) {
  .hero-title {
    font-size: 50px;
  }

  .wrapper {
    padding: 0 15px 15px 0;
    min-height: 500px;
    width: calc(100% / 2 - 50px);
  }

  .hero-content {
    width: calc(100% / 2 - 50px);
  }
}

@media screen and (max-width: 768px) {
  .wrapper {
    width: 100%;
  }

  .hero-content {
    width: 100%;
  }
}

/* === Our Services === */

.our-services {
  padding: 100px 0;
}

.our-services-content {
  margin-bottom: 50px;
  position: relative;
}

.our-services-navigate {
  display: flex;
  gap: 20px;
  position: absolute;
  right: 0;
  bottom: -40px;
}

.our-services-navigate button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-color);
  color: var(--text-secondary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  border: none;
  position: static;
  transition: all 0.3s ease;
  box-shadow: -1px 3px 10px 0 rgba(0, 0, 0, 0.3);
}

.our-services-navigate button svg {
  width: 18px;
  height: 18px;
  fill: transparent;
  stroke: var(--text-secondary);
}

.our-services-navigate button svg.left {
  transform: rotate(90deg);
  margin-left: 4px;
}

.our-services-navigate button svg.right {
  transform: rotate(-90deg);
  margin-right: 4px;
}

.our-services-navigate button:hover {
  background-color: var(--secondary-hover);
}

.swiper-button-next {
  padding-left: 10px;
}

.swiper-button-prev {
  padding-right: 10px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 17px;
}

.our-services-list {
  padding: 20px 0;
}

.our-services-item {
  display: flex;
  gap: 20px;
  height: auto;
  padding: 40px 22px 25px;
  border-radius: var(--border-radius-secondary);
  background-color: var(--background-color);
  border: 1px solid var(--primary-color);
}

.our-services-item:nth-child(even) {
  background-color: var(--primary-color);
}

.our-services-item:nth-child(even) .subtitle,
.our-services-item:nth-child(even) .descr {
  color: var(--text-secondary);
}

.our-services-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.our-services-item .subtitle {
  margin-bottom: 10px;
}

button.swiper-button-next-our-services.swiper-button-disabled,
button.swiper-button-prev-our-services.swiper-button-disabled {
  opacity: 0.35;
  cursor: auto;
  pointer-events: none;
}

/* === About Us === */

.about-us {
  padding: 100px 0;
}

.about-us-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  width: calc(100% / 2 - 80px);
}

.about-us-content .title {
  margin-bottom: 22px;
}

.about-us-content .primary-btn {
  margin-top: 46px;
}

@media screen and (max-width: 1240px) {
  .about-us-content {
    width: calc(100% / 2 - 50px);
  }
}

@media screen and (max-width: 768px) {
  .about-us .container {
    flex-direction: column-reverse;
  }

  .about-us-content {
    width: 100%;
  }
}

/* === Why Choose === */

.why-choose {
  padding: 100px 0;
}

.why-choose-content {
  width: calc(100% / 2 - 80px);
}

.why-choose-content .title {
  margin-bottom: 22px;
}

.why-choose-content .descr {
  margin-bottom: 36px;
}

.why-choose-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.why-choose-item {
  display: flex;
  gap: 25px;
  max-width: 450px;
  width: 100%;
}

.why-choose-item-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

.why-choose-item-wrap img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.why-choose-item .subtitle {
  margin-bottom: 11px;
}

.why-choose-item .descr {
  margin: 0;
}

@media screen and (max-width: 1240px) {
  .why-choose-content {
    width: calc(100% / 2 - 50px);
  }
}

@media screen and (max-width: 768px) {
  .why-choose-content {
    width: 100%;
  }
}

/* === Successfully === */

.successfully {
  padding: 80px 0;
  background-color: var(--secondary-background);
}

.successfully .title {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 80px;
}

.successfully-list {
  display: flex;
  justify-content: space-between;
}

.successfully-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 15px;
  max-width: 185px;
  width: 100%;
  height: 182px;
  box-shadow: 0 13px 16px 0 rgba(0, 0, 0, 0.1);
  background-color: var(--background-color);
  border-radius: var(--border-radius-secondary);
}

.successfully-item:nth-child(even) {
  margin-top: 91px;
}

.successfully-item .subtitle {
  font-size: 40px;
}

.successfully-line-left,
.successfully-line-right {
  position: absolute;
  top: 50%;
  height: 1px;
  background-color: #e0e0e0;
}

.successfully-line-center {
  position: absolute;
  top: 50%;
  right: -50%;
  bottom: 0;
  height: auto;
  width: 1px;
  background-color: #e0e0e0;
}

.successfully-line-center.top {
  top: 0;
  bottom: 50%;
}

@media screen and (max-width: 900px) {
  .successfully-list {
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
  }

  .successfully-lines {
    display: none;
  }

  .successfully-item {
    width: calc(100% / 2 - 15px);
  }

  .successfully-item:nth-child(even) {
    margin-top: 0;
  }
}

/* === Testimonials === */

.testimonials {
  padding: 100px 0;
}

.testimonials-content {
  position: relative;
  text-align: center;
  margin-bottom: 80px;
}

.testimonials-list-item {
  display: flex;
  align-items: center;
  height: auto;
  gap: 30px;
  border-radius: var(--border-radius-secondary);
  background-color: var(--secondary-background);
  padding: 40px 25px;
  position: relative;
}

.testimonials-list-item::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 20px;
  background-image: url("../images/format-quote.png");
  background-repeat: no-repeat;
  background-size: contain;
  width: 30px;
  height: 30px;
}

.testimonials-item-img {
  width: 100%;
  max-width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: var(--border-radius-third);
}

.testimonials-list-item .subtitle {
  margin-bottom: 10px;
}

.testimonials-list-item .subtitle span {
  font-weight: 400;
  font-size: 16px;
  color: var(--text-primary);
}

.testimonials-item-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 156%;
  color: var(--text-primary);
}

button.swiper-button-next-testimonials.swiper-button-disabled,
button.swiper-button-prev-testimonials.swiper-button-disabled {
  opacity: 0.35;
  cursor: auto;
  pointer-events: none;
}

@media screen and (max-width: 900px) {
  .testimonials-list-item {
    padding: 25px 15px;
    gap: 20px;
  }

  .testimonials-item-img {
    width: 80px;
    height: 80px;
  }
}

/* === Our Blog === */

.our-blog {
  padding: 100px 0;
}

.our-blog-content {
  position: relative;
  text-align: center;
  margin-bottom: 80px;
}

.our-blog-item {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.our-blog-item .wrapper {
  width: 100%;
  max-width: 550px;
  margin-bottom: 40px;
}

.our-blog-item .subtitle {
  margin-bottom: 17px;
}

.our-blog-item .descr {
  margin-bottom: 40px;
}

.our-blog-item .primary-btn {
  margin-top: auto;
}

button.swiper-button-next-our-blog.swiper-button-disabled,
button.swiper-button-prev-our-blog.swiper-button-disabled {
  opacity: 0.35;
  cursor: auto;
  pointer-events: none;
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
  opacity: 1;
  cursor: pointer;
}

/* === Contact === */

.contact {
  padding: 200px 0;
  scroll-margin-top: -100px;
  position: relative;
}

.contact .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 70px;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  max-width: 510px;
  width: 100%;
}

.contact-content .title {
  margin-bottom: 16px;
  text-align: start;
}

.contact-content .descr {
  margin-bottom: 24px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-list-item {
  display: flex;
  align-items: center;
  gap: 13px;
}

.contact-list-item {
  font-family: var(--third-family);
  font-size: 18px;
}

.contact-list-item img {
  max-width: 25px;
  width: 100%;
  object-fit: contain;
}

.contact-form {
  background-color: var(--secondary-background);
  padding: 60px 80px;
  max-width: 600px;
  width: 100%;
  border-radius: var(--border-radius-secondary);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 24px;
}

.form-group:nth-child(4) {
  margin-bottom: 60px;
}

.form-group label {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  line-height: 171%;
  color: #d3d3d3;
  margin-bottom: 10px;
}

.form-group textarea,
.form-group input {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  padding-bottom: 5px;
  color: var(--text-primary);
  border: none;
  background-color: transparent;
  outline: none;
  border-bottom: 1.5px solid var(--text-primary);
  transition: 0.3s all ease;
}

.form-group textarea:hover,
.form-group input:hover {
  border-bottom: 1.5px solid var(--primary-hover);
}

.form-group textarea:focus,
.form-group input:focus {
  border-bottom: 1.5px solid var(--primary-color);
}

.contact-map {
  width: 100%;
  height: 500px;
  border-radius: var(--border-radius-secondary);
  border: none;
}

@media screen and (max-width: 1240px) {
  .contact-form {
    padding: 25px;
  }
}

/* === Footer === */

.footer {
  padding: 70px 0 20px;
  color: var(--text-inverted);
  overflow: hidden;
}

.footer a {
  color: var(--text-inverted);
  opacity: 0.8;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0 100px;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact,
.footer-menu ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-rights {
  width: 100%;
  margin-top: 30px;
  text-align: center;
}

@media screen and (max-width: 1240px) {
  .footer {
    padding: 60px 0 20px;
  }

  .footer .container {
    padding: 0 15px;
    justify-content: space-between;
    gap: 40px;
  }
}

/* === Cookie Popup === */

.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--background-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 1000;
  display: none;
}

.cookie-popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cookie-popup a {
  text-decoration: underline;
  transition: all 0.3s ease;
}

.cookie-popup a:hover {
  color: var(--primary-hover);
}

.cookie-popup h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.cookie-popup p {
  margin: 0 0 20px;
  font-size: 1rem;
}
.header {
  background-color: var(--secondary-background);
}

.mobile-menu {
  background-color: var(--secondary-background);
}
.swiper-button-next::after,
.swiper-button-prev::after {
  color: #ffffff;
}

.our-services-navigate button svg {
  stroke: #ffffff;
}
/* === Blog Page Custom Styles === */

.blog {
  padding: 80px 0;
  background-color: var(--background-color);
  color: var(--text-primary);
}

.blog .container {
  margin: 0 auto;
  padding: 0 20px;
}

.blog .title {
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.3;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.blog-meta {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.blog-content {
  margin-bottom: 40px;
}

.blog-content .wrapper {
  position: relative;
  margin-bottom: 30px;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: var(--border-radius-secondary);
}

.blog-content .wrapper-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius-secondary);
}

.blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-list li {
  margin-bottom: 24px;
}

.blog-list .descr {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
}

.blog-list .descr:last-child {
  margin-bottom: 0;
}

/* === Footer Overrides === */

.footer {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

.footer .footer-menu h3,
.footer .footer-contact h3 {
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer .footer-menu ul,
.footer .footer-contact p {
  margin: 0;
  padding: 0;
}

.footer .footer-menu ul li {
  margin-bottom: 8px;
}

.footer .footer-menu ul li a,
.footer .footer-contact a {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  color: #e0e0e0;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer .footer-menu ul li a:hover,
.footer .footer-contact a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-rights {
  text-align: center;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 12px;
  color: #888888;
  margin-top: 30px;
}

/* === Responsive Adjustments === */

@media screen and (max-width: 768px) {
  .blog .title {
    font-size: 28px;
  }

  .blog-meta {
    font-size: 12px;
    margin-bottom: 30px;
  }

  .blog-list .descr {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .footer .container {
    flex-direction: column;
    gap: 24px;
    padding: 0 20px;
  }

  .footer .footer-menu,
  .footer .footer-contact {
    width: 100%;
  }
}
.terms-privacy {
  background-color: var(--background-color);
  color: var(--text-primary);
}

.terms-privacy .container {
  margin: 0 auto;
  padding: 0 20px;
}

.terms-privacy .title {
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 32px;
  margin-bottom: 24px;
  color: var(--primary-color);
}

.terms-privacy .descr {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.terms-privacy .subtitle {
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 24px;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-inverted);
}

.terms-privacy ul.descr {
  list-style: disc inside;
  margin-left: 20px;
}

.terms-privacy ul.descr li {
  margin-bottom: 12px;
}

.terms-privacy ul.descr li strong {
  font-weight: 700;
}

.terms-privacy a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.terms-privacy a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .terms-privacy .title {
    font-size: 28px;
  }
  .terms-privacy .subtitle {
    font-size: 20px;
  }
  .terms-privacy .descr,
  .terms-privacy ul.descr li {
    font-size: 14px;
  }
  .terms-privacy .container {
    padding: 0 15px;
  }
}
