@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto+Flex:opsz,wght,XOPQ,XTRA,YOPQ,YTDE,YTFI,YTLC,YTUC@8..144,100..1000,96,468,79,-203,738,514,712&display=swap");

@font-face {
  font-family: "Hatton";
  src: url("./fonts/HattonUltralight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hatton";
  src: url("./fonts/HattonMedium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hatton";
  src: url("./fonts/HattonBold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --blue: #8fafc2;
  --blue-dark: #5e7e93;
  --light: #f5f7f9;
  --text: #1e1e1e;

  --font-heading: "Hatton", serif;
  --font-body: "Montserrat", sans-serif;
  --font-alt: "Roboto Flex", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

html {
  scroll-behavior: smooth;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

:focus {
  outline: none;
}

body {
  font-family: var(--font-body);
  background: #fff;
  color: var(--dark);
  overflow-x: hidden;
  font-size: 20px;
}

img {
  filter: grayscale(100%);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* NAV */

.header {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.logo img {
  width: 270px;
}

.nav {
  padding: 0 20px;
}

.nav-list,
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.nav-list a {
  font-size: 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 400;
  text-transform: uppercase;
}

.social-block {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #5d768b;
  display: flex;
  background: #5d768b;
  color: #fff;
  align-items: center;
  justify-content: center;

  transition: 0.3s ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  color: var(--blue-dark);
  background-color: transparent;
  transform: translateY(-4px);
}

/* Mobile */
@media (max-width: 998px) {
  .social-link {
    width: 46px;
    height: 46px;
  }

  .social-link svg {
    width: 20px;
    height: 20px;
  }
}

.btn-nav {
  border: 1px solid var(--blue);
  padding: 8px 16px;
}

/* HERO */

.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: end;
  color: white;
  overflow: hidden;
  padding-bottom: 100px;
}

.hero img {
  position: absolute;
  height: 105vh;
  right: 0;
  top: 100px;
  opacity: 0.9;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(143, 175, 194, 0.85);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.subtitle {
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 24px;
}

.hero h1 {
  font-weight: 200;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-size: 78px;
  line-height: 1.2;
  margin: 20px 0;
}

.hero-text {
  font-size: 27px;
  margin-bottom: 30px;
  font-family: var(--font-alt);
  line-height: 1.4;
  font-weight: 200;
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  transition: 0.3s;
  font-size: 17px;
}

.btn:hover {
  background: white;
  color: var(--blue-dark);
}

.btn_dark {
  border: 1px solid var(--blue-dark);
  background-color: var(--blue-dark);
}

/* ABOUT ME SECTION */
.about-me {
  background: #fff;
  padding: 120px 0 90px;
}

.about-me .btn {
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
}

.about-container {
  display: flex;
  gap: 30px;
}

.about-text {
  padding-top: 150px;
}

.title {
  font-weight: 400;
  font-size: 80px;
  margin-bottom: 40px;
  text-transform: uppercase;
  font-family: var(--font-alt);
  letter-spacing: 3px;
  text-align: center;
}

.title.white {
  color: #fff;
}

h3.title {
  font-size: 34px;
}

.big-title {
  font-weight: 400;
  font-size: 43px;
  line-height: 1.4;
  text-transform: uppercase;
  color: #3d3d3d;
  margin-bottom: 60px;
  position: relative;
  z-index: 10;
  font-family: var(--font-alt);
  letter-spacing: 5px;
}
.about-block {
  margin-bottom: 60px;
  position: relative;
  flex: 1;
}

.about-number {
  position: absolute;
  right: 0;
  top: 23%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 100px;
  color: var(--blue);
  line-height: 1;
  opacity: 0.2;
}

.about-block p {
  font-family: var(--font-alt);
  font-weight: 200;
  font-size: 22px;
  line-height: 1.7;
  color: var(--text);
}

.about-block button {
  display: flex;
  color: var(--blue);
  text-transform: uppercase;
  margin-top: 20px;
  font-weight: 700;
  font-size: 15px;
}

.about-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s ease;
}

.about-modal.open {
  opacity: 1;
  visibility: visible;
}

.about-modal-content {
  background: white;
  max-width: 800px;
  width: 90%;
  padding: 60px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.about-modal-close {
  position: absolute;
  right: 30px;
  top: 20px;
  font-size: 32px;
  cursor: pointer;
}

.about-modal-body h3 {
  margin-bottom: 30px;
  font-family: var(--font-heading);
  text-transform: uppercase;
}

/* Адаптив */
@media (max-width: 1180px) {
  .logo img {
    width: 200px;
  }
  .nav-list,
  .nav {
    gap: 15px;
  }
}
@media (max-width: 1048px) {
  .about-container {
    flex-direction: column;
    gap: 0;
  }

  .about-title {
    font-size: 48px;
  }

  .about-number {
    right: -10px;
    text-align: right;
    top: -35px;
  }

  .about-block {
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .about-title {
    font-size: 36px;
  }
}
.lead {
  font-size: 33px;
  color: var(--blue-dark);
  margin-bottom: 50px;
  text-align: center;
  line-height: 1.4;
  font-weight: 300;
}
/* certificates */

.certificates-block {
  position: relative;
  overflow: hidden;
  margin: 0 0;
  padding: 80px 0;
  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.6) 40%,
      rgba(255, 255, 255, 0.2) 100%
    ),
    var(--blue);
  color: var(--text);
}

.certificates-block .logo img {
  width: 400px;
  margin: 0 auto 0;
}

.certs-carousel {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  perspective: 600px;
  padding: 0 30px 60px;
  overflow: hidden;
  text-align: center;
}

.certs-viewport {
  overflow: visible;
  position: relative;
  padding: 10px 0 40px;
}

.certs-track {
  list-style: none;
  position: relative;
  height: 250px;
}

.certs-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: 385px;
  height: 275px;
  transform: translate3d(-50%, 0, 0);
  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--blue);
}

.certs-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Активний (середній) */
.certs-slide.is-active {
  z-index: 10;
  transform: translate3d(-50%, 0, 100px) scale(1.1);
  opacity: 1;
}

/* Кнопки */
.certs-btn {
  position: absolute;
  top: 70%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  z-index: 200;
}

.certs-btn.prev {
  left: 15px;
}
.certs-btn.next {
  right: 15px;
}

.certs-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.certs-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}

.certs-dot[aria-selected="true"] {
  background: var(--blue);
}

/* Модалка */
.cert-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.cert-modal.open {
  display: flex;
}

.cert-modal-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.cert-modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {
  .certs-carousel {
    padding: 40px 20px 60px;
  }
  .certs-slide {
    width: 90%;
    height: 220px;
    transform: translate3d(-50%, 0, 0) !important;
  }
  .certificates-block {
    padding-bottom: 0;
    padding-top: 0;
  }
  .certs-viewport {
    padding-bottom: 0;
  }
  .requests-lead {
    font-size: 18px;
  }
  .certs-btn {
    bottom: 25%;
    top: auto;
  }
}

/* CLIENTS */

.clients {
  position: relative;
  margin: 100px 0;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: center;
}

.clients-grid .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.clients-grid .card p {
  text-align: center;
  padding: 15px;
  font-size: 17px;
}
.clients-grid .card .logo img {
  height: 256px;
  object-fit: contain;
  object-position: -5px 80px;
}

.client-card {
  position: relative;
  height: 400px;
  overflow: hidden;
  background-size: cover;
  background-position: top;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.client-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.client-overlay {
  position: absolute;
  inset: 0;
  position: absolute;
  inset: 0;
  background: rgba(120, 120, 120, 0.55); /* сіре затемнення */
  backdrop-filter: grayscale(50%) brightness(0.9);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  transition: background 0.3s ease;
}

.client-card:hover .client-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.client-overlay h3 {
  font-weight: 300;
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 40px;
  text-transform: uppercase;
  font-family: var(--font-alt);
  letter-spacing: 3px;
  text-align: center;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  overflow-y: auto;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  position: relative;
  margin: 40px auto;
  max-height: 90vh;
  overflow-y: auto;
}

.modal .btn {
  font-size: 16px;
  text-transform: lowercase;
  margin-top: 30px;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .client-card {
    height: 300px;
  }

  .client-overlay h3 {
    font-size: 18px;
  }
}

/* SERVICES */

.services {
  position: relative;
  padding: 100px 0 50px;
  background: var(--blue);
  color: white;
  overflow: hidden;
}

.services-overlay {
  position: absolute;
  inset: 0;
  background: rgba(143, 175, 194, 0.85);
}

.services-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.services-image {
  flex: 1;
}

.services-image img {
  width: 100%;
  max-height: 700px;
  object-fit: cover;
  border-radius: 10px;
}

.services-content {
  flex: 1.2;
}

.services-content img {
  margin: 50px auto 0;
}

.services-content .subtitle {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-title {
  text-align: center;
  font-size: 70px;
  font-weight: 200;
  margin: 20px 0 60px;
  text-transform: uppercase;
}

.service-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 40px;
  max-width: 800px;
  margin: 30px auto;
  position: relative;
}

.service-item .about-number {
  right: -150px;
  color: #fff;
  opacity: 0.2;
  font-size: 150px;
}

.service-item h3 {
  font-family: var(--font-alt);
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.service-item p {
  font-family: var(--font-alt);
  font-weight: 200;
  font-size: 23px;
  line-height: 1.6;
  margin-bottom: 20px;
  width: 90%;
}

.service-item ul {
  margin-bottom: 20px;
}

.service-item ul li {
  font-size: 18px;
  font-weight: 200;
  margin-bottom: 6px;
}

.service-item .focus {
  font-style: italic;
  opacity: 0.9;
}

.services .btn {
  border: 1px solid white;
  color: white;
}

.services .btn:hover {
  background: white;
  color: var(--blue-dark);
}

/* ADAPTIVE */

@media (max-width: 998px) {
  .services-container {
    flex-direction: column;
    gap: 50px;
  }

  .services-title {
    font-size: 48px;
  }

  .services-image img {
    max-height: 500px;
  }
}

@media (max-width: 600px) {
  .services-title {
    font-size: 36px;
  }

  .service-item h3 {
    font-size: 20px;
  }

  .service-item p,
  .service-item ul li {
    font-size: 16px;
  }
}

.process-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
}

.process .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.process .container > p {
  font-size: 20px;
  max-width: 600px;
  margin: auto;
}

.process .container > a {
  margin-bottom: 50px;
}

.process-step {
  padding: 40px 30px;
  width: 260px;
  text-align: center;
  transform: translateY(40px);
  opacity: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.process-step.in-view {
  transform: translateY(0);
  opacity: 1;
}

.step-num {
  font-size: 64px;
  font-weight: 500;
  color: var(--blue-dark);
  font-family: var(--font-heading);
  margin-bottom: 20px;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
}

.step-text h3 {
  font-size: 22px;
  color: var(--blue-dark);
  margin-bottom: 12px;
  line-height: 1.3;
  min-height: 46px;
  text-transform: uppercase;
  font-weight: 400;
}

.step-text p {
  font-size: 17px;
  color: var(--black);
  line-height: 1.6;
}

.process-step:hover {
  transform: translateY(-10px) scale(1.05);
}

@media (max-width: 768px) {
  .process-grid {
    flex-direction: column;
    align-items: center;
  }
  .process-step {
    width: 90%;
  }
}

#reviews {
  text-align: center;
  position: relative;
  padding: 100px 0;
}

#reviews .certs {
  position: relative;
  z-index: 100;
  max-width: 100vw;
}

#reviews .certs-track {
  height: 420px;
}

#reviews .certs-dots {
  margin-top: 0;
}

.review-card {
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border: 2px solid var(--blue);
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 400px;
  text-align: center;
  font-family: var(--font-main);
}

.review-text {
  font-style: italic;
  color: var(--blue);
  margin-bottom: 16px;
  line-height: 1.6;
  font-size: 16px;
}

.review-author {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 992px) {
  .review-text {
    font-size: 12px;
  }
  .btn-read {
    font-size: 12px;
    width: 130px;
    padding: 5px 10px;
    border-radius: 4px;
    margin: 10px auto;
  }
  .review-author {
    font-size: 12px;
  }
  #reviews .certs-viewport {
    padding: 10px 0 0;
  }
}

