/* === Header === */

.header {
  position: fixed;
  top: 5px;
  left: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  overflow-x: hidden;
  transition: all 0.6s ease;
  background-color: transparent;
}

.header-active {
  border-radius: var(--border-radius-primary);
  padding: 8px 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background: linear-gradient(
    136deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.2) 100%
  );
  backdrop-filter: blur(8px);
}

.header-active .secondary-btn {
  padding: 8px 35px;
}

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

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

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

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

.burger-btn {
  display: none;
}

.mobile-menu {
  display: none;
}

.header-nav-list a.header-link-active {
  color: var(--primary-color);
  position: relative;
}

.header-nav-list a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  right: 50%;
  height: 1.6px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

.header-nav-list a.header-link-active::after {
  left: -3px;
  right: -3px;
}

@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-inverted);
  }

  .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-color);
    backdrop-filter: blur(10px);
    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;
  }

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

/* === Hero === */

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

.hero-title {
  font-family: var(--secondary-family);
  font-weight: 600;
  font-size: 56px;
  line-height: 150%;
  color: var(--text-inverted);
  margin-bottom: 24px;
}

.hero-content .descr {
  margin-bottom: 24px;
  font-size: 18px;
  max-width: 720px;
}

.hero-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-radius: 48px;
  gap: 72px;
  max-width: 1048px;
  width: 100%;
  padding: 40px 64px;
  margin: 0 auto;
  margin-bottom: -100px;
  position: relative;
  z-index: 4;
  background-color: var(--secondary-background);
}

.hero-list-item {
  width: calc((100% - 216px) / 4);
}

.hero-list-item .subtitle {
  margin-bottom: 12px;
}

.hero-list-item-line {
  width: 66px;
  height: 4px;
  background: #252525;
  margin-bottom: 12px;
}

.hero .wrapper {
  width: 100%;
  height: 500px;
}

@media screen and (max-width: 768px) {
  .hero-list {
    padding: 20px 34px;
    gap: 30px;
    max-width: 650px;
  }

  .hero-list-item {
    width: calc((100% - 90px) / 4);
  }
}

@media screen and (max-width: 500px) {
  .hero-list-item {
    width: calc((100% - 30px) / 2);
  }
}

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

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

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

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

.swiper-slide {
  height: auto;
}

.our-services-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.our-services-item-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);

  mask: var(--zigzag-mask-url) center / 100% 100% no-repeat;
  -webkit-mask: var(--zigzag-mask-url) center / 100% 100% no-repeat;

  height: 100%;
  width: calc(40% - 15px);

  padding: 15px 30px;
  padding-left: 50px;
}

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

.our-services-item-content {
  background-color: var(--secondary-background);
  position: relative;
  height: 100%;
  width: 60%;
  padding: 20px 40px 20px 0;
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
}

.our-services-item-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.5px;
  transform: translateX(-100%);

  height: 100%;
  width: 24%;

  mask: var(--petal-mask-url) center / 100% 100% no-repeat;
  -webkit-mask: var(--petal-mask-url) center / 100% 100% no-repeat;

  background-color: var(--secondary-background);
  z-index: 1;
}

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

@media screen and (max-width: 1024px) {
  .our-services-item {
    gap: 20px;
  }
}

@media screen and (max-width: 768px) {
  .our-services-item-content {
    padding: 10px 20px 10px 0;
  }
}

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

  .our-services-item-wrap {
    width: 40%;
  }

  .our-services-item-content {
    width: 60%;
  }

  .our-services-item-content::before {
    width: 27%;
  }
}

/* === Swiper Nav === */

.swiper-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 70px;
}

.swiper-nav:has(.swiper-button-lock) {
  display: none;
}

.swiper-button-prev,
.swiper-button-next {
  position: static;
  display: block;
  background-color: var(--primary-color);
  border-radius: var(--border-radius-primary);
  color: var(--text-secondary);
  width: 60px;
  padding: 5px 20px;
  transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: var(--primary-hover);
}

