

html{
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  overflow-x: hidden;
}
*, *::after, *::before{
  box-sizing: inherit;
}
a{
  color: inherit;
  text-decoration: none;
}
ul{
  list-style-type: none;
}

body{
  font-size: 16px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}




/* ===================== CONTAINER ===================== */

.container{
  width: min(1320px, 100% - clamp(32px, 6vw, 120px));
  margin-inline: auto;
}


.header{
  position: relative;

  min-height: 100svh;
  overflow: hidden;

  color: #f5f5f5;

  padding-top: clamp(110px, 9vw, 140px);
}
.header__video{
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  z-index: -2;
}
.header__overlay{
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      rgba(0,0,0,.45),
      rgba(0,0,0,.55)
    );

  z-index: -1;
}
.header__sticky{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;

  background: rgba(10,10,10,.78);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(255,255,255,.06);
}


.header__top{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  gap: clamp(20px, 3vw, 60px);
  padding-block: clamp(18px, 2vw, 30px);
}


.menu{
  justify-self: start;
}

.menu__list{
  display: flex;
  gap: clamp(18px, 2.2vw, 40px);

  text-transform: uppercase;
  font-size: clamp(14px, .95vw, 18px);
  font-weight: 300;
}

/* Мобільний Бургер */
.menu-btn {
  display: none;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 1px;
  background: #f5f5f5;
  position: absolute;
  left: 0;
  transition: transform 0.3s, top 0.3s;
}

.menu-btn span:first-child { top: 0; }
.menu-btn span:last-child { top: 100%; }

.menu-btn.active span:first-child { transform: rotate(45deg); top: 50%; }
.menu-btn.active span:last-child { transform: rotate(-45deg); top: 50%; }


.menu__link{
  position: relative;
  color: #f5f5f5;
  transition: color .3s ease;
}

.menu__link::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;

  width: 0;
  height: 1px;

  background: rgba(255,255,255,.9);

  transition: width .35s ease;
}

.menu__link:hover::after{
  width: 100%;
}


.logo{
  justify-self: center;
}

.logo__img{
  width: clamp(150px, 12vw, 220px);

  height: auto;
  display: block;

  object-fit: contain;
}

.social{
  justify-self: end;

  display: flex;
  align-items: center;
  gap: clamp(12px, 1vw, 20px);
}

.social__link img{
  width: 22px;
  height: 22px;

  opacity: .9;

  transition:
    transform .3s ease,
    opacity .3s ease;
}

.social__link:hover img{
  transform: translateY(-2px);
  opacity: 1;
}

/* HERO */

.hero{
  min-height: calc(100svh - 140px);

  display: flex;
  align-items: center;
}

.hero__content{
  max-width: 900px;

  margin-left: 0;
  margin-right: auto; /* Вирівнювання по лівій стороні */

  animation: heroFade 1.4s ease;
}

.hero__label{
  margin-bottom: 24px;

  letter-spacing: .35em;
  text-transform: uppercase;

  font-size: 12px;
  font-weight: 300;

  color: rgba(255,255,255,.7);
}


/* TITLE */

.hero__title{
  font-size: clamp(32px, 5.5vw, 72px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
  text-wrap: balance;

  text-shadow:
    0 10px 40px rgba(0,0,0,.35);
}


/* SUBTITLE */

.hero__text{
  max-width: 540px;

  font-size: clamp(18px, 1.2vw, 24px);
  line-height: 1.7;
  font-weight: 300;

  color: rgba(255,255,255,.82);

  margin-bottom: 50px;
}

/* MESSENGER BTNS CONTAINER */
.hero__messenger-btns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* BUTTON */

.hero__btn{
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 20px 42px;

  overflow: hidden;

  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;

  background:
    rgba(255,255,255,.08);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition:
    transform .45s ease,
    background .45s ease,
    border-color .45s ease;

  isolation: isolate;
}


/* LIGHT SWEEP */

.hero__btn::before{
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      120deg,
      transparent 20%,
      rgba(255,255,255,.35) 50%,
      transparent 80%
    );

  transform: translateX(-160%);

  transition: transform .9s ease;

  z-index: -1;
}


.hero__btn span{
  position: relative;

  color: #fff;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
}


/* HOVER */

.hero__btn:hover{
  transform: translateY(-4px);

  background:
    rgba(255,255,255,.14);

  border-color:
    rgba(255,255,255,.3);
}


