/* === Header === */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 15px 25px;
  background-color: var(--primary-color);
  overflow-x: hidden;
  transition: all 0.6s ease;
}

.header .secondary-btn {
  background-color: var(--secondary-color);
}

.header .secondary-btn:hover {
  background-color: var(--secondary-hover);
}

.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-secondary);
}

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

.burger-btn {
  display: none;
}

.mobile-menu {
  display: none;
}

a.header-link-active {
  color: var(--primary-color);
}

@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: var(--text-secondary);
  }

  .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: 215px;
    height: 100vh;
    background-color: var(--text-inverted);
    backdrop-filter: blur(120px);
    padding: 15px 30px 60px;
    z-index: 1000;
    transition: all 0.3s ease;
  }

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

  .mobile-menu .primary-btn {
    display: block;
  }

  .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-secondary);
  }

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

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

  .mobile-nav-list a {
    color: var(--text-secondary);
  }
}

/* === Hero === */

.hero {
  padding: 120px 0;
}

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

.hero-title {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 64px;
  line-height: 120%;
  margin-bottom: 32px;
}

.hero .descr {
  margin-bottom: 48px;
  max-width: 500px;
}

.hero-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.wrapper {
  position: relative;
}

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

.wrapper.right::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  background-color: var(--primary-color);
  border-radius: var(--border-radius-secondary);
  z-index: -1;
}

.wrapper.left::after {
  content: "";
  position: absolute;
  top: 20px;
  left: -20px;
  right: 20px;
  bottom: -20px;
  background-color: var(--primary-color);
  border-radius: var(--border-radius-secondary);
  z-index: -1;
}

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

@media screen and (max-width: 768px) {
  .hero {
    padding: 80px 0;
  }

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

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

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

.about-us-content {
  width: calc((100% - 70px) / 2);
}

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

.about-us-content .descr {
  margin-bottom: 36px;
}

.about-us-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 45px;
}

.about-us-item {
  width: calc((100% - 45px) / 2);
}

.about-us-item-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--secondary-color);
  border-radius: var(--border-radius-secondary);
  margin-bottom: 20px;
  max-width: 44px;
  width: 100%;
  height: 44px;
}

.about-us-item-wrap img {
  width: 25px;
  object-fit: contain;
}

.about-us-item .subtitle {
  margin-bottom: 12px;
}

.about-us-item .descr {
  margin: 0;
}

@media screen and (max-width: 1024px) {
  .about-us-item {
    width: 100%;
  }
}

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

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

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

.our-services {
  padding: 100px 0;
  background-color: var(--secondary-background);
}

.our-services-content {
  margin-bottom: 60px;
}

.our-services-content .title {
  margin-bottom: 12px;
}

.our-services-content .descr {
  max-width: 800px;
}

.our-services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.our-services-item {
  width: calc((100% - 120px) / 4);
}

.our-services-item-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-primary);
  background-color: var(--secondary-color);
  margin-bottom: 33px;
}

.our-services-item-wrap img {
  width: 30px;
  object-fit: contain;
}

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

@media screen and (max-width: 1024px) {
  .our-services-item {
    width: calc((100% - 80px) / 3);
  }
}

@media screen and (max-width: 768px) {
  .our-services-item {
    width: calc((100% - 40px) / 2);
  }
}

@media screen and (max-width: 500px) {
  .our-services-item {
    width: 100%;
  }
}

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

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

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

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

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

.why-choose-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.why-choose-item {
  display: flex;
  gap: 26px;
}

.why-choose-item-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background-color: var(--secondary-color);
  border-radius: var(--border-radius-secondary);
}

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

.why-choose-item-content {
  width: calc(100% - 70px);
}

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

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

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

/* === === */

.testimonial {
  padding: 100px 0;
}

.testimonial-content {
  margin-bottom: 50px;
}

.testimonial-content .title {
  margin-bottom: 16px;
}

