:root {
  --bg: #111316;
  --panel: #171b20;
  --panel-soft: #1f252c;
  --text: #f1f3f5;
  --muted: #afb5bc;
  --accent: #e8682f;
  --accent-2: #ffb45b;
  --line: #2f363f;
}

* { box-sizing: border-box; }
html, body {
  width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(17, 19, 22, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.nav { display: flex; gap: 20px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; }

.cta-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}
.cta-btn--solid {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #16181a;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-right: 52px;
}
.cta-btn--solid::after {
  content: "🛠";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(17, 22, 28, 0.28);
  border: 1px solid rgba(17, 22, 28, 0.4);
  font-size: 16px;
  line-height: 1;
  animation: spinSite1 4.2s linear infinite;
}
.cta-btn--solid:hover::after { animation-duration: 2.2s; }
@keyframes spinSite1 {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}
.cta-btn--solid:hover { transform: translateY(-2px); }
.cta-btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}
.cta-btn--ghost:hover { border-color: var(--accent-2); }
.cta-btn--pulse { animation: pulseBorder 1.8s infinite; }
.cta-btn.js-open-quiz {
  padding: 15px 28px;
  min-height: 52px;
  font-size: 16px;
}
.cta-btn--solid.js-open-quiz { padding-right: 58px; }
@keyframes pulseBorder {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 180, 91, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(255, 180, 91, 0); }
}

.hero { position: relative; min-height: 76vh; }
.hero-slider { position: relative; min-height: 76vh; overflow: hidden; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
}
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-image {
  position: absolute;
  inset: 0;
  background-image: var(--hero-desktop);
  background-size: cover;
  background-position: center -50px;
  transform: scale(1.03);
  animation: heroZoom 8s ease-in-out infinite alternate;
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 15, 0.5);
}
@keyframes heroZoom { from { transform: scale(1.03); } to { transform: scale(1.09); } }
.hero-content {
  position: relative;
  z-index: 3;
  min-height: 76vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 760px;
}
h1, .hero-title {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.15rem, 4.3vw, 3.95rem);
  margin: 0 0 14px;
  line-height: 1.08;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}
