* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
body {
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  background-color: #060c1a;
  overflow-x: hidden;
}
header {
  background-color: white;
}
h2 {
  margin: 0;
  font-family: "Montserrat Alternates", "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 34px;
  line-height: 1.2;
  color: #ffffff;
  text-align: center;
}

.mobile {
  display: none;
}

.site-header {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 80px;
  gap: 16px;
  column-gap: 64px;
  padding: 14px 48px;
  background-color: #ffffff;
}

.nav {
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav a {
  text-align: center;
  color: #1e1e1e;
  text-decoration: none;
  font-weight: 600;
  transition: ease-in-out all 200ms;
  padding: 8px 16px;
  border-radius: 30px;
  border: 2px solid transparent;
  background-color: transparent;
  display: inline-block;
}

.nav a:hover {
  border-color: #ffd166;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 209, 102, 0.2);
}

.logo a img {
  width: 65px;
  transition: ease-in-out all 200ms;
}

.logo a img:hover {
  transform: translateY(-3px);
  transform: scale(1.1);
}

.nav-left {
  justify-content: space-around;
}
.nav-right {
  justify-content: space-around;
}
.burger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  padding: 8px;
  margin-left: 16px;
}

.burger-btn img {
  width: 24px;
  height: 24px;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.mobile-menu {
  font-family: "Nunito";
  position: fixed;
  top: 0;
  right: 0;
  width: 230px;
  height: 330px;
  background: #060c1a;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 24px 20px;
  box-sizing: border-box;
  border-radius: 30px 0px 30px 30px;
  overflow-y: none;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 20px;
  margin-left: 30px;
}

.mobile-menu li {
  margin-bottom: 4px;
  margin-left: 10px;
}

.mobile-menu a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 300;
  display: block;
  padding: 8px 0;
  transition: color 0.2s;
}

.close-mobile-menu {
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 4px;
  z-index: 10;
}

.close-mobile-menu svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

@media (max-width: 968px) {
  .nav-left,
  .nav-right {
    display: none;
  }

  .burger-btn {
    display: block;
  }

  .site-header {
    display: flex;
    justify-content: space-between;
    padding-left: 43vw;
  }
}

@media (max-width: 1210px) {
  .nav a {
    font-size: 15px;
    padding: 6px 10px;
  }
}

@media (max-width: 668px) {
  .nav-left,
  .nav-right {
    display: none;
  }

  .burger-btn {
    display: block;
  }

  .site-header {
    justify-content: space-between;
    padding-left: 20px;
    padding-right: 20px;
  }

  .logo img {
    width: 35px;
  }
}

.hero {
  z-index: 0;
  position: relative;
  margin: 0 auto;
  height: calc(100vh - 80px);
  padding: 16px 24px 112px;
  text-align: center;
  background: url("assets/images/backgrounds/hero-background.webp") no-repeat
    center center/cover;
  background-position-y: -10vw;
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 85%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom, black 0%, black 85%, transparent 100%);
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin: 0 0 10px 0;
  font-family: "Montserrat Alternates", "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 58px;
  line-height: 1.1;
  letter-spacing: 0.4px;
  color: #ffffff;
}

.hero-visual {
  margin: 0 auto 24px;
  position: relative;
}
.hero-image {
  width: auto;
  height: 45vh;
  display: block;
  margin: 0 auto;
}

.hero-subtitle-strong {
  margin: 0;
  font-family: "Montserrat Alternates", "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 32px;
  color: #ffffff;
}

.hero-subtitle-note {
  margin: 0 0 32px;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 300;
  line-height: 135%;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-cta {
  position: relative;
  background: linear-gradient(90deg, #ffffff 0%, #e7e7e7 100%);
  border-radius: 79px;
  display: inline-block;
  padding: 16px 54px;
  border: none;
  color: #0a1f44;
  font-weight: 400;
  font-size: 18px;
  font-family: "Montserrat Alternates", "Montserrat", sans-serif;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0px 0px 40px 1px rgba(255, 255, 255, 0.562);
  top: clamp(650px, calc(100vh - 180px), 750px);
  position: absolute;
  left: 50vw;
  transform: translateX(-50%);
}

.hero-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    64.43% 64.43% at 48.49% 50%,
    #5c768d 0%,
    #0a1f44 100%
  );
  border-radius: 79px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: -1;
}

.hero-cta:hover {
  color: white;
}

.hero-cta:hover::before {
  opacity: 1;
}

.hero-visual {
  margin: 0 auto 24px;
  position: relative;
  width: 55%;
  max-width: 500px;
  height: 420px;
  margin-bottom: 0px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
}

.bed-base {
  z-index: 1;
  margin-top: 60px;
}

@media (max-height: 800px) {
  .hero-visual {
    max-width: 350px;
    height: 350px;
  }
  .bed-base {
    margin-top: 50px;
  }
  .hero-cta {
    bottom: clamp(40px, 100px);

    top: auto;
  }
  .hero-title {
    font-size: 48px;
  }
}

.amp30 {
  z-index: 2;
  animation: sway30 2.2s ease-in-out infinite;
}

@keyframes sway30 {
  0% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
  100% {
    transform: translateX(-4px);
  }
}

.problems {
  height: 90vh;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 150px;
  padding: 0px 24px 96px;
  color: #ffffff;
  text-align: center;
  background: radial-gradient(
    ellipse 400px 700px at center,
    #454545 10%,
    transparent 50%
  );
  min-height: 700px;
}

.problems-title {
  margin: 0 0 90px;
  margin-top: 40px;
  font-family: "Montserrat Alternates", "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 32px;
}

