/* Bundled Component Styles */

/* --- Component: header --- */
/* ── Header ── */
.header {
  position: fixed;
  top: 14px;
  left: 0;
  width: 100%;
  padding-top: 0.875em;    /* 14px */
  padding-bottom: 0.875em; /* 14px */
  z-index: 9999;
}

.header__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.375em; /* 54px */
  position: relative;
}

/* ── Logo ── */
.header__logo {
  display: block;
  position: relative;
  flex-shrink: 0;
  width: 10.75em;  /* 172px */
  height: 3.375em; /* 54px */
  z-index: 9999;
}

.header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

/* ── Nav ── */
.header__nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 2.375em; /* 38px */
}

.header__nav-link {
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.header__nav-link:hover {
  opacity: 0.75;
}

/* ── CTA button ── */
.header__cta {
  flex-shrink: 0;
}

/* ── Burger button ── */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3125em; /* 5px */
  width: 3.375em; /* 54px */
  height: 3.375em; /* 54px */
  background: none;
  border: 1px solid var(--white);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.header__burger-line {
  display: block;
  width: 1.25em; /* 20px */
  height: 0.125em; /* 2px */
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── Responsive ≤1180px ── */
@media (max-width: 1180px) {
  .header__nav,
  .btn-ghost.header__cta {
    display: none;
  }

  .header__burger {
    display: flex;
    z-index: 9999;
  }

  /* Open state — fixed header bar above everything */
  .header--open {
    position: fixed;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 9999;
  }

  .header--open .header__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    z-index: 999;
    background: var(--dark);
    padding: 2em var(--space-wrapper) 6em;
    gap: 1.5em;
    overflow-y: auto;
    padding-top: 8em;
  }

  .header--open .header__nav-link {
    font-size: 1.25em;
    color: var(--white);
  }

  .header--open .btn-ghost.header__cta {
    display: flex;
    position: fixed;
    bottom: 2.5em;
    left: var(--space-wrapper);
    z-index: 1001;
  }

  /* Burger → X */
  .header--open .header__burger-line:nth-child(1) {
    transform: translateY(0.4375em) rotate(45deg);
  }

  .header--open .header__burger-line:nth-child(2) {
    opacity: 0;
  }

  .header--open .header__burger-line:nth-child(3) {
    transform: translateY(-0.4375em) rotate(-45deg);
  }
}


/* --- Component: hero-lead --- */
.hero-lead {
  display: flex;
  flex-direction: column;
  gap: 2em; /* 26px */
  color: var(--white);
}

.hero-lead__tag {
  font-weight: 500;
}

.hero-lead__title {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.hero-lead__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

strong.hero-lead__title-row {
  font-weight: inherit;
  isolation: isolate;
}

strong.hero-lead__title-row::before {
  content: '';
  position: absolute;
  z-index: -1;
  background: var(--red);
  width: 3.58em;   /* 358px ÷ 100px */
  height: 0.32em;  /* 32% від font-size */
  left: -0.12em;   /* -12px ÷ 100px */
  top: 0.68em;     /* 68px ÷ 100px */
}

.hero-lead__cta {
  display: flex;
  align-items: center;
  gap: 1.25em; /* 20px */
  flex-wrap: wrap;
  margin-bottom: 30px;
}

@media (max-width: 767.98px) {
  .hero-lead__cta{
    margin-bottom: 0;
  }
  .hero-lead__cta a{
    min-width: 100%;
  }
}


/* --- Component: hero-factoid --- */
/* ── hero-factoid ── */
.hero-factoid {
  display: flex;
  flex-direction: column;
  gap: 2.5em; /* 40px */
  width: 100%;
  color: var(--white);
}

/* ── line ── */
.hero-factoid__line {
  width: 100%;
  height: 1px;
  background-color: var(--white);
  opacity: 0.3;
}

/* ── list ── */
.hero-factoid__list {
  display: flex;
  align-items: center;
  gap: var(--space-grid-gap); /* 24px */
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  justify-content: space-between;
}

/* ── item ── */
.hero-factoid__item {
  display: flex;
  flex-direction: column;
  gap: 0.75em; /* 12px */
  min-width: 0;
}

.hero-factoid__item--shrink {
  flex: 0 0 auto;
}

/* ── value ── */
.hero-factoid__value {
  display: block;
}

/* ── label ── */
.hero-factoid__label {
  display: block;
}

/* ── Tablet (max-width: 1024px) ── */
@media (max-width: 1023.98px) {
  .hero-factoid__list {
    flex-wrap: wrap;
  }

  .hero-factoid__item {
    flex: 1 1 calc(50% - 1em);
  }

  .hero-factoid__item--shrink {
    flex: 1 1 calc(50% - 1em);
  }
}

/* ── Mobile (max-width: 768px) ── */
@media (max-width: 767.98px) {
  .hero-factoid {
    gap: 1.5em;
  }

  .hero-factoid__list {
    gap: 1em;
  }

  .hero-factoid__item {
    flex: 1 1 calc(50% - 0.5em);
    gap: 0.375em;
  }

  .hero-factoid__item--shrink {
    flex: 1 1 calc(50% - 0.5em);
  }
}


/* --- Component: partners --- */
.partners {
  background: var(--white);
}

.partners-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-title-gap);
}

