/* --------------------------------------------------------------
   ГРАФТИО — интегратор электрозарядной инфраструктуры и MicroGrid.
   Поверх Bootstrap 5.3 (data-bs-theme="dark").

   Палитра снята с корпоративной презентации:
     — чернильный графит #0a0a0b фон, #131315 поверхность,
     — фирменный лайм #D7DF23 → зелёный #45B649 (акцент, градиент),
     — светлый текст #F4F4F4.
   Шрифт: Montserrat.
-------------------------------------------------------------- */

:root {
  --gr-ink: #0a0a0b;
  --gr-surface: #131315;
  --gr-surface-2: #1c1c1f;
  --gr-line: rgba(255, 255, 255, 0.08);

  --gr-lime: #d7df23;
  --gr-lime-soft: #e6ed5b;
  --gr-green: #a8c92d;
  --gr-deep: #45b649;
  --gr-olive: #56672b;

  --gr-text: #f4f4f4;
  --gr-text-mute: #a9adb4;
  --gr-text-dim: #7f858e;

  /* Bootstrap-переменные — чтобы формы/кнопки/фокус были фирменными */
  --bs-body-bg: var(--gr-ink);
  --bs-body-color: #d5d7db;
  --bs-body-font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-primary: var(--gr-lime);
  --bs-primary-rgb: 215, 223, 35;
  --bs-link-color: var(--gr-lime);
  --bs-link-color-rgb: 215, 223, 35;
  --bs-link-hover-color: var(--gr-lime-soft);
  --bs-border-color: var(--gr-line);
  --bs-emphasis-color: #fff;
  --bs-heading-color: #fff;
}

body {
  background-color: var(--gr-ink);
  -webkit-font-smoothing: antialiased;
}

/* Фирменный фокус, а не бутстраповский синий */
.btn:focus-visible,
.form-control:focus,
.nav-link:focus-visible,
a:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(215, 223, 35, 0.28);
  border-color: var(--gr-lime);
  outline: 0;
}

/* ---------- Типографика ---------- */

h1, h2, h3, .h1, .h2, .h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section {
  padding: 5.5rem 0;
}
@media (max-width: 767.98px) {
  .section { padding: 3.5rem 0; }
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gr-lime);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: #fff;
  margin-bottom: 1.5rem;
}

.section-note {
  font-size: 0.9375rem;
  color: #8a8f96;
  margin-top: -0.75rem;
  margin-bottom: 0;
  max-width: 40rem;
}

