:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #132033;
  --muted: #5d6b7d;
  --line: #d9e0ea;
  --blue: #1768e5;
  --blue-dark: #0f4fb2;
  --green: #0e8f62;
  --shadow: 0 14px 40px rgba(16, 36, 64, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--blue); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 22px;
}

.hero,
.page-hero,
.section,
.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 76px) clamp(18px, 4vw, 28px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  min-height: 620px;
}

.compact { padding-bottom: 28px; }

.eyebrow {
  color: var(--blue);
  font-weight: 700;
  margin: 0 0 10px;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.compact h1 {
  font-size: clamp(34px, 5vw, 56px);
}

h2 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 { margin: 0 0 10px; font-size: 20px; }

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
  margin: 20px 0 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.button.primary:hover { background: var(--blue-dark); }

.connection-card,
.plan-card,
.order-form,
.order-box,
.feature-grid article,
.links-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.connection-card {
  padding: 24px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-weight: 800;
}

.status-line span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--green);
}

.device-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

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

.feature-grid article,
.plan-card {
  padding: 22px;
}

.price {
  margin: 4px 0 10px;
  font-size: 34px;
  font-weight: 900;
}

.split,
.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.links-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.order-form {
  display: grid;
  gap: 14px;
  max-width: 620px;
  margin-top: 24px;
  padding: 22px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.check-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  font-weight: 600;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.hp { display: none; }

.form-note,
.form-status,
.success,
.error {
  margin: 0;
  color: var(--muted);
}

.success { color: var(--green); font-weight: 800; }
.error { color: #b42318; font-weight: 800; }

.order-box {
  max-width: 760px;
  margin-top: 24px;
  padding: 22px;
}

.subscription-url {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
  padding: 14px;
  border-radius: 8px;
  background: #eef4ff;
}

.private-page {
  min-height: 520px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    padding: 16px 22px 22px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: grid; }
  .hero,
  .feature-grid,
  .plans,
  .split,
  .support-layout {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  .site-footer { display: grid; }
}
