/* INTER FONT */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter_24pt-Regular.woff2") format("woff2"),
    url("../fonts/Inter_24pt-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter_24pt-SemiBold.woff2") format("woff2"),
    url("../fonts/Inter_24pt-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/fonts/Inter_28pt-Bold.woff2") format("woff2"),
    url("../fonts/Inter_28pt-Bold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-gradient: linear-gradient(135deg, #ff9191 0%, #ff6a00 100%);
  --secondary-gradient: linear-gradient(135deg, #ff5e00 0%, #ff9a4d 100%);
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-blur: blur(25px);
  --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.2);
  --text-dark: #1e293b;
  --text-light: #64748b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  background: #f8fafc;
}

/* ADVANCED STICKY NAVIGATION WITH SUBMENUS */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-light);
  padding: 1rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  font-size: 1.4rem;
}

/* DESKTOP MAIN MENU */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: #fff;
  background: var(--primary-gradient);
  transform: translateY(-2px);
}

/* SUBMENU - MODERN DROPDOWN */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  list-style: none;
  margin-top: 0.5rem;
}

.nav-item:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu-link {
  color: var(--text-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.submenu-link:hover {
  background: var(--primary-gradient);
  color: white;
  padding-left: 1rem;
  transform: translateX(5px);
}

.submenu-link i {
  width: 20px;
  font-size: 0.9rem;
}

/* CTA Button in Navbar */
.nav-cta {
  background: var(--primary-gradient);
  color: white !important;
  padding: 0.75rem 2rem !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px rgba(234, 146, 102, 0.4);
}

.nav-cta:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 8px 30px rgba(234, 168, 102, 0.6) !important;
}

/* MOBILE HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 0.5rem;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* HERO */
.hero {
  min-height: 100vh;
  width: 100%;
  overflow: hidden; /* на всякий случай, чтобы ничего не вылезало */
  display: grid; /* грид-контейнер */
  /* Будет создано 3 колонки */
  grid-template-columns: [start] 1fr [line2] 2fr [line3] 1fr [end];
  /* Будет создано 5 ряда */
  grid-template-rows: [row-start] 1fr [row-end];
  background: radial-gradient(
      circle at 20% 80%,
      rgba(120, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    var(--secondary-gradient);
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: [start] 1fr [end];
    grid-template-rows: [row-start] 1fr [row1] 1fr [row2] 1fr [row-end];
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 30% 70%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  animation: float 40s ease-in-out infinite;
}

/* НОВЫЙ ::after с изображением (средний слой) */
.hero::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 80px;
  left: 0;
  bottom: 0;
  background-image: url("../images/heroman.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom; /* прижать к низу */
  opacity: 0.85;
  z-index: 0;
}

@media (max-width: 768px) {
  .hero::after {
    position: absolute;
    top: auto; /* убрать верхний отступ */
    bottom: 0;
    z-index: -1;
  }
}

@media (max-width: 1012px) {
  .hero::after {
    position: absolute;
    top: 125px; /* убрать верхний отступ */
    bottom: 0;
    z-index: 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.item {
  /* border: 1px solid black; */
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero-title {
  grid-column-start: line2;
  grid-column-end: line3;
  grid-row-start: row-start;
  grid-row-end: row-end;
  justify-self: center;
  align-self: center;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-title {
    grid-column-start: start;
    grid-column-end: end;
    grid-row-start: row-start;
    grid-row-end: row1;
    justify-self: center;
    align-self: center;
    text-align: center;
  }
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: #fff;
  margin-bottom: 3rem;
  opacity: 0.95;
  font-weight: 400;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-title > h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--glass-bg);
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-lefttext {
  grid-column-start: start;
  grid-column-end: line2;
  grid-row-start: row-start;
  grid-row-end: row-end;
  justify-self: center;
  align-self: center;
  padding: 1rem 2rem;
}

@media (max-width: 768px) {
  .hero-lefttext {
    grid-column-start: start;
    grid-column-end: end;
    grid-row-start: row1;
    grid-row-end: row2;
    justify-self: center;
    align-self: center;
    text-align: center;
  }
}

.hero-righttext {
  grid-column-start: line3;
  grid-column-end: end;
  grid-row-start: row-start;
  grid-row-end: row-end;
  justify-self: center;
  align-self: center;
  padding: 1rem 2rem;
}

@media (max-width: 768px) {
  .hero-righttext {
    grid-column-start: start;
    grid-column-end: end;
    grid-row-start: row2;
    grid-row-end: row-end;
    justify-self: center;
    align-self: center;
    text-align: center;
  }
}
.diagnostic {
  background: rgba(255, 0, 0, 0.2);
  padding: 1rem 2rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  margin-bottom: 3rem;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  text-align: center;
  opacity: 0.95;
  color: #fff;
}

.hero-lefttext > span {
  background: rgba(255, 255, 255, 0.2);
  padding: 1rem 2rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  margin-bottom: 3rem;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  text-align: center;
  opacity: 0.95;
  color: #fff;
}

.hero-righttext > span {
  background: rgba(255, 255, 255, 0.2);
  padding: 1rem 2rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  margin-bottom: 3rem;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  text-align: center;
  opacity: 0.95;
  color: #fff;
}

.hero-lefttext span {
  font-weight: 600;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero-righttext span {
  font-weight: 600;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1.25rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: white;
  color: #667eea;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

/* Sections */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 7rem 0;
}

.section-title {
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 4rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

/* Services Grid - Bento Style */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: white;
  padding: 3rem 2.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 100px;
  height: 100px;
  background: var(--primary-gradient);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Reviews */
.review-card {
  background: white;
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow-light);
  position: relative;
}

.review-text {
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  line-height: 1.7;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  color: #667eea;
}

/* Contacts */
.contacts {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 24px;
  padding: 4rem;
  text-align: center;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.contact-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* EXAMPLES SLIDER */
.example-slider {
  display: flex;
  flex-direction: row;
  max-width: 100%;
  height: 400px;
  gap: 1rem;
  position: relative;
}

.slide {
  min-width: 40%;
  height: 100%;
  background-color: #000;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.prev {
  left: 20px;
}
.next {
  right: 20px;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  text-align: center;
  padding: 4rem 2rem 2rem;
}

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
  .logo {
    display: none;
  }
  .submenu {
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link {
    justify-content: space-around;
    /* width: 100%; */
    padding: 1.5rem;
  }

  /* MOBILE ACCORDION SUBMENU */
  .submenu {
    position: static;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height 0.4s ease;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .nav-item.active .submenu {
    max-height: 500px;
    padding: 1rem 0;
  }

  .hero {
    padding: 8rem 1rem 6rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    max-width: none;
    justify-content: center;
  }

  .section {
    padding: 4rem 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contacts {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .container {
    padding: 0 1rem;
  }
}

/* Контейнер форм */
#mars-once,
#mars-once-page {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mars-once:hover,
#mars-once-page:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* Общие стили для label */
#mars-once label,
#mars-once-page label {
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}

/* Стилы для input, select, textarea */
#mars-once input,
#mars-once select,
#mars-once textarea,
#mars-once-page input,
#mars-once-page select,
#mars-once-page textarea {
  margin-top: 0.75rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(12px);
  font-size: 1rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

#mars-once input::placeholder,
#mars-once textarea::placeholder,
#mars-once-page input::placeholder,
#mars-once-page textarea::placeholder {
  color: rgba(100, 116, 139, 0.6);
}

/* Фокус и hover */
#mars-once input:focus,
#mars-once select:focus,
#mars-once textarea:focus,
#mars-once-page input:focus,
#mars-once-page select:focus,
#mars-once-page textarea:focus {
  border-color: #ff6a00;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.1), var(--shadow-light);
  transform: translateY(-2px);
}

#mars-once input:hover,
#mars-once select:hover,
#mars-once textarea:hover,
#mars-once-page input:hover,
#mars-once-page select:hover,
#mars-once-page textarea:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 106, 0, 0.2);
}

/* Специфичные стили */
#mars-once input[type="tel"],
#mars-once-page input[type="tel"] {
  font-family: "SF Mono", "Roboto Mono", monospace;
  letter-spacing: 0.05em;
}

#mars-once select,
#mars-once-page select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 3rem;
  cursor: pointer;
}

#mars-once textarea,
#mars-once-page textarea {
  resize: vertical;
  min-height: 120px;
}

/* Кастомный чекбокс */
#mars-once label:last-of-type,
#mars-once-page label:last-of-type {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
}

#mars-once input[type="checkbox"],
#mars-once-page input[type="checkbox"] {
  display: none;
}

#mars-once .checkmark,
#mars-once-page .checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 106, 0, 0.3);
  border-radius: 8px;
  position: relative;
  flex-shrink: 0;
  margin-top: 0.125rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mars-once input[type="checkbox"]:checked + .checkmark,
#mars-once-page input[type="checkbox"]:checked + .checkmark {
  background: var(--primary-gradient);
  border-color: var(--primary-gradient);
  animation: checkmarkPulse 0.4s ease;
}

#mars-once input[type="checkbox"]:checked + .checkmark::after,
#mars-once-page input[type="checkbox"]:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
}

