:root {
  color-scheme: dark;
  --bg: #081018;
  --bg-elevated: #0f1a25;
  --bg-card: #132333;
  --border: rgba(255, 255, 255, 0.09);
  --text: #e7f0f7;
  --text-muted: #9bb4c9;
  --accent: #35c7a7;
  --accent-soft: rgba(53, 199, 167, 0.15);
  --accent-2: #ff9f5a;
  --container: min(1120px, 100% - 2.4rem);
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5fafc;
  --bg-elevated: #eaf2f8;
  --bg-card: #ffffff;
  --border: rgba(15, 34, 51, 0.12);
  --text: #152130;
  --text-muted: #536b7f;
  --accent: #188f79;
  --accent-soft: rgba(24, 143, 121, 0.12);
  --accent-2: #d37835;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--bg) 94%, black);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-phone {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.header-msgs {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.header-msg {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s;
}

.header-msg-icon {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

.header-msg-icon--mail {
  width: 18px;
  height: 18px;
}

.header-msg:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  transform: translateY(-1px);
  text-decoration: none;
}

.logo {
  font-weight: 700;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
}

.brand__byte {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

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

.nav a:hover,
.nav a.active {
  color: var(--text);
  text-decoration: none;
}

.theme-toggle,
.nav-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle {
  display: none;
}

.hero {
  padding: clamp(2.8rem, 6vw, 5rem) 0;
}

.hero__title {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.1;
}

.hero__lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 48rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
}

.btn--primary {
  color: #0d1a1a;
  border-color: transparent;
  background: linear-gradient(130deg, var(--accent) 0%, #54d6bd 56%, var(--accent-2) 100%);
  box-shadow: 0 10px 24px color-mix(in oklab, var(--accent) 45%, transparent);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px color-mix(in oklab, var(--accent) 55%, transparent);
  filter: saturate(1.06);
  text-decoration: none;
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 7px 16px color-mix(in oklab, var(--accent) 45%, transparent);
}

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

.section {
  padding: clamp(2.4rem, 5vw, 4rem) 0;
}

.section--alt {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.section__subtitle {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.card p {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.price {
  font-weight: 700;
  color: var(--accent);
}

.promo-main {
  display: block;
  font-weight: 700;
  color: var(--accent);
}

.promo-old {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.promo-old-value {
  text-decoration: line-through;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0.8rem;
  vertical-align: top;
}

th {
  color: var(--text);
  background: var(--bg-elevated);
}

td {
  color: var(--text-muted);
}

.note {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.contact-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  transform: translateY(-1px);
  text-decoration: none;
}

.contact-actions .header-msg {
  width: 42px;
  height: 42px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 1.3rem 0 2rem;
  color: var(--text-muted);
}

.legal-box {
  margin-top: 1rem;
  padding: 1rem 1rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

@media (max-width: 840px) {
  .logo {
    font-size: 1.35rem;
  }

  .header-phone {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    width: min(290px, 85vw);
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  .nav.is-open {
    transform: translateX(0);
  }
}