.btn-read {
  background: var(--blue);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-top: 20px;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.btn-read:hover {
  background: var(--orange);
  color: #fff;
}
.close {
  position: absolute;
  right: 10px;
  top: 10px;
}

@media (max-width: 1048px) {
  #reviews .certs {
    padding: 70px 15px;
  }
  #reviews {
    overflow-x: hidden;
  }
  .modal-text {
    font-size: 14px;
  }
  .modal .btn {
    font-size: 14px;
  }
}

.review-video {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.review-video:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.review-author {
  margin-top: 14px;
  font-style: italic;
  color: #444;
  font-size: 0.95rem;
  text-align: center;
}

.review-card.video-card {
  padding: 0;
  padding-bottom: 20px;
  border-radius: 20px;
  overflow: hidden;
}

.rblock-section {
  position: relative;
  overflow: hidden;
}

.rblock-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.rblock-track {
  display: flex;
  transition: transform 0.5s ease;
}

.rblock-slide {
  flex: 0 0 33.333%;
  box-sizing: border-box;
  padding: 20px;
}

@media (max-width: 768px) {
  .rblock-slide {
    flex: 0 0 360px;
  }
  .rblock-section {
    padding: 80px 0;
  }
  #reviews .certs {
    padding: 0;
    margin: 0;
  }
}