.problems-stage {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.problems-image {
  z-index: 100;
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  animation: lightShake 0.5s infinite alternate ease-in-out;
}

.problems-image:hover {
  animation: strongShake 0.3s infinite alternate ease-in-out;
}

.problem-ring {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.problem {
  font-size: 20px;
  font-weight: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 50px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: rotate(var(--angle)) translateX(440px)
    rotate(calc(-1 * var(--angle)));
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: rgba(255, 255, 255, 0.9);
}

.center-problem {
  transform: rotate(var(--angle)) translateX(350px)
    rotate(calc(-1 * var(--angle)));
  margin: 0 auto;
}

.problem img {
  width: 18px;
  height: 18px;
}

@media (max-width: 1050px) {
  .problems-image {
    max-width: 280px;
    margin: 16px auto;
  }
  .problem {
    transform: rotate(var(--angle)) translateX(310px)
      rotate(calc(-1 * var(--angle)));
  }
  .center-problem {
    transform: rotate(var(--angle)) translateX(300px)
      rotate(calc(-1 * var(--angle)));
  }
}

.advantages {
  margin-top: 100px;
  background-color: #060c1a;
  color: #ffffff;
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.advantages-title {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: "Montserrat Alternates", "Montserrat", sans-serif;
  font-weight: 300;
  line-height: 1.2;
  color: #ffffff;
  z-index: 3;
}

.advantages-constellation {
  position: relative;
  width: 1200px;
  height: 600px;
  margin: 0 auto;
  padding: 0;
}

.star-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.star-item:hover {
  transform: scale(1.1);
}

.star-icon {
  width: 130px;
  height: 130px;
  position: absolute;
  transition: all 0.3s ease;
  filter: brightness(0.7);
}

.star-item.lit .star-icon {
  filter: brightness(1);
}

.star-text {
  margin-top: 90px;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1;
  color: #cdcdcd;
  text-align: center;
  max-width: 200px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.star-item.lit .star-text {
  opacity: 1;
  transform: translateY(0);
}

.star-1 {
  top: 30%;
  left: 5%;
}
.star-2 {
  top: 25%;
  left: 25%;
}
.star-3 {
  top: 38%;
  left: 35%;
}
.star-4 {
  top: 50%;
  left: 50%;
}
.star-5 {
  top: 50%;
  left: 75%;
}
.star-6 {
  top: 78%;
  left: 72%;
}
.star-7 {
  top: 75%;
  left: 52%;
}

.constellation-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.line {
  stroke: rgba(255, 255, 255, 0.178);
  stroke-width: 1px;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.line.visible {
  opacity: 1;
}

.line-1.visible {
  animation: drawLine 1.5s ease forwards;
}
.line-2.visible {
  animation: drawLine 1.5s ease 0.2s forwards;
}
.line-3.visible {
  animation: drawLine 1.5s ease 0.4s forwards;
}
.line-4.visible {
  animation: drawLine 1.5s ease 0.6s forwards;
}
.line-5.visible {
  animation: drawLine 1.5s ease 0.8s forwards;
}
.line-6.visible {
  animation: drawLine 1.5s ease 1s forwards;
}
.line-7.visible {
  animation: drawLine 1.5s ease 1.2s forwards;
}

@keyframes drawLine {
  from {
    stroke-dashoffset: 1000;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 1050px) {
  .advantages-constellation {
    margin-top: 50px;
    width: 870px;
    height: 500px;
    margin-bottom: 50px;
  }
  .star-text {
    font-size: 14px;
  }
  .star-icon {
    width: 125px;
    height: 125px;
  }
}

.principle {
  background-color: #060c1a;
  color: #ffffff;
  padding: 50px 24px;
  text-align: center;
}

.principle-title {
  margin: 0 0 16px;
  font-family: "Montserrat Alternates", "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.2;
  color: #ffffff;
}

.principle-subtitle {
  margin: 0 0 60px;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 300;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.principle-content {
  max-width: 800px;
  margin: 0 auto 80px;
  text-align: center;
}

.principle-text {
  margin: 0 0 24px;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.principle-text:last-child {
  margin-bottom: 0;
}

.principle-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.principle-visual.visible {
  opacity: 1;
  transform: translateY(0);
}

.principle-content .visual-item img {
  display: none;
}

.visual-item {
  flex: 0 0 auto;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.bed-visual-item {
  background-image: url("assets/images/backgrounds/bed-base.webp");
  background-repeat: no-repeat;
  background-position: center 45px;
  background-size: contain;
}

.visual-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
}

.visual-arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

/* Анимация появления элементов последовательно */
.principle-visual.visible .visual-item:nth-child(1) {
  animation: fadeInLeft 0.6s ease 0.3s forwards;
}

.principle-visual.visible .visual-arrow:nth-child(2) {
  animation: fadeInLeft 0.6s ease 0.6s forwards;
}

.principle-visual.visible .visual-item:nth-child(3) {
  animation: fadeInLeft 0.6s ease 0.9s forwards;
}

.principle-visual.visible .visual-arrow:nth-child(4) {
  animation: fadeInLeft 0.6s ease 1.2s forwards;
}

.principle-visual.visible .visual-item:nth-child(5) {
  animation: fadeInLeft 0.6s ease 1.5s forwards;
}

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

.principle-content .visual-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Для мобильной версии */
@media (max-width: 768px) {
  .principle-visual.visible .visual-item:nth-child(1) {
    animation-delay: 0.2s;
  }

  .principle-visual.visible .visual-arrow:nth-child(2) {
    animation-delay: 0.4s;
  }

  .principle-visual.visible .visual-item:nth-child(3) {
    animation-delay: 0.6s;
  }

  .principle-visual.visible .visual-arrow:nth-child(4) {
    animation-delay: 0.8s;
  }

  .principle-visual.visible .visual-item:nth-child(5) {
    animation-delay: 1s;
  }
}

.specs {
  background-color: white;
  color: black;
  padding: 50px 24px;
  text-align: center;
}

.specs-title {
  margin: 0 0 16px;
  margin-bottom: 35px;
  font-family: "Montserrat Alternates", "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.2;
  color: #0d1b2a;
}

.specs-subtitle {
  margin: 0 auto;
  padding-bottom: 50px;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 300;
  font-size: 24px;
  color: #636363;
  width: 1000px;
}

.specs-content {
  text-align: left;
  width: 1200px;
  margin: 0 auto;
}

.specs-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  width: 600px;
}

.specs-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  margin-right: 5px;
}

.specs-images {
  display: flex;
  width: 400px;
}

.specs-img {
  width: 100px;
}

.specs-text {
  flex-grow: 1;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: #6b6b6b;
  width: 500px;
}

.specs-text strong {
  font-weight: 500;
  color: #0d1b2a;
  font-size: 20px;
}

.specs-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  margin-top: 10px;
}

.spec-os-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: contain;
}

.specs-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.visual-items {
  display: flex;
}

.visual-items img {
  width: 100px;
  height: 180px;
}

.rounded-visual-item img {
  margin-top: 70px;
  width: 200px;
  height: 200px;
  border-radius: 25px;
}

@media (max-width: 1100px) {
  .specs-subtitle {
    font-size: 20px;
    width: 100%;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  background: white;
  border-radius: 16px;
  padding: 24px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.modal-header {
  height: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0px;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #e74c3c;
}

.form-group {
  margin-bottom: 20px;
  padding: 10px;
}

.form-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #000000;
  margin-bottom: 6px;
}

.required {
  color: #000000;
  width: 10px;
  margin-left: 4px;
  font-size: 18px;
}

.form-input {
  width: 100%;
  padding-bottom: 12px;
  border: none;
  border-bottom: 1px solid #bdc3c7;
  background: transparent;
  font-size: 16px;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus {
  outline: none;
}

.error {
  border-color: #e74c3c !important;
}

.error-message {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.recaptcha-container {
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #bdc3c7;
  border-radius: 8px;
  background: #f8f9fa;
}

.submit-btn {
  font-family: "Montserrat Alternates", "Montserrat", sans-serif;
  width: 70%;
  padding: 14px;
  background: #1a252f;
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #131a22;
}

.submit-btn:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
}

.form-group.error {
  border: solid 1px #e74c3c;
  border-radius: 16px;
  padding: 10px;
  margin-bottom: 20px;
}

.form-group.error .form-label,
.form-group.error .required {
  color: #e74c3c;
}

.form-group.error .form-input {
  border-bottom-color: #e74c3c;
}

.success-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.success-message {
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 400;
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 20px;
  line-height: 1.4;
  height: 40px;
}

.success-gif {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

.day-night {
  color: #e8eaed;
  position: relative;
  padding-top: 50px;
}

.day-night h2 {
  position: absolute;
  left: 50%;
  top: 150px;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  z-index: 100;
  color: #e8eaed;
}

.bottom-texts {
  display: flex;
  justify-content: space-between;
  position: absolute;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  margin-inline: 30px;
  z-index: 100;
  color: #e8eaed;
}

.bottom-texts p {
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 500;
  width: 400px;
  font-size: 22px;
  z-index: 100;
}

.switch-container {
  position: absolute;
  left: 50%;
  top: 70%;
  bottom: 50%;
  transform: translateX(-50%);
  z-index: 300;
}

.switch {
  background-image: url("assets/images/icons/off_bg.svg");
  background-color: #252525;
  background-size: cover;
  width: 350px;
  height: 150px;
  border-radius: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: all 0.5s;
  transform: scale(0.3);
  box-shadow: 0 -3px 4px 0 rgba(0, 0, 0, 0.25),
    0 4px 4px rgba(255, 255, 255, 0.4), inset 0 1px 13px rgba(0, 0, 0, 0.25),
    inset 0 7px 9px 0 rgba(0, 0, 0, 0.25);
}

.switch.on {
  background-image: url("assets/images/icons/on_bg.svg");
  background-color: #3f83ed;
}

.switch .slider {
  background-color: #9c9c9c;
  background-image: url("assets/images/icons/spots.svg");
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 100%;
  width: 125px;
  height: 125px;
  position: absolute;
  left: 205px;
  pointer-events: none;
  transition: all 0.5s;
  box-shadow: inset 0 -5px 4px 0 #6a6a6a, inset 3px 4px 0 #cacaca3d;
}

.switch.on .slider {
  left: 20px;
  background-image: none;
  background-color: #edcb52;
  box-shadow: inset 0 -5px 4px 0 #c1bc27, inset 3px 4px 4px 0 #feffef;
}

.background {
  display: flex;
  height: 110vh;
}

.day-side {
  -webkit-mask-image: linear-gradient(
    to top,
    black 0%,
    black 75%,
    transparent 100%
  );
  mask-image: linear-gradient(to top, black 0%, black 75%, transparent 100%);
  background-image: url("assets/images/backgrounds/day.webp");
  background-size: cover;
  filter: blur(8px);
  height: 100%;
  width: 50vw;
}

.night-side {
  -webkit-mask-image: linear-gradient(
    to top,
    black 0%,
    black 75%,
    transparent 100%
  );
  mask-image: linear-gradient(to top, black 0%, black 75%, transparent 100%);
  background-image: url("assets/images/backgrounds/grey-back.svg");
  background-size: cover;
  height: 100%;
  width: 50vw;
}

.day-text,
.night-text {
  transition: all 0.5s ease-in-out;
}

.center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: #a2a2a2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 2;
  overflow: hidden;
  transition: all 0.5s ease;
  box-shadow: 0 0px 50px 1px rgba(255, 255, 255, 0.466);
}

.sun-half {
  background-image: url("assets/images/content/sun-half.webp");
  left: 0;
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.5s ease;
  background-size: cover;
  transform: scale(1.5);
}

.moon-half {
  background-image: url("assets/images/content/gray-half.webp");
  right: 0;
  position: absolute;
  top: 0;
  width: 45.5%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.5s ease;
  background-size: cover;
  transform: scale(1.2);
}

.night-text {
  color: rgba(255, 255, 255, 0.24);
  margin-right: 30px;
}

.why-it-works {
  margin-top: 80px;
  margin-bottom: 120px;
}

.before-after {
  position: relative;
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  margin-top: 100px;
  padding-inline: 30px;
}

.before-after p {
  font-size: 17px;
  color: white;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 200;
  margin-top: 30px;
}

.before span,
.after span {
  position: absolute;
  font-size: 16px;
  color: white;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 200;
  border-radius: 15px;
  padding: 4px;
  padding-inline: 25px;
  background-color: black;
}

.before span {
  bottom: 15px;
  right: 15px;
}

.before-block,
.after-block {
  position: relative;
  width: 400px;
  z-index: 2;
}

.after-block {
  margin-top: 280px;
}

.before-block {
  margin-bottom: 200px;
}

.after span {
  top: 15px;
  right: 15px;
}

.before-img {
  height: 300px;
  max-width: 400px;
  position: relative;
}

.before-img::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 15%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.692) 10%,
    transparent 100%
  );
  pointer-events: none;
}

.after-img {
  height: 300px;
  max-width: 400px;
  position: relative;
}

.before-block img,
.after-block img {
  height: 300px;
  max-width: 400px;
  border-radius: 20px;
  object-fit: cover;
}

.close-eyes div {
  display: flex;
  justify-content: space-between;
  max-width: 450px;
  margin: 0 auto;
}

.close-eyes p {
  font-size: 20px;
  color: white;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 300;
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
  margin-bottom: 50px;
}

.close-eyes img {
  display: flex;
  margin: 0 auto;
  width: 100%;
  max-width: 500px;
  height: 300px;
}

.video-container__grid {
  display: flex;
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 20px;
  margin-bottom: 50px;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
}

.video-container__grid a {
  width: 100%;
}

.video-description {
  margin-left: 10px;
  margin-right: 10px;
  width: 304px;
}

.video-description__popup {
  font-size: 20px;
}

.video-description p,
.video-description__popup p {
  line-height: 1;
  font-weight: 300;
}

.video-controls {
  z-index: 100;
  position: absolute;
  bottom: 50%;
  left: 40%;
}

.video {
  position: relative;
  overflow: hidden;
  height: 0;
}
.video video,
.video iframe,
.video object,
.video embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.videobg video,
.videobg iframe,
.videobg object,
.videobg embed {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -100;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  background-size: cover;
}

#playPauseBtn {
  border: none;
}

.video-container__grid img {
  object-fit: cover;
  height: 500px;
  width: 250px;
  margin-inline: 5px;
}

.video-controls button,
.video-controls img {
  width: 30px;
  height: 30px;
  background-color: white;
  transition: ease all 200ms;
}

.video-controls button {
  padding-left: 3px;
  border-radius: 100%;
  width: 50px;
  height: 50px;
}

.controls {
  z-index: 100;
  position: absolute;
  left: 20px;
  bottom: -535%;
}

.controls button,
.controls img {
  width: 20px;
  height: 20px;
  background-color: white;
  transition: ease all 200ms;
}
.controls button {
  border-radius: 100%;
  width: 40px;
  height: 40px;
}

.controls button:hover,
.video-controls button:hover {
  transform: scale(1.1);
}

.blue-button {
  position: relative;
  border: none;
  font-size: 18px;
  color: white;
  font-family: "Montserrat Alternates";
  padding: 15px;
  width: 180px;
  cursor: pointer;
  background: radial-gradient(
    58.41% 1067.37% at 50% 0%,
    #0a1f44 0%,
    #0d1b2a 100%
  );
  border-radius: 200px;
  overflow: hidden;
  z-index: 1;
}

.blue-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    53.92% 53.92% at 50% 50%,
    #171d27 0%,
    #060c1a 100%
  );
  border-radius: 200px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.blue-button:hover::before {
  opacity: 1;
}

.black-button {
  position: relative;
  border: solid 1px white;
  font-size: 18px;
  color: white;
  font-family: "Montserrat Alternates";
  padding: 15px;
  width: 250px;
  cursor: pointer;
  background-color: black;
  border-radius: 200px;
  transition: border-color 0.4s ease;
  overflow: hidden;
  z-index: 1;
}

.black-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    64.43% 64.43% at 48.49% 50%,
    #5c768d 0%,
    #0a1f44 100%
  );
  border-radius: 200px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.black-button:hover {
  border-color: transparent;
}

