@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=TikTok+Sans:opsz,wght@12..36,300..900&display=swap');

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow: hidden;
  scroll-behavior: smooth;
}

html,
body {
  height: 100vh;
}

body.page-template-page-new-home2 {
  font-family: "TikTok Sans", sans-serif;
  background-color: #171717;
}

a {
  color: inherit;
  text-decoration: none;
}

.link {
  position: relative;
  z-index: 1;
  will-change: transform;
  display: block;
  transition: color .2s ease-out .2s;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.link::before {
  content: attr(data-text);
  color: #fff;
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: clip-path .4s cubic-bezier(.455, .03, .515, .955);
  will-change: clip-path;
  backface-visibility: hidden;
}

.link:not(:hover)::before {
  clip-path: inset(0 0 100% 0)
}

.link:hover::before {
  clip-path: inset(0 0 0 0)
}


.container {
  max-width: 1750px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

.btn {
  display: inline-flex;
  text-align: left;
  align-items: center;
  background-color: transparent;
  color: #fff;
  outline: none;
  border: 1px solid transparent;
  transition: background-color .3s ease, color .3s ease;
  cursor: pointer;
  gap: 20px;
}

.btn-primary {
  font-weight: 600;
  font-size: 22px;
  line-height: 100%;
  text-transform: uppercase;
  padding: 20px 30px;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  background-color: #FF6D3F;
  overflow: hidden;
}

.btn-text {
  position: relative;
  z-index: 10;
}

.btn-primary::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #ff3f05;
  border-radius: inherit;
  z-index: 5;
  transform: scaleX(0);
  transition: transform 0.5s linear;
  transform-origin: 100% 100%;
}

.btn-primary:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-arrow {
  position: relative;
  z-index: 10;
  transition: transform 0.5s linear;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(5px);
}


.nowrap {
  white-space: nowrap;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  background-color: #000;
  z-index: 9999;
}

.header a {
  font-size: 20px;
  line-height: 150%;
  color: rgba(255, 255, 255, 0.6);
}

.header-logo {
  transition: transform .4s ease;
}

.header-logo:hover {
  transform: scale(1.1);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 105px;
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
}

.header-menu .sub-menu {
  display: none;
}

.content::after {
  display: none;
}

/* Sections */

.section {
  /* padding: 100px 0; */
}

.main-bg {
  background: url("../img/bg-main.png") no-repeat top center/cover,
    url("../img/bg-main(1).png") no-repeat top center/cover,
    url("../img/bg-main(2).png") no-repeat top center/cover;
}

.intro {
  padding-top: 270px;
}

.intro-inner {
  display: flex;
  flex-direction: column;
}

.intro-info {
  margin-bottom: 150px;
}

.intro-row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.intro-title {
  font-size: 103px;
  line-height: 100%;
  color: #FFFFFF;
  font-weight: 500;
  letter-spacing: -5px;
  margin: 0;
  overflow: hidden;
}

.intro-title-line {
  font-size: 120px;
  font-family: "IBM Plex Serif", serif;
  letter-spacing: -9px;
}

.intro-title-words {
  display: flex;
  align-items: center;
}

.intro-content {
  max-width: 665px;
}

.intro-descr {
  font-weight: 400;
  font-size: 30px;
  line-height: 140%;
  margin: 30px 0 50px;
}

.intro-btn {
  margin-bottom: 20px;
}

.intro-text {
  font-size: 13px;
  line-height: 130%;
  letter-spacing: -1px;
  max-width: 350px;
}

.intro-cards {
  margin: 150px 0 220px;
  position: relative;
}

/* .intro-cards::before {
  content: "";
  position: absolute;
  left: 0;
  top: -120px;
  border-radius: 30px;
  width: 100%;
  height: 143px;
  background: rgba(128, 128, 128, 0.004);
  backdrop-filter: blur(12px);
  pointer-events: none;
  z-index: 9;
} */

.intro-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.intro-card {
  display: flex;
  flex-direction: column;
  height: 650px;
  transition: all .7s linear;
}

.intro-card-white {}

.intro-card-header {
  margin-bottom: -1px;
}

.intro-card-header,
.intro-card-body {
  padding: 30px;
  border-radius: 30px;
}

.intro-card:first-child .intro-card-header,
.intro-card:first-child .intro-card-body {
  background-color: #3f3583;
}

.intro-card:nth-child(2) .intro-card-header,
.intro-card:nth-child(2) .intro-card-body {
  background-color: #414A67;
}

.intro-card:last-child .intro-card-header,
.intro-card:last-child .intro-card-body {
  background-color: #D5DBF1;
}

.intro-card-icon {
  width: 90px;
  height: 90px;
  object-fit: cover;
}

.intro-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.intro-card-title {
  font-weight: 500;
  font-size: 50px;
  line-height: 90%;
  letter-spacing: -5px;
  margin-bottom: 20px;
}

.intro-card-descr {
  font-size: 22px;
  line-height: 130%;
  letter-spacing: -2px;
  max-width: 430px;
}

.intro-card-white .intro-card-title {
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
  color: #fff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.intro-card-black .intro-card-title {
  background: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.7) 100%);
  color: #000;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.intro-card-white .intro-card-descr {
  color: rgba(255, 255, 255, 0.8);
}

