:root {
  --bg: #05070d;
  --card: rgba(12, 16, 28, 0.75);
  --stroke: rgba(255, 255, 255, 0.1);
  --text: #f3f7ff;
  --muted: #a8b1c7;
  --accent: #0f7bff;
  --accent-2: #35b7ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(90% 60% at 10% 15%, rgba(4, 66, 145, 0.35), transparent 60%),
    radial-gradient(80% 50% at 90% 70%, rgba(10, 92, 180, 0.28), transparent 65%),
    linear-gradient(180deg, #04070e 0%, #050912 55%, #04070f 100%);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1240px, 94vw);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
  transition: background-position 0.8s ease;
}

.section-with-bg {
  background-image:
    radial-gradient(70% 55% at 8% 20%, rgba(7, 87, 179, 0.2), transparent 70%),
    radial-gradient(60% 50% at 94% 70%, rgba(16, 96, 179, 0.2), transparent 72%),
    linear-gradient(180deg, rgba(1, 3, 10, 0.92), rgba(1, 4, 12, 0.95));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(4, 8, 16, 0.98);
  border-bottom: 1px solid var(--stroke);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.brand {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  letter-spacing: 0;
}

.brand img {
  width: 58px;
  height: 52px;
  object-fit: contain;
  margin-top: 4px;
}

.brand-icon {
  filter:
    drop-shadow(0 0 8px rgba(220, 237, 255, 0.55))
    drop-shadow(0 0 18px rgba(170, 210, 255, 0.4))
    drop-shadow(0 0 32px rgba(116, 175, 255, 0.25));
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-text {
  line-height: 1.18;
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: 1.82rem;
  font-weight: 600;
  color: #f4f7ff;
  text-shadow: none;
}

.brand-subtext {
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 400;
  font-family: "Montserrat", "Inter", sans-serif;
  color: rgba(243, 247, 255, 0.78);
  letter-spacing: -0.01em;
}

.menu {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-weight: 500;
}

.menu a:hover {
  color: var(--text);
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(18, 114, 255, 0.25);
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-small {
  padding: 10px 14px;
  font-size: 0.92rem;
}

.btn-ghost {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
}

.hero {
  padding: 104px 0 84px;
}

.hero.section-with-bg {
  background-image:
    linear-gradient(
      180deg,
      rgba(2, 6, 14, 0.75) 0%,
      rgba(2, 6, 14, 0.5) 45%,
      rgba(2, 6, 14, 0.25) 70%,
      rgba(2, 6, 14, 0.12) 100%
    ),
    linear-gradient(90deg, rgba(2, 6, 14, 0.45) 0%, rgba(2, 6, 14, 0.2) 50%, rgba(2, 6, 14, 0.35) 100%),
    url("./assets/images/slide_01.2.png");
  background-size: 120% auto;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.hero-left {
  max-width: 560px;
  display: flex;
  flex-direction: column;
}

.hero-title {
  margin: 0 0 28px;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-title-main {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-title-accent {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  color: #8ba8d4;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-lead {
  color: #f0f4ff;
  font-size: 1.2rem;
  line-height: 1.55;
  margin: 0 0 24px;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.9),
    0 2px 12px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary {
  background: rgba(8, 14, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(12, 20, 38, 0.95);
}

.hero-right {
  max-width: 480px;
  min-width: 380px;
  margin-left: auto;
  background: rgba(12, 18, 32, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
}

.hero-block-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-stat {
  background: rgba(18, 26, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hero-stat strong {
  font-size: 1.4rem;
  color: #8fb4e8;
  white-space: normal;
  line-height: 1.2;
}

.hero-stat span {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: normal;
  line-height: 1.35;
}

.hero-stat-wide {
  grid-column: 1 / -1;
}

.hero-stat-wide span {
  font-size: 1rem;
  color: var(--text);
}

.hero-stat-promo {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-stat-promo-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-promo-left span {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.3;
}

.hero-stat-promo-value {
  font-size: 2rem;
  color: #8fb4e8;
  white-space: nowrap;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  margin-bottom: 26px;
}

.section-intro {
  color: var(--muted);
  margin: -8px 0 22px;
  max-width: 100%;
}

h3 {
  font-size: 1.35rem;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 24px;
  max-width: 100%;
}

.cards {
  display: grid;
  gap: 16px;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.case-card,
.step {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.card:hover,
.case-card:hover,
.step:hover {
  transform: translateY(-6px);
  border-color: rgba(83, 171, 255, 0.45);
  box-shadow: 0 18px 38px rgba(2, 14, 34, 0.55);
}

.card {
  padding: 22px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step {
  padding: 20px;
}

.step span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  color: #00162e;
  background: linear-gradient(90deg, #8fd0ff, #22a0ff);
  margin-bottom: 10px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.case-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
  padding: 20px;
}

.case-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.case-card li + li {
  margin-top: 8px;
}

/* --- Tariffs --- */

.tariffs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.tariff-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(10, 16, 30, 0.85);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.tariff-card:hover {
  transform: translateY(-6px);
  border-color: rgba(83, 171, 255, 0.4);
  box-shadow: 0 18px 38px rgba(2, 14, 34, 0.55);
}

.tariff-featured {
  border-color: rgba(72, 165, 255, 0.6);
  box-shadow: 0 0 30px rgba(44, 136, 255, 0.2);
}

.tariff-badge {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 22px;
  border-radius: 20px;
}

.tariff-header {
  padding: 20px 24px 0;
}

.tariff-card:not(.tariff-featured) .tariff-header {
  padding-top: 28px;
}

.tariff-header h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  font-style: italic;
}

.tariff-body {
  padding: 8px 24px 0;
  flex: 1;
}

.tariff-group {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tariff-group:first-child {
  border-top: none;
  padding-top: 12px;
}

.tariff-group h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}

.tariff-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tariff-list > div {
  display: flex;
  gap: 6px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.tariff-list dt {
  color: var(--muted);
  white-space: nowrap;
}

.tariff-list dd {
  margin: 0;
  color: #fff;
  font-weight: 600;
}

.tariff-price {
  padding: 20px 24px 28px;
  font-size: 1.55rem;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  margin-top: auto;
}

.contacts-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.1fr 1fr;
}

.contact-form {
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: rgba(0, 0, 0, 0.4);
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-footer {
  border-top: 1px solid var(--stroke);
}

.footer-inner {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-contacts {
  display: grid;
  gap: 6px;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 980px) {
  .menu {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-right {
    max-width: 100%;
    margin-left: 0;
  }

  .cards-3,
  .steps,
  .case-grid,
  .tariffs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 56px 0;
  }

  .nav {
    min-height: 74px;
  }

  .brand img {
    width: 42px;
    height: 38px;
    margin-top: 2px;
  }

  .brand-text {
    font-size: 1.48rem;
    line-height: 1.14;
  }

  .brand-subtext {
    font-size: 0.73rem;
    line-height: 1.25;
  }

  .cards-3,
  .cards-2,
  .steps,
  .case-grid,
  .tariffs {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-contacts {
    text-align: left;
  }
}