.hero-subtext {
  margin: 0;
  color: #edf2f7;
  max-width: 640px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.45;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.hero-badges {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, max-content));
  gap: 10px;
  width: fit-content;
  max-width: 100%;
}
.hero-badges span {
  background: rgba(23, 18, 14, 0.82);
  border: 1px solid rgba(255, 180, 91, 0.45);
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 0 rgba(255, 180, 91, 0.22);
  animation: badgePulseOrange 2.1s ease-in-out infinite;
}
.hero-badges span:nth-child(2) { animation-delay: 0.25s; }
.hero-badges span:nth-child(3) { animation-delay: 0.5s; }
@keyframes badgePulseOrange {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 180, 91, 0.16); border-color: rgba(255, 180, 91, 0.45); }
  50% { box-shadow: 0 0 18px 0 rgba(232, 104, 47, 0.36); border-color: rgba(232, 104, 47, 0.65); }
}
.hero-dots {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 6;
  display: flex;
  gap: 10px;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.dot.is-active { background: var(--accent-2); }

.section { padding: 90px 0; }
.section-muted { background: #15191e; }
h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.7rem, 2.7vw, 2.6rem);
  margin: 0 0 12px;
}
.section-lead { color: var(--muted); max-width: 760px; margin-bottom: 30px; }
.tri-cards, .grid-6, .reasons-grid { display: grid; gap: 16px; }
.tri-cards { grid-template-columns: repeat(3, 1fr); }
.grid-6 { grid-template-columns: repeat(3, 1fr); }
.reasons-grid { grid-template-columns: repeat(2, 1fr); }
.tri-cards article, .grid-6 article, .reasons-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  transition: 0.25s ease;
}
.tri-cards article:hover, .grid-6 article:hover, .reasons-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 180, 91, 0.45);
}
.tri-cards h3, .grid-6 h3, .reasons-grid h3 { margin: 0 0 8px; font-family: "Manrope", sans-serif; }
.tri-cards p, .grid-6 p, .reasons-grid p { margin: 0; color: var(--muted); }
.inline-cta {
  margin-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.inline-cta p { margin: 0; color: #d4d8dd; }

.service-card {
  background: linear-gradient(180deg, #151a20, #11161b);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}
.service-card ul {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.service-card li {
  background: var(--panel-soft);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-card span { color: var(--muted); font-size: 14px; }

.delivery-line { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 36px 0 20px; }
.delivery-line span {
  text-align: center;
  background: #1a2027;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 8px;
  font-size: 14px;
}
.line-track {
  position: absolute;
  top: -10px;
  left: 8%;
  width: 84%;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
}
.line-track i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.section-note { color: var(--muted); max-width: 760px; }

.contacts-card {
  background: #13181d;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
}
.legal {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}
.legal p { margin: 0; color: #c7cdd5; font-size: 14px; }

.final-cta .container {
  background: radial-gradient(circle at 12% 8%, rgba(232, 104, 47, 0.28), transparent 45%), #161b21;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 24px 0 40px;
  color: var(--muted);
}
.footer-title {
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
  margin: 0 0 6px;
}

.sticky-mobile {
  display: none;
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 30;
  border: 0;
  border-radius: 999px;
  padding: 14px;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}
.sticky-mobile.js-open-quiz { padding: 16px; font-size: 16px; }

.quiz-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 10, 0.62);
  backdrop-filter: blur(7px);
  display: none;
  place-items: center;
  z-index: 50;
}
.quiz-backdrop.is-open { display: grid; }
.quiz-modal {
  width: min(640px, calc(100% - 24px));
  max-width: calc(100vw - 24px);
  background: #171b21;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 28px;
  position: relative;
}
.quiz-close {
  position: absolute;
  right: 14px;
  top: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
}
.quiz-kicker { margin: 0; color: var(--accent-2); font-size: 13px; text-transform: uppercase; }
.quiz-modal h2 { font-size: 1.05rem; margin-top: 10px; font-family: "Inter", sans-serif; font-weight: 500; }
.quiz-progress { height: 6px; border-radius: 999px; background: #252d36; margin-top: 16px; overflow: hidden; }
.quiz-progress i { display: block; height: 100%; width: 33.33%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.quiz-step-label { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.quiz-step { display: none; margin-top: 18px; }
.quiz-step.is-active { display: block; }
.quiz-step h3 { margin-top: 0; font-family: "Manrope", sans-serif; }
label { display: block; margin-bottom: 12px; font-size: 14px; color: #d4d9df; }
.quiz-modal [hidden] { display: none !important; }
input, textarea {
  width: 100%;
  margin-top: 7px;
  border-radius: 12px;
  border: 1px solid #313a45;
  background: #12161c;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
}
textarea { min-height: 88px; resize: vertical; }
.messengers, .stage-options { display: grid; gap: 10px; margin: 10px 0 12px; }
.messengers { grid-template-columns: repeat(3, 1fr); }
.messengers button, .stage-options button {
  border: 1px solid #343e4b;
  background: #11151a;
  color: var(--text);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  min-height: 50px;
  font-size: 15px;
}
.quiz-actions .cta-btn { min-height: 50px; padding: 14px 24px; font-size: 15px; }
.messengers button { display: flex; align-items: center; justify-content: center; gap: 8px; }
.messengers button .msg-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #1e2430; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.messengers button .msg-icon img {
  width: 16px;
  height: 16px;
  display: block;
  filter: brightness(0) invert(1);
}
.messengers button[data-messenger="MAX"] .msg-icon { background: linear-gradient(135deg, #ff9b63, #ffbf76); }
.messengers button[data-messenger="Telegram"] .msg-icon { background: linear-gradient(135deg, #41a8ff, #67d2ff); }
.messengers button[data-messenger="WhatsApp"] .msg-icon { background: linear-gradient(135deg, #2fbf66, #58df85); }
.messengers button.is-active, .stage-options button.is-active { border-color: var(--accent-2); background: #1f232a; }
.quiz-modal .cta-btn--solid { padding-right: 24px; }
.quiz-modal .cta-btn--solid::after { display: none; }
.quiz-actions { display: flex; justify-content: space-between; gap: 12px; }
.form-error { min-height: 20px; margin: 0 0 10px; color: #ff8b8b; font-size: 14px; }

@media (max-width: 1024px) {
  .nav { display: none; }
  .tri-cards { grid-template-columns: 1fr 1fr; }
  .grid-6 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-image { background-image: var(--hero-mobile); background-position: center -30px; }
  .hero-image::after { background: rgba(10, 12, 15, 0.54); }
  .hero-content { justify-content: flex-end; padding-bottom: 38px; }
  .tri-cards, .grid-6, .reasons-grid, .service-card ul, .legal, .hero-badges { grid-template-columns: 1fr; }
  .delivery-line { grid-template-columns: 1fr; }
  .line-track { display: none; }
  .sticky-mobile { display: block; }
  .header .cta-btn { display: none; }
  .messengers { grid-template-columns: 1fr; }
}