.black-button:hover::before {
  opacity: 1;
}

.vector1,
.vector2 {
  position: absolute;
  object-fit: cover;
}

.vector1 {
  left: 33%;
  height: 800px;
  top: 200px;
  z-index: 1;
}

.vector2 {
  left: 30%;
  height: 280px;
  z-index: 1;
  bottom: 350px;
}

.pillows {
  margin-top: 250px;
  margin-bottom: 200px;
}

.pillows h2 {
  margin-bottom: 50px;
}

.pillows p {
  font-size: 20px;
  color: white;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 300;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  margin-bottom: 30px;
}

.slide {
  background-image: url("assets/images/content/pillow.webp");
  height: 500px;
  width: 500px;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0px 4px 100px rgba(217, 217, 217, 0.25));
  transform: rotate(-90deg);
  transition: all 0.5s ease;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.slide.active {
  position: absolute;
  transform: translateX(0) rotate(-90deg);
  filter: none;
  z-index: 3;
}

.slide.prev {
  position: absolute;
  transform: translateX(-100%) rotate(-70deg) scale(0.6);
  filter: blur(8px) opacity(0.8);
  z-index: 2;
}

.slide.next {
  position: absolute;
  transform: translateX(100%) rotate(70deg) scale(0.6);
  filter: blur(8px) opacity(0.8);
  z-index: 2;
}

