:root {
  --font-base: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --color-bg: #f5f7fb;
  --color-bg-alt: #ffffff;
  --color-primary: #4554ff;
  --color-primary-dark: #2c37b8;
  --color-text: #1e1f29;
  --color-muted: #5a6072;
  --color-border: rgba(30, 31, 41, 0.12);
  --shadow-card: 0 18px 40px rgba(39, 45, 79, 0.08);
  --header-height: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background-color: rgba(245, 247, 251, 0.9);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-header__logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.site-header__nav {
  position: relative;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list a {
  color: var(--color-text);
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a:focus {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  cursor: pointer;
}

.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.nav-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  padding: calc(var(--header-height) + 48px) 0 64px;
  background: linear-gradient(135deg, rgba(69, 84, 255, 0.08), rgba(255, 255, 255, 0.1));
}

.hero__inner {
  display: grid;
  align-items: start;
  gap: 3rem;
  grid-template-columns: 1.4fr 1fr;
}

.hero__content h1 {
  margin-top: 0.35rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.hero__content p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero__summary {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero__summary h2 {
  margin-top: 0;
}

.hero__summary ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-muted);
}

.hero__summary::before,
.hero__summary::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  pointer-events: none;
}

.hero__summary::before {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at center, rgba(69, 84, 255, 0.25), rgba(69, 84, 255, 0));
  top: -100px;
  right: -60px;
}

.hero__summary::after {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at center, rgba(17, 19, 33, 0.12), rgba(17, 19, 33, 0));
  bottom: -60px;
  left: -40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 12px 32px rgba(69, 84, 255, 0.25);
}

.btn--primary:hover,
.btn--primary:focus {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn--ghost:hover,
.btn--ghost:focus {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.section {
  padding: 80px 0;
  background: var(--color-bg-alt);
}

.section--alt {
  background: var(--color-bg);
}

.section__header {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section__header h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

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

.requisites {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 0;
  padding: 0;
}

.requisites__item {
  background: var(--color-bg);
  border-radius: 16px;
  padding: 1.4rem;
  border: 1px solid rgba(69, 84, 255, 0.08);
  box-shadow: 0 10px 25px rgba(17, 19, 33, 0.06);
}

.requisites__item dt {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.requisites__item dd {
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
}

.grid--cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-bg-alt);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(69, 84, 255, 0.08);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(39, 45, 79, 0.14);
}

.card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--color-primary);
  background: rgba(69, 84, 255, 0.1);
  box-shadow: 0 12px 18px rgba(69, 84, 255, 0.12);
}

.card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__icon svg path {
  fill: none;
  stroke: currentColor;
}

.card__actions {
  margin-top: 1.5rem;
}

.card__actions .btn {
  width: 100%;
}

.card__note {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}

.badge--solid {
  color: #fff;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  box-shadow: 0 6px 18px rgba(69, 84, 255, 0.25);
}

.badge--outline {
  color: var(--color-primary);
  border: 1px solid rgba(69, 84, 255, 0.4);
  background: rgba(69, 84, 255, 0.08);
}

.card--active .card__icon {
  background: linear-gradient(135deg, rgba(69, 84, 255, 0.16), rgba(69, 84, 255, 0.04));
  color: var(--color-primary);
}

.card__icon--ai {
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.2), rgba(69, 84, 255, 0.05));
  color: #38a3c5;
  box-shadow: 0 12px 18px rgba(56, 163, 197, 0.18);
}

.card__icon--gear {
  background: linear-gradient(135deg, rgba(244, 190, 120, 0.22), rgba(255, 255, 255, 0.04));
  color: #d68a28;
  box-shadow: 0 12px 18px rgba(214, 138, 40, 0.16);
}

.card--active {
  border-color: rgba(69, 84, 255, 0.22);
}

.card--upcoming {
  opacity: 0.8;
  border-style: dashed;
}

.card--upcoming:hover,
.card--upcoming:focus-within {
  transform: none;
  box-shadow: var(--shadow-card);
}

.card--upcoming .btn {
  cursor: not-allowed;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.card h3 {
  margin-top: 0;
}

.card ul {
  color: var(--color-muted);
  padding-left: 1.2rem;
}

.pricing-note {
  background: var(--color-bg);
  border-left: 4px solid var(--color-primary);
  padding: 1.6rem 2rem;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(17, 19, 33, 0.08);
}

.pricing-note h3 {
  margin-top: 0;
}

.pricing-note ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-muted);
}

.table-wrapper {
  overflow-x: auto;
}

.tariff-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: var(--color-bg-alt);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.tariff-table caption {
  text-align: left;
  font-weight: 600;
  padding: 1.4rem 1.8rem;
  color: var(--color-muted);
}

.tariff-table th,
.tariff-table td {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(17, 19, 33, 0.08);
  vertical-align: top;
}

.tariff-table thead th {
  background: rgba(69, 84, 255, 0.08);
  text-align: left;
  font-size: 0.95rem;
}

.tariff-table tbody th {
  text-align: left;
  width: 26%;
  color: var(--color-muted);
}

.tariff-table tbody td {
  font-weight: 500;
}

.tariff-table tbody tr:nth-child(even) td,
.tariff-table tbody tr:nth-child(even) th {
  background-color: rgba(69, 84, 255, 0.04);
}

.table-note {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.stack-group {
  background: var(--color-bg);
  border-radius: 18px;
  padding: 1.8rem;
  border: 1px solid rgba(69, 84, 255, 0.08);
}

.stack-group h3 {
  margin-top: 0;
}

.stack-group ul {
  color: var(--color-muted);
  padding-left: 1.2rem;
}

.contacts {
  display: grid;
  gap: 2rem;
}

.contacts__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contacts__details ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-muted);
}

.contacts__label {
  font-weight: 600;
  color: var(--color-text);
}

.site-footer {
  background: #101223;
  color: #d5d7e2;
  padding: 2rem 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer__logo {
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.site-footer__to-top {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .hero__summary::before {
    right: -100px;
  }

  .nav-list {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg-alt);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    min-width: 220px;
    padding: 0.75rem 0;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 0.65rem 1.25rem;
  }

  .nav-list.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

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

  .hero__summary {
    order: initial;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    height: 60px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 24px);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .requisites__item,
  .card,
  .stack-group {
    padding: 1.4rem;
  }

  .tariff-table {
    font-size: 0.95rem;
  }

  .tariff-table caption {
    padding: 1rem 1.2rem;
  }

  .table-wrapper {
    overflow-x: visible;
  }

  .tariff-table {
    min-width: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .tariff-table thead {
    display: none;
  }

  .tariff-table tbody {
    display: grid;
    gap: 1.25rem;
  }

  .tariff-table tbody tr {
    display: block;
    border: 1px solid rgba(17, 19, 33, 0.08);
    border-radius: 18px;
    background: var(--color-bg-alt);
    box-shadow: var(--shadow-card);
    overflow: hidden;
  }

  .tariff-table tbody th,
  .tariff-table tbody td {
    display: block;
    padding: 0.95rem 1.1rem;
    border: 0;
    background: none;
  }

  .tariff-table tbody th {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    background: rgba(69, 84, 255, 0.08);
  }

  .tariff-table tbody td + td {
    border-top: 1px solid rgba(17, 19, 33, 0.06);
  }

  .tariff-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.25rem;
  }
}
