:root {
  --bg: #eef1fa;
  --bg-alt: #f7f8fd;
  --text: #0e1433;
  --muted: #5f6b9a;
  --accent: #3b4a8f;
  --accent-soft: rgba(59, 74, 143, 0.15);
  --card: #ffffff;
  --border: rgba(14, 20, 51, 0.12);
  --shadow: 0 20px 50px rgba(14, 20, 51, 0.12);
}

[data-theme="dark"] {
  --bg: #0e1433;
  --bg-alt: #111a3a;
  --text: #eef1fa;
  --muted: #9fa8d6;
  --accent: #8a95c9;
  --accent-soft: rgba(138, 149, 201, 0.2);
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(238, 241, 250, 0.2);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] select {
  background: #0e1433;
  color: #eef1fa;
  border-color: rgba(138, 149, 201, 0.5);
}

[data-theme="dark"] select:hover {
  background: #111a3a;
}

[data-theme="dark"] select:focus {
  border-color: #3b4a8f;
  box-shadow: 0 0 0 3px rgba(59, 74, 143, 0.3);
  outline: none;
}

[data-theme="dark"] select option {
  background: #0e1433;
  color: #eef1fa;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

main {
  padding-top: 100px;
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 6vw;
  background: rgba(238, 241, 250, 0.7);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .header {
  background: rgba(14, 20, 51, 0.8);
}

.logo {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo img {
  width: 32px;
  height: 32px;
}

.header__actions {
  display: flex;
  gap: 16px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.theme-icon {
  position: absolute;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.theme-icon--sun {
  transform: translateY(0);
  opacity: 1;
}

[data-theme="dark"] .theme-icon--sun {
  transform: translateY(-12px);
  opacity: 0;
}

.theme-icon--moon {
  transform: translateY(12px);
  opacity: 0;
}

[data-theme="dark"] .theme-icon--moon {
  transform: translateY(0);
  opacity: 1;
}

.menu-line {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.menu-line:nth-child(1) {
  top: 14px;
}

.menu-line:nth-child(2) {
  top: 21px;
}

.menu-line:nth-child(3) {
  top: 28px;
}

#menuToggle.is-active .menu-line:nth-child(1) {
  transform: translateX(-50%) translateY(7px) rotate(45deg);
}

#menuToggle.is-active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuToggle.is-active .menu-line:nth-child(3) {
  transform: translateX(-50%) translateY(-7px) rotate(-45deg);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 20, 51, 0.86);
  color: #eef1fa;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.overlay__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 40px 6vw;
}

.overlay__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.overlay__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.overlay__links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.6rem;
}

.overlay__links a {
  transition: transform 0.3s ease;
}

.overlay__services {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px 16px;
}

.overlay__services summary {
  list-style: none;
  cursor: pointer;
  font-size: 1.6rem;
}

.overlay__services summary::-webkit-details-marker {
  display: none;
}

.overlay__submenu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  font-size: 1rem;
}

.overlay__links a:hover {
  transform: translateX(12px);
}

.overlay__mini-game {
  background: rgba(255, 255, 255, 0.08);
  padding: 24px;
  border-radius: 20px;
}

.tic-tac-toe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px auto;
  width: min(240px, 100%);
}

.tic-tac-toe button {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.1);
  color: #eef1fa;
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

.tic-tac-toe button:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
}