.swiper-button-prev {
  transform: rotate(180deg);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}

.swiper-button-lock {
  display: none;
}

.swiper-pagination {
  position: static;
  display: block;
}

.swiper-pagination-bullet {
  width: 12px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background-color: var(--primary-color);
  width: 22px;
}

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

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

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

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

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

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

.about-us-item {
  width: calc((100% - 15px) / 2);
  padding: 15px 24px;
  background-color: var(--secondary-background);
  border-radius: var(--border-radius-secondary);
}

.about-us-item:nth-child(3) {
  width: 100%;
}

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

.about-us-item .subtitle::after {
  content: "";
  display: block;
  height: 2px;
  width: 60px;
  background-color: var(--primary-color);
  margin-top: 4px;
}

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

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

  .about-us-content .section-name {
    justify-content: center;
    text-align: center;
  }
}

/* === Plans === */

.plans {
  padding: 100px 0;
}

.plans-content .title {
  max-width: 1000px;
  margin-bottom: 16px;
}

.plans-content .descr {
  max-width: 880px;
}

.plans-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
}

.plans-item {
  width: calc((100% - 70px) / 3);
  padding: 30px;
  border-radius: var(--border-radius-primary);
  border: 1px solid var(--accordion-active);
  height: auto;
}

.plans-item .subtitle {
  color: var(--secondary-color);
  margin-bottom: 32px;
}

.plans-item-price {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.plans-item .descr {
  margin-bottom: 32px;
}

.plans-item .primary-btn {
  margin-bottom: 32px;
}

.plans-item-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plans-item-list li {
  position: relative;
  padding-left: 32px;
}

.plans-item-list li::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  border-radius: 4px;
  background-color: var(--secondary-color);
  z-index: 1;
}

.plans-item-list li::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  background-image: url("../images/check.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
}

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

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

/* === Testimonial === */

.testimonial {
  padding: 100px 0;
}

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

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

.testimonial-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-background);
  border-top-left-radius: 100px;
  border-bottom-right-radius: 100px;
  padding: 20px 35px;
  position: relative;
}

.testimonial-item::after {
  content: "❜";
  position: absolute;
  display: flex;
  align-items: start;
  bottom: 10px;
  right: 10px;
  height: 70px;
  font-size: 100px;
  color: var(--accordion-active);
}

.testimonial-item::before {
  content: "❛";
  display: flex;
  align-items: center;
  position: absolute;
  top: 10px;
  left: 10px;
  height: 70px;
  font-size: 100px;
  color: var(--accordion-active);
}

.testimonial-item-rating {
  width: 120px;
  height: 30px;
  object-fit: cover;
  margin-bottom: 12px;
}

.testimonial-item .descr {
  text-align: center;
  font-style: italic;
  margin-bottom: 25px;
}

.testimonial-item-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-item-info {
  margin-left: 25px;
}

.testimonial-item-name {
  font-family: var(--secondary-family);
  color: var(--primary-color);
  font-size: 26px;
  margin-bottom: 5px;
}

.testimonial-item-descr {
  font-family: var(--secondary-family);
  color: var(--text-inverted);
}

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

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

.our-blog-content .title {
  margin-bottom: 12px;
}
.our-blog-content .descr {
  max-width: 850px;
}

.our-blog-item {
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius-primary);
  overflow: hidden;
  background-color: var(--secondary-background);
}

.our-blog-item-wrap {
  position: relative;
}

.our-blog-item-wrap::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  aspect-ratio: 8 / 3;
  mask: var(--wave-dip-mask-url) center / cover no-repeat;
  -webkit-mask: var(--wave-dip-mask-url) center / cover no-repeat;
  background-color: var(--secondary-background);
  z-index: 1;
}

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

.our-blog-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background-color: #ffffff58;
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 5px;
  position: absolute;
  bottom: 0px;
  right: 8px;
  z-index: 2;
}