.prose p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #b9bcc2;
}
.prose p + p { margin-top: 1.15rem; }
.prose strong { color: #fff; font-weight: 600; }

.accent-lime {
  background: linear-gradient(90deg, var(--gr-deep) 0%, var(--gr-lime) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Навбар ---------- */

.gr-navbar {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.gr-navbar.is-scrolled {
  border-bottom-color: var(--gr-line);
  background: rgba(10, 10, 11, 0.94);
}
.gr-navbar .navbar-brand img { height: 26px; width: auto; display: block; }
.gr-navbar .nav-link {
  font-size: 0.9375rem;
  color: #b9bcc2;
  padding-inline: 0.9rem;
  white-space: nowrap;
}
.gr-navbar .nav-link:hover,
.gr-navbar .nav-link:focus { color: #fff; }
.gr-navbar .nav-link.active { color: var(--gr-lime); }

/* ---------- Герой (общая база для всех страниц) ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}
.hero--short {
  min-height: 66svh;
  padding: 8rem 0 3rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("hero-building.png") center / cover no-repeat;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 11, 0.94) 0%, rgba(10, 10, 11, 0.72) 45%, rgba(10, 10, 11, 0.35) 100%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.85) 0%, rgba(10, 10, 11, 0) 35%, rgba(10, 10, 11, 0.9) 100%);
}
@media (max-width: 991.98px) {
  .hero__bg::after {
    background: linear-gradient(180deg, rgba(10, 10, 11, 0.9) 0%, rgba(10, 10, 11, 0.6) 50%, rgba(10, 10, 11, 0.95) 100%);
  }
}

/* Лаймовое свечение в нижнем углу — визитная карточка ГРАФТИО */
.hero__glow {
  position: absolute;
  left: -10%;
  bottom: -30%;
  width: 70%;
  height: 100%;
  background: radial-gradient(ellipse at bottom left, rgba(215, 223, 35, 0.28), rgba(69, 182, 73, 0.14) 40%, transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; }

.hero__title {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero__lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #c3c6cc;
  max-width: 40rem;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.hero__scroll:hover { color: var(--gr-lime); }
@media (max-width: 991.98px) { .hero__scroll { display: none; } }

/* Чип «ЗАРЯДИ СВОЙ ДЕНЬ» / «ПАК СДУПЭМ» */
.gr-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(215, 223, 35, 0.4);
  border-radius: 100px;
  background: rgba(215, 223, 35, 0.08);
  color: var(--gr-lime);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.gr-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gr-lime);
  box-shadow: 0 0 0 3px rgba(215, 223, 35, 0.2);
}

/* ---------- Кнопки ---------- */

.btn {
  --bs-btn-font-weight: 700;
  --bs-btn-padding-x: 1.6rem;
  --bs-btn-padding-y: 0.75rem;
  --bs-btn-border-radius: 100px;
  font-size: 0.9375rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-gr {
  --bs-btn-color: #0f120a;
  --bs-btn-bg: var(--gr-lime);
  --bs-btn-border-color: var(--gr-lime);
  --bs-btn-hover-color: #0f120a;
  --bs-btn-hover-bg: var(--gr-lime-soft);
  --bs-btn-hover-border-color: var(--gr-lime-soft);
  --bs-btn-active-bg: var(--gr-green);
  --bs-btn-active-color: #0f120a;
  --bs-btn-active-border-color: var(--gr-green);
}
.btn-gr:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(215, 223, 35, 0.28);
}
.btn-gr-outline {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, 0.28);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.06);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.55);
  --bs-btn-active-bg: rgba(255, 255, 255, 0.1);
  --bs-btn-active-color: #fff;
}

/* ---------- Карточки ---------- */

.gr-card {
  height: 100%;
  padding: 2rem;
  border: 1px solid var(--gr-line);
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--gr-surface-2) 0%, var(--gr-surface) 100%);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.gr-card:hover {
  border-color: rgba(215, 223, 35, 0.42);
  transform: translateY(-3px);
}
.gr-card__index {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gr-lime);
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}
.gr-card__title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.625rem;
}
.gr-card__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #a9adb4;
  margin: 0;
}
.gr-card__list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.gr-card__list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #cfd2d7;
}
.gr-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gr-deep), var(--gr-lime));
}

/* ---------- Крупные числа (KPI) ---------- */

.gr-kpi {
  height: 100%;
  padding: 2.25rem 2rem;
  border: 1px solid var(--gr-line);
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--gr-surface-2) 0%, var(--gr-surface) 100%);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.25s ease;
}
.gr-kpi:hover { border-color: rgba(215, 223, 35, 0.42); }
.gr-kpi__value {
  font-size: clamp(2.75rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--gr-deep) 0%, var(--gr-lime) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
/* Единицы измерения — мельче основного числа, чтобы не переносились в 3 столбца */
.gr-kpi__unit {
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0;
}
.gr-kpi--compact .gr-kpi__value {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}
.gr-kpi--compact .gr-kpi__unit {
  font-size: 0.7em;
}
.gr-kpi__caption {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #b9bcc2;
}
.gr-kpi__hint {
  font-size: 0.8125rem;
  color: var(--gr-text-dim);
}

/* ---------- Credentials — плашки регалий ---------- */

.gr-cred {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--gr-line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  height: 100%;
}
.gr-cred__mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gr-deep), var(--gr-lime));
  color: #0f120a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.gr-cred__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.gr-cred__note {
  font-size: 0.8125rem;
  color: #8a8f96;
  margin: 0;
  line-height: 1.5;
}

/* ---------- Применение / картинка + описание ---------- */

.gr-usecase {
  position: relative;
  height: 100%;
  min-height: 24rem;
  border: 1px solid var(--gr-line);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: border-color 0.25s ease;
}
.gr-usecase:hover { border-color: rgba(215, 223, 35, 0.42); }
.gr-usecase__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.gr-usecase:hover .gr-usecase__bg { transform: scale(1.04); }
.gr-usecase__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0) 0%, rgba(10, 10, 11, 0.55) 55%, rgba(10, 10, 11, 0.94) 100%);
}
.gr-usecase > :not(.gr-usecase__bg) { position: relative; z-index: 1; }

/* ---------- Этапы ---------- */