.testimonial-content .descr {
  max-width: 900px;
}

.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.testimonial-item {
  display: flex;
  flex-wrap: wrap;
  width: calc((100% - 40px) / 3);
  padding: 35px;
  height: auto;
  background-color: var(--secondary-background);
  border-radius: var(--border-radius-primary);
}

.testimonial-item-quote {
  fill: var(--primary-color);
  width: 40px;
  height: 40px;
  transform: rotate(180deg);
  margin-bottom: 37px;
}

.testimonial-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--border-radius-primary);
  margin-left: auto;
  margin-top: auto;
}

.testimonial-item .descr {
  margin-bottom: 60px;
}

.testimonial-item-wrap {
  width: calc(100% - 90px);
  margin-top: auto;
}

.testimonial-item-wrap .subtitle {
  margin-bottom: 8px;
}

.testimonial-item-wrap p {
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: var(--text-inverted);
}

@media screen and (max-width: 1024px) {
  .testimonial-item {
    width: calc((100% - 20px) / 2);
  }
}

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

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

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

.our-blog-content {
  margin-bottom: 50px;
}

.our-blog-content .title {
  margin-bottom: 14px;
}

.our-blog-content .descr {
  max-width: 700px;
}

.our-blog-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.our-blog-item {
  width: calc((100% - 90px) / 4);
  transition: all 0.3s ease;
  border-radius: var(--border-radius-secondary);
  overflow: hidden;
  position: relative;
}

.our-blog-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(360deg, #232626 0%, rgba(35, 38, 38, 0) 100%);
  z-index: 1;
}

.our-blog-item-active {
  width: calc((100% - 30px) / 2);
}

.our-blog-item-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.our-blog-item-content {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  z-index: 2;
}

.our-blog-item-content .subtitle {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.our-blog-item .our-blog-item-info,
.our-blog-item .descr {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.our-blog-item-active .our-blog-item-info,
.our-blog-item-active .descr {
  max-height: 500px;
}

.our-blog-item-active .our-blog-item-info {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  opacity: 0.8;
}

.our-blog-item-active .descr {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

@media screen and (max-width: 768px) {
  .our-blog-item-active,
  .our-blog-item {
    width: calc((100% - 30px) / 2);
  }
}

@media screen and (max-width: 500px) {
  .our-blog-item-active,
  .our-blog-item {
    width: 100%;
  }
}

/* === Contact === */

.contact {
  padding: 100px 0 180px;
  position: relative;
}

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

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

.contact-content .title {
  margin-bottom: 12px;
  text-align: start;
  max-width: 700px;
}

.contact-content .descr {
  margin-bottom: 20px;
  max-width: 670px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin-bottom: 30px;
}

.contact-list-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  font-family: var(--font-family);
  font-size: 18px;
  position: relative;
}

.contact-list-item svg {
  width: 25px;
  height: 25px;
  fill: var(--primary-color);
}

.contact-list-item .descr {
  margin: 0;
}

.contact-list-item:nth-child(2) svg {
  fill: transparent;
  stroke: var(--primary-color);
}

.contact-form {
  background-color: var(--background-color);
  box-shadow: 0 10px 52px 0 rgba(0, 0, 0, 0.08);
  padding: 40px 30px;
  width: calc((100% - 70px) / 2);
  border-radius: var(--border-radius-primary);
}

.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: 1px solid var(--text-primary);
  border-radius: var(--border-radius-primary);
  padding: 15px;
  transition: 0.3s all ease;
}

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

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

.contact-map {
  height: auto;
  border-radius: var(--border-radius-primary);
  border: none;
  min-height: 400px;
  width: 100%;
}

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

  .contact-content,
  .contact-form {
    width: 100%;
  }
}

/* === Footer === */

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

.footer a {
  color: var(--text-secondary);
  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;
  max-width: 400px;
}

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

.footer-disclaimer {
  margin-top: 10px;
  opacity: 0.8;
  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;
}
