:root {
  --bg: #070d16;
  --panel: #101b2a;
  --panel-strong: #142338;
  --line: #243a54;
  --line-soft: rgba(151, 172, 201, 0.16);
  --text: #eef6ff;
  --muted: #97acc9;
  --brand: #81f0d0;
  --accent: #4fb8ff;
  --danger: #ffb2b2;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font: 16px "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #08111d 0%, #060c14 100%);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.public-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.public-header {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
}

.footer-links,
.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a,
.language-switch button {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.footer-links a {
  padding: 8px 10px;
}

.footer-links a:hover {
  border-color: rgba(129, 240, 208, 0.28);
  color: var(--text);
  background: rgba(20, 35, 56, 0.72);
}

.language-switch {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(16, 27, 42, 0.9);
}

.language-switch button {
  min-width: 40px;
  padding: 7px 9px;
  background: transparent;
  cursor: pointer;
}

.language-switch button.active {
  color: #08231a;
  background: var(--brand);
  border-color: var(--brand);
}

.public-main {
  flex: 1;
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 46px clamp(18px, 5vw, 48px) 34px;
}

.page-kicker {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin: 0 0 18px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.home-link:hover {
  color: var(--text);
  border-color: rgba(129, 240, 208, 0.28);
  background: rgba(20, 35, 56, 0.72);
}

.page-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.page-lead {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.section-band {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}

.section-title {
  margin: 0 0 14px;
  font-size: 1.4rem;
}

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

.product-card,
.doc-link-card,
.contact-panel,
.legal-panel {
  border: 1px solid rgba(79, 184, 255, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(16, 27, 42, 0.96), rgba(10, 17, 27, 0.98));
  box-shadow: var(--shadow);
}

.product-card {
  display: flex;
  min-height: 286px;
  flex-direction: column;
  padding: 22px;
}

.product-card h2,
.doc-link-card h2,
.contact-panel h2,
.legal-panel h2 {
  margin: 0;
  font-size: 1.2rem;
}

.product-card p,
.doc-link-card p,
.contact-panel p,
.legal-panel p,
.legal-panel li {
  color: var(--muted);
  line-height: 1.65;
}

.product-card p {
  margin: 12px 0 0;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  padding: 5px 8px;
  border: 1px solid rgba(129, 240, 208, 0.28);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
}

.tariff-form {
  display: grid;
  grid-template-columns: minmax(220px, 420px);
  gap: 10px;
  margin: 18px 0 0;
}

.tariff-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.tariff-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: var(--text);
  background: #0b1421;
}

.tariff-input:focus {
  border-color: var(--brand);
}

.tariff-message {
  grid-column: 1 / -1;
  min-height: 22px;
  color: var(--danger);
  font-size: 0.92rem;
}

.tariff-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.tariff-card {
  display: flex;
  min-height: 192px;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-strong);
}

.tariff-card h3,
.tariff-price {
  margin: 0;
}

.tariff-card h3 {
  font-size: 1rem;
}

.tariff-price {
  color: var(--brand);
  font-size: 1.6rem;
  font-weight: 800;
}

.tariff-note {
  flex: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  color: #08231a;
  background: var(--brand);
  font-weight: 800;
}

.secondary-button {
  color: var(--text);
  background: transparent;
  border-color: var(--line);
}

.doc-link-card {
  display: block;
  min-height: 160px;
  padding: 20px;
  text-decoration: none;
}

.doc-link-card p {
  margin: 12px 0 0;
}

.contact-panel,
.legal-panel {
  padding: 22px;
}

.legal-panel + .legal-panel {
  margin-top: 14px;
}

.legal-panel ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

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

.public-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  padding: 22px clamp(18px, 5vw, 64px);
  border-top: 1px solid rgba(79, 184, 255, 0.14);
  background: #060c14;
}

.footer-links {
  flex-wrap: wrap;
}

.footer-rights {
  max-width: 520px;
  color: var(--muted);
  text-align: right;
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer-rights span {
  display: block;
}

@media (max-width: 920px) {
  .product-grid,
  .doc-grid,
  .tariff-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-footer {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .public-header {
    top: 12px;
    right: 12px;
  }

  .product-grid,
  .doc-grid,
  .tariff-list,
  .tariff-form {
    grid-template-columns: 1fr;
  }

  .footer-links a {
    padding: 7px 8px;
  }

  .public-main {
    padding-top: 30px;
  }
}