.game-status {
  min-height: 24px;
  text-align: center;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.game-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding: 80px 6vw 60px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero__headline {
  font-size: clamp(2.5rem, 4vw, 4.4rem);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__headline span {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 0.8s ease forwards;
}

.hero__headline span:nth-child(2) {
  animation-delay: 0.2s;
}

.hero__headline span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__subtext {
  margin-top: 20px;
  color: var(--muted);
  max-width: 520px;
}

.hero__actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
}

.primary-button,
.secondary-button,
.outline-button {
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-button {
  background: var(--accent);
  color: #eef1fa;
  box-shadow: var(--shadow);
}

.secondary-button {
  background: var(--card);
  border-color: var(--border);
}

.outline-button {
  border-color: rgba(255, 255, 255, 0.4);
  color: #eef1fa;
  background: transparent;
}

.magnetic {
  position: relative;
}

.hero__visual {
  position: relative;
  min-height: 420px;
}

.parallax {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(59, 74, 143, 0.8), rgba(138, 149, 201, 0.6));
  filter: blur(0.5px);
}

.shape--one {
  width: 220px;
  height: 220px;
  top: 0;
  right: 40px;
}

.shape--two {
  width: 160px;
  height: 160px;
  bottom: 40px;
  left: 20px;
}

.shape--three {
  width: 120px;
  height: 120px;
  top: 40%;
  left: 45%;
  background: linear-gradient(135deg, rgba(138, 149, 201, 0.7), rgba(59, 74, 143, 0.5));
}

.shape--four {
  width: 90px;
  height: 90px;
  bottom: 10px;
  right: 90px;
  background: linear-gradient(135deg, rgba(238, 241, 250, 0.8), rgba(59, 74, 143, 0.4));
}

.hero__glass {
  position: absolute;
  bottom: 20px;
  right: 0;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  padding: 24px;
  max-width: 300px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

[data-theme="dark"] .hero__glass {
  background: rgba(14, 20, 51, 0.6);
}

.hero__stats {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}

.hero__stats strong {
  font-size: 1.2rem;
}

.promo {
  background: var(--accent);
  color: #eef1fa;
  padding: 18px 0;
  overflow: hidden;
}

.promo__track {
  display: inline-flex;
  gap: 60px;
  white-space: nowrap;
  font-weight: 600;
  will-change: transform;
  animation: promo-marquee 18s linear infinite;
}

@keyframes promo-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section-heading {
  padding: 40px 6vw 20px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-heading p {
  color: var(--muted);
  margin-top: 12px;
}

.logic__grid {
  padding: 20px 6vw 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.logic__card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logic__card::after {
  content: attr(data-count);
  font-size: 2rem;
  color: var(--accent);
}

.services__grid {
  padding: 20px 6vw 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.workflow__steps {
  padding: 20px 6vw 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.workflow__steps div {
  background: var(--bg-alt);
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.portfolio__grid {
  padding: 20px 6vw 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.portfolio__item {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.portfolio__item div {
  padding: 16px;
}

.portfolio__carousel {
  overflow: hidden;
  padding: 10px 0 50px;
}

.carousel__track {
  display: flex;
  gap: 30px;
  animation: marquee 18s linear infinite;
}

.carousel__item {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 16px 28px;
  border-radius: 999px;
  white-space: nowrap;
}

.partners__marquee {
  overflow: hidden;
  padding: 10px 0 60px;
}

.marquee__track {
  display: flex;
  gap: 40px;
  align-items: center;
  animation: marquee 20s linear infinite;
}

.cta {
  padding: 80px 6vw;
  background: linear-gradient(135deg, rgba(59, 74, 143, 0.16), rgba(138, 149, 201, 0.2));
}

.cta__inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact {
  padding: 60px 6vw 100px;
}

.contact__form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

input,
select,
textarea {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  color: var(--muted);
}

.booking {
  padding: 80px 6vw 100px;
}

.booking__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.booking__info {
  background: var(--bg-alt);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.booking__note {
  margin-top: 20px;
  background: var(--accent-soft);
  padding: 16px;
  border-radius: 16px;
}

.service-hero {
  padding: 80px 6vw 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: center;
}

.service-hero__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.service-hero__nav a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.9rem;
}

.service-hero__nav a.active {
  background: var(--accent);
  color: #eef1fa;
  border-color: transparent;
}

.package-grid {
  padding: 20px 6vw 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.package-card {
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.package-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.service-cta {
  padding: 60px 6vw 100px;
}

.service-cta__inner {
  background: var(--accent);
  color: #eef1fa;
  padding: 40px;
  border-radius: 30px;
  text-align: center;
}

.not-found {
  padding: 120px 6vw;
  text-align: center;
}

.legal {
  padding: 120px 6vw 80px;
}

.legal__inner {
  max-width: 880px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
}

.legal__inner h1 {
  margin-bottom: 16px;
}

.legal__inner h2 {
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal__inner p {
  color: var(--muted);
  margin-bottom: 12px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 6vw 30px;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 20px;
}

.footer__note {
  text-align: center;
  color: var(--muted);
}

.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: grid;
  place-items: center;
  z-index: 2000;
}

.preloader__ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--accent-soft);
  border-top-color: var(--accent);
  animation: spin 1.2s linear infinite;
  position: absolute;
}

.preloader__logo {
  width: 54px;
  height: 54px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.cursor {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 3000;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
}

.cursor--blur {
  width: 140px;
  height: 140px;
  background: var(--accent-soft);
  border: none;
  filter: blur(20px);
}

.muted {
  color: var(--muted);
}

@media (max-width: 960px) {
  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .overlay__content {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .header {
    padding: 18px 4vw;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .overlay__links {
    font-size: 1.2rem;
  }

  .tic-tac-toe button {
    width: 58px;
    height: 58px;
  }
}