#reviews .btn {
  margin-top: 30px;
}

#reviews .btn:hover {
  background-color: #fff;
  color: var(--blue);
}

.rblock-content {
  background: #fff;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: center;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.rblock-text {
  font-size: 16px;
  color: #444;
  margin-bottom: 12px;
  min-height: 60px;
}

.rblock-author {
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--blue-dark);
  font-size: 14px;
}

.rblock-prev,
.rblock-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--blue-dark);
  color: #fff;

  cursor: pointer;
}
.rblock-prev {
  left: 10px;
}
.rblock-next {
  right: 10px;
}

.rblock-video-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.rblock-video-wrap video {
  height: 320px;
  display: block;
  border-radius: 20px;
  margin: 0 auto 20px;
}
.rblock-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  cursor: pointer;
}
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  animation: popupShow 0.3s ease;
}

.popup-close {
  position: absolute;
  right: 15px;
  top: 10px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #444;
  transition: 0.3s;
}
.popup-close:hover {
  color: #000;
  transform: scale(1.1);
}

.popup-body img {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.popup-body p {
  font-size: 17px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
}

.popup-body video {
  max-height: 400px;
  width: 100%;
  border-radius: 10px;
  display: block;
  margin-bottom: 15px;
}

@keyframes popupShow {
  from {
    transform: translateY(-15px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .popup-content {
    padding: 20px;
    max-width: 95%;
    max-height: 85vh;
  }

  .popup-body p {
    font-size: 15px;
  }

  .popup-close {
    font-size: 24px;
  }
  #reviews .btn:last-child {
    margin-top: 15px;
  }
  #reviews .btn {
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.faq {
  background: #fff;
  padding: 100px 15px;
}

.faq .title {
  font-size: 50px;
  margin-bottom: 60px;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 20px;
  padding: 20px;
  cursor: pointer;
  font-weight: 300;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
  color: var(--text);
}
.faq-question:hover {
  color: var(--blue);
}
.faq-icon {
  font-size: 28px;
  color: var(--blue-dark);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s ease,
    opacity 0.4s ease;
  opacity: 0;
  padding: 0 20px;
}
.faq-answer p,
.faq-answer ul {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.faq-item.active .faq-question {
  background-color: var(--blue-dark);
  color: #fff;
}
.faq-item.active .faq-answer {
  max-height: 1000px;
  opacity: 1;
  padding-bottom: 15px;
  padding-top: 20px;
}
.faq-item.active .faq-answer {
  color: var(--text);
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  content: "−";
}

.faq-answer strong {
  color: var(--blue-dark);
  text-transform: uppercase;
  font-weight: 300;
}

.faq-answer h6 {
  font-size: 16px;
}

.faq-answer hr {
  margin: 20px;
  color: var(--blue);
}
@media (max-width: 700px) {
  .faq {
    padding: 50px 15px;
  }
  .faq-question {
    font-size: 16px;
    padding: 14px 10px;
  }
  .faq-icon {
    font-size: 24px;
  }
  .faq-answer p,
  .faq-answer ul {
    font-size: 14px;
  }
}

footer {
  background: rgba(143, 175, 194, 0.85);
  color: #fff;
  padding: 50px 0 0;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer .container > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 25%;
  margin-top: -70px;
}

footer .container > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 25%;
}

footer .lang-selector {
  margin: 20px auto 0;
}

footer .lang-selector a.active {
  color: var(--text);
}

footer .social-block {
  margin-top: 20px;
}

footer .social-block .social-link {
  border-color: #fff;
  background-color: transparent;
}

footer .nav {
  display: flex;
  background: transparent;
  position: relative;
  height: auto;
}

footer .nav-list {
  gap: 15px;
}

footer .nav-list a {
  color: #fff;
  font-size: 14px;
}

footer .logo img {
  object-position: -5px 14px;
}

.bottom-footer {
  margin-top: 50px;
  padding: 5px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: var(--text);
  font-size: 14px;
}

.bottom-footer p {
  text-align: center;
}

.acc {
  width: 70px;
  margin: 30px 0 0;
}

.contac {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  margin-bottom: 20px;
}

.contracts {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  font-size: 15px;
  margin-top: 20px;
  font-family: var(--font-alt);
}

.contracts a {
  transition: color 0.3s ease;
}

.contracts a:hover {
  color: var(--blue);
}

.contac p {
  color: var(--text);
  transition: all 0.3s ease;
}

.contac p:hover a {
  color: #fff;
}

.text {
  font-size: 14px;
}

@media (max-width: 1048px) {
  footer .container {
    flex-direction: column;
  }
  .contac {
    margin-top: 30px;
  }
  footer .container > div,
  footer .container > div:last-child,
  footer .container > div:first-child {
    width: 95vw;
  }
  .text {
    max-width: 300px;
  }
  .contracts {
    flex-direction: column;
    margin-bottom: 30px;
  }
}

.contract header {
  background: none;
  height: auto;
  min-height: max-content;
  box-shadow: none;
}

.contract header::after {
  display: none;
}

.contract .section {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.contract .section .contac {
  text-align: left;
  align-items: flex-start;
}

.lang-selector {
  display: flex;
  gap: 4px;
  align-items: center;
}

.lang-selector a {
  text-decoration: none;
  transition: color 0.3s;
  font-size: 14px;
}

.lang-selector a.active {
  color: var(--blue-dark);
}

.lang-selector a:hover {
  color: var(--blue-dark);
}

/* LEGAL PAGE */

.legal-page {
  padding: 20px 0;
  background: #fff;
}

.legal footer {
  padding: 30px;
  text-align: center;
  font-size: 14px;
}

.legal-page .title {
  font-size: 64px;
  margin-bottom: 60px;
}

.legal-block {
  max-width: 800px;
  margin: 0 auto 50px;
  font-family: var(--font-alt);
}

.legal-block h2 {
  font-size: 28px;
  margin-bottom: 20px;
  letter-spacing: 2px;
  color: var(--blue-dark);
  font-family: var(--font-heading);
}

.legal-block p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.legal-block a {
  color: var(--blue-dark);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .legal-page .title {
    font-size: 25px;
    margin-bottom: 20px;
  }

  .legal-block h2 {
    font-size: 20px;
  }

  .legal-block p {
    font-size: 16px;
  }
}

.legal .logo {
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.6) 40%,
      rgba(255, 255, 255, 0.2) 100%
    ),
    var(--blue);
}

/* ===== BURGER ===== */
.burger {
  display: none;
  width: 28px; /* було 40 */
  height: 20px; /* було 28 */
  position: relative;
  cursor: pointer;
  z-index: 1100;
}

.burger span {
  position: absolute;
  left: 0;
  height: 2px;
  background: var(--blue-dark);
  transition: 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* different widths */
.burger span:nth-child(1) {
  top: 0;
  width: 100%;
}
.burger span:nth-child(2) {
  top: 9px; /* було 13 */
  width: 65%;
}
.burger span:nth-child(3) {
  bottom: 0;
  width: 80%;
}

/* ACTIVE → CROSS */
.burger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-14px);
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 9px;
  width: 100%;
}

@media (max-width: 1048px) {
  .burger {
    display: block;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);

    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;

    transition: right 0.5s ease;
    z-index: 1000;
  }

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

  .nav-list li {
    transform: translateY(30px);
    opacity: 0;
    transition: 0.4s ease;
  }

  .nav-list.active li {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-list a {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 3px;
  }

  /* hide desktop socials */
  header .social-block,
  header .lang-selector {
    display: none;
  }
}

/* MOBILE EXTRAS */
.nav-extra {
  display: none;
}

#clientModal h3 {
  font-weight: 400;
  margin-bottom: 30px;
  line-height: 1.4;
}

