/* Visual language of roskod.ru: Helvetica, white header with shadow, photo hero,
   orange #f49f56 accents, navy #001a33 footer with #b1bfd7 text. */
:root {
  --ink: #333;
  --muted: #6b7684;
  --line: #d9dee4;
  --orange: #f49f56;
  --btn: #e8742f;
  --btn-hover: #e84c2b;
  --navy: #001a33;
  --navy-text: #b1bfd7;
  --font: "Helvetica", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.5 var(--font); display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; }
a { color: #c4531a; }
:focus-visible { outline: 3px solid #2f6fdd; outline-offset: 2px; }

/* header — as on roskod.ru */
.head { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5); }
.head-in { max-width: 1140px; margin: 0 auto; padding: 5px 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.head-logo { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.3; }
.head-logo img { max-height: 50px; width: auto; }
.head-logo p { margin: 0; max-width: 150px; }
.head-phone { display: flex; align-items: flex-start; gap: 6px; text-align: right; }
.head-phone img { width: 24px; margin-top: 3px; }
.head-phone a { font-size: 20px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.head-phone p { margin: 0; font-size: 12px; }
@media (max-width: 520px) {
  .head-logo p { display: none; }
  .head-phone img { display: none; }
  .head-phone a { font-size: 18px; }
}

/* hero with the roskod.ru photo */
.hero { flex: 1 0 auto; background: #0d1f33 url("bg-hero.jpg") center / cover no-repeat; padding: 50px 16px 44px; color: #fff; }
.hero-in { max-width: 1140px; margin: 0 auto; }
.hero-kicker { margin: 0 0 8px; text-align: center; color: var(--orange); font-size: 34px; font-weight: 400; text-transform: uppercase; line-height: 1.2; }
.hero-title { margin: 0 0 28px; text-align: center; font-size: 28px; font-weight: 700; line-height: 1.25; }
@media (max-width: 600px) {
  .hero { padding-top: 32px; }
  .hero-kicker { font-size: 26px; }
  .hero-title { font-size: 21px; margin-bottom: 20px; }
}
.hero-sub { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--navy-text); }

/* payment form */
.pay-card { max-width: 560px; margin: 0 auto; background: #fff; color: var(--ink); border-radius: 10px; padding: 28px 28px 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
@media (max-width: 520px) { .pay-card { padding: 20px 16px 18px; } }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 14px; }
input[type="text"], input[type="tel"], input[type="email"] {
  width: 100%; font: 16px/1.4 var(--font); padding: 11px 13px; border: 1px solid #c3ccd5; border-radius: 8px; background: #fff; color: var(--ink);
}
input:focus { border-color: var(--btn); outline: 2px solid rgba(232, 116, 47, .35); outline-offset: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; margin: 2px 0 16px; }
.check input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--btn); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.btn { display: block; width: 100%; background: var(--btn); color: #fff; border: 0; border-radius: 10px; padding: 15px 20px; font: 700 19px/1.2 var(--font); cursor: pointer; }
.btn:hover { background: var(--btn-hover); }
.form-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.errors, .ok { border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; font-size: 14.5px; }
.errors { background: #fdecea; border: 1px solid #efb8b2; color: #8a1f15; }
.ok { background: #e6f4ec; border: 1px solid #a9d8bd; color: #145a37; }
.errors ul { margin: 0; padding-left: 18px; }
.ok p { margin: 0; }

/* payment system badges */
.pay { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; }
.pay span { border: 1px solid var(--line); border-radius: 6px; padding: 4px 11px; font-weight: 700; font-size: 13px; background: #fff; letter-spacing: .02em; }
.pay .mir { color: #0f754e; }
.pay .visa { color: #1a1f71; font-style: italic; }
.pay .mc { color: #c9151e; }
.pay .sbp { color: #5b2a86; }
.pay-dark { margin: 0; justify-content: flex-end; }
.pay-dark span { border-color: transparent; }

/* footer — as on roskod.ru */
.foot { background: var(--navy); color: var(--navy-text); font-size: 14px; padding-top: 20px; }
.foot-in { max-width: 1140px; margin: 0 auto; padding: 0 10px; display: grid; grid-template-columns: 1.2fr 1fr 1.2fr 1fr; gap: 20px; }
@media (max-width: 900px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-in { grid-template-columns: 1fr; } }
.foot-col { padding: 10px 0; }
.foot-col p { margin: 0 0 6px; }
.foot-brand { display: flex; align-items: flex-start; gap: 15px; }
.foot-brand img { max-width: 85px; }
.foot-seller { color: #fff; font-weight: 700; }
.foot-docs { list-style: none; margin: 0; padding: 0; }
.foot-docs li { margin: 0 0 6px; }
.foot a { color: #fff; }
.foot a:hover { color: var(--orange); }
.foot-phone { text-align: right; }
@media (max-width: 560px) { .foot-phone { text-align: left; } }
.foot-tel { font-size: 20px; text-decoration: none; }
.foot-phone p { font-size: 12px; }
.foot-line { max-width: 1140px; margin: 10px auto; border-top: 1px solid #7a7a7a; }
.foot-bottom { grid-template-columns: 1fr auto; align-items: center; padding-bottom: 16px; }
.foot-bottom p { margin: 0; }
@media (max-width: 560px) { .foot-bottom { grid-template-columns: 1fr; } .pay-dark { justify-content: flex-start; } }

/* documents in dialogs */
dialog.doc { width: min(760px, calc(100% - 32px)); max-height: 86vh; padding: 0; border: 0; border-radius: 10px; color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
dialog.doc::backdrop { background: rgba(0, 26, 51, .65); }
dialog.doc:not([open]) { display: none; }
.doc-head { position: sticky; top: 0; background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.doc-head h2 { margin: 0; font-size: 19px; }
.doc-close { border: 0; background: transparent; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.doc-close:hover { color: var(--ink); }
.doc-body { padding: 4px 22px 22px; font-size: 15px; }
.doc-body h3 { font-size: 16px; margin: 18px 0 6px; }
.doc-body p { margin: 10px 0; }
.doc-list { padding-left: 20px; margin: 10px 0; }
.doc-list li { margin: 0 0 9px; }
.doc-meta { color: var(--muted); font-size: 13px; }
.doc-req { border-top: 1px solid var(--line); padding-top: 12px; }