.partners__tag {
  color: var(--red);
  font-weight: 500;
  line-height: 1;
}

.partners-list {
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.partners-list__track {
  display: flex;
  align-items: center;
  gap: 10.625em; /* 170px */
  will-change: transform;
}

.partners-item {
  flex-shrink: 0;
  height: 3.125em; /* 50px */
  display: flex;
  align-items: center;
}

.partners-item img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 767.98px) {
  .partners-list__track {
    gap: 5.625em; 
  }
}


/* --- Component: testimonials --- */
.testimonials {
  position: relative;
  background: var(--white);
}

.testimonials > .wrapper-bg {
  position: absolute;
  inset: 0;
}

.testimonials-bg {
  width: 100%;
  height: 100%;
  background: var(--blue);
}

.testimonials > .container {
  position: relative;
}

.testimonials-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-title-gap);
}

/* ── Title row ── */
.testimonials-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.testimonials__tag {
  color: var(--white);
  font-weight: 500;
  line-height: 1;
}

/* ── Pagination override ── */
.swiper-pagination {
  position: static;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.swiper-pagination-bullet {
  width: 18px;
  height: 18px;
  background: transparent;
  border: 1px solid var(--white);
  border-radius: 50%;
  opacity: 1;
  margin: 0 !important;
  flex-shrink: 0;
}

.swiper-pagination-bullet-active {
  background: var(--white);
}

/* ── Divider ── */
.testimonials-line {
  width: 100%;
  height: 1px;
  background: var(--grey-60);
}

/* ── Main layout ── */
.testimonials-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

/* ── Google rating card ── */
.testimonials-google {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  padding: 1em;
  background: var(--grey-5);
  flex-shrink: 0;
  width: 8.375em;  /* 134px */
}

.testimonials-google img {
  display: block;
  width: 5.897em;
  height: auto;
}

.testimonials-google__label {
  color: var(--blue);
  font-weight: 500;
  line-height: 1;
  width: 6.3125em;
}

.testimonials .swiper {
  width: 100%;
  overflow: hidden;
}

.testimonials .swiper-slide {
  display: flex;
  flex-direction: column;
  gap: var(--space-title-gap);
}

/* ── Quote ── */
.testimonials__quote {
  font-family: var(--font-body);
  font-size: 2.25em;
  line-height: var(--lh-caption-l);
  color: var(--grey-5);
  font-style: normal;
  margin: 0;
  font-weight: 400;
}

/* ── Author ── */
.testimonials-author {
  display: flex;
  align-items: center;
  gap: 1.25em;
}

.testimonials-photo {
  width: 5.5em;
  height: 5.5em;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonials-bio {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.testimonials-name {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-caption-m);
  line-height: var(--lh-caption-m);
  color: var(--grey-5);
}

.testimonials-role {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-body-s);
  line-height: var(--lh-body-s);
  color: var(--grey-30);
}

/* ── Nav — absolute at bottom-right of layout-col ── */
.swiper-nav {
  position: absolute;
  bottom: 18px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 1.875em; /* 30px */
  z-index: 2;
}

.testimonials .flex{
  display: flex;
  justify-content: center;
  margin-top: 4em;
}


@media (max-width: 767.98px) {
  .testimonials .flex{
    margin-top: 2em;
  }
  .testimonials .flex .btn{
    min-width: 100%;
  }
}


/* --- Component: active-projects --- */
.active-projects {
  position: relative;
  background: var(--grey-5);
  min-height: 71.875em; /* 1150px */
}

.active-projects > .wrapper-bg {
  position: absolute;
  inset: 0;
}

.active-projects-bg {
  width: 100%;
  height: 100%;
  background: var(--blue);
}

.active-projects > .container {
  position: relative;
}

/* ── Box ── */
.active-projects-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-title-gap);
}

/* ── Title row ── */
.active-projects-title {
  display: flex;
  align-items: center;
  width: 100%;
}

.active-projects__tag {
  color: var(--white);
  font-weight: 500;
  line-height: 1;
}

/* ── Divider ── */
.active-projects-line {
  width: 100%;
  height: 1px;
  background: var(--grey-60);
}

/* ── Card → see active-projects-card/style.css ── */