.slide.hidden {
  display: none;
}

.slide.next .slide-content {
  transform: rotate(270deg);
}

.slide.prev .slide-content,
.slide.next .slide-content {
  pointer-events: none;
}

.slide.active .slide-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.slide p {
  padding-top: 80px;
  font-family: "Montserrat Alternates";
  color: #0a1f44;
  font-weight: 500;
  margin-bottom: 20px;
}

.slide span {
  font-size: 16px;
  color: #000000;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 400;
  display: flex;
  text-align: center;
  justify-content: center;
  line-height: 1.4;
}

.slide-content {
  height: 520px;
  width: 510px;
  transform: rotate(90deg);
}

.pillows-slider {
  margin-bottom: 80px;
}

.slides {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 100px;
  position: relative;
  height: 500px;
}

.slider-controls {
  display: flex;
  justify-content: space-between;
  width: 100px;
  background-color: white;
  border-radius: 50px;
  margin: 0 auto;
  margin-top: 30px;
}

.slider-controls button {
  color: #0d1b2a;
  background-color: transparent;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  transform: scale(1.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.slider-controls button:hover {
  transform: scale(1.9);
}

.sleep-stages {
  max-width: 1200px;
  margin: 0 auto;
}

.stages {
  background-image: url("assets/images/backgrounds/stars-line.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  height: 1200px;
  display: flex;
  justify-content: space-between;
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 85%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom, black 0%, black 85%, transparent 100%);
  margin-inline: 20px;
}

.sleep-stages p {
  padding-top: 50px;
  font-size: 20px;
  color: white;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 300;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  margin-bottom: 30px;
}

.stages-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  position: relative;
  overflow: hidden;
}

.card-header h3 {
  font-family: "Montserrat Alternates";
  font-size: 18px;
  color: #0a1f44;
  margin: 0 0 8px 0;
  font-weight: 400;
}

.card-header span {
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #0a1f44;
  display: block;
  margin-bottom: 16px;
}

.progress {
  position: absolute;
  top: 10px;
  right: 20px;
  height: 100%;
  transition: width 0.5s ease;
}

.progress-text {
  background: black;
  border-radius: 20px;
  padding: 8px;
  padding-inline: 15px;
  color: #d5d5d5;
  font-size: 12px;
  font-weight: 500;
  position: absolute;
  right: 8px;
}

.card-body p {
  color: #0a1f44;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  padding-top: 15px;
}

.left-stages .stages-card {
  margin-top: 200px;
}

.right-stages .stages-card {
  margin-bottom: 200px;
}

.orange-dna-wave {
  width: 100%;
  height: 60px;
  background: linear-gradient(
      90deg,
      transparent 0%,
      transparent 95%,
      rgba(255, 255, 255, 0.3) 100%
    ),
    url("assets/images/content/orange-dna.webp") repeat-x;
  background-size: auto 100%;
  background-position: 0 0;
  position: relative;
}

.green-dna-wave {
  width: 100%;
  height: 60px;
  background: linear-gradient(
      90deg,
      transparent 0%,
      transparent 95%,
      rgba(255, 255, 255, 0.3) 100%
    ),
    url("assets/images/content/green-dna.webp") repeat-x;
  background-size: auto 100%;
  background-position: 0 0;
  position: relative;
}

.blue-dna-wave {
  width: 100%;
  height: 60px;
  background: linear-gradient(
      90deg,
      transparent 0%,
      transparent 95%,
      rgba(255, 255, 255, 0.3) 100%
    ),
    url("assets/images/content/blue-dna.webp") repeat-x;
  background-size: auto 100%;
  background-position: 0 0;
  position: relative;
}

.green-orange-dna-wave {
  width: 100%;
  height: 60px;
  background: linear-gradient(
      90deg,
      transparent 0%,
      transparent 95%,
      rgba(255, 255, 255, 0.3) 100%
    ),
    url("assets/images/content/green-orange-dna.webp") repeat-x;
  background-size: auto 100%;
  background-position: 0 0;
  position: relative;
}

.stages-card:hover .green-orange-dna-wave {
  animation: dnaScroll 3s linear infinite;
}

/* Анимация для других типов волн */
.stages-card:hover .orange-dna-wave {
  animation: dnaScroll 6s linear infinite;
}

.stages-card:hover .green-dna-wave {
  animation: dnaScroll 8s linear infinite;
}

.stages-card:hover .blue-dna-wave {
  animation: dnaScroll 5s linear infinite;
}

.dna-wave::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 15%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 1) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.dna-wave::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.7) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

