:root {
  --bg: #080a0f;
  --bg-soft: #10131b;
  --card: #121722;
  --card-strong: #151c29;
  --text: #f4f7fb;
  --muted: #98a2b3;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

section[id] {
  scroll-margin-top: 100px;
}

.site-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.09), transparent 30%),
    radial-gradient(circle at right 20%, rgba(34, 211, 238, 0.09), transparent 28%),
    linear-gradient(180deg, #080a0f 0%, #0a0d14 60%, #080a0f 100%);
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.55;
}

.glow--one {
  width: 280px;
  height: 280px;
  left: -60px;
  top: 80px;
  background: rgba(139, 92, 246, 0.24);
}

.glow--two {
  width: 340px;
  height: 340px;
  right: -80px;
  top: 160px;
  background: rgba(34, 211, 238, 0.18);
}

.glow--three {
  width: 280px;
  height: 280px;
  left: 35%;
  bottom: -120px;
  background: rgba(139, 92, 246, 0.12);
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: #d8def0;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading h2,
.cta__box h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.section-heading p,
.hero__text,
.info-card p,
.service-card p,
.service-card li,
.step p,
.partner-card p,
.cta__box p,
.footer__text,
.footer__note,
.footer__bottom {
  color: var(--muted);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.header.is-scrolled {
  background: rgba(8, 10, 15, 0.75);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.header__inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.logo__mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(34, 211, 238, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.logo__text {
  letter-spacing: 0.18em;
  font-size: 0.96rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  position: relative;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover,
.footer__links a:hover,
.text-link:hover {
  color: var(--text);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header__actions,
.hero__actions,
.cta__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 32px rgba(139, 92, 246, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(139, 92, 246, 0.2);
}

.btn--ghost,
.btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  box-shadow: none;
}

.btn--ghost:hover,
.btn--secondary:hover {
  box-shadow: none;
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  padding: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
  opacity: 0;
}

.burger.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  padding-top: 60px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 32px;
  align-items: center;
}

.hero__content h1 {
  margin: 0 0 24px;
  font-size: clamp(2.8rem, 6.5vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 10.5ch;
}

.hero__text {
  max-width: 640px;
  font-size: 1.08rem;
}

.hero__actions {
  margin: 34px 0 26px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero__tags li {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  color: #dbe2f4;
}

.hero__panel {
  padding: 30px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.hero__panel-label {
  margin-bottom: 18px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d9dff1;
}

.hero__panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hero__panel-card,
.info-card,
.service-card,
.step,
.partner-card {
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border-radius: var(--radius-lg);
}

.hero__panel-card {
  padding: 22px;
  min-height: 164px;
}

.hero__panel-card span,
.service-card__num {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.hero__panel-card h3,
.info-card h3,
.service-card h3,
.step h3,
.partner-card h3 {
  margin: 0 0 12px;
  font-size: 1.26rem;
  line-height: 1.15;
}

.hero__panel-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.about__grid,
.services-grid,
.steps,
.partners-grid {
  display: grid;
  gap: 20px;
}

.about__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.9), rgba(34, 211, 238, 0));
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.service-card li {
  position: relative;
  padding-left: 18px;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step {
  padding: 28px;
}

.step__num {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 1rem;
  font-weight: 700;
}

.step__num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.9), transparent);
}

.partners-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.partner-card {
  padding: 30px;
}

.partner-card--featured {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.partner-card__logo {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  border-radius: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-weight: 600;
  color: #dbe9ff;
}

.text-link::after {
  content: "↗";
  font-size: 0.95rem;
}

.cta {
  padding-top: 90px;
}

.cta__box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  padding: 38px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.08)),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.footer {
  padding-bottom: 24px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--stroke);
}

.footer__text {
  max-width: 420px;
  margin: 18px 0 0;
}

.footer__links {
  display: flex;
  gap: 56px;
}

.footer__title {
  display: block;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer__links a,
.footer__note {
  display: block;
  margin-bottom: 10px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .hero__grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .hero__content h1 {
    max-width: 12ch;
  }

  .about__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta__box,
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .header__actions .btn--ghost {
    display: none;
  }

  .burger {
    display: inline-block;
  }

  .nav {
    position: fixed;
    top: 88px;
    left: 16px;
    right: 16px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid var(--stroke-strong);
    background: rgba(12, 15, 22, 0.96);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__panel-grid,
  .services-grid,
  .footer__links {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .footer__links {
    display: grid;
  }

  .partner-card--featured {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .section {
    padding: 88px 0;
  }

  .header__inner {
    min-height: 76px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero__content h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .hero__panel,
  .info-card,
  .service-card,
  .step,
  .partner-card,
  .cta__box {
    padding: 24px;
  }

  .hero__panel-grid,
  .about__grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .about__grid,
  .steps {
    display: grid;
  }

  .footer__inner,
  .footer__bottom {
    flex-direction: column;
  }

  .footer__links {
    gap: 24px;
  }
}
body.modal-open {
  overflow: hidden;
}

.messages {
  margin-top: 20px;
}

.message {
  margin-bottom: 12px;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
}

.message--success {
  border-color: rgba(34, 197, 94, 0.35);
}

.message--error {
  border-color: rgba(239, 68, 68, 0.35);
}

.callback-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.callback-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.callback-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, 0.72);
  backdrop-filter: blur(8px);
}

.callback-modal__dialog {
  position: relative;
  width: min(100%, 560px);
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke-strong);
  background: linear-gradient(180deg, rgba(18, 23, 34, 0.98), rgba(12, 15, 22, 0.98));
  box-shadow: var(--shadow);
  z-index: 1;
}

.callback-modal__text {
  color: var(--muted);
  margin: 0 0 24px;
}

.callback-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-field {
  display: block;
}

.form-field span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.form-field__error {
  display: block;
  margin-top: 8px;
  color: #fda4af;
}

.callback-form__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .callback-modal__dialog {
    padding: 24px;
  }
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.92fr);
  gap: 24px;
  align-items: stretch;
}

.contact-map {
  padding: 30px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.contact-map h3 {
  margin: 0 0 20px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.1;
}

.contact-map__frame {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--stroke-strong);
  min-height: 360px;
  background: rgba(255, 255, 255, 0.03);
}

.contact-map__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.footer__contact-btn {
  margin-top: 10px;
  min-height: 48px;
  padding: 0 18px;
}

.floating-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 18px 32px rgba(139, 92, 246, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.floating-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-top-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 1100px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-map {
    padding: 24px;
  }

  .contact-map__frame,
  .contact-map__frame iframe {
    min-height: 300px;
  }

  .floating-top-btn {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}
/* ===== ЛОГОТИП VLFL ===== */
.logo--image {
  display: inline-flex;
  align-items: center;
}

.logo__full {
  display: block;
  height: 58px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.logo:hover .logo__full {
  transform: translateY(-1px);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.42));
}

.logo--footer .logo__full {
  height: 78px;
  max-width: 230px;
}

/* ===== ПАРТНЕРСКИЙ ЛОГОТИП ===== */
.partner-card--featured {
  align-items: center;
}

.partner-card__logo--image {
  width: 170px;
  min-width: 170px;
  min-height: 96px;
  padding: 14px 18px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 255, 255, 0.04);
}

.partner-card__logo--image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ===== TELEGRAM ИКОНКА ===== */
.footer__links .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-top: 10px;
  margin-bottom: 0;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer__links .social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.08);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

/* ===== CTA КНОПКА НА ВСЮ ШИРИНУ ===== */
.cta__box {
  flex-direction: column;
  align-items: stretch;
}

.cta__box .cta__actions {
  width: 100%;
  margin-top: 8px;
}

.cta__box .cta__actions .btn {
  width: 100%;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 640px) {
  .logo__full {
    height: 48px;
    max-width: 150px;
  }

  .logo--footer .logo__full {
    height: 68px;
    max-width: 190px;
  }

  .partner-card__logo--image {
    width: 150px;
    min-width: 150px;
  }
}