/* --- Component: active-projects-card --- */
/* ── Card ── */
.active-projects-card {
  display: flex;
  flex-direction: column;
  gap: 1em; /* 16px */
  border: 1px solid var(--grey-60);
  padding: var(--space-card-small);
  grid-column: 4;
}

/* ── Card info ── */
.active-projects-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.1875em; /* 3px */
}

.active-projects-card__label {
  color: var(--grey-30);
  font-weight: 500;
  line-height: 1;
}

.active-projects-card__number {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  line-height: var(--lh-h3);
  color: var(--white);
}

/* ── Card divider ── */
.active-projects-card__divider {
  width: 100%;
  height: 1px;
  background: var(--grey-60);
}

/* ── Card footer ── */
.active-projects-card__footer {
  display: flex;
  align-items: center;
  gap: 0.75em; /* 12px */
}

.active-projects-card__icon {
  display: block;
  width: 1.125em;  /* 18px */
  height: 1.125em; /* 18px */
  flex-shrink: 0;
}

.active-projects-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.active-projects-card__text {
  color: var(--white);
}

@media (max-width: 1435px) {
  .active-projects-card {
    grid-column: 3;
  }
}

@media (max-width: 1110px) {
  .active-projects-card {
    grid-column: 2;
  }
}

@media (max-width: 667px) {
  .active-projects-card {
    grid-column: 1;
  }
}


/* --- Component: big-card-info --- */
.big-card-info {
  display: flex;
  flex-direction: column;
  height: 25em;  /* 400px */
  box-sizing: border-box;
  padding: var(--space-card-big);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}

.big-card-info__bg {
  inset: 0;
  background-color: #4d4d4d;
}

.big-card-info__mask {
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  transition: background-color 0.4s ease;
}

/*.big-card-info:hover .big-card-info__mask {
  background-color: var(--blue);
}*/

.big-card-info__icon {
  align-self: flex-end;
  width: 3.4375em;  /* 55px */
  height: 3.4375em;
  flex-shrink: 0;
  transition: width 0.4s ease, height 0.4s ease;
}

/*.big-card-info:hover .big-card-info__icon {
  width: 6em;  
  height: 6em;
}*/

.big-card-info__text {
  margin-top: auto;  /* прилипає до низу */
  display: flex;
  flex-direction: column;
}

.big-card-info__title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  line-height: var(--lh-h3);
  color: var(--white);
}

/* grid-trick: висота 0 → природна без стрибків */
.big-card-info__desc-clip {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  transition: grid-template-rows 0.4s ease, margin-top 0.4s ease;
}

/*.big-card-info:hover .big-card-info__desc-clip {
  grid-template-rows: 1fr;
  margin-top: 1em;  
}*/

.big-card-info__desc {
  min-height: 0;  /* обов'язково для 0fr */
  overflow: hidden;
  color: var(--grey-30);
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}

/*.big-card-info:hover .big-card-info__desc {
  opacity: 1;
}*/


@media (hover: hover) {
  .big-card-info:hover .big-card-info__mask     { background-color: var(--blue); }
  .big-card-info:hover .big-card-info__icon     { width: 6em; height: 6em; }
  .big-card-info:hover .big-card-info__desc-clip{ grid-template-rows: 1fr; margin-top: 1em; }
  .big-card-info:hover .big-card-info__desc     { opacity: 1; }
}

/* активний стан — перший тап на мобі (і як fallback) */
.big-card-info.is-active .big-card-info__mask      { background-color: var(--blue); }
.big-card-info.is-active .big-card-info__icon      { width: 6em; height: 6em; }
.big-card-info.is-active .big-card-info__desc-clip { grid-template-rows: 1fr; margin-top: 1em; }
.big-card-info.is-active .big-card-info__desc      { opacity: 1; }
.big-card-info.is-active .big-card-info__mask      { opacity: 1; }


@media (max-width: 768px) {
  .big-card-info{
    padding: 1.5rem;
  }
  .big-card-info.is-active .big-card-info__icon {
    width: 5em;
    height: 5em;
  }
}


/* --- Component: what-we-do --- */
/* ── what-we-do ── */
.what-we-do {
  background: var(--white);
}

.what-we-do__tag {
  color: var(--red);
  font-family: var(--font-body);
  font-size: var(--text-caption-s);
  line-height: var(--lh-caption-s);
  font-weight: 500;
  white-space: nowrap;
}



/* --- Component: card --- */
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6.5em; /* 104px */
  padding: var(--space-card-small);
  background-color: var(--white);
  width: 100%;
}

.card__info {
  display: flex;
  flex-direction: column;
  gap: 0.75em; /* 12px */
  color: var(--black);
}

.card__value {
  display: block;
}