.intro-card-black .intro-card-descr {
  color: rgba(0, 0, 0, 0.8);
}

.intro-card-number {
  font-size: 22px;
  line-height: 130%;
  margin-top: auto;
}

.intro-card-white .intro-card-number {
  color: rgba(255, 255, 255, 0.8);
}

.intro-card-black .intro-card-number {
  color: rgba(0, 0, 0, 0.8);
}

/* Projects */

.projects {
  margin-top: 220px;
}

.projects-inner {
  display: flex;
  flex-direction: column;
}

.projects-title {
  font-weight: 500;
  position: sticky;
  top: 100px;
  /* Расстояние от верха экрана, на котором закрепляется */
  z-index: 10;
  font-size: 80px;
  line-height: 90%;
  letter-spacing: -2px;
  text-align: center;
  background: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin: 0 auto 210px;
  max-width: 830px;
  text-align: center;
  text-shadow: 0px 29px 16px rgba(156, 169, 254, 0.502);
}

.projects-title-white {
  background: linear-gradient(0deg, #FFFFFF, #FFFFFF),
    linear-gradient(0deg, #E7E7E7, #E7E7E7);
}

.projects-block {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
}

.projects-block .projects-title {
  margin: 0 auto !important;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.projects-descr {
  text-align: center;
  font-weight: 400;
  font-size: 30px;
  line-height: 140%;
  margin: 40px 0 0;
}

.projects-descr-white {
  background: linear-gradient(0deg, #FFFFFF, #FFFFFF),
    linear-gradient(0deg, #E7E7E7, #E7E7E7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.projects-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 210px 0 187px;
}

.projects-card {
  border-radius: 30px;
  background-repeat: no-repeat;
  background-size: 101% 100%;
  background-position: center center;
  height: 660px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 50px;
  visibility: hidden;
}

.projects-card-title {
  font-weight: 500;
  font-style: italic;
  margin-bottom: 30px;
  font-size: 56px;
  line-height: 100%;
  letter-spacing: -5px;
  text-align: center;
  color: #E7E7E7;
  font-family: "IBM Plex Serif", serif;
}

.projects-card-descr {
  font-size: 16px;
  line-height: 130%;
  text-align: center;
  color: rgba(244, 245, 248, 0.698);
  max-width: 90%;
}

/* Loader */

.loader-page {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #171717;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Лоадер */
.loader-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #171717;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-star {
  width: 219px;
  height: 219px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Projects section */
.projects {
  min-height: 100vh;
  padding: 80px 0;
  position: relative;
}

.projects-cards {
  position: relative;
  margin: 0 0 187px;
  height: 660px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.projects-card {
  position: absolute;
  left: 50%;
  top: 75%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 716px;
  min-height: 887px;
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  padding: 30px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  will-change: transform, y;
  transition: box-shadow 0.3s ease;
}

.projects-card:first-child {
  z-index: 1;
  visibility: visible;
}

.projects-card:nth-child(2) {
  z-index: 2;
}

.projects-card:nth-child(3) {
  z-index: 3;
}

.projects-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
  border-radius: 24px;
  z-index: 1;
}

.projects-card-title,
.projects-card-descr {
  position: relative;
  z-index: 2;
}

.intro-star-container {
  display: block;
  width: 90px;
  height: 50px;
  position: relative;
}

.intro-star {
  width: 245px;
  height: 220px;
  position: absolute;
  left: 380px;
  top: -65px;
}

/* Адаптив */
@media (max-width: 768px) {
  .projects-card {
    max-width: 90%;
    min-height: 320px;
    padding: 24px;
  }

  .projects-card-title {
    font-size: 24px;
  }

  .projects-card-descr {
    font-size: 14px;
    max-width: 100%;
  }

  .projects-cards {
    height: 450px;
  }
}

/* Case pages scroll inside body, while the legacy reveal script listens to
   window.scroll. Keep portfolio content visible even when reveal never fires. */
body.single-case .js-ease-view {
  opacity: 1 !important;
  transform: none !important;
}