/* PALETTE A «Сланцево-синій». DEFAULT saved in PALETTE.txt: topbar #102636, hero #16324a, page #f3f6f8, footer #102636 */
:root {
  --bg: #F6F8FA;
  --ink: #1B2A41;
  --muted: #5c6b7c;
  --line: #d5dee7;
  --navy: #1B2A41;
  --card: #fff;
  --accent: #0848A0;
  --max: 1040px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.topbar { background: #294365; color: #E8EDF3; font-size: 13px; padding: 0; line-height: 1.3; }
.topbar .wrap { display: flex; gap: 0; align-items: center; justify-content: center; flex-wrap: wrap; padding: 5px 0; width: min(var(--max), calc(100% - 32px)); margin: 0 auto; background: transparent; border-radius: 0; }
.topbar a { color: #fff; text-decoration: none; padding: 2px 16px; display: inline-flex; align-items: center; gap: 6px; }
.topbar a svg { width: 13px; height: 13px; flex: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .sep { width: 1px; height: 14px; background: rgba(255,255,255,.4); display: inline-block; margin: 0 4px; }
.navbot { display: inline-flex; align-items: center; padding: 8px 4px; }
.navbot svg { width: 18px; height: 18px; display: block; }
.desk { display: inline; }
.mob { display: none; }
header.site { background: #EEF1F5; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
header.site .wrap { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; }
.brand img { height: 46px; width: auto; }
nav.main { margin-left: auto; display: flex; gap: 10px; align-items: center; }
nav.main > a, .drop > button { color: #1B2A41; text-decoration: none; background: none; border: 0; font: inherit; font-weight: 650; padding: 8px 14px; border-radius: 8px; cursor: pointer; }
nav.main > a:hover, .drop > button:hover, nav.main > a.active { background: #e3e8ee; }
.drop { position: relative; }
.drop menu { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(16,38,54,.08); padding: 8px; margin: 0; list-style: none; }
.drop:hover menu, .drop:focus-within menu { display: block; }
.drop menu a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.drop menu a:hover { background: #e7f3f5; }
.burger { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 10px; }
.hero { background: #294365; color: #E8EDF3; padding: 36px 0 32px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 36px); font-weight: 650; color: #E8EDF3; }
.hero p { margin: 0 0 8px; max-width: 760px; color: #E8EDF3; }
.hero ul { margin: 0; padding-left: 20px; max-width: 760px; color: #E8EDF3; }
.hero .actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn { display: inline-block; background: #fff; color: var(--navy); text-decoration: none; font-weight: 700; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--navy); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.page { padding: 26px 0 46px; }
h1.page-title { margin: 0 0 8px; font-size: 30px; }
.lead { color: var(--muted); margin-top: 0; }
.lead.splitline { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: none; }
.grid { display: grid; gap: 14px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card, .panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.card { padding: 16px 16px 14px; }
.card h3 { margin: 8px 0 4px; }
.tariffs { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tariff { display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; text-decoration: none; padding: 22px 16px 18px; border-radius: 12px; min-height: 230px; }
.tariff h3, .tariff p { margin: 4px 0; color: #fff; }
.tariff .pic { width: 120px; height: 82px; object-fit: contain; margin-bottom: 6px; }
.tariff .price { color: #fff; }
.tariff .price small { color: rgba(255,255,255,.85); }
.tariff .fine { margin: 8px 0 0; font-size: 12px; font-style: italic; color: rgba(255,255,255,.85); }
.tariff.utp { background: #1B6577; }
.tariff.pon { background: #1A4C6C; }
.tariff.s1 { background: #1B6577; }
.tariff.s2 { background: #1A4C6C; }
.tariff.s3 { background: #16324a; }
.tariff.c1 { background: #1B6577; }
.tariff.c2 { background: #1A4C6C; }
.tariff.c3 { background: #3d5a4c; }
.tariff.c5 { background: #4d5f4a; }
a.doclink { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
a.doclink svg { width: 18px; height: 18px; flex: none; }
.tariff .split { width: 42%; border: 0; border-top: 1px solid rgba(255,255,255,.55); margin: 14px auto; }
.payblock { align-items: stretch; text-align: left; max-width: 820px; min-height: 0; margin: 0 auto; }
.payblock .head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.payblock .pic { width: 72px; height: 52px; }
.payblock ol { margin: 12px 0 0; padding-left: 28px; }
.payblock li { margin: 8px 0; }
.payblock a { color: #fff; }
.tariff a { color: #fff; }
.price { font-size: 28px; font-weight: 800; color: var(--navy); margin: 8px 0; }
.price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.panel { padding: 16px 18px; margin: 16px 0; }
.note { background: #f7f1e6; border: 1px solid #eadcc4; border-radius: 12px; padding: 12px 14px; margin: 14px 0; }
table.price { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid #5d7388; border-radius: 10px; font-size: 14px; }
table.price th, table.price td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #8aa0b3; border-right: 1px solid #c5d2de; vertical-align: top; font-weight: 450; }
table.price tr:last-child td { border-bottom: 0; }
table.price th:first-child { border-top-left-radius: 9px; }
table.price th:last-child { border-top-right-radius: 9px; border-right: 0; }
table.price td:last-child { border-right: 0; }
table.price tr:last-child td:first-child { border-bottom-left-radius: 9px; }
table.price tr:last-child td:last-child { border-bottom-right-radius: 9px; }
table.price th { background: #16324a; color: #fff; font-size: 13px; font-weight: 650; }
table.price td:last-child { color: #102636; background: #f4f8fb; width: 34%; }
table.price tr:nth-child(even) td { background: #f8fbfc; }
table.price.add { overflow: hidden; }
table.price.add tr:first-child td { border-top-left-radius: 9px; border-top-right-radius: 9px; }
table.price.add td { width: auto; background: #fff; color: var(--ink); }
table.price.add tr:nth-child(even) td { background: #f8fbfc; }
table.price.add tr.grp td { background: #e8eef3; color: #102636; font-weight: 700; text-align: left; }
table.price.add tr.grp.center td { text-align: center; background: #d7e0e8; }
table.price.add td.green, table.price.add td.green b { color: #006400; }
table.price.add em { font-size: 13px; }
table.price.add small { font-size: 12px; color: #3d4d5c; }
table.price.add hr { border: 0; border-top: 1px solid #c5d2de; margin: 8px 0; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.news-list time { display: block; color: var(--muted); font-size: 13px; }
footer.site { background: #131E2D; color: #B8C2CF; padding: 26px 0; font-size: 14px; }
footer.site a { color: #fff; }
footer.site .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
@media (max-width: 860px) {
  .desk { display: none; }
  .mob { display: inline; }
  .topbar { font-size: 13px; padding: 0; background: #294365; }
  .topbar .wrap { width: min(var(--max), calc(100% - 32px)); flex-wrap: nowrap; justify-content: space-between; padding: 6px 0; background: transparent; border-radius: 0; }
  .topbar a { padding: 4px 4px; white-space: nowrap; }
  .topbar .sep { display: none; }
  .brand { font-size: 0; line-height: 1; }
  .brand img { height: 34px; }
  .navbot svg { width: 22px; height: 22px; }
  .tariffs { grid-template-columns: 1fr; }
  .tariff { min-height: 0; }
  table.price { display: block; width: 100%; overflow-x: auto; border: 1px solid #5d7388; }
  .burger { display: block; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #EEF1F5; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  nav.main.open { display: flex; }
  .drop menu { position: static; box-shadow: none; border: 0; display: block; }
  footer.site .cols { grid-template-columns: 1fr; }
  table.price td:last-child { width: auto; }
}
