/* БАЗА */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --accent: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.2);
  --accent-lime: #a2ff3a;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --glass-bg: rgba(15, 16, 20, 0.6);
  --glass-border: rgba(255, 255, 255, 0.04);
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000000;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

a,
button,
.btn {
  cursor: none;
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }
  a,
  button,
  .btn {
    cursor: pointer;
  }
}

/* КАСТОМНЫЙ КУРСОР */

.cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #c869ff;
  box-shadow:
    0 0 10px rgba(200, 105, 255, 0.95),
    0 0 26px rgba(200, 105, 255, 0.75),
    0 0 48px rgba(115, 70, 255, 0.7);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease-out;
  z-index: 999;
}

@media (pointer: coarse) {
  .cursor-dot {
    display: none;
  }
}

/* CANVAS */

#cursor-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  z-index: 0;
}

#page {
  position: relative;
  z-index: 1;
  min-height: 100%;
}

/* GLASS */

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.01);
}

/* БАЗОВЫЕ ОТСТУПЫ */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 96px 0;
}

.section-frame {
  border-radius: 26px;
  padding: 40px 32px;
}

/* ШТОРКА */

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  background: transparent;
  pointer-events: none;
}

.nav-curtain {
  position: relative;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 10px 22px;
  border-radius: 16px;
  background: linear-gradient(
    to bottom,
    rgba(14, 14, 18, 0.82),
    rgba(4, 4, 6, 0.86)
  );
  border: 1px solid rgba(0, 0, 0, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-main);
}

.nav a {
  position: relative;
  padding: 4px 0;
  text-decoration: none;
  color: inherit;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-lime), #e4ff9c);
  transition: width 0.2s ease;
}

.nav a:hover {
  color: #ffffff;
  opacity: 0.9;
}

.nav a:hover::after {
  width: 100%;
}

/* БУРГЕР */

.burger {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  margin-left: auto;
}

.burger span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 0.17s ease, opacity 0.17s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* КНОПКИ */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  background: transparent;
  color: #f9fafb;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease,
    background 0.18s ease;
}

.btn::before {
  content: none;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(249, 250, 251, 0.9);
  box-shadow:
    0 0 0 1px rgba(249, 250, 251, 0.25),
    0 18px 40px rgba(0, 0, 0, 0.85);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn--primary {
  border-color: rgba(249, 250, 251, 0.8);
}

.btn--ghost {
  border-color: rgba(148, 163, 184, 0.7);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* HERO */

.hero {
  min-height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero__content {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 28px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  font-size: clamp(40px, 5.4vw, 62px);
  line-height: 1.05;
  margin: 0 0 18px;
}

.hero__tagline {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0;
}

/* ЗАГОЛОВКИ */

.section-head h2 {
  font-size: 28px;
  margin: 0 0 10px;
}

.section-head .lead {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 560px;
  margin: 0;
}

.section-head--center {
  text-align: center;
  margin-bottom: 40px;
}

.section-head--center .lead {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* GRID */

.grid {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

/* ==== УСЛУГИ В СТИЛЕ 5 ШАГОВ ==== */

.services-section {
  position: relative;
  background: transparent;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.service-card {
  border-radius: 26px;
  padding: 28px 22px 24px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.04) 0, rgba(18, 18, 18, 1) 38%, #050505 100%);
  border: 1px solid rgba(0, 0, 0, 0.9);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.98),
    0 0 36px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.service-card__icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 20px auto;
}

.service-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.service-card__body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card__index {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-lime);
}

.service-card h3 {
  margin: 0;
  font-size: 16px;
}

.service-card p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* KPI (старые базовые, можно не использовать) */

.kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.kpi {
  border-radius: 20px;
  padding: 20px 18px;
}

.kpi__num {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--accent);
}

.kpi__label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ПРОЦЕСС */

.process-section {
  position: relative;
  background: transparent;
}

.process-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
}

.process-card {
  border-radius: 26px;
  padding: 32px 24px 26px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.04) 0, rgba(18, 18, 18, 1) 38%, #050505 100%);
  border: 1px solid rgba(0, 0, 0, 0.9);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.98),
    0 0 40px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.process-card__icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 22px auto;
}

.process-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.process-card__body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.process-card__step {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-lime);
}

.process-card h3 {
  margin: 0;
  font-size: 15px;
}

.process-card p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== НАС ВЫБИРАЮТ / KPI-КАРТОЧКИ ===== */

.benefits-section {
  position: relative;
  background: transparent;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.kpi-card {
  border-radius: 26px;
  padding: 28px 22px 24px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.04) 0, rgba(18, 18, 18, 1) 38%, #050505 100%);
  border: 1px solid rgba(0, 0, 0, 0.9);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.98),
    0 0 36px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.kpi-card__icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 22px auto;
}

.kpi-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.kpi-card__body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kpi-card__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.kpi-card__label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== КАРТОЧКА ФОРМЫ ОЦЕНКИ ===== */

.calc-section {
  position: relative;
  background: transparent;
}

.calc-grid {
  display: flex;
  justify-content: center;
}

.calc-card {
  border-radius: 26px;
  padding: 28px 24px 24px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.04) 0, rgba(18, 18, 18, 1) 38%, #050505 100%);
  border: 1px solid rgba(0, 0, 0, 0.9);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.98),
    0 0 36px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
  width: 100%;
}