.hero__btn:hover::before{
  transform: translateX(160%);
}


/* FADE ANIMATION */

@keyframes heroFade{
  from{
    opacity: 0;
    transform: translateY(40px);
  }

  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================== 1600+ DESKTOP ===================== */

@media (min-width: 1600px){

  .container{
    width: min(1440px, 100% - 140px);
  }
}

/* ===================== 1920+ DESKTOP ===================== */

@media (min-width: 1920px){

  .container{
    width: min(1520px, 100% - 160px);
  }
}

/* ===================== 2560+ DESKTOP ===================== */

@media (min-width: 2560px){

  .container{
    width: min(1720px, 100% - 200px);
  }
}



/***************************************************************services*/

.services{
  padding-block: clamp(90px, 10vw, 150px);
  background: #171717;
  color: #f5f5f5;
}


.services__title{
  text-align: center;
  text-transform: uppercase;
  margin-bottom: clamp(50px, 5vw, 80px);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 300;
  letter-spacing: 0.12em;
}

.services__list{
  border-top: 1px solid #f5f5f5;
}


.services__item{
  border-bottom: 1px solid #f5f5f5;
}


.services__header{
  width: 100%;
  background: none;
  border: none;

  padding-block: clamp(18px, 1.6vw, 26px);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  cursor: pointer;
  color: inherit;
  text-align: left;
}

.services__item-title{
  text-transform: uppercase;

  font-size: clamp(18px, 1.4vw, 26px);
  font-weight: 300;
  letter-spacing: .06em;
}

.services__icon{
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
}

.services__icon::before,
.services__icon::after{
  content: "";
  position: absolute;
  background: #f5f5f5;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: .35s ease;
}

.services__icon::before{
  width: 100%;
  height: 2px;
}

.services__icon::after{
  width: 2px;
  height: 100%;
}

.services__item.active .services__icon::after{
  transform: translate(-50%, -50%) scaleY(0);
}

.services__content{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s cubic-bezier(.22,1,.36,1);
}

.services__content-inner{
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: .4s ease;
}

.services__item.active .services__content{
  grid-template-rows: 1fr;
}

.services__item.active .services__content-inner{
  opacity: 1;
  transform: translateY(0);
  padding-bottom: 20px;
}


.services__row{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;

  padding-block: clamp(12px, 1.2vw, 16px);

  border-top: 1px solid rgba(255,255,255,.2);

  font-size: clamp(15px, 1vw, 17px);
}

.services__row span:last-child{
  font-weight: 500;
  white-space: nowrap;
}


.services__header:hover .services__item-title{
  opacity: .7;
}

/* ===================== 1440+ AIR ===================== */

@media (min-width:1600px){

  .services__row{
    gap: 40px;
  }
}

/* ===================== TABLET ===================== */

@media (max-width:1024px){

  .services{
    padding-block: 80px;
  }

  .services__row{
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .services__row span:last-child{
    opacity: .7;
  }
}

/* ===================== MOBILE ===================== */

@media (max-width:640px){

  .services__item-title{
    font-size: 18px;
  }

  .services__title{
    font-size: 26px;
  }
}


/************************************************about doctor*/
/* ===== ЗАГАЛЬНЕ ===== */
.doctor-section {
  background: #0f0f0f;
  color: #fff;
  padding: 120px 0 60px;
}

.doctor-flex {
  display: flex;
  gap: 80px;
  position: relative;
}

/* ===== LEFT: STICKY PHOTO ===== */
.doctor-aside {
  position: relative;
  flex: 0 0 400px;
  min-width: 320px;
}

.doctor-photo {
  position: sticky;
  top: 200px;
  aspect-ratio: 3 / 4;
  z-index: 1;
}

/* Основний контейнер для фото з ефектом засклення */
.doctor-photo::before {
  content: "";
  position: absolute;
  inset: -15px; /* Рамка виступає за межі фото */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  z-index: -1;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  background: #111;
  
  transition:
    transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

/* Елегантна віньєтка зверху фото */
.doctor-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.3) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255, 255, 255, 0.05) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* hover */
.doctor-photo:hover img {
  transform: scale(1.04); /* Плавне збільшення без зміни кольорів */
}

.doctor-photo:hover::before {
  transform: scale(1.06); /* Рамка плавно розширюється */
  border-color: rgba(255, 255, 255, 0.3);
}

/* ===== RIGHT: CONTENT ===== */
.doctor-content {
  flex: 1 1 0;
  min-width: 0;
}

/* ===== TYPO ===== */
.doctor-title { /* Змінено h1 на h2 в HTML, тому цей клас тепер для h2 */
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.doctor-subtitle {
  font-size: 14px;
  letter-spacing: .35em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 40px;
}

.info-block {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ЗАГОЛОВКИ ===== */
.info-title {
  text-align: center;
  text-transform: uppercase;
  margin-bottom: clamp(40px, 4vw, 60px);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 300;
  letter-spacing: 0.12em;
}

/* ===== СПИСКИ ===== */
.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  font-size: 16px;
  line-height: 1.7;
  opacity: .85;
  margin-bottom: 20px;
  padding-left: 22px;
  position: relative;
}

.info-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #cfcfcf;
}

/* ===== Анімація появи ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0);
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 80px;
  left: 50%;
  width: 1px;
  height: calc(100% - 180px);
  background: rgba(255,255,255,.3);
  transform: translateX(-50%);
  transition: none;
}

.timeline.is-visible::before {
  height: calc(100% - 180px);
}

/* ===== TIMELINE ITEMS ===== */
.timeline-item {
  width: 45%;
  margin-bottom: 80px;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item.reveal[data-side="left"] {
  transform: translateX(-60px) translateY(40px);
}

.timeline-item.reveal[data-side="right"] {
  transform: translateX(60px) translateY(40px);
}

.timeline-item.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.timeline-item[data-side="left"] {
  margin-right: auto;
  text-align: right;
}

.timeline-item[data-side="right"] {
  margin-left: auto;
}

.timeline-item h4 {
  font-weight: 300;
  font-size: 18px;
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 14px;
  opacity: 0.6;
}

.year {
  font-size: 12px;
  letter-spacing: .3em;
  opacity: .65;
  display: inline-block;
  margin-bottom: 10px;
}

/* ===== ADAPTIVE: TABLET ===== */
@media (max-width: 1024px) {
  .doctor-flex {
    flex-direction: column;
    gap: 40px;
  }

  .doctor-aside {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    max-width: 320px; /* Трохи зменшуємо для кращого вигляду на малих екранах */
    margin: 0 auto 30px;
  }

  .doctor-photo {
    position: relative;
    top: 0; /* Скидаємо відступ у 200px, щоб фото не зсувалося вниз */
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline::before {
    left: 20px;
    transform: none;
  }

  .timeline-item {
    width: 100%;
    padding-left: 40px;
    margin-bottom: 40px;
    text-align: left !important;
  }

  .timeline-item.reveal[data-side="left"],
  .timeline-item.reveal[data-side="right"] {
    transform: translateX(0) translateY(40px);
  }
}

/* ===== ADAPTIVE: MOBILE ===== */
@media (max-width: 640px) {
  .doctor-title {
    font-size: 28px;
  }

  .doctor-subtitle {
    font-size: 14px;
    letter-spacing: .25em;
  }

  .info-title {
    font-size: 20px;
    margin-bottom: 30px;
  }

  .info-list li {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .timeline-item h4 {
    font-size: 16px;
  }

  .timeline-item p {
    font-size: 12px;
  }

  .year {
    font-size: 10px;
    letter-spacing: .25em;
    margin-bottom: 6px;
  }
}

@media (max-width: 768px) {
  .doctor-section {
    padding: 60px 0;
  }
}

/************************************************sertificates*/
.certificates {
  background: #0f0f0f;
  color: #fff;
  padding: 60px 0 100px;
  overflow: hidden;
}

.carousel {
  position: relative;
  height: 45rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  perspective: 1000px;
}

.carousel__item {
  position: absolute;
  top: 50%;
  left: 50%;
  height: auto;
  max-height: 40rem;
  width: auto;   /* Ширина буде залежати від пропорцій фото */
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%) scale(.1);
  opacity: 0;
  z-index: 0;
  transition: all .5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel__item img {
  width: auto;
  height: auto;
  max-width: 100%; /* Гарантує, що фото не вийде за межі контейнера по ширині */
  max-height: 40rem;
  display: block;
  transition: filter 0.5s ease;
}

.carousel__item--main {
  transform: translate(-50%, -50%) scale(1);
  z-index: 10;
  opacity: 1;
  cursor: pointer;
}

.carousel__item--left {
  transform: translate(-120%, -50%) scale(.85) rotateY(15deg);
  z-index: 5;
  opacity: 0.5;
  filter: grayscale(100%) blur(2px);
}

.carousel__item--right {
  transform: translate(20%, -50%) scale(.85) rotateY(-15deg);
  z-index: 5;
  opacity: 0.5;
  filter: grayscale(100%) blur(2px);
}

.carousel__item--main:hover {
  transform: translate(-50%, -50%) scale(1.03);
}

.carousel__btns {
  position: absolute;
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  pointer-events: none;
}

.carousel__btn {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  height: 6rem;
  width: 6rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel__btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.carousel__btn svg {
  height: 2.4rem;
  width: 2.4rem;
}

/* Адаптивність для каруселі сертифікатів */
@media (max-width: 768px) {
  .carousel {
    height: 38rem; /* Зменшуємо загальну висоту */
  }
  .carousel__item {
    height: auto;
    max-height: 34rem;
    max-width: 80vw;
  }
  .carousel__item img {
    max-height: 34rem;
  }
  .carousel__item--left {
    transform: translate(-105%, -50%) scale(0.8) rotateY(10deg);
  }
  .carousel__item--right {
    transform: translate(5%, -50%) scale(0.8) rotateY(-10deg);
  }
  .carousel__btns {
    padding: 0 15px; /* Щоб стрілки не прилипали до країв */
  }
}

@media (max-width: 480px) {
  .certificates {
    padding: 40px 0 50px; /* Зменшуємо вертикальні відступи секції */
  }
  .carousel {
    height: 60vh; /* Збільшуємо висоту каруселі відносно екрана */
    min-height: 350px;
  }
  .carousel__item {
    width: 100%;
    height: 100%;
    max-width: 100vw; 
    max-height: 100%;
    border: none; /* Прибираємо рамку, щоб фото було на весь екран */
    box-shadow: none; /* Прибираємо важкі тіні для чистоти */
    padding: 0;
  }
  .carousel__item img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain; /* Фото займає максимум місця без обрізки */
  }
  .carousel__item--left,
  .carousel__item--right {
    opacity: 0 !important; /* Повністю ховаємо бокові слайди */
    visibility: hidden;
  }
  .carousel__btns {
    padding: 0 10px;
  }
  .carousel__btn {
    height: 4.5rem;
    width: 4.5rem;
    background: rgba(10, 10, 10, 0.4); /* Робимо кнопки ледь помітними поверх фото */
  }
}


/********************************************************************steps*/
.steps{
  padding: 70px 0 100px;
  background: #171717;
  color: #f5f5f5;
}
.steps__inner{
  display: flex;
  gap: 45px;
  align-items: center;
}

@media (max-width: 1024px) {
  .steps__inner {
    flex-direction: column;
    gap: 40px;
  }
  .steps__img { order: -1; max-width: 100%; }
}
.steps__content{
  max-width: 700px;
}
.steps__title{
  text-align: center;
  text-transform: uppercase;
  margin-bottom: clamp(50px, 5vw, 80px);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 1.2;
}
.steps__list{
  counter-reset: my-counter;
  list-style: none;
}
.steps__item{
  counter-increment: my-counter;
  position: relative;
  padding-left: 60px;
  
  /* Початковий стан для reveal */
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.steps__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Каскадна затримка для 7 елементів */
.steps__item:nth-child(1) { transition-delay: 0.1s; }
.steps__item:nth-child(2) { transition-delay: 0.2s; }
.steps__item:nth-child(3) { transition-delay: 0.3s; }
.steps__item:nth-child(4) { transition-delay: 0.4s; }
.steps__item:nth-child(5) { transition-delay: 0.5s; }
.steps__item:nth-child(6) { transition-delay: 0.6s; }
.steps__item:nth-child(7) { transition-delay: 0.7s; }

.steps__item::before{
  content: counter(my-counter);
  position: absolute;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 600;
  width: 40px;
  height: 40px;
  border: 1px solid #f5f5f5;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* Анімація цифри */
  transform: scale(0.6);
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: inherit;
}

.steps__item.is-visible::before {
  transform: scale(1);
}

.steps__item::after{
  content: '';
  width: 1px;
  background-color: #f5f5f5;
  position: absolute;
  left: 20px;
  top: 48px;
  height: 0; /* Початкова висота лінії */
  transition: height 1.2s ease-in-out;
  transition-delay: inherit;
}

.steps__item.is-visible::after {
  height: calc(100% - 56px);
}

.steps__item:last-child::after{
  display: none;
}

/* Преміальний ефект при наведенні на крок */
.steps__item:hover::before {
  border-color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  color: #fff;
}

.steps__img.reveal {
  transform: scale(0.95) translateX(20px);
  transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.steps__img.reveal.is-visible {
  transform: scale(1) translateX(0);
}

.steps__item-title{
  font-weight: 300;
  font-size: 24px;
  line-height: 28px;
  margin-bottom: 15px;
  padding-top: 7px;
}
.steps__item-text{
  padding-bottom: 36px;
}
.steps__img img{
  width: 100%;
  display: block;
}

/*****************************************************************catalog*/
.catalog{
  padding: clamp(80px, 8vw, 120px) 0;
  background-color: #0f0f0f;
  color: #f5f5f5;
}
.catalog__title{
  text-align: center;
  text-transform: uppercase;
  margin-bottom: clamp(50px, 5vw, 80px);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

@media (max-width: 1024px) {
  .catalog { padding: 60px 0; }
  .catalog__title { max-width: 100%; font-size: 32px; text-align: center; }
  .catalog__content { flex-direction: column; gap: 40px; }
  .catalog__img { max-width: 400px; }
  .catalog__form { max-width: 100%; width: 100%; }
}

.catalog__content{
  display: flex;
  align-items:center;
  justify-content: center;
  gap: clamp(30px, 5vw, 80px);
}
.catalog__img{
  max-width: 450px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  flex-shrink: 0;
}
.catalog__img img{
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}
.catalog__img:hover img {
  transform: scale(1.05);
}

.catalog__form{
  max-width: 530px;
  width: 100%;
}
.catalog__form-title{
  font-size: 28px;
  line-height: 33px;
  font-weight: 300;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.catalog__form-text{
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.5;
  margin-bottom: 50px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
}
.catalog__form-input {
  width: 100%;
  display: block;
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.05em;
  transition: all 0.4s ease;
  border-radius: 4px;
}

.catalog__form-input option {
  background-color: #0f0f0f;
  color: #fff;
}

.catalog__form-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
  font-size: 16px;
  font-weight: 300;
}

.catalog__form-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.6;
  cursor: pointer;
}

.catalog__form-status {
  margin-top: 15px;
  font-weight: 500;
}

.catalog__form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.catalog__form-labeltext {
  display: block;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
  opacity: 0.7;
  font-weight: 300;
}

.catalog__form-btn{
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 42px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: "Roboto", sans-serif;
  cursor: pointer;
  transition: all .45s ease;
  margin-top: 10px;
}

.catalog__form-btn:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.3);
  transform: translateY(-2px);
}

/* ефект before after */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 20px;
}

@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 280px; }

  .gallery:not(.is-opened) .ba:nth-child(n+5) {
    display: none;
  }
}


.gallery:not(.is-opened) .gallery-item--hidden {
  display: none;
}



.gallery-toggle {
  margin: 60px auto 0;
  background: none;
  border: none;
  color: #171717;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;

  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-toggle svg {
  transition: transform 0.4s ease;
}

.gallery-toggle.active svg {
  transform: rotate(180deg);
}

/* container */
.ba {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* images */
.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  border-radius: 10px; 
}

.ba__img--before {
  z-index: 1;
}

.ba__img--after {
  z-index: 2;
  clip-path: inset(0 0 0 50%);
}

/* divider */
.ba__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.7);

  z-index: 3;
  cursor: grab;
}

