/* Fonts */
@font-face {
  font-family: "Work Sans";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("fonts/WorkSans-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("fonts/WorkSans-SemiBold.woff2") format("woff2");
}

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Onest", sans-serif;
  font-weight: 400;
  color: #fff;
  background-color: #202020;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  overflow-wrap: break-word;
}

p {
  overflow-wrap: break-word;
}

/* Variables */
:root {
  --color-accent: #ec0533;
  --color-text: #fff;
  --color-bg: #202020;
}

/* Layout */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 60px;
  padding-right: 60px;
}

@media (max-width: 1024px) {
  .container {
    padding-left: 36px;
    padding-right: 36px;
  }
}

@media (max-width: 767px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ===== Header ===== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 60px;
  padding-bottom: 60px;
}

.header__logo {
  flex-shrink: 0;
  position: relative;
  z-index: 101;
}

/* Nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: 60px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 60px;
}

.nav__link {
  font-size: 18px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.nav__link:hover {
  color: var(--color-accent);
}

.menu-arrow {
  display: inline-block;
  transition: transform 0.3s;
}

.has-submenu:hover .menu-arrow {
  transform: rotate(180deg);
}

/* Header phone */
.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  white-space: nowrap;
  transition: color 0.3s;
}

.header__phone:hover {
  color: var(--color-accent);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher__link {
  font-size: 18px;
  transition: color 0.3s;
}

.lang-switcher__link:hover {
  color: var(--color-accent);
}

.lang-switcher__link.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== Burger ===== */
.burger {
  display: none;
  width: 60px;
  height: 60px;
  background: var(--color-accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  z-index: 101;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 29px; }
.burger span:nth-child(3) { top: 40px; }

/* Open: lines → cross */
.burger.active span:nth-child(1) {
  animation: lineToX1 0.4s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.burger.active span:nth-child(2) {
  animation: lineToXmid 0.4s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.burger.active span:nth-child(3) {
  animation: lineToX3 0.4s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

/* Close: cross → squeeze → expand */
.burger.closing span:nth-child(1) {
  animation: xToLine1 0.6s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.burger.closing span:nth-child(2) {
  animation: xToLineMid 0.6s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.burger.closing span:nth-child(3) {
  animation: xToLine3 0.6s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

/* Open keyframes */
@keyframes lineToX1 {
  0% { top: 18px; transform: translateX(-50%) rotate(0); }
  50% { top: 29px; transform: translateX(-50%) rotate(0); }
  100% { top: 29px; transform: translateX(-50%) rotate(45deg); }
}

@keyframes lineToXmid {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes lineToX3 {
  0% { top: 40px; transform: translateX(-50%) rotate(0); }
  50% { top: 29px; transform: translateX(-50%) rotate(0); }
  100% { top: 29px; transform: translateX(-50%) rotate(-45deg); }
}

/* Close keyframes: cross squeezes to one line, then splits into three */
@keyframes xToLine1 {
  0% { top: 29px; transform: translateX(-50%) rotate(45deg); }
  40% { top: 29px; transform: translateX(-50%) rotate(0); }
  100% { top: 18px; transform: translateX(-50%) rotate(0); }
}

@keyframes xToLineMid {
  0% { opacity: 0; }
  40% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes xToLine3 {
  0% { top: 29px; transform: translateX(-50%) rotate(-45deg); }
  40% { top: 29px; transform: translateX(-50%) rotate(0); }
  100% { top: 40px; transform: translateX(-50%) rotate(0); }
}

/* ===== Mobile Menu ===== */
@media (max-width: 1024px) {
  .burger {
    display: block;
  }

  .header__inner {
    flex-wrap: wrap;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 100px 36px 140px;
    background: var(--color-bg);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.4s cubic-bezier(0.77, 0, 0.18, 1) 0.3s,
      visibility 0.4s 0.3s;
    z-index: 100;
  }

  .header__nav.open {
    opacity: 1;
    visibility: visible;
    transition:
      opacity 0.4s cubic-bezier(0.77, 0, 0.18, 1),
      visibility 0.4s;
  }

  .header__phone,
  .lang-switcher {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s cubic-bezier(0.77, 0, 0.18, 1),
      visibility 0.3s,
      transform 0.3s cubic-bezier(0.77, 0, 0.18, 1);
  }

  .header__phone {
    bottom: 100px;
    font-size: 24px;
  }

  .lang-switcher {
    bottom: 60px;
  }

  .header__phone.open,
  .lang-switcher.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition:
      opacity 0.5s cubic-bezier(0.77, 0, 0.18, 1) 0.3s,
      visibility 0.5s 0.3s,
      transform 0.5s cubic-bezier(0.77, 0, 0.18, 1) 0.3s;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
    width: 100%;
    text-align: center;
  }

  .nav__item {
    overflow: hidden;
  }

  .nav__link {
    font-size: 32px;
    justify-content: center;
    padding: 16px 0;
    transform: translateY(40px);
    opacity: 0;
    transition:
      transform 0.5s cubic-bezier(0.77, 0, 0.18, 1),
      opacity 0.5s cubic-bezier(0.77, 0, 0.18, 1),
      color 0.3s;
  }

  .header__nav.open .nav__item:nth-child(1) .nav__link {
    transition-delay: 0.1s;
  }
  .header__nav.open .nav__item:nth-child(2) .nav__link {
    transition-delay: 0.15s;
  }
  .header__nav.open .nav__item:nth-child(3) .nav__link {
    transition-delay: 0.2s;
  }
  .header__nav.open .nav__item:nth-child(4) .nav__link {
    transition-delay: 0.25s;
  }

  .header__nav.open .nav__link {
    transform: translateY(0);
    opacity: 1;
  }

  .header__phone {
    font-size: 24px;
  }

  .lang-switcher__link {
    font-size: 22px;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 767px) {
  .header__inner {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .nav__link {
    font-size: 26px;
  }

  .header__phone {
    font-size: 20px;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 240px;
  padding-bottom: 80px;
}

.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero__content {
  width: 100%;
}

.hero__title {
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 58px;
  line-height: 1.15;
  max-width: 1100px;
  animation: fadeInTop 0.8s ease-out both;
}

.hero__title .accent {
  color: var(--color-accent);
}

.hero__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  /* margin-top: 24px; */
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.hero__subtitle {
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.4;
}

/* CTA Button */
.hero__cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hero__cta-label {
  font-family: "Onest", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  padding: 20px 40px;
  border: 1px solid var(--color-accent);
  border-radius: 100px 0 0 100px;
  border-right: none;
  margin-right: -90px;
  padding-right: 100px;
  opacity: 0;
  animation: slideFromRight 0.7s ease-out 1.3s both;
}

.hero__cta-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.3s;
  animation: fadeIn 0.6s ease-out 0.8s both;
}

.hero__cta-circle:hover {
  transform: scale(1.05);
}

.hero__cta-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  object-fit: contain;
  opacity: 1;
}

.hero__cta-text {
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
  position: relative;
  z-index: 1;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideFromRight {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1024px) {
  .hero {
    padding-top: 180px;
    padding-bottom: 60px;
  }

  .hero__title {
    font-size: 42px;
  }

  .hero__subtitle {
    font-size: 20px;
  }

  .hero__cta-label {
    font-size: 20px;
    padding: 16px 30px;
  }

  .hero__cta-circle {
    width: 150px;
    height: 150px;
  }

  .hero__cta-text {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  .hero {
    padding-top: 150px;
    padding-bottom: 50px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 22px;
  }

  .hero__subtitle br {
    display: none;
  }

  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
  }

  .hero__cta {
    width: 100%;
  }

  .hero__cta-label {
    flex: 1;
    font-size: 18px;
    padding: 12px 20px;
    margin-right: -70px;
    padding-right: 80px;
  }

  .hero__cta-circle {
    width: 120px;
    height: 120px;
  }

  .hero__cta-text {
    font-size: 20px;
  }
}

/* ===== Popup ===== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s,
    visibility 0.4s;
}

.popup-overlay.open {
  opacity: 1;
  visibility: visible;
}

.popup {
  background: var(--color-bg);
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.18, 1);
}

.popup__border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.popup__border path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.popup-overlay.open .popup__border path {
  stroke-dashoffset: 0;
}

.popup-overlay:not(.open) .popup__border path {
  transition: none;
}

.popup-overlay.open .popup {
  transform: scale(1) translateY(0);
}

.popup__close {
  position: absolute;
  top: -16px;
  right: -16px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.3s;
}

.popup__close:hover {
  transform: scale(1.1);
}

/* Form State */
.popup__form-state {
  padding: 40px;
}

.popup__success-state {
  display: none;
  padding: 40px;
  text-align: center;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.popup.success {
  display: flex;
  flex-direction: column;
}

.popup.success .popup__success-state {
  display: flex;
  flex: 1;
}

.popup__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.popup__label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "Onest", sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.popup__input {
  background: #272727;
  border: 2px solid #494949;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
  color: #fff;
  outline: none;
  transition: border-color 0.3s;
}

.popup__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.popup__input:focus {
  border-color: #888;
}

.popup__input.error {
  border-color: var(--color-accent);
}

.popup__textarea {
  min-height: 120px;
  resize: vertical;
}

.popup__error {
  display: none;
  font-size: 14px;
  color: var(--color-accent);
}

.popup__input.error + .popup__error {
  display: block;
}

.popup__submit {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 18px;
  font-family: "Onest", sans-serif;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 10px;
}

.popup__submit:hover {
  background: #d00430;
}

/* Success State */
.popup__success-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.popup__success-logo {
  margin-bottom: 40px;
}

.popup__success-title {
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.popup__success-text {
  font-family: "Onest", sans-serif;
  font-size: 18px;
  line-height: 1.4;
  opacity: 0.8;
  margin-bottom: 40px;
}

.popup.success .popup__form-state {
  display: none;
}

@media (max-width: 767px) {
  .popup {
    max-width: 100%;
  }

  .popup__form-state,
  .popup__success-state {
    padding: 30px 24px;
  }

  .popup__close {
    top: -12px;
    right: -6px;
  }
}

/* ===== Images Carousel ===== */
.images-carousel {
  overflow: hidden;
  padding: 0 0 60px;
}

.carousel__track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: carouselScroll 30s linear infinite;
}

.carousel__slide {
  flex-shrink: 0;
  width: calc((100vw - 22px * 1.8) / 2.8);
  height: 355px;
  overflow: hidden;
  cursor: pointer;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.carousel__slide:hover img {
  transform: scale(1.05);
}

@keyframes carouselScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.carousel__track:hover {
  animation-play-state: paused;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
  cursor: pointer;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1;
  transition: transform 0.3s;
}

.lightbox__close:hover {
  transform: scale(1.1);
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  transition: transform 0.3s;
  z-index: 1;
}

.lightbox__arrow--prev {
  left: calc((100vw - 70%) / 4);
}

.lightbox__arrow--next {
  right: calc((100vw - 70%) / 4);
}

.lightbox__arrow:hover {
  transform: translateY(-50%) scale(1.2);
}

.lightbox__img {
  max-width: 70%;
  max-height: 90vh;
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.3s, opacity 0.3s;
}

.lightbox.open .lightbox__img {
  transform: scale(1);
}

.lightbox__img.fade {
  opacity: 0;
}

@media (max-width: 767px) {
  .lightbox {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
    justify-items: center;
    align-items: center;
    padding: 60px 16px 40px;
    gap: 0;
    touch-action: pan-y pinch-zoom;
  }

  .lightbox__img {
    max-width: 100%;
    max-height: 65vh;
    grid-column: 1;
    grid-row: 1;
  }

  .lightbox__arrow {
    position: static;
    transform: none;
    grid-row: 2;
  }

  .lightbox__arrow--prev,
  .lightbox__arrow--next {
    grid-row: 2;
    grid-column: 1;
    margin-top: 24px;
  }

  .lightbox__arrow--prev {
    justify-self: center;
    margin-right: 80px;
  }

  .lightbox__arrow--next {
    justify-self: center;
    margin-left: 80px;
  }

  .lightbox__arrow:hover {
    transform: scale(1.2);
  }
}

@media (max-width: 1024px) {
  .carousel__slide {
    width: calc((100vw - 22px * 1.2) / 2.2);
    height: 280px;
  }
}

@media (max-width: 767px) {
  .images-carousel {
    padding: 40px 0;
  }

  .carousel__track {
    gap: 11px;
  }

  .carousel__slide {
    width: calc((100vw - 11px * 0.5) / 1.5);
    height: 220px;
  }

  .lightbox {
    padding: 20px;
  }
}

/* ===== What We Do ===== */
.what-we-do {
  position: relative;
  padding-top: 85px;
  padding-bottom: 120px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.what-we-do__icon {
  position: absolute;
  width: 20vw;
  height: auto;
  pointer-events: none;
}

.what-we-do__icon--left {
  left: -10vw;
  bottom: 0;
}

.what-we-do__icon--right {
  right: -10vw;
  top: 0;
  transform: scaleX(-1);
}

.what-we-do__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.what-we-do__title {
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.2;
}

.what-we-do__list {
  display: grid;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  row-gap: 10px;
  column-gap: 60px;
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.4;
  margin-top: 32px;
  padding-left: 120px;
}

.what-we-do__list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.what-we-do__list li::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .what-we-do__title {
    font-size: 40px;
  }

  .what-we-do__list {
    font-size: 28px;
    column-gap: 40px;
    padding-left: 40px;
  }
}

@media (max-width: 767px) {
  .what-we-do {
    padding-top: 32px;
    padding-bottom: 50px;
  }

  .what-we-do__icon {
    width: 40vw;
  }

  .what-we-do__icon--left {
    left: -20vw;
    bottom: auto;
    top: 0;
  }

  .what-we-do__icon--right {
    right: -20vw;
    top: auto;
    bottom: 0;
  }

  .what-we-do__content {
    align-items: flex-start;
  }

  .what-we-do__title {
    font-size: 28px;
  }

  .what-we-do__title br {
    display: none;
  }

  .what-we-do__list {
    grid-template-rows: auto;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    font-size: 18px;
    row-gap: 8px;
    padding-left: 32px;
    padding-top: 32px;
    margin: 0;
  }

  .what-we-do__list li {
    gap: 8px;
  }

  .what-we-do__list li::before {
    width: 8px;
    height: 8px;
  }
}

/* ===== our values ===== */

.our-values {
  overflow: hidden;
}

.our-values__content {
  max-width: 920px;
  margin-top: 14px;
}

.our-values__title {
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.2;
  display: block;
  width: fit-content;
  position: relative;
}

.our-values__title.accent {
  color: var(--color-accent);
}

.our-values__title:before {
  content: "";
  width: 10.5px;
  height: 10.5px;
  border-radius: 50%;
  background: var(--color-text);
  position: absolute;
  left: -24px;
  top: 50%;
}

.our-values__title:after {
  content: "";
  position: absolute;
  height: 1.5px;
  width: 1000%;
  background: var(--color-text);
  left: calc(-1000% - 20px);
  top: 50%;
  transform: translateY(4px);
}

.our-values__title.accent:before {
  background: var(--color-accent);
  left: auto;
  right: -24px;
}

.our-values__title.accent:after {
  background: var(--color-accent);
  left: auto;
  width: 1000%;
  right: calc(-1000% - 20px);
}

.our-values__text {
  margin-top: 16px;
  padding-left: 120px;
  font-size: 18px;
  font-family: "Onest", sans-serif;
  font-weight: 400;
  line-height: 1.2;
}

@media (max-width: 1024px) {
  .our-values__title {
    font-size: 32px;
  }

  .our-values__text {
    padding-left: 80px;
  }
}

@media (max-width: 767px) {
  .our-values__content {
    padding-left: 44px;
  }

  .our-values__title {
    font-size: 28px;
  }

  .our-values__title:before {
    width: 8px;
    height: 8px;
    left: -16px;
  }

  .our-values__title:after {
    height: 1px;
    left: calc(-1000% - 12px);
  }

  .our-values__title.accent:before {
    right: -16px;
  }

  .our-values__title.accent:after {
    right: calc(-1000% - 12px);
  }

  .our-values__text {
    font-size: 18px;
    margin-top: 24px;
    max-width: 70%;
    margin-left: auto;
    padding-left: 0;
  }
}

/* ===== Services ===== */
.services {
  padding-top: 150px;
  padding-bottom: 100px;
}

.services__inner {
  border: 1px solid var(--color-accent);
  border-radius: 20px;
  padding: 60px;
  display: flex;
  gap: 60px;
}

.services__title {
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.2;
  flex: 0 0 40%;
}

.services__accordion {
  flex: 1;
  min-width: 0;
}

.services__item {
  border-bottom: 1px solid var(--color-accent);
}

.services__item:last-child {
  border-bottom: none;
}

.services__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 28px 0;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.services__name {
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: 30px;
  transition: color 0.3s;
}

.services__header:hover .services__name {
  color: var(--color-accent);
}

.services__item.active .services__header .services__name {
  color: #fff;
}

.services__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  position: relative;
  flex-shrink: 0;
}

.services__icon::before,
.services__icon::after {
  content: "";
  position: absolute;
  background: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  transition: transform 0.3s;
}

.services__icon::before {
  width: 16px;
  height: 2px;
}

.services__icon::after {
  width: 2px;
  height: 16px;
}

.services__item.active .services__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Accordion body */
.services__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.services__item.active .services__body {
  max-height: 600px;
}

.services__list {
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.services__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
}

.services__list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .services__inner {
    padding: 40px;
    gap: 40px;
  }

  .services__title {
    font-size: 32px;
  }

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

@media (max-width: 767px) {
  .services {
    padding-top: 100px;
    padding-bottom: 50px;
  }

  .services__inner {
    flex-direction: column;
    padding: 30px 20px;
    gap: 30px;
  }

  .services__title {
    font-size: 28px;
    width: auto;
  }

  .services__name {
    font-size: 22px;
  }

  .services__list li {
    font-size: 16px;
  }

  .services__header {
    padding: 20px 0;
  }

  .services__icon {
    width: 32px;
    height: 32px;
  }

  .services__icon::before {
    width: 12px;
  }

  .services__icon::after {
    height: 12px;
  }
}

/* ===== Clients ===== */
.clients {
  padding-top: 100px;
  padding-bottom: 120px;
  overflow: hidden;
}

.clients__title {
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 40px;
}

.clients__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: clientsScroll 25s linear infinite;
}

.clients__slide {
  flex-shrink: 0;
  background: #fff;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 30px;
  height: 100px;
  width: 220px;
}

.clients__slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.clients__slide--large {
  padding: 10px 15px;
}

.clients__slide--large img {
  transform: scale(1.3);
}

@keyframes clientsScroll {
  0% {
    transform: translateX(-25%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 1024px) {
  .clients {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .clients__title {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .clients {
    padding-top: 50px;
    padding-bottom: 60px;
  }

  .clients__title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .clients__track {
    gap: 7px;
  }

  .clients__slide {
    width: calc((100vw - 7px * 1.5) / 2.5);
    height: 80px;
    padding: 16px 20px;
  }
}

/* ===== Gallery ===== */
.gallery {
  padding-top: 120px;
  padding-bottom: 120px;
}

.gallery__title {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.gallery__tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
}

.gallery__tab {
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: 30px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s;
}

.gallery__tab:hover {
  color: var(--color-accent);
}

.gallery__tab.active {
  color: var(--color-accent);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.gallery__grid.fade-in .gallery__item {
  animation: galleryFadeIn 0.5s ease-out both;
}

.gallery__item {
  overflow: hidden;
  cursor: pointer;
}

.gallery__item.hidden {
  display: none;
}

.gallery__item.fade-new {
  animation: galleryFadeIn 0.5s ease-out both;
}

@keyframes galleryFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__more {
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 32px;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s;
}

.gallery__more:hover {
  color: var(--color-accent);
}

.gallery__more.hidden {
  display: none;
}

@media (max-width: 1024px) {
  .gallery {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .gallery__title {
    font-size: 32px;
  }

  .gallery__tab {
    font-size: 24px;
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .gallery {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .gallery__title {
    font-size: 28px;
  }

  .gallery__tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    gap: 20px;
    scrollbar-width: none;
  }

  .gallery__tabs::-webkit-scrollbar {
    display: none;
  }

  .gallery__tab {
    font-size: 18px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery__item:nth-child(n+5):not(.gallery__item.hidden) {
    display: none;
  }

  .gallery.show-all .gallery__item:nth-child(n+5):not(.gallery__item.hidden) {
    display: block;
  }
}

/* ===== Why ===== */
.why {
  padding-top: 120px;
  padding-bottom: 120px;
}

.why__title {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.why__logo {
  display: inline-block;
  transform: translateY(3px);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px 40px;
}

.why__item:nth-child(1) { grid-column: 1; }
.why__item:nth-child(2) { grid-column: 3; }
.why__item:nth-child(3) { grid-column: 2; }
.why__item:nth-child(4) { grid-column: 4; }
.why__item:nth-child(5) { grid-column: 1; }
.why__item:nth-child(6) { grid-column: 3; }

.why__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
}

.why__item-title {
  font-family: 'Onest', sans-serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.why__item-text {
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .why__title {
    font-size: 32px;
  }

  .why__item-title {
    font-size: 26px;
  }

  .why__grid {
    gap: 40px 30px;
  }

}

@media (max-width: 767px) {
  .why {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .why__title {
    font-size: 28px;
    flex-wrap: wrap;
  }

  .why__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why__item:nth-child(n) {
    grid-column: 1;
  }

  .why__item-title {
    font-size: 24px;
  }

  .why__item-text {
    max-width: 100%;
  }
}

/* ===== Video BG Section ===== */
.video-bg-section {
  position: relative;
  overflow: hidden;
}

.video-bg-section__video {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 1200px;
  object-fit: cover;
  z-index: -1;
  transform: rotate(180deg);
}

/* ===== Footer ===== */
.footer {
  padding-bottom: 60px;
}

.footer__line {
  border: none;
  height: 1px;
  background: var(--color-accent);
  margin-bottom: 40px;
}

.footer__content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer__logo {
  flex-shrink: 0;
}

.footer__address,
.footer__contacts {
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
}

.footer__contacts a {
  transition: color 0.3s;
}

.footer__contacts a:hover {
  color: var(--color-accent);
}

.footer__social-title {
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.footer__social-links {
  display: flex;
  gap: 12px;
}

.footer__social-links a {
  transition: transform 0.3s;
}

.footer__social-links a:hover {
  transform: scale(1.1);
}

@media (max-width: 767px) {
  .footer {
    padding-bottom: 40px;
  }

  .footer__content {
    flex-direction: column;
    gap: 24px;
  }

  .footer__address,
  .footer__contacts {
    font-size: 14px;
  }
}