.gr-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.gr-step {
  counter-increment: step;
  position: relative;
  padding: 1.5rem 0 1.5rem 4.5rem;
  border-bottom: 1px solid var(--gr-line);
}
.gr-step:last-child { border-bottom: 0; }
.gr-step::before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 1.35rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--gr-lime);
  font-variant-numeric: tabular-nums;
}
.gr-step__title {
  font-size: 1.0625rem;
  color: #e8eaed;
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 575.98px) {
  .gr-step { padding-left: 3.25rem; }
}

/* ---------- Продукт: карточка станции ---------- */

.gr-station {
  border: 1px solid var(--gr-line);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, var(--gr-surface-2) 0%, var(--gr-surface) 100%);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.gr-station:hover {
  border-color: rgba(215, 223, 35, 0.42);
  transform: translateY(-3px);
}
.gr-station__image {
  aspect-ratio: 5 / 4;
  background: radial-gradient(circle at 50% 40%, #26262a 0%, #0d0d0e 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.gr-station__image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.gr-station__body { padding: 1.75rem 2rem 2rem; }
.gr-station__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
}
.gr-station__sub {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gr-lime);
  margin-bottom: 1rem;
}

/* ---------- Спецификации (таблица) ---------- */

.gr-spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #d5d7db;
  border: 1px solid var(--gr-line);
  border-radius: 1rem;
  overflow: hidden;
  font-size: 0.9375rem;
}
.gr-spec-table th,
.gr-spec-table td {
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--gr-line);
  vertical-align: top;
  text-align: left;
}
.gr-spec-table tr:last-child th,
.gr-spec-table tr:last-child td { border-bottom: 0; }
.gr-spec-table th {
  color: #fff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
  width: 32%;
}
.gr-spec-table thead th {
  background: rgba(215, 223, 35, 0.07);
  color: var(--gr-lime);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.gr-spec-table td.is-em { color: #fff; font-weight: 600; }
@media (max-width: 575.98px) {
  .gr-spec-table th, .gr-spec-table td { padding: 0.75rem 0.9rem; }
}

/* ---------- Big banner (цитата в лайме) ---------- */

.gr-banner {
  padding: 3rem 2.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(120deg, #0f120a 0%, #171b0a 100%);
  border: 1px solid rgba(215, 223, 35, 0.28);
  position: relative;
  overflow: hidden;
}
.gr-banner::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 180%;
  background: radial-gradient(ellipse at center, rgba(215, 223, 35, 0.22), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.gr-banner__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem;
  position: relative;
}
.gr-banner__text {
  font-size: 1.0625rem;
  color: #cfd2d7;
  line-height: 1.7;
  margin: 0;
  max-width: 44rem;
  position: relative;
}
@media (max-width: 575.98px) {
  .gr-banner { padding: 2rem 1.5rem; }
}

/* ---------- Контакты и форма ---------- */

.gr-contact-card {
  border: 1px solid var(--gr-line);
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--gr-surface-2) 0%, var(--gr-surface) 100%);
  padding: 2.5rem;
}
@media (max-width: 575.98px) {
  .gr-contact-card { padding: 1.75rem; }
}

.gr-contact-link {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.gr-contact-link:hover { color: var(--gr-lime); }

.form-control {
  --bs-body-bg: rgba(255, 255, 255, 0.04);
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 0.625rem;
  padding: 0.85rem 1rem;
  color: #fff;
}
.form-control::placeholder { color: #6f747c; }
.form-control:focus {
  background-color: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.form-consent {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--gr-text-dim);
}

/* ---------- Подвал ---------- */

.gr-footer {
  border-top: 1px solid var(--gr-line);
  padding: 2.5rem 0;
  font-size: 0.875rem;
  color: var(--gr-text-dim);
}
.gr-footer a { color: #b9bcc2; text-decoration: none; }
.gr-footer a:hover { color: var(--gr-lime); }
.gr-footer img { height: 22px; width: auto; opacity: 0.8; }

/* ---------- Тонкая линия-разделитель с градиентом ---------- */

.gr-divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(215, 223, 35, 0.55) 50%, transparent 100%);
  margin: 0;
}

/* ---------- Появление при скролле ----------
   .reveal видимы по умолчанию — без JS страница читается нормально.
   Как только site.js встаёт, он добавляет .js на <html> и уже тогда мы
   прячем ещё не появившиеся блоки и включаем плавное появление.
-------------------------------------------------------------- */

.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}
.js .reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .gr-card, .gr-usecase__bg, .btn, .gr-station { transition: none; }
  .js .reveal:not(.is-visible) { opacity: 1; transform: none; }
}