.qna {
  padding-top: 80px;
  background: white;
}

.qna h2 {
  color: #35536e;
  font-family: "Montserrat Alternates";
  font-weight: 400;
  margin-bottom: 50px;
  text-align: left;
}

.qna-content {
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  padding-top: 50px;
  margin: 0 auto;
  padding-inline: 20px;
  padding-bottom: 150px;
}

.your-question {
  background-color: #dedede;
  padding: 20px;
  text-align: center;
  width: 320px;
  border-radius: 15px;
  margin-top: 100px;
  height: 300px;
}

.your-question p {
  margin-top: 0px;
  color: #35536e;
  font-size: 24px;
}

.your-question button {
  margin-top: 40px;
  font-size: 16px;
  width: 200px;
}

.answers {
  width: 100%;
  max-width: 800px;
  margin-right: 20px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}

.faq-item {
  padding-bottom: 30px;
  margin-top: 50px;
  color: #828282;
}

.faq-item .faq-answer {
  display: none;
}

.open-question {
  border-bottom: solid 1px rgba(0, 0, 0, 0.192);
  color: black;
}

.open-question img {
  transform: rotate(45deg);
  filter: brightness(0) saturate(100%) invert(84%) sepia(49%) saturate(637%)
    hue-rotate(358deg);
}

.faq-question img {
  width: 25px;
}

.faq-answer {
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-size: 16px;
  font-weight: 400;
  overflow: hidden;
  transition: ease all 500ms;
  max-width: 800px;
}

.faq-item {
  transition: ease all 500ms;
}

.faq-question {
  transition: ease all 300ms;
  cursor: pointer;
}

.faq-question:hover {
  transform: scale(1.02);
}

.answers button {
  margin-top: 50px;
  font-size: 16px;
}

.order {
  padding-top: 50px;
  background-color: white;
}

.order-content {
  position: relative;
  max-width: 1200px;
  background-image: url("assets/images/backgrounds/night.webp");
  background-size: contain;
  height: 550px;
  border-radius: 20px;
  margin: 0 auto;
  padding: 40px;
  overflow: hidden;
  z-index: 1;
  border: solid 1px rgb(224, 224, 224);
}

.order-content h2 {
  text-align: left;
  font-weight: 400;
  position: relative;
  z-index: 20;
}

.order-grid {
  position: absolute;
  height: 450px;
  width: 100%;
  background-image: url("assets/images/backgrounds/grid-back.webp");
  background-size: cover;
  z-index: 5;
  bottom: -50px;
  left: -50px;
}

.order-content-img {
  position: absolute;
  width: 540px;
  height: 550px;
  bottom: -60px;
  left: -10px;
  z-index: 10;
}

.offer-block {
  display: flex;
  z-index: 10;
  position: absolute;
  bottom: 0;
  right: 30px;
  background-color: white;
  border-radius: 15px 15px 0px 0px;
  padding: 20px;
  width: 700px;
  max-width: 700px;
  height: 400px;
}

.offer-price {
  z-index: 20;
  border: solid 2px rgb(33, 53, 109);
  width: 280px;
  border-radius: 10px;
  text-align: center;
  padding: 10px;
}

.offer-price span {
  font-size: 12px;
  color: #676767;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 700;
}

.offer-price h4 {
  margin: 0;
  margin-top: 40px;
  font-size: 16px;
  color: #b1b1b1;
  font-family: "Montserrat Alternates";
  font-weight: 300;
  text-decoration-line: line-through;
}

