:root {
  color-scheme: light;
  --ink: #182337;
  --blue: #345bea;
  --blue-dark: #2444bd;
  --soft: #edf2ff;
  --muted: #41516a;
  --line: #dce4f3;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font: 18px/1.6 "Golos Text", "Segoe UI", Arial, sans-serif; }
a { color: #2145bd; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #ffb900; outline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(1120px, 90%); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); padding: 16px 0; }
.top .wrap { display: flex; align-items: center; gap: 10px 26px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; font-weight: 800; line-height: 1.12; letter-spacing: .3px; text-decoration: none; }
.brand img { display: block; object-fit: contain; }
.brand span span { display: block; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-inline: auto 0; font-size: 15px; }
.header-register { margin-left: auto; }
main.wrap { padding: 22px 0 48px; }
.crumb { display: flex; flex-wrap: wrap; gap: .3em; color: var(--muted); font-size: 16px; margin: 0 0 20px; }
.crumb a { color: var(--muted); }
.hero { max-width: 850px; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.hero p:last-child { margin-bottom: 0; }
h1 { margin: 14px 0 22px; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; }
h2 { margin: 32px 0 16px; font-size: clamp(25px, 3vw, 30px); line-height: 1.25; }
h3 { margin: 18px 0 7px; font-size: 20px; line-height: 1.3; }
p { max-width: 76ch; margin: 0 0 17px; }
.lead { font-size: 20px; line-height: 1.6; }
.move { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 16px 0 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 20px; border: 1px solid transparent; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 700; line-height: 1.35; text-align: center; text-decoration: none; }
.btn:hover { background: var(--blue-dark); }
.btn.quiet { border-color: #b0c0f8; background: #fff; color: var(--blue-dark); }
.btn.quiet:hover { background: var(--soft); }
.rowbar { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin: 16px 0 22px; }
.control { flex: 1; min-width: min(100%, 260px); max-width: 560px; color: var(--muted); font-size: 16px; font-weight: 650; }
.control input { display: block; width: 100%; min-height: 48px; margin-top: 6px; padding: 9px 12px; border: 1px solid #939fb7; border-radius: 6px; background: #fff; color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.card { min-width: 0; padding: 14px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.card h3 { margin: 0 0 6px; }
.card p, .byline, .footer { color: var(--muted); font-size: 16px; }
.card p { margin: 0; }
.article-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content { max-width: 800px; overflow-wrap: anywhere; }
.toc { margin: 22px 0; padding: 3px 20px; border-left: 3px solid var(--blue); background: var(--soft); }
.toc h2 { margin: 11px 0; font-size: 21px; }
.article-action { margin-top: 22px; padding: 1px 20px 10px; border-left: 3px solid var(--blue); background: var(--soft); }
.pagination, .footer .wrap { display: flex; gap: 10px 20px; flex-wrap: wrap; }
.pagination { margin: 18px 0 5px; }
.footer { padding: 23px 0; border-top: 1px solid var(--line); }
.bullet-links { padding-left: 23px; }
.bullet-links li { margin: 6px 0; }
.skip { position: absolute; inset-inline-start: 8px; top: -100px; background: #fff; padding: 10px; z-index: 1; }
.skip:focus { top: 8px; }
#results, #rayony, #rayony h3[id], #goroda-6-20, article section[id] { scroll-margin-top: 20px; }
@media (max-width: 760px) {
  .nav { flex-basis: 100%; order: 3; margin: 0; }
  .nav a { min-height: 36px; display: inline-flex; align-items: center; }
  .cards { grid-template-columns: repeat(2,minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .brand { font-size: 14px; }
  .brand img { width: 35px; height: 35px; }
  .header-register { padding-inline: 12px; font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-bottom: 17px; }
  .lead { font-size: 18px; }
}

/* Article offers and in-body diagrams used by both preview servers. */
.article-offers {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  max-width: 850px;
  margin: 20px 0 24px;
  padding: 14px 16px;
  border: 1px solid #b9c8fa;
  border-radius: 12px;
  background: var(--soft);
}
.article-offers-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #c9d4fb;
  border-radius: 12px;
  background: #fff;
  color: var(--blue-dark);
}
.article-offers-icon::before {
  content: "%";
  display: grid;
  place-items: center;
  width: 29px;
  height: 21px;
  border: 2px dashed currentColor;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-8deg);
}
.article-offers h2 { margin: 0 0 3px; font-size: clamp(18px, 3.5vw, 22px); }
.article-offers p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.article-offers-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #a6b8f5;
  border-radius: 8px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.article-offers-link:hover { border-color: var(--blue-dark); text-decoration: underline; }

.article-visual {
  max-width: 850px;
  margin: 0 0 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faff;
}
.article-visual figcaption {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(19px, 3.5vw, 24px);
  font-weight: 750;
  line-height: 1.3;
}
.article-visual-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.article-visual-steps li {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.article-visual-steps strong { font-size: 16px; line-height: 1.35; }
.article-visual-steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.article-graphic {
  display: grid;
  place-items: center;
  width: 57px;
  height: 44px;
  margin-bottom: 3px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--blue-dark);
}
.article-graphic i {
  position: relative;
  display: block;
  width: 23px;
  height: 23px;
  border: 2px solid currentColor;
  border-radius: 4px;
}
.article-graphic i::before, .article-graphic i::after { position: absolute; content: ""; }
.article-graphic--receipt i { width: 18px; height: 24px; border-radius: 3px; }
.article-graphic--receipt i::before {
  top: 5px;
  left: 3px;
  width: 8px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 4px, 0 8px;
}
.article-graphic--box i { width: 25px; height: 19px; }
.article-graphic--box i::before { top: 0; left: 8px; width: 5px; height: 9px; background: #a7bafd; }
.article-graphic--box i::after { top: 1px; left: 9px; width: 1px; height: 8px; background: currentColor; }
.article-graphic--check i { border-radius: 50%; }
.article-graphic--check i::before {
  top: 3px;
  left: 7px;
  width: 6px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(42deg);
}
.article-graphic--clock i { border-radius: 50%; }
.article-graphic--clock i::before { top: 3px; left: 8px; width: 2px; height: 7px; background: currentColor; }
.article-graphic--clock i::after { top: 9px; left: 8px; width: 5px; height: 2px; background: currentColor; }
.article-graphic--route i { width: 23px; height: 15px; border: 0; border-right: 2px dashed; border-bottom: 2px dashed; border-radius: 0 0 6px 0; }
.article-graphic--route i::before, .article-graphic--route i::after { width: 7px; height: 7px; border: 2px solid; border-radius: 50%; background: var(--soft); }
.article-graphic--route i::before { bottom: -4px; left: -5px; }
.article-graphic--route i::after { top: -4px; right: -4px; }
.article-graphic--door i { width: 17px; height: 23px; border-radius: 3px 3px 0 0; }
.article-graphic--door i::before { top: 10px; right: 2px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.article-graphic--phone i { width: 15px; height: 24px; border-radius: 5px; }
.article-graphic--phone i::before { bottom: 2px; left: 4px; width: 4px; height: 1px; background: currentColor; }
.article-graphic--tag i { width: 22px; height: 17px; border-radius: 6px 3px 3px 6px; transform: rotate(-19deg); }
.article-graphic--tag i::before { top: 5px; left: 3px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.article-graphic--wallet i, .article-graphic--card i { width: 25px; height: 17px; }
.article-graphic--wallet i::before { top: 4px; right: -2px; width: 9px; height: 6px; border: 1px solid; border-radius: 3px; background: #d3defc; }
.article-graphic--card i::before { top: 3px; left: 0; width: 21px; height: 3px; background: currentColor; }
.article-graphic--cart i { width: 21px; height: 14px; margin-bottom: 4px; border-radius: 2px 2px 5px 5px; transform: skewX(-9deg); }
.article-graphic--cart i::before { top: -3px; left: -6px; width: 6px; height: 2px; background: currentColor; }
.article-graphic--cart i::after { bottom: -8px; left: 2px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: 10px 0; }
.article-graphic--rooms i { width: 22px; height: 20px; border-radius: 2px; }
.article-graphic--rooms i::before { top: 0; left: 8px; width: 2px; height: 16px; background: currentColor; }
.article-graphic--rooms i::after { top: 7px; left: 0; width: 18px; height: 2px; background: currentColor; }
.article-graphic--battery i { width: 22px; height: 13px; border-radius: 3px; }
.article-graphic--battery i::before { right: -5px; top: 2px; width: 3px; height: 5px; border-radius: 0 2px 2px 0; background: currentColor; }
.article-graphic--battery i::after { top: 2px; left: 2px; width: 13px; height: 5px; background: currentColor; }

@media (max-width: 580px) {
  .article-offers { grid-template-columns: 44px minmax(0, 1fr); gap: 9px 11px; padding: 12px; }
  .article-offers-icon { width: 44px; height: 44px; }
  .article-offers-link { grid-column: 2; justify-self: start; }
  .article-visual { padding: 12px; }
  .article-visual-steps { grid-template-columns: 1fr; gap: 8px; }
  .article-visual-steps li { grid-template-columns: 57px 1fr; column-gap: 10px; }
  .article-graphic { grid-row: span 2; margin: 0; }
}

@media (max-width: 560px) {
  .article-page .top .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 6px 10px;
  }
  .article-page .top .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 8px;
    margin: 0;
    font-size: 14px;
  }
  .article-page .top .nav a {
    min-height: 44px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .article-page .top .header-register {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
  }
}
@media (max-width: 360px) {
  .article-page .top .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
