/* ==========================================================================
   🌐 БАЗОВІ СТИЛІ ТА ЗОБНУЛЕННЯ
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.5;
  background: #fff8fb;
  overflow-x: hidden;
  color: #264566;
  font-family: "Alethia Next", sans-serif;
  font-size: 14px;
}

@font-face {
  font-family: "Alethia Next";
  src: url("assets/fonts/AlethiaNext-Light.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Soyuz Grotesk";
  src: url("assets/fonts/SoyuzGroteskBold.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

a {
  text-decoration: none;
  color: inherit;
  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}

a:hover {
  color: #d9ab83;
}

ul,
ol {
  list-style: none;
}

img {
  display: block;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* ==========================================================================
   🧩 КОМПОНЕНТИ 
   ========================================================================== */

/* --- HEADER --- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff8fb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 25px 100px;
}

.leftNav {
  display: flex;
  gap: 25px;
}

.rightNav {
  display: flex;
  gap: 25px;
  align-items: center;
}

.header-spacer {
  display: none;
}

.headerSignUpButton {
  color: #fff;
  border-radius: 2px;
  background: #264566;
  padding: 10px 20px;
}

.headerSignUpButton:hover {
  background: #d9ab83;
  color: #1c344e;
  transform: translateY(-2px);
}

.burger-btn,
.mobile-menu,
.close-menu-btn {
  display: none;
}

.menu-active {
  overflow: hidden;
}

/* --- HERO --- */
.hero {
  display: flex;
  justify-content: center;
  gap: 100px;
  align-items: center;
  padding: 0 100px;
  background: #264566;
  box-shadow: 0 4px 4px 0 rgba(38, 69, 102, 0.25) inset;
  height: 88vh;
  position: relative;
}

.heroSubTitleContainer {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #fff;
  font-size: 12px;
  margin-bottom: 20px;
}

.heroTitle {
  color: #fff;
  font-size: 72px;
  max-width: 650px;
  margin-bottom: 25px;
}

.heroDescription {
  color: #fff;
  font-size: 24px;
  max-width: 650px;
  margin-bottom: 25px;
}

.heroListItem {
  display: flex;
  gap: 10px;
  align-items: center;
}

.heroButton1 {
  display: block;
}

.heroButton1:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(217, 171, 131, 0.4);
}

.heroButton2 {
  display: block;
  border-radius: 2px;
  border: 1px solid #e4e4e4;
  padding: 15px 45px;
  color: #e4e4e4;
}

.heroButton2:hover {
  background: rgba(228, 228, 228, 0.1);
  border-color: #d9ab83;
  color: #d9ab83;
  transform: translateY(-2px);
}

.heroUzori {
  position: absolute;
  left: 0;
  bottom: 0;
}

/* --- ABOUT --- */
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px;
}

.aboutSubTitle {
  color: #d9ab83;
  font-size: 16px;
}

.aboutTitle {
  color: #264566;
  font-size: 48px;
  line-height: 1.2;
  margin: 15px 0 20px 0;
}

.aboutText,
.aboutLead,
.descriptionList {
  color: #264566;
  font-size: 18px;
  line-height: 1.6;
}

.descriptionList {
  list-style: inside;
  margin-top: 10px;
}

.aboutContent {
  margin-left: 60px;
  max-width: 675px;
}

.divider {
  margin: 35px 0;
  border: none;
  background: rgba(38, 69, 102, 0.2);
  height: 1px;
}

.about-features {
  display: flex;
  align-items: flex-start;
  gap: 65px;
}

.featureTitle {
  color: #264566;
  font-size: 18px;
  margin-bottom: 8px;
}

.featureText {
  color: #d9ab83;
  font-family: "Soyuz Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  max-width: 230px;
}

/* --- TEAM --- */
.team {
  padding: 100px;
  background: #e4e4e4;
}

.teamHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

.teamSubTitle {
  margin-left: 5px;
}