.ba__divider:active {
  cursor: grabbing;
}

/* circle */
.ba__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  width: 74px;
  height: 74px;
  border-radius: 50%;
  
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;

  display: flex;
  align-items: center;
  justify-content: center;

  user-select: none;
  pointer-events: auto;   
}





/***********************************************************************footer*/
.footer{
  padding: 60px 0 20px 0;
  background-color: #0f0f0f;
  color: #f5f5f5;
  font-weight: 300;
}
.footer__inner{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px clamp(40px, 6vw, 100px);
  margin-bottom: 50px;
}

@media (max-width: 1024px) {
  .footer__inner {
    flex-direction: column;
    padding-right: 0;
    gap: 40px;
    align-items: center;
    text-align: center;
  }
  .footer__logo { margin-right: 0; }
  .footer__social-link, .footer__contacts-link { justify-content: center; }
}

.footer__logo{
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  margin-right: 0;
}
.footer__nav-list{
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer__social{
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 15px;

}
.footer__social-link {
  display: flex;
  align-items: center;
  gap: 10px; 
  font-size: 16px;
}

.footer__social-link-img {
  width: 1.2em;
  height: 1.2em;
  display: block;
  object-fit: contain;
}
.footer__contacts{
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer__contacts-link{
  display: flex;
  align-items: center;
  gap: 10px; 
  font-size: 16px;
}
.footer__contacts-link-img {
  width: 1em; /* Зроблено розміром з текст */
  height: 1em; /* Зроблено розміром з текст */
  display: block;
  object-fit: contain;
  /* align-self: start; */ /* Видалено, щоб іконка вирівнювалась по центру з текстом */
}
/* СТИЛІ МОБІЛЬНОГО МЕНЮ */
@media (max-width: 1024px) {
  .menu-btn { display: block; }
  
  .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100svh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
    overflow-x: hidden;
  }

  .menu.active { transform: translateX(0); }

  .menu__list {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .menu__link { font-size: 24px; }
}

/* ===================== FAQ SECTION ===================== */
.faq {
  padding-block: clamp(90px, 10vw, 150px);
  background: #171717;
  color: #f5f5f5;
}

.faq__title {
  text-align: center;
  text-transform: uppercase;
  margin-bottom: clamp(50px, 5vw, 80px);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 300;
  letter-spacing: 0.12em;
}

.faq__container {
  max-width: 900px;
  margin-inline: auto;
  border-top: 1px solid #f5f5f5;
}

/* Використання існуючої логіки аккордеонів із services для консистентності */
.faq__item {
  border-bottom: 1px solid #f5f5f5;
}

.faq__header {
  width: 100%;
  padding-block: clamp(18px, 1.6vw, 26px);
  background: none;
  border: none;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 300;
  transition: opacity 0.3s;
}

/* Логіка відкриття для FAQ (перевикористання стилів контенту services) */
.faq__item.active .services__content {
  grid-template-rows: 1fr;
}

.faq__item.active .services__content-inner {
  opacity: 1;
  transform: translateY(0);
  padding-bottom: 25px;
}

.faq__item.active .services__icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.faq__header:hover {
  opacity: 0.7;
}

/* ===================== CASES GALLERY ===================== */
.cases-gallery {
  padding-block: clamp(80px, 8vw, 150px);
  background-color: #fff;
  color: #171717;
}

.cases-gallery .catalog__title {
  margin-top: 0;
}

.cases-gallery .gallery-toggle {
  color: #171717;
}

.timeline:not(.is-opened) .timeline-item--hidden {
  display: none;
}

.timeline-toggle {
  margin: 60px auto 0;
  background-color: #0f0f0f;
  border: none;
  color: #f5f5f5;
  padding: 10px 20px;
  position: relative;
  z-index: 2;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-toggle svg {
  transition: transform 0.4s ease;
}

.timeline-toggle.active svg {
  transform: rotate(180deg);
}

/* ===================== A11Y / UTILITIES ===================== */

/* Приховування контенту лише візуально (доступне для скрінрідерів) */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*
  Захист від «невидимого» контенту: анімації появи (reveal/timeline/steps)
  ховають елементи лише коли працює JS. Якщо JS вимкнено або не завантажився —
  показуємо весь контент.
*/
html:not(.js) .reveal,
html:not(.js) .timeline-item,
html:not(.js) .steps__item,
html:not(.js) .steps__img.reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* Видимий фокус для клавіатурної навігації */
:focus-visible {
  outline: 2px solid #4da3ff;
  outline-offset: 3px;
  border-radius: 4px;
}

/* На темних секціях фокус світлий */
.header__sticky :focus-visible,
.menu :focus-visible,
.carousel:focus-visible,
.carousel__btn:focus-visible,
.timeline-toggle:focus-visible,
.catalog__form-btn:focus-visible {
  outline-color: #ffffff;
}

/* Повага до системного налаштування «зменшити рух» */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .timeline-item,
  .steps__item,
  .steps__img.reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