.offer-price h3 {
  margin: 0;
  font-size: 54px;
  color: #0f3068;
  font-family: "Montserrat Alternates";
  font-weight: 700;
  background: radial-gradient(
    51.51% 51.51% at 48.49% 50%,
    #5c768d 0%,
    #0a1f44 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
}

.offer-price p {
  margin: 0;
  margin-top: 40px;
  font-size: 12px;
  color: #676767;
  font-family: "Montserrat Alternates";
  font-weight: 400;
}

.offer-price-button {
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-items-mobile {
  display: none;
}

.offer-price-button button {
  font-size: 12px;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  border: none;
  background-color: #e3e3e3;
  border-radius: 20px;
  padding: 8px;
  padding-inline: 14px;
  cursor: pointer;
  transition: ease all 300ms;
}

.offer-price-button button:hover {
  background-color: #c4c4c4;
}

.offer-price-button img {
  width: 20px;
  margin-bottom: 10px;
  margin-left: 5px;
}

.offer-pays span {
  margin: 0;
  margin-top: 40px;
  font-size: 10px;
  color: #b1b1b1;
  font-family: "Montserrat Alternates";
  font-weight: 300;
}

.offer-pays {
  display: flex;
  justify-content: center;
  width: 200px;
  margin: 0 auto;
  margin-top: 10px;
}

.offer-pays div {
  display: block;
  text-align: center;
  width: 55px;
}

.offer-pays img {
  background-color: black;
  width: 35px;
  height: 35px;
  padding: 8px;
  border-radius: 100%;
}

.offer-time {
  padding: 20px;
  padding-top: 30px;
  text-align: center;
}

.offer-time span {
  text-transform: uppercase;
  margin: 0;
  margin-top: 40px;
  font-size: 14px;
  color: #676767;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 500;
}

.time-left h2 {
  width: 400px;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 700;
  font-size: 86px;
  text-align: center;

  background: radial-gradient(
    51.51% 51.51% at 48.49% 50%,
    #5c768d 0%,
    #0a1f44 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.time-left div {
  display: flex;
  justify-content: space-around;
}

.time-left div span {
  margin-top: 0px;
}

.time-left h3 {
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  margin-bottom: 40px;
  font-weight: 600;
  background: radial-gradient(
    51.51% 51.51% at 48.49% 50%,
    #5c768d 0%,
    #0a1f44 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.time-buttons {
  display: flex;
  justify-content: space-between;
}

.time-buttons button {
  max-width: 200px;
  font-size: 16px;
}

.time-buttons .blue-button {
  background: radial-gradient(
    58.41% 1067.37% at 50% 0%,
    #4c5c79 0%,
    #0d1b2a 100%
  );
}

.time-buttons .black-button {
  background-color: white;
  border: solid 2px black;
  color: black;
}

.time-buttons .black-button:hover {
  border: solid 2px white;
  color: white;
}

footer {
  height: 80px;
  background-color: white;
  display: flex;
  justify-content: center;
}

footer img {
  width: 50px;
}

.container {
  margin-inline: 20px;
  background-image: url("/assets/images/backgrounds/night.webp");
  background-size: contain;
}

.container {
  margin-top: 50px;
}

.container h2 {
  margin-bottom: 40px;
}

.grid-gallery {
  display: flex;
  width: 100%;
  max-width: 1200px;
  max-height: 700px;
  margin: 0 auto;
  padding-bottom: 10px;
  overflow-x: scroll;
}

.grid-container {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr); /* 4 колонки */
  position: relative;
  width: 100%;
  height: auto;
  margin: 0 auto;
  margin-top: 20px;
  margin-right: 15px;

  /* Добавляем scroll snap */
  scroll-snap-type: x mandatory;
}

.bottom-row {
  max-height: 350px;
}

.grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background-color: #fff;
  transition: transform 0.3s ease;
  min-width: 150px; /* Минимальная ширина элемента */
  height: 200px;
  /* Добавляем scroll snap */
  scroll-snap-align: start;
}

.grid-item img {
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.grid-item img:hover {
  cursor: pointer;
  transform: scale(1.05);
}

/* Нижний ряд */
.bottom-row {
  grid-column: span 2; /* Спаним 2 колонки */
}

.contacts {
  background-color: #060c1a;
  margin-top: 80px;
  margin-bottom: 80px;
}

.contacts-content {
  max-width: 1200px;
  margin: 0 auto;
  background-color: rgb(250, 250, 250);
  border-radius: 20px;
  padding-inline: 50px;
  padding-top: 30px;
  padding-bottom: 50px;
}

.contacts-content h2 {
  background: radial-gradient(
    51.51% 51.51% at 48.49% 50%,
    #5c768d 0%,
    #0a1f44 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
  text-align: left;
  margin-bottom: 30px;
}

.form-contacts {
  background-color: #060c1a;
  width: 353px;
  padding: 25px;
  border-radius: 10px;
  background-image: url("assets/images/backgrounds/shining-star.svg");
  background-size: 200px 200px;
  background-repeat: no-repeat;
  background-position: right bottom;
  color: #ffffff;
  padding-bottom: 60px;
}

.form-person-img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 5px;
}

.form-contacts {
  font-size: 12px;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 300;
  margin-right: 60px;
}

.form-number div {
  display: flex;
  align-items: center;
}

.form-number span {
  margin-left: 5px;
}

.form-number {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}
.form-tg-wh img {
  margin-inline: 8px;
  width: 35px;
  transition: ease all 300ms;
}

.form-tg-wh img:hover {
  transform: scale(1.15);
}

.form-map-point {
  margin-top: 20px;
  display: flex;
  align-items: center;
}

.form-map-point div {
  display: flex;
  align-items: center;
}

.form-map-point img {
  margin-right: 5px;
}

.form-block {
  display: flex;
  padding: 10px;
  border-radius: 10px;
  background-color: rgb(255, 255, 255);
}

.form-feedback {
  margin-top: 50px;
  width: 100%;
}

.form-feedback h2 {
  font-size: 28px;
}

.form-feedback .black-button {
  font-size: 16px;
  width: 200px;
}

.form-feedback .form-group {
  width: 100%;
}

.day-night-mobile {
  display: none;
}

@media (max-width: 560px) {
  .order {
    mask-image: none;
    -webkit-mask-image: none;
    padding-bottom: 0px;
  }
  .container {
    margin-top: 0px;
    margin-bottom: 40px;
    margin-inline: 20px;
    background-image: none;
  }
  .container h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .grid-container {
    gap: 5px;
    margin-right: 5px;
  }

  .grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: #fff;
    transition: transform 0.3s ease;
    min-width: 90px; /* Минимальная ширина элемента */
    height: 150px;
  }
  .visual-item {
    opacity: 1;
    transform: translateX(0px);
  }
  .problems-image {
    width: 50%;
  }
  .hero-visual {
    margin-top: 50px;
    height: 300px;
    width: auto;
  }
  .bed-base {
    margin-top: 40px;
  }
  .hero-image {
    width: 90%;
    height: 35vh;
  }
  .hero {
    padding: 36px 12px 56px;
    padding-bottom: 0px;
    background-image: none;
    background: radial-gradient(
      ellipse 60% 10% at center,
      rgba(255, 255, 255, 0.61) 0%,
      transparent 100%
    );
  }
  .hero-title {
    font-size: 24px;
  }
  .hero-subtitle-strong {
    font-size: 20px;
    width: 300px;
    margin: 0 auto;
    margin-bottom: 15px;
  }
  .hero-subtitle-note {
    font-size: 16px;
  }
  .site-header {
    height: 60px;
  }
  .logo a img {
    width: 50px;
  }
  .hero-cta {
    font-size: 18px;
    padding-inline: 40px;
    position: initial;
    transform: none;
  }
  .problems-title {
    font-size: 24px;
    margin-top: 0px;
  }
  .problems-image {
    max-width: 220px;
  }
  .problems {
    height: auto;
    padding-bottom: 100px;
    background: radial-gradient(
      ellipse 100% 100% at center,
      #45454541 0%,
      transparent 50%
    );
  }
  .problem {
    flex-direction: row;
    position: initial;
    transform: none;
    font-size: 18px;
    margin-bottom: 25px;
    width: 100%;
  }
  .problem span::first-letter {
    text-transform: capitalize;
  }
  .problem-ring {
    position: inherit;
    margin-left: 20px;
    margin-top: 40px;
  }
  .problem img {
    width: 25px;
    height: 25px;
    margin-right: 30px;
  }
  .advantages {
    margin-top: 0px;
    height: 900px;
  }
  .advantages-title {
    font-size: 28px;
    top: 0;
  }
  .star-1 {
    top: 10%;
    left: 5%;
  }
  .star-2 {
    top: 20%;
    left: 30%;
  }
  .star-3 {
    top: 35%;
    left: 30%;
  }
  .star-4 {
    top: 60%;
    left: 38%;
  }
  .star-5 {
    top: 70%;
    left: 10%;
  }
  .star-6 {
    top: 85%;
    left: 35%;
  }
  .star-7 {
    top: 80%;
    left: 40%;
  }
  .advantages-constellation {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
    width: 100%;
    height: 1000px;
  }
  .star-item {
    max-width: 100vw !important;
  }
  .specs-content {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    padding: 0 10px !important;
  }
  .before-after {
    max-width: 100vw !important;
    overflow: hidden !important;
    padding: 0 10px !important;
  }
  .pillows-slider {
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  .slides {
    padding: 0 20px !important;
    max-width: 100vw !important;
  }

  .before-block,
  .after-block {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 10px;
    margin-bottom: 50px;
  }

  .before-after p {
    font-size: 16px;
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .after-block {
    margin-top: 50px;
  }
  .before-img,
  .after-img {
    height: 250px;
  }
  .before-img img,
  .after-img img {
    height: 250px;
    width: 100%;
  }

  .after span {
    bottom: 15px;
    right: 15px;
    top: auto;
  }

  .specs-item {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 10px 20px 10px !important;
  }
  .star-text {
    text-align: left;
  }
  .star-icon {
    transform: translateX(-80px);
  }
  .star-7 img {
    margin-top: 0px;
    transform: translateX(60px);
  }
  .star-7 .star-text {
    margin-top: 25px;
  }
  .principle-title {
    font-size: 26px;
  }
  .principle-text {
    font-size: 15px;
  }
  .principle-subtitle {
    font-size: 15px;
  }
  .principle {
    margin-inline: 20px;
  }
  .principle-visual {
    display: none;
  }
  .principle-content .visual-item img {
    display: block;
    width: 50%;
    height: 150px;
    margin: 0 auto;
    margin-bottom: 40px;
  }
  .bed-visual-item {
    background-position: center 50px;
    background-size: 50%;
  }
  .day-night {
    margin-inline: 20px;
    height: 1100px;
    padding-bottom: 200px;
  }
  .day-night h2 {
    margin: 0;
    font-size: 24px;
    text-align: left;
    transform: none;
    position: initial;
  }
  .background {
    display: none;
  }
  .switch-container {
    display: none;
  }
  .center-circle {
    display: none;
  }
  .bottom-texts {
    display: none;
  }
  .day-night-mobile {
    display: block;
  }
  .day-night-mobile img {
    width: 250px;
    position: absolute;
  }
  .moon-text {
    padding-left: 100px;
  }
  .day-night-mobile h2 {
    font-size: 16px;
    margin-top: 250px;
    width: 65%;
  }
  .sun {
    top: 80px;
    right: -70px;
    height: 450px;
  }
  .moon {
    left: -70px;
    bottom: 100px;
    height: 450px;
  }
  #moon-text {
    margin-left: 50px;
    margin-top: 520px;
    width: 90%;
  }
  .specs {
    background-color: transparent;
  }
  .specs-title {
    font-size: 22px;
    color: #e8eaed;
    margin-top: 80px;
  }
  .specs-subtitle {
    font-size: 16px;
    color: #d5d5d5;
  }
  .specs-text strong {
    color: #e8eaed;
    font-weight: 300;
    line-height: 4;
    font-size: 15px;
  }
  .specs-item {
    background: transparent;
  }
  .specs-text {
    line-height: 1.3;
    color: #d5d5d5;
    width: 90%;
    font-size: 12px;
  }
  .specs-icons {
    gap: 18px;
  }
  .specs-icon {
    width: 35px;
    height: 35px;
    position: absolute;
    right: 10px;
    margin-top: 10px;
  }
  .specs-visual {
    display: none;
  }
  .visual-items-mobile {
    display: flex;
    justify-content: space-around;
    width: 90vw;
  }
  .rounded-visual-item img {
    object-fit: cover;
    width: 100vw;
    height: 250px;
    margin-top: 0px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px 5px rgb(83, 83, 83),
      inset 0 0 20px 5px rgba(0, 0, 0, 0.4);
  }
  .specs-text[style*="margin-bottom: 80px"] {
    margin-bottom: 0px !important;
  }
  .specs-item {
    width: 90vw;
    padding: 0px;
  }
  .specs {
    padding: 50px 10px;
  }
  .why-it-works h2 {
    font-size: 20px;
    color: #e8eaed;
    font-weight: 500;
  }
  .before-after {
    margin-top: 50px;
  }
  .vector1,
  .vector2 {
    display: none;
  }
  .before-after {
    display: block;
  }

  .mobile {
    display: block;
  }

  .why-it-works {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .before-block,
  .after-block {
    max-width: 100%;
  }

  .close-eyes p {
    font-size: 16px;
  }

  .close-eyes {
    margin-inline: 20px;
  }

  .close-eyes img {
    height: 200px;
    width: 80%;
  }

  .blue-button,
  .black-button {
    font-size: 16px;
    width: auto;
    padding-inline: 25px;
  }

  .close-eyes div {
    justify-content: center;
    gap: 15px;
  }

  .pillows {
    margin-top: 100px;
    margin-bottom: 120px;
    padding-inline: 20px;
  }

  .pillows h2 {
    font-size: 18px;
    max-width: 280px;
    margin: 0 auto;
  }

  .pillows p {
    font-size: 16px;
    color: #d5d5d5;
    line-height: 1.5;
  }

  .slider-controls {
    width: 75px;
    margin-top: 30px;
    height: 30px;
  }

  .slider-controls button {
    font-size: 18px;
    height: 25px;
    margin-inline: 10px;
  }

  .slide {
    width: 95vw;
    height: 100%;
  }

  .slide-content {
    width: 90vw;
    height: 100vw;
  }

  .slides {
    height: 100%;
  }

  .offer-block {
    width: 100% !important;
    max-width: 100vw !important;
    right: 0 !important;
    left: 0 !important;
    border-radius: 15px !important;
    padding: 15px !important;
    box-sizing: border-box !important;
    position: relative !important;
    margin-top: 20px;
  }

  .order-content {
    height: auto !important;
    padding: 20px !important;
  }

  .slides {
    padding: 0 5px !important;
    height: 100vw !important;
  }

  .slide p,
  .slide span {
    word-wrap: break-word !important;
  }

  .slide p {
    padding-top: 30px !important;
    font-size: 16px !important;
    background: radial-gradient(
      64.43% 64.43% at 48.49% 50%,
      #5c768d 0%,
      #0a1f44 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
  }

  .slide.prev {
    transform: translateX(-60%) rotate(-70deg) scale(0.5);
  }

  .slide.next {
    transform: translateX(60%) rotate(70deg) scale(0.5);
  }

  .slide span {
    font-size: 12px !important;
    font-weight: 300;
    line-height: 1.4 !important;
  }

  .offer-time {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
  }

  .success-content {
    color: white;
  }

  .time-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .time-buttons button {
    width: 100% !important;
    max-width: 100% !important;
  }

  .order-content {
    background-size: cover !important;
    height: auto !important;
    min-height: 500px !important;
  }

  .order-grid {
    display: none !important;
  }

  .offer-block {
    flex-direction: column;
    height: auto !important;
  }

  .offer-price {
    width: 100% !important;
    margin-bottom: 20px;
  }

  .sleep-stages {
    background-color: #ffffff;
  }

  .sleep-stages h2 {
    color: black;
    background: radial-gradient(
      64.43% 64.43% at 48.49% 50%,
      #5c768d 0%,
      #0a1f44 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 20px;
    font-weight: 400;
    padding-top: 30px;
  }

  .stages {
    display: block;
    margin-inline: 0px;
    background-image: none;
    height: auto;
    padding-bottom: 50px;
  }

  .right-stages .stages-card,
  .left-stages .stages-card {
    margin-bottom: 0px;
    margin-top: 30px;
    box-shadow: none;
  }

  .card-header h3 {
    font-size: 16px;
  }

  .card-header span {
    font-weight: 500;
    max-width: 220px;
  }
  .progress {
    right: 0px;
  }

  .qna {
    background-color: black;
  }
  .qna h2 {
    font-size: 20px;
    color: #e8eaed;
    margin: 0 auto;
  }
  .qna-content {
    display: block;
    padding-top: 30px;
  }
  .answers {
    margin-right: 0px;
  }
  .faq-question {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
  }
  .faq-answer {
    color: #d5d5d5;
    font-weight: 300;
    font-size: 15px;
    width: 95%;
  }
  .open-question {
    border-bottom: solid 1px rgba(255, 255, 255, 0.11);
  }
  .your-question {
    margin-top: 50px;
    height: 250px;
  }
  .your-question p {
    color: black;
    line-height: 1;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 30px;
  }
  .your-question span {
    font-weight: 300;
  }
  .your-question button {
    font-size: 16px;
    font-weight: 300;
    width: 90%;
  }
  .contacts {
    margin-top: 0px;
    background-color: black;
    margin-bottom: 0px;
    -webkit-mask-image: linear-gradient(
      to bottom,
      black 0%,
      black 85%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      black 0%,
      black 85%,
      transparent 100%
    );
  }
  .contacts input {
    color: white;
  }
  .contacts-content {
    background-color: black;
  }
  .form-block {
    padding: 0;
    background-color: black;
  }
  .form-person-img {
    width: 100%;
    height: 100%;
  }
  .form-contacts {
    padding: 0;
    padding-inline: 20px;
    background-image: none;
    margin: 0 auto;
  }
  .form-map-point img {
    margin-right: 20px;
  }
  .form-number span {
    margin-left: 20px;
  }
  .form-feedback {
    margin-top: 150px;
    border-radius: 15px;
    box-shadow: 0px -20px 100px 3px rgba(70, 81, 143, 0.418);
    padding-inline: 20px;
    padding-bottom: 150px;
    background-image: url("assets/images/backgrounds/shining-star.svg");
    background-size: 250px 250px;
    background-repeat: no-repeat;
    background-position: right bottom;
  }
  .form-feedback h2 {
    -webkit-text-fill-color: white;
    font-size: 18px;
    margin-top: 50px;
    font-weight: 300;
  }
  .form-feedback .form-label {
    color: white;
  }
  .form-feedback .pc {
    display: none;
  }
  #price.form-input {
    color: white;
  }
  #price.form-label {
    display: flex;
    justify-content: space-between;
  }
  #price.required {
    color: white;
  }
  .form-feedback .black-button {
    background-color: white;
    color: black;
    width: 80%;
    margin: 0 auto;
  }
  .order-content {
    position: relative;
    border: none;
    border-radius: 0;
    background-color: rgb(4, 7, 22);
    background-image: none;
  }
  .order-content h2 {
    font-size: 22px;
    text-align: center;
  }
  .offer-time {
    margin-top: 50px;
    margin-bottom: 350px;
  }
  .offer-time span {
    color: #d5d5d5;
    font-weight: 300;
  }
  .time-left h2 {
    width: 100%;
    font-size: 70px;
    -webkit-text-fill-color: white;
  }
  .time-left div {
    margin-bottom: 0px;
  }
  .time-left h3 {
    font-size: 16px;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.651);
  }
  .pc {
    display: none;
  }
  .order-content-img {
    position: absolute;
    object-fit: cover;
    width: 100vw;
    height: 400px;
    top: 150px;
    left: 60%;
    transform: translateX(-60%);
  }
  .time-buttons {
    margin-top: 40px;
  }
  .offer-price {
    border: none;
    padding: 0px;
    padding-top: 5px;
  }
  .order {
    background-color: black;
  }
  footer {
    height: 45px;
  }
  footer img {
    width: 40px;
  }
}

@keyframes dnaScroll {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -60px 0;
  }
}

@keyframes lightShake {
  0% {
    transform: translateX(-1px);
  }
  100% {
    transform: translateX(1px);
  }
}

@keyframes strongShake {
  0% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(5px);
  }
}

@media (max-width: 560px) {
  html,
  body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
  }

  .specs-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
  }

  .specs-subtitle {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
  }

  .advantages-constellation {
    width: 100% !important;
    max-width: 100% !important;
    transform: scale(0.9);
    transform-origin: center top;
  }

  .order-content {
    width: 100% !important;
    max-width: 100% !important;
  }

  .offer-block {
    width: calc(100% - 20px) !important;
    right: 10px !important;
    left: 10px !important;
    box-sizing: border-box;
  }

  .pillows-slider {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .before-after {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
  }

  .contacts-content {
    width: 100% !important;
    margin: 0 10px;
    padding: 20px;
    padding-inline: 0px;
    margin: 0 auto;
  }

  .form-block {
    flex-direction: column;
    width: 100% !important;
  }

  .form-contacts {
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 20px;
  }

  .visual-items-mobile img {
    max-width: 45% !important;
  }

  .rounded-visual-item img {
    width: 80% !important;
    max-width: 100% !important;
  }

  * {
    max-width: 100vw;
  }
}

@media (max-width: 375px) {
  .offer-block {
    padding: 10px !important;
  }
}
