/* Общий вид служебных страниц: доставка, контакты, политика */
:root {
  --concrete: #EDEFEC;
  --paper: #FFFFFF;
  --ink: #171C1F;
  --ink-soft: #5B6468;
  --line: #DDE1DD;
  --yellow: #FFC400;
  --steel: #2C5A60;
  --steel-tint: #DCE8E8;
  --shadow-1: 0 1px 2px rgba(23,28,31,.05), 0 4px 14px rgba(23,28,31,.06);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Golos Text", system-ui, sans-serif;
}
/* Атрибут hidden сильнее любых display — иначе в панели были видны пустые счётчики на вкладках */
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--concrete); color: var(--ink); font: 400 16px/1.65 var(--text); }
a { color: var(--steel); }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; }

.top { background: var(--ink); position: sticky; top: 0; z-index: 10; }
.top-in { max-width: 1040px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 24px; }
.logo { color: #fff; text-decoration: none; font: 700 18px/1 var(--display); letter-spacing: -0.02em; display: flex; gap: 10px; align-items: center; }
.logo-mark { width: 28px; height: 28px; border-radius: 29%; background: var(--yellow); display: grid; place-items: center; }
.logo-mark svg { width: 100%; height: 100%; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: #C9D0D2; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; transition: background-color .2s, color .2s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); }
.top-phone { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }

main { max-width: 1040px; margin: 0 auto; padding: 40px 24px 72px; }
h1 { font: 700 clamp(26px, 3.6vw, 40px)/1.12 var(--display); letter-spacing: -0.02em; margin: 0 0 10px; }
.lead { color: var(--ink-soft); font-size: 17px; margin: 0 0 32px; max-width: 62ch; }
h2 { font: 700 20px/1.25 var(--display); letter-spacing: -0.01em; margin: 0 0 12px; }
p, li { max-width: 68ch; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 20px; }
li { margin-bottom: 6px; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.card { background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-1); padding: 26px 28px; }
.card.wide { grid-column: 1 / -1; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--steel-tint); color: var(--steel); display: grid; place-items: center; margin-bottom: 14px; }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.note { color: var(--ink-soft); font-size: 15px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; margin: 0; }
.steps li::before {
  content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font: 700 14px/1 var(--display);
}

.contact-big { font: 700 clamp(22px, 2.6vw, 30px)/1.2 var(--display); letter-spacing: -0.01em; text-decoration: none; color: var(--ink); display: inline-block; margin-bottom: 4px; }
.contact-big:hover { color: var(--steel); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; background: var(--yellow); color: var(--ink); font-weight: 600; text-decoration: none; transition: background-color .2s, transform .15s var(--ease); }
.btn:hover { background: #E0A800; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: none; border: 2px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

dl.req { margin: 0; font-size: 15px; }
dl.req div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
dl.req div:last-child { border-bottom: 0; }
dl.req dt { color: var(--ink-soft); }
dl.req dd { margin: 0; font-variant-numeric: tabular-nums; word-break: break-word; }
.copy { border: 0; background: none; color: var(--steel); cursor: pointer; padding: 0; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; }

/* Юридические документы: оферта и т.п. */
.doc { background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-1); padding: 36px 44px; }
.doc h2 { font: 600 19px/1.3 var(--text); letter-spacing: 0; margin: 30px 0 10px; }
.doc h2:first-of-type { margin-top: 8px; }
.doc ol { padding-left: 22px; margin: 0 0 12px; }
.doc li { margin-bottom: 8px; }
.doc .meta { color: var(--ink-soft); margin: 0 0 24px; }
@media (max-width: 520px) { .doc { padding: 22px 18px; } }

footer { background: var(--ink); color: #C9D0D2; font-size: 14px; }
footer div { max-width: 1040px; margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: #fff; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
main > * { animation: rise .6s var(--ease) both; }
main > *:nth-child(2) { animation-delay: .05s; }
main > *:nth-child(3) { animation-delay: .1s; }
main > *:nth-child(n+4) { animation-delay: .15s; }

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .top-phone { display: none; }
  dl.req div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 640px) {
  .nav-home, .nav .long { display: none; }  /* на главную ведёт логотип; «Доставка и оплата» → «Доставка» */
}
@media (max-width: 520px) {
  .top-in, main, footer div { padding-left: 16px; padding-right: 16px; }
  .top-in { gap: 10px; }
  .logo { font-size: 15px; }
  .nav a { padding: 8px 8px; font-size: 14px; white-space: nowrap; }
  main { padding-top: 24px; }
  .card { padding: 20px 18px; }
  footer a { display: inline-block; padding: 8px 0; }  /* под палец */
}
@media (max-width: 380px) {
  .top-in { gap: 6px; }
  .logo { font-size: 14px; gap: 8px; }
  .logo-mark { width: 24px; height: 24px; }
  .nav { gap: 0; }
  .nav a { padding: 8px 6px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
