:root {
  --accent-color: #cee827;
  --bg-color: #f5f5f5;
  --dark-color: #111;
  --text-color: #111;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: auto;
}
html.lenis {
  height: auto;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Afacad", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  transition: background-color 0.8s ease;
}

.parallax-bg-inner {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.logo svg {
  width: 132px;
  height: 60px;
  display: block;
  transition: fill 0.3s ease;
}

.order-btn {
  font-family: inherit;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header-on-dark .logo svg {
  fill: #fff;
}
.header-on-dark .order-btn {
  background: #fff;
  color: #111;
}
.header-on-dark .order-btn:hover {
  background: #e2e2e2;
}

.header-on-light .logo svg {
  fill: #111;
}
.header-on-light .order-btn {
  background: #111;
  color: #fff;
}
.header-on-light .order-btn:hover {
  background: #333;
}

.fixed-hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10%;
  color: #fff;
  overflow: hidden;
  z-index: 1;
  will-change: transform;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("img/1.min.png") center/cover no-repeat #222;
  z-index: -1;
  transform-origin: center;
  will-change: transform;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  will-change: opacity;
}

.hero-left svg {
  width: 265px;
  height: auto;
  fill: #fff;
}
.hero-right {
  font-size: 20px;
  line-height: 1.2;
  text-align: right;
  font-weight: 500;
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.mouse-icon {
  width: 20px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 15px;
  margin: 10px auto;
  position: relative;
}

.mouse-icon::after {
  content: "";
  width: 2px;
  height: 6px;
  background: #fff;
  position: absolute;
  left: 50%;
  top: 5px;
  transform: translateX(-50%);
  animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 15px);
  }
}

.scrolling-layer {
  position: relative;
  z-index: 2;
}
.hero-delay-spacer {
  height: 150vh;
  pointer-events: none;
}

.second-section {
  position: relative;
  height: 200vh;
  background: #fff;
  margin-top: -1px;
}

.second-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sun-circle {
  position: absolute;
  bottom: 5vh;
  left: 50%;
  width: 100px;
  height: 100px;
  background-color: var(--accent-color);
  border-radius: 50%;
  z-index: 1;
  will-change: transform, filter;
}

.content-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1200px;
  padding: 0 40px;
  margin-top: -15vh;
}
.content-wrap h2 {
  font-size: 115px;
  font-weight: 600;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--dark-color);
}
.content-wrap h2 img {
  height: 0.85em;
  width: auto;
  min-width: 1.4em;
  object-fit: cover;
  border-radius: 0.4em;
  vertical-align: middle;
  margin: 0 10px;
  transform: translateY(-4%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}
.content-wrap p {
  margin: 50px auto 0;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.4;
  color: #444;
  max-width: 750px;
}

.third-section {
  position: relative;
  z-index: 3;
  background-color: var(--bg-color);
  padding-top: 150px;
  transition: background-color 0.8s ease;
  margin-top: -1px;
}
.third-section.is-dark {
  background-color: var(--dark-color);
}

.m-top-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  padding: 0 50px;
  margin-bottom: 80px;
  width: 100%;
}
.m-top-left {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-color);
  max-width: 250px;
  line-height: 1.3;
  transition: color 0.8s ease;
}
.m-top-right {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--dark-color);
  letter-spacing: -0.02em;
  transition: color 0.8s ease;
  padding-left: 50px;
}
.is-dark .m-top-left,
.is-dark .m-top-right {
  color: #fff;
}