.teamTEXT {
  color: #d9ab83;
  font-size: 14px;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.teamHeaderMainTitle {
  color: #264566;
  font-size: 48px;
  line-height: 1.2;
}

.teamHeaderDisc {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  max-width: 405px;
}

.teamList {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.teamItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
  border-radius: 2px;
  background: #fff;
  padding-bottom: 30px;
  width: 380px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.teamItem:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(38, 69, 102, 0.1);
}

.teamIMG {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.teamTitle {
  color: #264566;
  font-size: 24px;
  margin-top: 20px;
}

.teamText {
  color: #d9ab83;
  font-family: "Soyuz Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.teamDescription {
  color: #264566;
  font-size: 15px;
  opacity: 0.8;
}

/* --- SERVICES --- */
/* --- SERVICES --- */
.services {
  padding: 100px;
}

.services-tabs {
  display: flex;
  gap: 40px;
  border-bottom: 2px solid rgba(38, 69, 102, 0.2);
  margin-bottom: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative; /* Фіксуємо батьківський блок для абсолютної позиції лінії */
}

.tab-btn {
  color: #264566;
  font-size: 16px;
  padding: 10px 10px 15px 10px;
  position: relative;
  opacity: 0.6;
  background: transparent;
  cursor: pointer;
}

.tab-btn:hover {
  opacity: 1;
}

.tab-btn.active {
  opacity: 1;
  color: #d9ab83;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px; /* Ставимо рівно на рівень сірого бордера */
  left: 0;
  width: 100%;
  height: 2px;
  background: #d9ab83;
  z-index: 10; /* Задаємо високий індекс, щоб жовта лінія гарантовано перекривала сіру */
}
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}

.service-card {
  width: calc((100% - 20px) / 2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(38, 69, 102, 0.3);
  padding: 25px 30px;
  background: #fff;
  transition: all 0.3s ease;
  min-height: 100px;
}

.service-card:hover {
  border-color: #d9ab83;
  box-shadow: 0 5px 15px rgba(38, 69, 102, 0.05);
  transform: translateX(5px);
}

.service-name {
  color: #264566;
  font-size: 18px;
  margin-bottom: 5px;
}

.service-duration {
  color: #264566;
  opacity: 0.6;
  font-size: 13px;
}

.service-price {
  color: #264566;
  font-size: 18px;
  font-weight: bold;
}

.services-action {
  display: flex;
  justify-content: center;
}

.services-btn {
  background: #d9ab83;
  color: #1c344e;
  padding: 15px 52px;
  font-size: 14px;
  border-radius: 2px;
}

.services-btn:hover {
  background: #264566;
  color: #fff;
  transform: translateY(-2px);
}

/* --- PORTFOLIO --- */
.portfolio {
  padding: 100px;
  background: #e4e4e4;
}

.portfolio-slider-container {
  width: 100%;
  max-width: 1190px;
  margin: 0 auto;
}

.portfolio-slider-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  justify-content: center;
}

.portfolio-slide {
  height: 440px;
  background: #264566;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}

.portfolio-slide:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-arrows {
  display: none;
}

/* --- REVIEWS --- */
.reviews {
  padding: 100px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 0 auto;
}

.review-card {
  border-radius: 2px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-3px);
}

/* Математична логіка чергування кольорів для нескінченної сітки (Десктоп) */
.review-card:nth-child(4n+1),
.review-card:nth-child(4n+4) {
  background: #264566;
  color: #fff;
}

.review-card:nth-child(4n+2),
.review-card:nth-child(4n+3) {
  background: #e4e4e4;
  color: #264566;
}

.review-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.review-author {
  padding-top: 20px;
}

.review-card:nth-child(4n+1) .review-author,
.review-card:nth-child(4n+4) .review-author {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.review-card:nth-child(4n+2) .review-author,
.review-card:nth-child(4n+3) .review-author {
  border-top: 1px solid rgba(38, 69, 102, 0.2);
}

.author-name {
  font-size: 18px;
  margin-bottom: 5px;
}

.author-procedure {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}

.reviews-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;

}

  .teamTextP {

    color: #D9AB83;
font-family: "Soyuz Grotesk";
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 20px; /* 125% */
    }


.reviews-btn {
  padding: 15px 45px;
  font-size: 14px;
  border-radius: 2px;
  font-family: "Alethia Next", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.reviews-btn.btn-dark {
  background: #264566;
  color: #fff;
  border: 1px solid #264566;
}

.reviews-btn.btn-dark:hover {
  background: #d9ab83;
  border-color: #d9ab83;
  color: #1c344e;
  transform: translateY(-2px);
}

.reviews-btn.btn-light {
  background: transparent;
  color: #264566;
  border: 1px solid #264566;
}

.reviews-btn.btn-light:hover {
  background: rgba(38, 69, 102, 0.05);
  transform: translateY(-2px);
}

/* --- FOOTER --- */
.footer {
  background: #264566;
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25) inset;
  position: relative;
  padding: 60px 100px;
  display: flex;
  justify-content: space-between;
}

.uzori {
  position: absolute;
  bottom: 0;
  left: 0;
}

.footerNav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footerNavItem {
  color: rgba(228, 228, 228, 0.78);
  font-size: 14px;
  line-height: 20px;
}

.footerText {
  color: rgba(228, 228, 228, 0.78);
  font-size: 16px;
  line-height: 1.5;
  max-width: 450px;
  margin-top: 20px;
}

.footerNavIte {
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.footerA {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Утиліти */
.qert {
  max-width: 1000px;
}

/* ==========================================================================
   ⚙️ АНІМАЦІЇ ТА ОБСЕРВЕРИ
   ========================================================================== */
.anim-fade {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.anim-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-load-header {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeDown 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.anim-load-left {
  opacity: 0;
  transform: translateX(-40px);
  animation: fadeRight 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  animation-delay: 0.3s;
}

.anim-load-right {
  opacity: 0;
  transform: translateX(40px) scale(0.98);
  animation: fadeLeft 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  animation-delay: 0.5s;
}

@keyframes fadeDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeLeft {
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* ==========================================================================
   📱 АДАПТИВНІСТЬ (МЕДІА ЗАПИТИ)
   ========================================================================== */
@media (min-width: 768px) {
  .heroOksanaImgPhone {
    display: none;
  }
  .heroButton1 {
    border-radius: 2px;
    background: #d9ab83;
    padding: 15px 52px;
    color: #1c344e;
  }
}

@media (max-width: 768px) {
  /* --- HEADER MOBILE --- */
  .menu-active .header {
    box-shadow: none;
  }

  .leftNav,
  .rightNav {
    display: none;
  }

  .header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 25px 20px;
    height: 70px;
  }

  .headerlogo {
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .headerLogoSvg {
    max-width: 130px;
  }

  .burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1003;
  }

  .burger-btn span {
    width: 100%;
    height: 2px;
    background-color: #264566;
    transition: all 0.3s ease;
  }

  .burger-btn.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .burger-btn.open span:nth-child(2) {
    opacity: 0;
  }
  .burger-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .close-menu-btn {
    display: flex;
    position: absolute;
    top: 25px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1005;
    justify-content: center;
    align-items: center;
  }

  .close-menu-btn span {
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #264566;
  }

  .close-menu-btn span:nth-child(1) {
    transform: rotate(45deg);
  }
  .close-menu-btn span:nth-child(2) {
    transform: rotate(-45deg);
  }

  .mobile-menu {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff8fb;
    z-index: 1004;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
  }

  .mobile-nav-list a {
    font-size: 24px;
    color: #264566;
    font-weight: 400;
  }

  .mobile-nav-list .headerSignUpButton {
    color: #fff;
    margin-top: 15px;
    font-size: 18px;
    padding: 15px 50px;
  }

  /* --- HERO MOBILE --- */
  .hero {
    flex-direction: column;
    height: auto;
    padding: 40px 20px;
    gap: 40px;
    text-align: center;
  }

  .heroListItem {
    justify-content: center;
    flex-direction: column;
    gap: 15px;
  }

  .heroTitle {
    font-size: 42px;
    line-height: 1.2;
  }

  .heroDescription {
    font-size: 18px;
  }

  .heroOksanaImg {
    display: none;
  }

  .heroOksanaImgPhone {
    width: 100%;
    max-width: 350px;
    display: block;
    pointer-events: none;
  }

  .heroButton1,
  .heroButton2 {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    max-width: 600px;
    width: 100%;
    padding: 20px 45px;
  }

  .heroButton1 {
    background: #d9ab83;
    color: #1c344e;
  }

  .heroButton2 {
    border: 1px solid #e4e4e4;
    color: #e4e4e4;
  }

  .heroUzori {
    width: 100%;
    object-fit: cover;
    pointer-events: none;
  }

  /* --- ABOUT MOBILE --- */
  .about {
    flex-direction: column;
    padding: 60px 20px;
    text-align: center;
  }

  .aboutContent {
    margin-left: 0;
    margin-top: 40px;
  }

  .about > img {
    width: 100%;
    max-width: 350px;
  }

  .aboutSubTitle {
    justify-content: center;
        color: #d9ab83;
    font-size: 14px;
  }

  .aboutTitle {
    color: #264566;
    font-size: 36px;
    line-height: 1.2;
    margin: 15px 0 20px 0;
}

.aboutText, .aboutLead, .descriptionList {
  font-size: 16px;
}

  .about-features {
    gap: 30px;
  }

  .featureText {
    text-align: center;
  }

  /* --- TEAM MOBILE --- */
  .team {
    padding: 60px 20px;
  }

  .teamHeader {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .teamHeaderMainTitle {
    font-size: 36px;
  }

  .teamItem {
    width: 100%;
  }

  /* --- SERVICES MOBILE --- */
  .services {
    padding: 60px 20px;
  }

  .services-tabs {
    flex-direction: row;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid rgba(38, 69, 102, 0.2);
    margin-bottom: 30px;
    padding-bottom: 0px;
    width: 100%;
    justify-content: center;
  }

  .tab-btn {
    width: auto;
    padding: 10px 5px 15px 5px;
    font-size: 14px;
    flex-shrink: 0;
    outline: none; /* Прибирає чорну рамку при кліку */
  }

  .tab-btn.active::after {
    width: 100%;
    left: 0;
  }

  .service-card {
    width: 100%;
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    min-height: auto;
    gap: 10px;
  }

  .service-name {
    font-size: 16px;
  }

  .service-price {
    font-size: 16px;
    white-space: nowrap;
  }

  .services-action {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .services-btn {
            max-width: 1000px;
        width: 100%;
        display: flex;
        justify-content: center;
  }

  .teamTextP {

    color: #D9AB83;
font-family: "Soyuz Grotesk";
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 20px; /* 125% */
    }


  @media (max-width: 768px) {

}

  /* --- PORTFOLIO MOBILE --- */
  .portfolio {
    padding: 60px 20px;
  }

  .portfolio-slider-track {
    display: flex;
    grid-template-columns: none;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .portfolio-slider-track::-webkit-scrollbar {
    display: none;
  }

  .portfolio-slide {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 400 / 457;
    scroll-snap-align: start;
    border-radius: 0;
    box-shadow: none;
  }

  .portfolio-slide:hover {
    transform: none;
  }

  .portfolio-arrows {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
  }

  .portfolio-arrow-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #264566;
    color: #fff;
    padding: 20px 0;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .portfolio-arrow-btn:active {
    background: #1c344e;
  }

  .portfolio-arrow-btn svg {
    width: 48px;
    height: 16px;
  }

  /* --- REVIEWS MOBILE --- */
  .reviews {
    padding: 60px 20px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .review-card {
    padding: 30px 20px;
  }

  /* Скидаємо десктопні стилі перед застосуванням мобільних */
  .review-card:nth-child(4n+1),
  .review-card:nth-child(4n+2),
  .review-card:nth-child(4n+3),
  .review-card:nth-child(4n+4) {
    background: transparent;
    color: inherit;
  }

  /* Для мобільних телефонів фарбуємо кожну непарну картку (1, 3, 5, 7...) */
  .review-card:nth-child(odd) {
    background: #264566;
    color: #fff;
  }

  .review-card:nth-child(odd) .review-author {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* Для мобільних телефонів фарбуємо кожну парну картку (2, 4, 6, 8...) */
  .review-card:nth-child(even) {
    background: #e4e4e4;
    color: #264566;
  }

  .review-card:nth-child(even) .review-author {
    border-top: 1px solid rgba(38, 69, 102, 0.2);
  }

  .reviews-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    width: 100%;
  }

  .reviews-btn {
    width: 100%;
    max-width: 600px;
    padding: 20px 0;
    text-align: center;
  }

  /* --- FOOTER MOBILE --- */
  .footer {
    flex-direction: column;
    padding: 60px 20px 80px;
    gap: 40px;
    text-align: center;
  }

  .footerLogo {
    margin: 0 auto;
  }

  .footerText {
    margin: 15px auto 0;
  }

  .footerA {
    justify-content: center;
  }

  .uzori {
    width: 100%;
    object-fit: cover;
  }
}