.blog-author,
.blog-date {
  color: var(--text-inverted);
  font-size: 14px;
  font-style: italic;
}

.our-blog-item-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  flex: 1;
  padding: 0 20px 35px;
}

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

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

.our-blog-item-content .link {
  display: block;
  margin-top: auto;
}

/* === FAQ === */

.faq {
  padding: 100px 0;
  text-align: center;
}

.faq .container {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.faq-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

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

.faq-content .descr {
  max-width: 840px;
}

.accordion {
  width: calc((100% - 100px) / 2);
}

.accordion .subtitle::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--primary-color);
}

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

/* === Accordion === */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: start;
}

.accordion-item {
  border-radius: var(--border-radius-secondary) !important;
  box-shadow: none !important;
  overflow: hidden;
}

.accordion-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: none !important;
  border-radius: none !important;
  transition: all 0.3s ease;
  font-size: 18px;
  font-weight: 500;
}

.accordion-button::after {
  display: none;
}

.accordion-button svg {
  fill: none;
  stroke: #000;
  width: 20px;
  height: 20px;
  stroke-width: 2px;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  color: var(--text-primary);
  background-color: var(--accordion-active);
}

.accordion-button:not(.collapsed) svg {
  transform: rotate(180deg);
  stroke: var(--primary-hover);
}

.accordion-button:hover {
  background-color: var(--accordion-active);
}

.accordion-button:hover svg {
  stroke: var(--primary-color);
}

/* === Contact === */

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

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

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.contact-content .section-name {
  margin-bottom: 14px;
}

.contact-content .title {
  text-align: center;
  max-width: 900px;
}

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

.contact-list-item {
  display: flex;
  align-items: center;
  padding: 25px;
  gap: 50px;
  width: 100%;
  font-family: var(--font-family);
  font-size: 18px;
  position: relative;
  background-color: var(--secondary-background);
  border-radius: var(--border-radius-primary);
  overflow: hidden;
}

.contact-list-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 140px;
  background-color: var(--primary-color);
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0% 100%);
  z-index: 1;
}

.contact-list-item svg {
  width: 70px;
  height: 70px;
  fill: var(--text-secondary);
  position: relative;
  z-index: 2;
}

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

.contact-item-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: calc(100% - 120px);
}

.contact-item-wrap p.descr {
  font-size: 18px;
  margin-bottom: 0;
}

.contact-item-wrap a {
  text-decoration: underline;
}

.contact-item-wrap a:hover {
  color: var(--primary-color);
}

.contact-list-item .subtitle {
  text-align: start;
  font-weight: 500;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: start;
  background-color: var(--secondary-background);
  padding: 40px 50px;
  width: calc((100% - 70px) / 2);
  border-radius: var(--border-radius-primary);
}

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

.form-group {
  margin-bottom: 40px;
  width: 100%;
}

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

.form-group label {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  line-height: 171%;
  color: var(--text-primary);
  padding-left: 10px;
}

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

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

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

.contact-form .primary-btn {
  margin-top: auto;
}

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

.contact-wrapper .title {
  margin-bottom: 12px;
}

.contact-wrapper .descr {
  margin-bottom: 35px;
  font-size: 18px;
  text-align: start;
}

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

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

  .form-group textarea,
  .form-group input {
    padding-top: 0;
  }
}

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

  .contact-list-item svg {
    width: 50px;
    height: 50px;
  }

  .contact-list-item::after {
    width: 120px;
  }

  .contact-item-wrap {
    width: calc(100% - 100px);
  }
}

/* === Footer === */

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

.footer-logo {
  display: block;
  width: 200px;
  margin: 0 auto;
}

.footer-logo img {
  width: 100%;
  object-fit: contain;
}

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

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

.footer-disclaimer {
  max-width: 800px;
  margin-top: 10px;
  margin: 10px auto 0;
  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;
}
