:root {
  --navy: #222650;
  --black: #201c1c;
  --gray: #676767;
  --back: #f4f5ff;
  --mid: #cdd1f3;
  --white: #ffffff;
  --field: #e2e7ff;
  --teal: #479f9c;
  --green: #1f8a56;
  --radius: 20px;
  --shadow: 0 12px 40px rgba(34, 38, 80, 0.06);
  --font: "Inter", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--navy);
  background:
    radial-gradient(980px 720px at 6% -8%, rgba(205, 209, 243, 0.95), transparent 62%),
    radial-gradient(860px 640px at 96% -6%, rgba(176, 194, 255, 0.72), transparent 58%),
    radial-gradient(720px 520px at 72% 38%, rgba(255, 255, 255, 0.72), transparent 60%),
    radial-gradient(900px 680px at 18% 108%, rgba(214, 222, 255, 0.85), transparent 55%),
    #e8ecf8;
}

[hidden] { display: none !important; }

button, input, textarea { font-family: inherit; }

button { cursor: pointer; }

img { display: block; }

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

.shell {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 10px 0 28px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(225, 231, 255, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(3.5px);
}

.head {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
  padding: 10px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.head-left {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.logo-box {
  display: grid;
  place-items: center;
  width: 55px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy);
  flex: none;
}

.date {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
  line-height: 1;
}

.date span:first-child { color: var(--black); }
.muted { color: var(--gray); }

.time {
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  color: var(--black);
  letter-spacing: -0.04em;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 15px;
  height: 40px;
  padding: 0 15px;
  border-radius: 10px;
  background: var(--back);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
}

.outage-btn,
.nav-link,
.logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 10px;
  border: 0;
  background: var(--back);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
}

.outage-btn {
  gap: 8px;
  width: 260px;
  padding: 0 5px 0 16px;
  border: 1px solid var(--navy);
  background: var(--white);
  flex: none;
}

.outage-btn .chevron {
  transform: rotate(90deg);
}

.outage-btn[aria-expanded="true"] .chevron {
  transform: rotate(-90deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-link {
  gap: 10px;
  padding: 0 15px;
  white-space: nowrap;
}

.nav-link.is-current {
  background: var(--mid);
}

.logout {
  width: 40px;
  padding: 0;
  border: 1px solid var(--gray);
  background: var(--white);
}

.icon-slot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
}

.view { margin-top: 20px; }
.view[hidden] { display: none; }

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: 260px minmax(380px, auto);
  gap: 24px;
}

.profile { grid-column: 1; grid-row: 1; }
.traffic { grid-column: 1; grid-row: 2; }
.tariff { grid-column: 2; grid-row: 1 / span 2; }
.credit { grid-column: 3; grid-row: 1; }
.topup { grid-column: 3; grid-row: 2; }

.profile,
.credit,
.topup,
.tariff,
.traffic {
  position: relative;
  min-width: 0;
}

.profile,
.credit {
  padding: 25px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.card-title span { white-space: nowrap; }

.status {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 15px;
  border-radius: 10px;
  background: var(--white);
  font-size: 14px;
}

.status b {
  color: var(--teal);
  font-size: 18px;
  font-weight: 500;
}

.profile-address {
  margin-top: 34px;
}

.label {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.value {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.profile-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
}

.profile-meta .right { text-align: right; }

.tariff {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
}

.tariff-head,
.split {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.tariff-name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  text-align: right;
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.stack { display: flex; flex-direction: column; gap: 10px; }
.stack.end, .right { text-align: right; align-items: flex-end; }
.stack.end .label, .stack.end .value { text-align: right; }

.next-pay {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.promo { width: 100%; min-width: 0; }

.promo-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.sale {
  position: relative;
  width: 19px;
  height: 19px;
  flex: none;
}

.sale .percent {
  position: absolute;
  left: 5px;
  top: 5px;
  transform: rotate(45deg);
}

.promo p {
  max-width: 301px;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.15;
}

.promo-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 28px;
}

.ghost,
.field-btn,
.primary,
.soft {
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}

.ghost {
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding: 0 6px 0 20px;
  overflow: hidden;
  background: var(--white);
  color: var(--navy);
}

.promo-form {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 5px 0 20px;
  border: 1px solid var(--navy);
  border-radius: 10px;
  background: var(--field);
}

.promo-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--navy);
  font-size: 14px;
}

.promo-form input::placeholder { color: var(--navy); }

.icon-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--navy);
}