.card__label {
}


/* --- Component: footer --- */
.footer {
  position: relative;
  background: var(--grey-5);
}

.footer > .wrapper-bg {
  position: absolute;
  inset: 0;
}

.footer__bg {
  width: 100%;
  height: 100%;
  background: var(--dark);
}

.footer > .container {
  position: relative;
  padding-bottom: 1.5em; /* 24px */
}

/* ── Box ── */
.footer__box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 19.5em; /* 312px = 592px band − 2×140px padding */
  gap: 7.5em; /* 120px */
}

/* ── Top row: logo + nav ── */
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3.75em; /* 60px row gap when nav wraps */
}

.footer__logo-wrap {
  flex-shrink: 0;
  width: 15.125em; /* 242px */
}

/* ── Nav group ── */
.footer__nav {
  display: flex;
  gap: 1.5625em; /* 25px */
  align-items: flex-start;
  flex-shrink: 0;
}

/* ── Nav columns ── */
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 2em; /* 32px */
}

.footer__col--menu,
.footer__col--social {
  width: 12.125em; /* 194px */
}

.footer__col--contacts {
  width: 18.9375em; /* 303px */
}

.footer__col-title {
  color: var(--grey-30);
  font-weight: 500;
  line-height: 1;
}

/* ── Links ── */
.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25em; /* 20px */
}

.footer__contacts{
  max-width: 14em;
}

.footer__link {
  color: var(--white);
  text-decoration: none;
  text-underline-offset: 3px;
}

.footer__link:hover {
  text-decoration: underline;
}

/* ── Bottom bar ── */
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1.875em; /* 30px */
}

.footer__divider {
  width: 100%;
  height: 1px;
  background: var(--grey-60);
}

.footer__copy {
  color: var(--grey-30);
}

.footer__logo-wrap img {
  max-width: 100%;
  height: auto;
}

/* ── Tablet: nav wraps to full width ── */
@media (max-width: 1024px) {
  .footer__nav {
    flex: 0 0 100%;
    justify-content: space-between;
    flex-shrink: 1;
  }

  .footer__col--menu,
  .footer__col--contacts,
  .footer__col--social {
    width: auto;
    flex: none;
  }
}

/* ── Mobile: nav columns stack ── */
@media (max-width: 667px) {
  .footer__nav {
    flex-wrap: wrap;
    gap: 2em 1em; 
  }

  .footer__col {
    width: auto;
    flex: none;
  }

  .footer__col:first-child{
    width: 100%;
  }


  .footer > .container{
    padding-top: 2.5em;
  }

  .footer__links{
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5em 0;
  }

  .flex-column{
    flex-direction: column;
    gap: 1.5em;
  }

  .footer__links li{
    flex-basis: 50%;
    max-width: 50%;
  }

  .flex-column li{
    flex-basis: 100%;
    max-width: 100%;
  }

  .footer__box{
    gap: 4em;
  }

}


/* --- Component: form-input --- */
.form-input {
  display: flex;
  flex-direction: column;
  gap: 0.75em; /* 12px */
}

.form-input__label {
  color: var(--black);
}

.form-input__field {
 
}

.form-input__input {
  all: unset;
  width: 100%;
  color: var(--black);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  background: var(--white);
  height: 4.3125em; /* 69px */
  padding: 1.5em 1.25em; /* 24px 20px */
  box-sizing: border-box;
}

.form-input__input::placeholder {
  color: var(--grey-30);
}


/* --- Component: form-checkbox --- */
/* ── Checkbox (CF7) ── */
.form-checkbox {
  display: block;
}

/* кожен пункт списку = рядок */
.form-checkbox .wpcf7-list-item {
  display: block;
  margin: 0; /* CF7 додає свій margin-left */
}
.form-checkbox .wpcf7-list-item + .wpcf7-list-item {
  margin-top: 0.75em; /* 12px між пунктами, якщо їх кілька */
}

/* клікабельний рядок: бокс + текст */
.form-checkbox .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 1em; /* 16px */
  cursor: pointer;
}

/* сам input перетворюємо на квадрат */
.form-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 1.5em;  /* 24px */
  height: 1.5em; /* 24px */
  flex-shrink: 0;
  border: 1px solid var(--blue);
  background: transparent;
  position: relative;
  cursor: pointer;
}

/* checked — синя заливка + галочка */
.form-checkbox input[type="checkbox"]:checked {
  background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12l5 5L19 7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1em; /* 16px */
}

/* focus-стан для доступності */
.form-checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* текст пункту */
.form-checkbox .wpcf7-list-item-label {
  font-family: var(--font-body);
  font-size:   var(--text-body-s); /* 16px */
  line-height: var(--lh-body-s);
  color: var(--black);
}