.m-row {
  display: flex;
  align-items: stretch;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background-color: var(--bg-color);
  transition:
    border-color 0.8s ease,
    background-color 0.8s ease;
  position: relative;
}
.is-dark .m-row {
  background-color: var(--dark-color);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.m-row-img {
  width: 50vw;
  flex-shrink: 0;
  min-height: 60vh;
  overflow: hidden;
  position: relative;
}
.bg-m1 {
  background-image: url("img/mom1.min.png");
}
.bg-m2 {
  background-image: url("img/mom2.min.png");
}
.bg-m3 {
  background-image: url("img/mom3.min.png");
}
.bg-m4 {
  background-image: url("img/mom4.min.png");
}

.m-row-text {
  flex: 1;
  padding: 120px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.m-title-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}
.m-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 20px;
  flex-shrink: 0;
}
.m-row h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--dark-color);
  margin: 0;
  transition: color 0.8s ease;
}
.m-row h4 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 20px 0;
  color: var(--dark-color);
  transition: color 0.8s ease;
}
.m-row p {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: #555;
  margin: 0;
  max-width: 550px;
  transition: color 0.8s ease;
}
.is-dark .m-row h3,
.is-dark .m-row h4 {
  color: #fff;
}
.is-dark .m-row p {
  color: #aaa;
}

.s4-wrapper {
  position: relative;
  height: 250vh;
  background: var(--dark-color);
  z-index: 10;
  margin-top: -1px;
}
.flow-section.s4 {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.s4-inner {
  width: 100%;
  height: 100%;
  will-change: transform;
}
.flow-section.s5 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 11;
}
.bg-s4 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transform-origin: center center;
  background-image: url("img/3.min.png");
}
.bg-s5 {
  background-image: url("img/4.min.png");
}
.content-top {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 6vh;
  text-align: center;
}
.content-bottom {
  position: absolute;
  bottom: 60px;
  left: 50px;
  z-index: 2;
  text-align: left;
}
.downtime-title {
  font-size: 60px;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
.s5-solid {
  font-size: 40px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 5px 0;
  line-height: 1.2;
}
.s5-transparent {
  font-size: 40px;
  font-weight: 500;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
.transparent-text .char {
  opacity: 0.3;
}

.s6 {
  position: relative;
  background: #f4f4f4;
  padding: 120px 0;
  z-index: 12;
  margin-top: -1px;
}
.split-container {
  display: flex;
  width: 100%;
}
.split-left,
.split-right {
  width: 50vw;
  padding: 0 50px;
}
.split-right {
  flex: 1;
}
.split-left h2,
.split-right h2 {
  font-size: 40px;
  font-weight: 500;
  margin: 0;
  color: var(--dark-color);
}
.split-right h2 {
  margin: 0 0 30px 0;
}
.split-right p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-color);
  margin-bottom: 40px;
  font-weight: 500;
}
.o-row {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-color);
}
.o-row:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.s7 {
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 13;
  background: var(--dark-color);
  height: 70vh;
  margin-top: -1px;
}
.bg-s7 {
  background-image: url("img/6.min.png");
}

.quote-section {
  background-color: var(--bg-color);
  padding: 120px 50px;
  position: relative;
  z-index: 14;
  margin-top: -1px;
}
.quote-wrapper {
  margin: 0 200px;
}
.quote-text {
  font-size: 64px;
  font-weight: 600;
  color: var(--dark-color);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}
.quote-author {
  font-size: 24px;
  font-weight: 600;
  color: #888;
}
.quote-author span {
  font-weight: 400;
}