/* кнопка формы — неоново-зелёный текст, белая рамка */

.calc-section .btn--primary {
  color: var(--accent-lime);
}

.calc-section .btn--primary:hover {
  color: var(--accent-lime);
}

/* ФОРМА/ФУТЕР */

.form {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.field span {
  color: var(--text-muted);
}
/* текст внутри кастомного select всегда белый */
.calc-section .field .custom-select__toggle [data-select-value] {
  color: var(--text-main);
}

/* лаймовый цвет только для заголовков полей в форме */
.calc-section .field > span {
  color: var(--accent-lime);
}

input[type="text"],
select,
textarea {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(5, 6, 10, 0.9);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
/* === КАСТОМНЫЙ SELECT В ФОРМЕ === */

.custom-select {
  position: relative;
}

.custom-select__toggle {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(5, 6, 10, 0.9);
  padding: 10px 40px 10px 12px;
  font-family: inherit;
  font-size: 14px;
  /* по умолчанию (плейсхолдер) — лаймовый */
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  outline: none;
  cursor: none;
}

.custom-select__arrow {
  position: relative;
  width: 10px;
  height: 10px;
}

.custom-select__arrow::before {
  content: "";
  position: absolute;
  inset: 2px 0 0 0;
  margin: auto;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--accent-lime);
}

.custom-select.is-open .custom-select__arrow::before {
  transform: rotate(180deg);
}

/* список опций */

.custom-select__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 280px;
  overflow-y: auto;
  border-radius: 14px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: #020617;
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  padding: 4px 0;
  list-style: none;
  margin: 0;
  display: none;
  z-index: 30;
}

.custom-select.is-open .custom-select__list {
  display: block;
}

.custom-select__list li {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-main);
  cursor: none;
}

.custom-select__list li:hover {
  background: #111827;
}

.custom-select__list li.is-active {
  background: #111827;
  color: var(--accent-lime);
}

/* фокус */

.custom-select__toggle:focus-visible {
  border-color: var(--accent-lime);
  box-shadow: 0 0 0 1px rgba(162, 255, 58, 0.3);
}


/* стили выпадающего списка в стиле сайта (в том числе открытый список) */

.calc-section select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #020617;
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

/* фокус по контуру, без синей рамки */
.calc-section select:focus {
  border-color: var(--accent-lime);
  box-shadow: 0 0 0 1px rgba(162, 255, 58, 0.35);
  outline: none;
}

/* фон выпадающего списка и текста */
.calc-section select option {
  background-color: #020617 !important;
  color: var(--text-main) !important;
}

/* выбранная / наведённая строка — тёмная + неоновый текст */
.calc-section select option:checked,
.calc-section select option:hover {
  background-color: #111827 !important;
  color: var(--accent-lime) !important;
}


input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(168, 255, 74, 0.3);
  background: #020617;
}

textarea {
  resize: vertical;
}

.form-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}

/* старый hint-block (не используется, можно оставить) */

.hint-block {
  border-radius: 20px;
  padding: 20px 18px;
}

.hint-block h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.hint-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

/* FOOTER */

.footer {
  padding: 40px 0 24px;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(0, 0, 0, 0.96);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.5fr);
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.footer h3 {
  margin: 0 0 10px;
}

.footer .lead {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

/* НЕОНОВЫЙ ЦВЕТ ДЛЯ ТЕЛЕФОНА И ПОЧТЫ */

.contact-list a {
  color: var(--accent-lime);
  text-decoration: none;
}

.contact-list a:hover {
  color: #ffffff;
}


.footer-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-small {
  font-size: 11px;
}

.footer-bottom {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* плавная анимация для всех карточек */
.service-card,
.process-card,
.kpi-card,
.calc-card {
  transition:
    transform 0.22s ease-out,
    box-shadow 0.22s ease-out,
    border-color 0.22s ease-out;
  will-change: transform, box-shadow;
}

/* эффект "карточка двигается к тебе" */

.service-card:hover,
.process-card:hover,
.kpi-card:hover,
.calc-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 36px 110px rgba(0, 0, 0, 0.98),
    0 0 46px rgba(0, 0, 0, 0.95);
  border-color: rgba(255, 255, 255, 0.06);
}


/* АДАПТИВ */

@media (max-width: 960px) {
  .site-header {
    top: 10px;
  }

  .nav-curtain {
    padding: 8px 12px;
    gap: 10px;
  }

  .burger {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: 68px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.96);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 12px 16px;
    flex-direction: column;
    gap: 10px;
    display: none;
    z-index: 25;
  }

  .nav.is-open {
    display: flex;
  }

  .section {
    padding: 72px 0;
  }

  .section-frame {
    padding: 28px 22px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: auto;
    padding-top: 96px;
  }

  .process-grid,
  .services-grid,
  .kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .calc-grid {
    padding: 0 4px;
  }
}

@media (max-width: 960px) {
  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3),
  .service-card:nth-child(4),
  .service-card:nth-child(5),
  .service-card:nth-child(6) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 600px) {
  .hero__title {
    font-size: 32px;
  }

  .hero__tagline {
    font-size: 16px;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .nav-curtain {
    padding-inline: 10px;
  }
}