@media (max-width: 1048px) {
  .nav-extra {
    display: block;
    margin-top: 40px;
    text-align: center;
  }

  .mobile-socials .social-block {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
  }

  .mobile-lang .lang-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  .nav-list .social-block a {
    color: #fff;
  }

  .hero img {
    object-fit: contain;
    bottom: 0;
    height: auto;
    top: auto;
    position: relative;
  }

  .hero-content {
    padding-top: 100px;
    padding-bottom: 30px;
  }
  .hero h1 {
    font-size: 50px;
  }
  .subtitle {
    font-size: 16px;
  }
  .hero-text {
    font-size: 18px;
  }
  .btn {
    padding: 10px;
  }
  .hero {
    padding-bottom: 0;
    height: max-content;
    min-height: 100vh;
  }
  .title {
    font-size: 38px;
    margin-bottom: 20px;
  }
  .about-me {
    padding: 60px 0;
  }
  .lead,
  .about-block p {
    font-size: 20px;
  }
  h3.title {
    font-size: 24px;
    text-align: left;
  }
  .about-me .btn {
    max-width: 300px;
  }
  .clients {
    margin-top: 60px;
    margin-bottom: 30px;
  }
  .service-item .about-number {
    right: -10px;
    text-align: right;
    top: -5px;
    font-size: 100px;
  }
  .services,
  #reviews {
    padding: 60px 0;
  }
  .process-grid {
    padding-top: 70px;
  }

  #reviews .btn {
    margin: auto;
  }
  .rblock-content {
    max-width: 360px;
    margin: auto;
  }
  .faq .title {
    font-size: 25px;
    margin-bottom: 25px;
  }
  footer {
    padding-top: 100px;
  }
  .contac {
    font-size: 16px;
  }
  .text {
    margin-bottom: 10px;
  }
  .rblock-text {
    font-size: 14px;
  }
  #clientModal h3 {
    font-size: 20px;
    padding-top: 15px;
    margin-bottom: 10px;
  }
  .modal-content {
    padding: 30px 15px;
  }
  .modal-content p {
    font-size: 15px;
  }
  .certificates-block .logo img {
    width: 300px;
    margin: 0 auto 0;
  }
  .rblock-slide {
    flex: 0 0 100%;
  }

  .service-item {
    padding-top: 45px;
  }
}

.modal-content p {
  color: #444;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .rblock-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .rblock-track {
    display: flex;
  }

  .rblock-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
  }
}