.premium-features {
  background-color: #000;
  color: #fff;
  padding: 0 50px;
  position: relative;
  z-index: 15;
  margin-top: -1px;
}
.pf-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
}
.pf-left {
  padding-top: 150px;
  padding-bottom: 150px;
}
.pf-labels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 25vh;
}
.pf-labels span {
  font-size: 24px;
  font-weight: 600;
  color: #888;
}
.pf-text-blocks {
  position: relative;
}
.pf-text-block {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.pf-text-block p {
  font-size: 24px;
  line-height: 1.6;
  color: #888;
  max-width: 480px;
  margin: 0;
}
.pf-text-block strong {
  color: #fff;
  font-weight: 500;
}

.pf-right {
  position: relative;
}
.pf-sticky-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.pf-image-box {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
}
.pf-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 102%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.pf-img.active {
  opacity: 1;
}

.premium-about {
  background-color: #f5f5f5;
  padding: 150px 50px;
  display: flex;
  flex-direction: column; /* Добавил направление колонкой */
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 16;
  margin-top: -1px;
}
.premium-about h2 {
  font-size: 56px;
  font-weight: 500;
  color: #111;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 60px 0;
  max-width: 900px;
}
.about-btn {
  background: #111;
  color: #fff;
  font-family: inherit;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.about-btn:hover {
  background-color: #fff;
  color: #111;
}

.s9 {
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 17;
  background: var(--dark-color);
  height: 100vh;
  margin-top: -1px;
}
.bg-s9 {
  background-image: url("img/8.min.png");
}

.site-footer {
  background-color: var(--dark-color);
  color: #fff;
  padding: 80px 50px 40px;
  position: relative;
  z-index: 18;
  margin-top: -1px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 80px;
}
.footer-top-left {
  max-width: 500px;
}
.footer-top-left h2 {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 20px 0;
}
.footer-top-left p {
  font-size: 16px;
  color: #aaa;
  line-height: 1.5;
  margin-bottom: 30px;
}
.footer-order-btn {
  font-family: inherit;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}
.footer-order-btn:hover {
  background: #e2e2e2;
}
.footer-top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.footer-video-thumb {
  width: 350px;
  height: 200px;
  background: #222 url("img/1.min.png") center/cover;
  border-radius: 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-video-thumb::after {
  content: "▶";
  font-size: 24px;
  color: #111;
  background: rgba(255, 255, 255, 0.8);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
}

.footer-middle {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 80px;
}
.footer-col h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px 0;
}
.footer-col a {
  display: block;
  color: #aaa;
  text-decoration: none;
  font-size: 16px;
  margin-bottom: 12px;
  transition: color 0.3s;
}
.footer-col a:hover {
  color: #fff;
}
.footer-brand {
  margin-bottom: 15px;
}
.footer-brand svg {
  width: 132px;
  height: 60px;
  fill: #fff;
}
.made-by {
  font-size: 14px;
  color: #aaa;
}
.made-by strong {
  color: #fff;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter-form input {
  background: #222;
  border: 1px solid #333;
  padding: 15px;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
}
.newsletter-form button {
  background: #fff;
  color: #111;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.3s;
}
.newsletter-form button:hover {
  background: #e2e2e2;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  font-size: 14px;
  color: #aaa;
}
.fb-links {
  display: flex;
  gap: 20px;
}
.fb-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}
.fb-links a:hover {
  color: #fff;
}
.social-icons {
  display: flex;
  gap: 15px;
}
.social-icons a {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}
.social-icons a:hover {
  color: var(--accent-color);
}
.social-icons svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (orientation: portrait) and (min-width: 769px) {
  .fixed-hero,
  .flow-section.s4,
  .flow-section.s5,
  .s9 {
    height: 56.25vw;
    max-height: 100vh;
  }
  .s4-wrapper {
    height: calc(56.25vw + 100vh);
  }
}

@media (max-width: 768px) {
  header {
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(70% - 30px);
    padding: 10px 20px;
    backdrop-filter: blur(10px);
    background-color: rgba(99, 99, 99, 0.39);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    opacity: 1;
    pointer-events: auto;
  }
  .header-on-dark .logo svg,
  .header-on-light .logo svg {
    fill: #fff;
  }
  .logo svg {
    width: 80px;
    height: 36px;
  }
  .header-on-dark .order-btn,
  .header-on-light .order-btn,
  .order-btn {
    background: #fff;
    color: #111;
    padding: 8px 16px;
    font-size: 14px;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 300px;
  }
  .hero-left svg {
    width: 200px;
    height: 50px;
  }
  .hero-right {
    text-align: left;
    font-size: 18px;
  }

  .mouse-icon {
    border: none;
    width: 20px;
    height: 30px;
    background: transparent;
  }
  .mouse-icon::after {
    content: "";
    width: 10px;
    height: 10px;
    background: transparent;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateX(-50%) rotate(45deg);
    animation: swipe-anim 1.5s infinite;
    top: 0;
  }
  @keyframes swipe-anim {
    0% {
      opacity: 0;
      transform: translateX(-50%) translateY(-5px) rotate(45deg);
    }
    50% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      transform: translateX(-50%) translateY(10px) rotate(45deg);
    }
  }

  .second-section {
    height: auto;
  }
  .second-sticky {
    position: relative;
    height: auto;
    padding: 80px 0 160px 0;
  }
  .content-wrap {
    margin-top: 0;
    padding: 0 20px;
  }
  .content-wrap h2 {
    font-size: 50px;
  }
  .content-wrap p {
    font-size: 18px;
    margin-top: 30px;
  }

  .third-section {
    padding-top: 80px;
  }
  .m-top-bar {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
    margin-bottom: 40px;
  }
  .m-top-right {
    padding-left: 0;
    font-size: 32px;
  }
  .m-row {
    flex-direction: column;
    height: auto;
    padding: 15px 15px 40px 15px;
    border: none;
  }
  .m-row-img {
    width: 100%;
    height: 60vh;
    min-height: auto;
    border-radius: 16px;
  }
  .m-row-text {
    padding: 20px 0 0 0;
    flex: none;
    justify-content: flex-start;
  }
  .m-title-wrap {
    margin-bottom: 15px;
  }
  .m-row h4 {
    font-size: 26px;
    margin-bottom: 10px;
  }
  .m-row p {
    font-size: 15px;
  }

  .flow-section.s5 {
    height: 50vh;
  }
  .downtime-title {
    font-size: 40px;
  }
  .content-bottom {
    left: 20px;
    right: 20px;
    text-align: center;
    bottom: 40px;
  }
  .s5-solid,
  .s5-transparent {
    font-size: 28px;
  }

  .s6 {
    padding: 80px 0;
  }
  .split-container {
    flex-direction: column;
    gap: 40px;
  }
  .split-left,
  .split-right {
    width: 100%;
    padding: 0 20px;
  }
  .split-right h2,
  .split-left h2 {
    font-size: 32px;
  }
  .o-row {
    font-size: 14px;
  }

  .s7 {
    height: 50vh;
    margin: 0 auto;
  }
  .quote-section {
    padding: 60px 20px;
  }
  .quote-wrapper {
    margin: 0;
  }
  .quote-text {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .quote-author {
    font-size: 18px;
  }

  .premium-features {
    padding: 60px 20px;
  }
  .pf-container {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  .pf-left {
    padding-top: 0;
    padding-bottom: 0;
  }
  .pf-labels {
    margin-bottom: 30px;
  }
  .pf-text-block {
    min-height: auto;
    padding: 20px 0;
    height: auto;
  }
  .pf-text-block p {
    font-size: 18px;
  }
  .pf-right {
    order: -1;
  }
  .pf-sticky-wrap {
    position: static;
    height: auto;
    display: block;
  }
  .pf-image-box {
    max-width: 100%;
    height: 450px;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    border-radius: 12px;
  }
  .pf-img {
    position: relative;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    opacity: 1 !important;
  }

  .premium-about {
    padding: 100px 20px;
  }
  .premium-about h2 {
    font-size: 36px;
    margin-bottom: 40px;
  }
  .about-btn {
    font-size: 16px;
    padding: 12px 30px;
  }

  .s9 {
    height: 25svh;
  }

  .site-footer {
    padding: 50px 20px 30px;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 40px;
    margin-bottom: 40px;
  }
  .footer-top-left h2 {
    font-size: 32px;
  }
  .footer-video-thumb {
    max-width: 400px;
  }
  .footer-middle {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .fb-links {
    flex-direction: column;
    gap: 10px;
  }
}