.credit {
  display: flex;
  flex-direction: column;
}

.credit .lead {
  margin: 28px 0 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.credit .note {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.25;
}

.credit .primary { margin-top: auto; }

.primary {
  justify-content: center;
  width: 100%;
  height: 40px;
  background: var(--navy);
  color: var(--white);
}

.soft {
  justify-content: center;
  width: 100%;
  height: 40px;
  background: var(--white);
  color: var(--navy);
}

.topup { padding: 25px; }

.pay-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
}

.pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 0 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.pay-row .chevron { transform: rotate(90deg); }

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  margin: 0 auto;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand small { font-weight: 500; font-size: 11px; letter-spacing: 0; }

.privat { color: #5e9a16; font-size: 16px; }
.easypay { color: #e23b2f; font-size: 15px; font-style: italic; }
.ipay { color: #f26a21; font-size: 18px; }
.ipay b { color: #1a4fa0; font-weight: 800; }
.cards { gap: 10px; }
.visa {
  color: #1a1f71;
  font-size: 16px;
  font-style: italic;
  letter-spacing: 0.04em;
}
.mc { display: inline-flex; }
.mc i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.mc i:first-child { background: #eb001b; }
.mc i:last-child { margin-left: -6px; background: #f79e1b; }
.apple { font-size: 20px; }
.gpay { font-size: 13px; font-weight: 500; color: #3c4043; }
.gpay b { color: #4285f4; }

.traffic {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 16px;
}

.traffic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.traffic-head p {
  margin: 0;
  color: var(--gray);
  font-size: 14px;
}

.legend {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 2px;
}

.legend .in { background: var(--navy); }
.legend .out { background: var(--teal); }

.chart {
  width: 100%;
  height: 250px;
  margin-top: 8px;
}

.chart text {
  fill: var(--gray);
  font-size: 12px;
  font-family: var(--font);
}

.banner {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 250px;
  margin-top: 20px;
  padding: 30px;
  overflow: hidden;
}

.banner h2 {
  max-width: 384px;
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.banner .gift {
  max-width: 346px;
  margin: 48px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

.stores {
  display: flex;
  align-items: center;
  gap: 20px;
}

.store-col { display: flex; flex-direction: column; gap: 10px; }

.store {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 80px;
  border: 0;
  border-radius: 16px;
  background: var(--white);
  color: var(--navy);
}

.store small {
  font-size: 12px;
  font-weight: 400;
  text-transform: lowercase;
}

.store.ios small { text-transform: uppercase; }

.store b { font-size: 15px; font-weight: 600; }

.qr {
  width: 170px;
  height: 170px;
  padding: 12px;
  border-radius: 16px;
  background: var(--white);
}

.qr svg { width: 100%; height: 100%; }

.phone {
  width: 148px;
  height: 210px;
  padding: 8px;
  border-radius: 28px;
  background: var(--navy);
  box-shadow: 0 16px 30px rgba(34, 38, 80, 0.18);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7f8ff, #dfe4ff);
}

.phone-bar {
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.phone-bar i {
  width: 42px;
  height: 8px;
  border-radius: 8px;
  background: #1a1d3a;
}

.phone-apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px 10px;
}

.phone-apps span,
.dock span {
  aspect-ratio: 1;
  border-radius: 6px;
  background: rgba(34, 38, 80, 0.16);
}

.dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: auto 8px 8px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.payments { margin-top: 20px; padding: 30px 15px 24px; }

.payments-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 15px 20px;
  font-size: 18px;
  font-weight: 600;
}

.pay-table { position: relative; }
.pay-table.is-collapsed #pay-rows { max-height: 455px; overflow: hidden; }
.faq-item .q { justify-content: space-between; }
.faq-item.is-open .chevron { transform: rotate(180deg); }

.op {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(220px, 0.9fr) 90px;
  gap: 20px;
  align-items: center;
  min-height: 80px;
  margin-bottom: 5px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.op .k { margin: 0; font-size: 14px; }
.op .v { margin: 8px 0 0; font-size: 18px; font-weight: 500; }
.op .sum { text-align: right; }
.mid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 16px;
  align-items: center;
}
.v.ok { color: var(--green); }

.fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(244, 245, 255, 0), rgba(236, 240, 252, 0.96) 70%);
  pointer-events: none;
}

.history {
  display: flex;
  justify-content: flex-end;
  margin: 8px 12px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 18px;
  font-weight: 500;
}

.contacts {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 101px;
  margin-top: 20px;
  padding: 24px 25px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
}

.contacts p { margin: 0; font-size: 16px; font-weight: 500; }
.contacts .ai { font-size: 18px; font-weight: 600; }
.contacts .col { display: flex; flex-direction: column; gap: 14px; }

.socials { display: flex; gap: 15px; }

.socials a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--black);
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 15px 0;
  color: var(--gray);
  font-size: 14px;
}

.legal a:hover { color: var(--navy); }

.panel {
  margin-top: 12px;
  padding: 25px 30px 30px;
}

.panel[hidden] { display: none; }

.panel h2 { margin: 0 0 18px; font-size: 18px; }

.panel h3 { margin: 22px 0 8px; font-size: 18px; font-weight: 600; }

.panel p { margin: 0; font-size: 14px; line-height: 1.45; }

.page-title {
  margin: 10px 0 20px;
  font-size: 24px;
  font-weight: 700;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.35);
  color: var(--navy);
  font-size: 18px;
  font-weight: 500;
}

.tab.is-current {
  background: var(--white);
  box-shadow: var(--shadow);
}

.split-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.section-title {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 700;
}

.request,
.faq-item {
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.request-top,
.faq-item button.q {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 80px;
  padding: 16px 16px 16px 20px;
  border: 0;
  background: transparent;
  color: var(--navy);
  text-align: left;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 15px;
  border-radius: 10px;
  background: var(--back);
  font-size: 14px;
  font-weight: 500;
}

.badge.answer { background: #e5f6ee; color: var(--green); }

.request time,
.faq-item time {
  margin-left: auto;
  color: var(--gray);
  font-size: 14px;
}

.request .body,
.faq-item .a {
  position: relative;
  max-height: 0;
  padding: 0 20px;
  overflow: hidden;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.45;
}

.request.is-open .body,
.faq-item.is-open .a {
  max-height: 280px;
  padding-bottom: 16px;
}

.plus {
  display: grid;
  place-items: center;
  width: 100%;
  height: 20px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 18px;
}

.composer h2 {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 700;
}

.composer-box {
  padding: 5px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.45);
}

.composer-box textarea {
  width: 100%;
  height: 90px;
  padding: 16px;
  border: 0;
  border-radius: 14px;
  outline: none;
  resize: vertical;
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy);
  font-size: 14px;
}

.composer-box footer {
  display: flex;
  justify-content: flex-end;
  padding: 8px;
}

.send {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
}

.options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "pass ip ext"
    "docs speed tips"
    "actions speed tips";
  gap: 20px;
  align-items: stretch;
}

.area-pass { grid-area: pass; }
.area-ip { grid-area: ip; }
.area-ext { grid-area: ext; }
.area-docs { grid-area: docs; }
.area-speed { grid-area: speed; }
.area-actions { grid-area: actions; }
.area-tips { grid-area: tips; }

.option {
  padding: 25px;
}

.option h2 { margin: 0; font-size: 18px; font-weight: 600; }
.option .hint {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.35;
}

.fields { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

.fields input {
  height: 50px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  outline: none;
  background: var(--white);
  color: var(--navy);
  font-size: 16px;
}

.fields input:focus { border-color: var(--navy); }

.price {
  display: flex;
  gap: 12px;
  margin: 28px 0 16px;
  font-size: 18px;
  font-weight: 500;
}

.price b { font-weight: 600; }

.doc-row, .action-col { display: flex; gap: 10px; margin-top: 18px; }
.action-col { flex-direction: column; }

.area-speed,
.area-tips { min-height: 100%; }

.gauge { margin-top: 18px; text-align: center; }
.gauge svg { width: 100%; height: auto; }
.gauge-value {
  margin-top: -8px;
  font-size: 22px;
  font-weight: 600;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 8px;
  margin-top: 12px;
  text-align: left;
}

.tips { margin: 16px 0 18px; padding-left: 18px; }
.tips li { margin: 8px 0; font-size: 14px; line-height: 1.35; }

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(34, 38, 80, 0.28);
}

.modal[hidden] { display: none; }

.dialog {
  width: min(420px, 100%);
  padding: 28px;
  border-radius: 20px;
  background: var(--white);
}

.dialog h2 { margin: 0 0 8px; font-size: 22px; }
.dialog p { margin: 0 0 20px; color: var(--gray); }

.dialog-actions { display: flex; gap: 10px; }
.dialog-actions .primary,
.dialog-actions .soft { width: auto; flex: 1; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  box-shadow: var(--shadow);
}

.toast[hidden] { display: none; }


body { background: #e2e7ff url("public/assets/background.svg?v=926932011d") center top / 100% auto repeat-y; color: #201c1c; }
.shell { width: min(1180px, calc(100% - 40px)); }
.card { background: linear-gradient(130deg, #ffffff80, #ffffff26); box-shadow: none; }
.head { box-shadow: none; gap: 12px; }
.head-left { gap: 12px; }
.nav-link { gap: 8px; padding: 0 12px; }
.nav-link.is-current { background: var(--back); }
.home-grid { grid-template-columns: 480fr 380fr 280fr; grid-template-rows: 245px 340px; gap: 20px; }
.profile { background: linear-gradient(165deg, #303fe8, #18248b 52%, #222650); color: white; }
.profile .label { color: white; }
.profile .card-title img { filter: brightness(0) invert(1); }
.status { background: transparent; border: 1px solid currentColor; gap: 5px; }
.status b { color: inherit; }
.status span { font-size: 12px; }
.value { font-weight: 400; }
.stack { gap: 0; }
.tariff { grid-row: 1 / span 2; }
.stats { gap: 30px; margin-top: 40px; }
.next-pay { margin-top: 40px; align-items: baseline; }
.certificate { grid-column: 2; grid-row: 2; padding: 25px; }
.promo { height: 290px; flex: none; display: flex; flex-direction: column; margin-top: 45px; }
.promo-actions { margin-top: auto; }
.traffic { padding: 20px; }
.traffic-head { min-height: 40px; }
.network-description { margin: 10px 0 0; font-size: 14px; line-height: 1.3; }
.network-details { margin-top: auto; }
.network-details > p { margin: 0 0 8px; font-size: 18px; }
.network-online { display: flex; justify-content: center; align-items: center; gap: 8px; height: 40px; border-radius: 16px; background: white; font-size: 18px; }
.network-online i { width: 12px; height: 12px; border-radius: 50%; background: #479f9c; }
.network-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 10px; height: 40px; border: 1px solid #22265040; border-radius: 16px; padding: 0 15px; font-size: 14px; }
.network-row b { font-size: 18px; font-weight: 400; white-space: nowrap; }
.credit .note { margin-top: 14px; line-height: 1.1; }
.credit-period { margin-top: auto; }
.credit .lead { margin: 0; font-size: 28px; font-weight: 400; white-space: nowrap; }
.pay-row { background: #cdd1f380; padding: 0 5px; }
.pay-row > img { width: 30px; height: 30px; padding: 7px; background: white; border-radius: 6px; }
.banner { background: #222650; color: white; grid-template-columns: minmax(0, 1fr) auto 220px; padding: 25px 30px; }
.banner h2 { color: #7d9ce9; font-weight: 500; }
.banner .gift { font-size: 18px; font-weight: 400; }
.stores { gap: 10px; }
.store, .qr { border-radius: 8px; }
.store b { font-size: 12px; text-transform: uppercase; }
.phone { justify-self: center; transform: rotate(10deg); }
.contacts { background: #222650; color: white; border-radius: 10px; }
.socials a { color: white; }
.op .v { font-weight: 400; }
.v.ok { color: #201c1c; }
.op .k { color: #617cbd; }
@media (max-width: 1180px) {
  .head { height: auto; flex-wrap: wrap; }
  .nav { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .outage-btn { width: auto; }
  .home-grid {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto;
  }
  .profile, .traffic, .tariff, .certificate, .credit, .topup {
    grid-column: auto;
    grid-row: auto;
  }
  .tariff { min-height: 250px; }
  .certificate { min-height: 340px; }
  .profile, .traffic, .credit, .topup { min-height: 250px; }
  .banner { grid-template-columns: 1fr auto; }
  .banner .phone { display: none; }
  .banner, .contacts, .split-page, .options, .tabs { grid-template-columns: 1fr; }
  .options { grid-template-areas: none; }
  .area-pass, .area-ip, .area-ext, .area-docs, .area-speed, .area-actions, .area-tips { grid-area: auto; }
  .op { grid-template-columns: 1fr; }
  .mid { grid-template-columns: 1fr 1px 1fr; }
  .legal { flex-direction: column; }
}

@media (max-width: 720px) {
  .home-grid { grid-template-columns: 1fr; }
  .time { font-size: 28px; }
  .banner { padding: 20px; }
  .phone { display: none; }
  .head-left { flex-wrap: wrap; }
}

@media (max-width: 720px) { .banner { grid-template-columns: 1fr; } .shell { width: calc(100% - 24px); } .status { padding: 0 8px; } .card-title { font-size: 16px; } .network-row { padding: 0 8px; font-size: 12px; } .network-row b { font-size: 16px; } }

.platon { color: #222650; font-size: 16px; }

/* Original artwork and dimensions extracted from the supplied .fig file. */
.card { background: linear-gradient(0deg, #e1e7ff00, #ffffff99); border-color: #ffffff99; }
.profile { background: linear-gradient(165deg, #1641ff 0%, #222650 85%); }
.credit { background: #ffffff99; }
.tariff { justify-content: flex-start; }
.promo p { line-height: 1.15; }
.banner { position: relative; display: block; height: 250px; min-height: 250px; padding: 30px; background: linear-gradient(135deg, #222650, #323876); border: 0; }
.banner h2 { font-weight: 700; line-height: 1.15; }
.banner .gift { position: absolute; left: 30px; bottom: 30px; margin: 0; font-size: 20px; font-weight: 500; }
.banner .stores { position: absolute; left: 560px; top: 41px; width: 290px; z-index: 2; }
.qr { padding: 0; object-fit: contain; }
.banner-phones { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.phone-hand { position: absolute; width: 301px; height: 280px; object-fit: contain; right: 27px; top: 27px; }
.phone-original { position: absolute; width: 103px; height: 210px; right: 187px; top: 20px; }
.payment-logo { object-fit: contain; }
.platon-logo { width: 82px; height: 22px; }
.apple-pay-logo { width: 54px; height: 30px; }
.google-pay-logo { width: 54px; height: 22px; }
.payments { min-height: 708px; }
.pay-table.is-collapsed #pay-rows { max-height: 590px; }
@media (max-width: 1180px) {
 .tariff { grid-column: auto; grid-row: auto; min-height: 606px; }
 .banner .stores { left: auto; right: 30px; }
 .banner-phones { display: none; }
 .banner h2, .banner .gift { max-width: calc(100% - 340px); }
}
@media (max-width: 720px) {
 .banner { height: auto; min-height: 400px; }
 .banner h2, .banner .gift { max-width: 100%; }
 .banner .gift { position: static; margin-top: 20px; }
 .banner .stores { position: static; margin-top: 24px; width: 100%; justify-content: center; }
 .tariff { min-height: 606px; }
 .payments { min-height: 0; }
}
.tariff .stats { position: absolute; top: 85px; left: 25px; right: 25px; margin: 0; gap: 30px; }
.tariff .stats .value { margin-top: 7px; line-height: 1; }
.tariff .next-pay { position: absolute; top: 225px; left: 25px; right: 25px; margin: 0; }
.tariff .promo { position: absolute; top: 291px; left: 25px; right: 25px; width: auto; height: 290px; margin: 0; }
/* Secondary screens: 580 px columns and the original 285/475 px settings rows. */
#answers, #options { color: var(--navy); }
.tab.is-current { background: linear-gradient(135deg, #222650, #323876); color: white; box-shadow: none; }
.tab.is-current img { filter: brightness(0) invert(1); }
.tab.is-current svg { color: white; }
.tab.is-current svg rect, .tab.is-current svg path { stroke: currentColor; }
.split-page { margin-top: 50px; }
.section-title, .composer h2 { font-weight: 600; line-height: 1; }
.section-title { margin-left: 10px; }
.composer { position: relative; min-height: 787px; }
.composer::before { content: ""; position: absolute; inset: 37px 0 0; border-radius: 20px; background: #ffffff33; z-index: -1; }
.composer-box { border-radius: 15px; }
.composer-box textarea { height: 90px; font-size: 18px; }
.request, .faq-item { border-radius: 10px; background: var(--back); }
.page-title { margin: 26px 10px 20px; font-weight: 600; line-height: 1; }
.options { grid-template-rows: 285px 160px 290px; }
.option { display: flex; flex-direction: column; }
.option h2 { line-height: 1; }
.option .hint { line-height: 1.15; }
.option .fields { margin-top: auto; }
.option .price { margin-top: auto; justify-content: space-between; }
.option .primary { flex-shrink: 0; }
.option .doc-row { margin-top: auto; }
.option .action-col { margin-top: auto; }
.area-speed, .area-tips { height: 475px; min-height: 0; }
.area-speed > .primary, .area-tips > .primary { margin-top: auto !important; }
.area-speed .gauge { margin-top: 35px; }
.area-speed .gauge svg { height: 180px; }
.area-speed .metrics { margin-top: 24px; }
@media (max-width: 1180px) {
 .options { grid-template-rows: none; }
 .option { min-height: 250px; }
 .area-speed, .area-tips { height: auto; min-height: 475px; }
 .composer { min-height: 350px; }
}
@media (max-width: 720px) {
 .split-page { margin-top: 30px; }
 .tabs { gap: 10px; }
 .section-title, .composer h2 { font-size: 21px; }
 .composer-box textarea { font-size: 16px; }
 .request-top { flex-wrap: wrap; }
}
.doc-row > button { flex: 1 1 0; width: 0; min-width: 0; padding: 0 8px; }
@media (max-width: 720px) {
 .profile { min-height: 290px; }
 .profile .status { position: static; width: fit-content; margin-top: 16px; }
 .profile-address { margin-top: 20px; }
 .profile-meta { gap: 12px; margin-top: 22px; }
 .profile-meta .value { font-size: 16px; }
 .traffic-head { flex-wrap: wrap; }
 .traffic .status { position: static; }
 .traffic { min-height: 340px; }
 .tariff-head { gap: 8px; }
 .tariff-name { font-size: 16px; }
 .card-title { gap: 8px; }
 .topup, .credit, .profile, .tariff { padding: 20px; }
 .tariff .stats, .tariff .next-pay, .tariff .promo { left: 20px; right: 20px; }
 .network-online { font-size: 15px; }
 .network-row { gap: 4px; }
 .network-row span { max-width: 65%; }
 .store { width: 90px; }
 .qr { width: 150px; height: 150px; }
}
.composer { isolation: isolate; }
.request-top { min-height: 40px; padding: 10px 20px 0; }
.request .body { max-height: 40px; padding: 8px 20px; line-height: 1.2; color: #676767; }
.request .plus { height: 20px; background: var(--navy); color: white; }
.request.is-open .body { max-height: 280px; padding-bottom: 16px; }

/* Shared interaction states; hover is limited to devices with a precise pointer. */
:where(button, .nav-link, .store) {
  transition: background-color 160ms ease, box-shadow 160ms ease,
    border-color 160ms ease, color 160ms ease, filter 160ms ease;
}
.pay-row > img { transition: background-color 160ms ease; }
:where(button, .nav-link, .store):focus-visible {
  outline: 2px solid #1641ff;
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  :where(.outage-btn, .nav-link, .logout, .ghost, .soft, .store, .tab:not(.is-current)):not(:disabled):hover {
    background-color: #e2e7ff;
    box-shadow: 0 3px 10px #22265014;
  }
  :where(.outage-btn, .logout):not(:disabled):hover { border-color: #1641ff; }
  :where(.primary, .send, .icon-btn, .plus):not(:disabled):hover {
    background-color: #353d7a;
    box-shadow: 0 3px 10px #22265026;
  }
  .tab.is-current:not(:disabled):hover { filter: brightness(1.18); }
  .pay-row:not(:disabled):hover {
    background-color: #bbc3f0;
    box-shadow: 0 3px 10px #22265014;
  }
  .pay-row:not(:disabled):hover > img { background-color: #f4f5ff; }
  .faq-item button.q:not(:disabled):hover { background-color: #e2e7ff; }
  .history:not(:disabled):hover { color: #1641ff; text-decoration: underline; text-underline-offset: 4px; }
}
:where(.outage-btn, .nav-link, .logout, .ghost, .soft, .store, .pay-row):not(:disabled):active {
  background-color: #cdd1f3;
  box-shadow: inset 0 1px 3px #22265026;
}
:where(.primary, .send, .icon-btn, .plus):not(:disabled):active {
  background-color: #181c40;
  box-shadow: inset 0 2px 4px #0003;
}
button:disabled { cursor: not-allowed; opacity: .5; }
@media (prefers-reduced-motion: reduce) {
  :where(button, .nav-link, .store), .pay-row > img { transition: none; }
}

/* Request previews: original 580 × 100 cards with a faded text excerpt. */
.request { border-radius: 15px; }
.request-top { min-height: 35px; height: 35px; padding: 5px 15px 0 5px; gap: 5px; flex-wrap: nowrap; }
.request-top .badge { flex: none; }
.request-top time { white-space: nowrap; }
.request .body {
  height: 25px;
  max-height: 25px;
  margin-top: 20px;
  padding: 5px 25px 0;
  font-size: 14px;
  line-height: 14px;
  color: var(--navy);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #0006 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #0006 55%, transparent 100%);
}
.request .plus { border-radius: 0 0 15px 15px; background: linear-gradient(135deg, #222650, #323876); }
.request.is-open .body {
  height: auto;
  max-height: none;
  padding: 5px 25px 20px;
  line-height: 1.4;
  -webkit-mask-image: none;
  mask-image: none;
}
@media (max-width: 720px) {
  .request-top { flex-wrap: wrap; height: auto; min-height: 35px; }
  .request-top time { font-size: 12px; }
}

/* Login frame: 380 × 450 at (530, 272) in the 1440 × 960 design. */
.login-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 50px 20px 16px;
  color: var(--navy);
}
.login-card {
  width: min(380px, 100%);
  height: 450px;
  padding: 25px;
  border-radius: 20px;
  background: #ffffff99;
  backdrop-filter: blur(7px);
}
.login-top { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.login-terms { width: 110px; padding-left: 20px; }
.login-intro { margin-top: 48px; }
.login-intro h1 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1; }
.login-intro p { margin: 15px 0 0; color: var(--gray); font-size: 14px; line-height: 1; }
.login-form { margin-top: 36px; }
.login-field + .login-field { margin-top: 20px; }
.login-field label { display: block; margin: 0 0 10px 10px; font-size: 16px; line-height: 12px; }
.login-field input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--mid);
  border-radius: 15px;
  background: white;
  color: var(--navy);
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.login-field input::placeholder { color: var(--gray); opacity: 1; }
.login-field input:focus-visible { outline: none; border-color: #1641ff; box-shadow: inset 0 0 0 1px #1641ff; }
.login-submit { height: 50px; margin-top: 15px; border-radius: 15px; font-size: 16px; background: linear-gradient(135deg, #222650, #323876); }
@media (hover: hover) and (pointer: fine) { .login-submit:hover { filter: brightness(1.18); } }
@media (max-width: 420px) { .login-screen { padding-inline: 16px; } .login-card { padding: 25px 20px; } .login-intro h1 { font-size: 17px; } }