@keyframes checkmarkPulse {
  0% {
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Ссылка в чекбоксе */
#mars-once a,
#mars-once-page a {
  color: #ff6a00;
  text-decoration: none;
  font-weight: 600;
}

#mars-once a:hover,
#mars-once-page a:hover {
  text-decoration: underline;
}

/* Кнопка отправки */
#mars-once button,
#mars-once-page button {
  margin-top: 1rem;
  padding: 1.5rem 3rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(255, 106, 0, 0.4);
}

#mars-once button:hover,
#mars-once-page button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(255, 106, 0, 0.5);
}

#mars-once button:active,
#mars-once-page button:active {
  transform: translateY(-2px) scale(1);
}

#mars-once button::before,
#mars-once-page button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s;
}

#mars-once button:hover::before,
#mars-once-page button:hover::before {
  left: 100%;
}

/* Адаптивность */
@media (max-width: 768px) {
  #mars-once,
  #mars-once-page {
    margin: 0 1rem;
    padding: 2.5rem 1.5rem;
  }

  #mars-once label,
  #mars-once-page label {
    font-size: 1rem;
  }

  #mars-once button,
  #mars-once-page button {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  #mars-once,
  #mars-once-page {
    padding: 2rem 0.5rem;
  }

  #mars-once input,
  #mars-once select,
  #mars-once textarea,
  #mars-once-page input,
  #mars-once-page select,
  #mars-once-page textarea {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* Форма и сообщения */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-success,
.form-error {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  min-width: 320px;
  max-width: 400px;
}

.form-success {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid #10b981;
  color: #065f46;
}

.form-error {
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
  border: 2px solid #ef4444;
  color: #991b1b;
}

.form-success i,
.form-error i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.form-success h3,
.form-error h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.form-success p,
.form-error p {
  margin: 0;
  opacity: 0.9;
  line-height: 1.5;
}

/* Анимация появления */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.form-success.show,
.form-error.show {
  display: block;
  animation: fadeInScale 0.3s ease-out;
}

/* Затемнение фона при показе сообщения */
body.modal-open {
  overflow: hidden;
}

body.modal-open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}
