/* Starlink-inspired: dark, high contrast, editorial type */
:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #111;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --accent: #fff;
  --font: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-main a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-main a:hover {
  color: var(--text);
  text-decoration: none;
  border-bottom-color: var(--text);
}

.nav-main a.is-active {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 5rem;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, var(--bg) 100%),
    url("../pics/home_b_hero_d.webp") center / cover no-repeat;
}

.hero-title {
  max-width: 1100px;
  margin: 0 auto 2rem;
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero .btn-primary {
  margin-top: 1.25rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  background: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover {
  opacity: 0.92;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary--ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-primary--ghost:hover {
  border-color: #fff;
}

/* ——— Sections ——— */
.section {
  padding: 4.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  line-height: 1.2;
}

.lead {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 68ch;
  margin: 0 0 2.5rem;
}

.lead strong {
  color: var(--text);
}

/* Image grids */
.img-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .img-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

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

.img-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.img-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .img-grid img {
    height: 200px;
  }
}

/* Split block */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

/* Tariff cards (service-plans style) */
.plans-page {
  padding: 3rem 1.5rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.plans-page h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.plans-sub {
  color: var(--muted);
  margin: 0 0 3rem;
  font-size: 1.05rem;
}

.plan-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .plan-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
  }
}

.plan-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.plan-name {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.plan-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
  min-height: 2.8em;
}

.plan-card ul {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.plan-card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
  font-size: 0.9375rem;
  color: #d4d4d4;
}

.plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
}

.plan-price {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.plan-card .btn-primary {
  width: 100%;
}

.tariffs-cta {
  margin-top: 3.5rem;
  text-align: center;
}

/* ——— Footer ——— */
.site-footer {
  margin-top: auto;
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
  background: #050505;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.footer-contacts a {
  color: var(--muted);
}

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

.footer-legal-link {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-legal-link:hover {
  border-bottom-color: #fff;
}

.footer-copy {
  font-size: 0.75rem;
  color: #737373;
  line-height: 1.5;
}

/* Legal page */
.legal-page {
  padding: 2rem 1.5rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.legal-intro {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.9375rem;
  color: #d4d4d4;
}

.legal-toc {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
  border-top: 1px solid var(--border);
}

.legal-toc li {
  border-bottom: 1px solid var(--border);
}

.legal-toc a {
  display: block;
  padding: 1rem 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-toc a:hover {
  text-decoration: none;
  color: var(--muted);
}

.legal-doc {
  margin-bottom: 4rem;
}

.legal-doc h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.legal-doc h2.legal-main-title {
  font-size: 1.35rem;
  margin-top: 0;
}

.legal-doc h3 {
  font-size: 1rem;
  margin: 2rem 0 0.75rem;
}

.legal-doc h4 {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 1.5rem 0 0.5rem;
}

.legal-doc p,
.legal-doc li {
  font-size: 0.9375rem;
  color: #ccc;
}

.legal-doc p {
  margin: 0 0 1rem;
}

.legal-doc ul {
  padding-left: 1.25rem;
}

.legal-doc a {
  color: #93c5fd;
  text-decoration: underline;
}

.legal-doc a:hover {
  color: #bfdbfe;
}

.legal-lang {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 1rem;
}

table.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1rem 0;
}

table.legal-table th,
table.legal-table td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  text-align: left;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #000;
}
