/* ===== Служебные страницы: политика, согласие, 404 =====
   Используют токены и кнопки из style.css, здесь — только раскладка документа. */

.doc-hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gut);
  background: rgba(237, 238, 242, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.doc-hdr .logo__pill { display: none; }
.doc-hdr__r { display: flex; align-items: center; gap: 8px; }

.doc {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 40px;
  padding: 80px var(--gut) 140px;
}
.doc__side { position: sticky; top: 100px; align-self: start; }
/* длинные слова («конфиденциальности») должны помещаться в левую колонку */
.doc__side .h-big { font-size: clamp(32px, 3vw, 50px); line-height: .98; }
.doc__meta { margin-top: 26px; color: rgba(12, 13, 18, .5); line-height: 1.8; }
.doc__toc { margin-top: 34px; border-top: 1px solid var(--line); }
.doc__toc a {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: rgba(12, 13, 18, .65);
  transition: color .3s, padding .5s var(--ease);
}
.doc__toc a .mono { color: rgba(12, 13, 18, .4); }
.doc__toc a:hover { color: var(--ink); padding-left: 6px; }

.doc__body { max-width: 780px; }
.doc__lead { font-size: 22px; line-height: 1.4; letter-spacing: -.02em; font-weight: 500; margin-bottom: 50px; }
.doc__body section { padding-top: 34px; margin-top: 34px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.doc__body section:first-of-type { margin-top: 0; }
.doc__body h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.doc__body h2 .mono { color: var(--electric); }
.doc__body p, .doc__body li { font-size: 16px; line-height: 1.65; color: rgba(12, 13, 18, .78); }
.doc__body p + p, .doc__body p + ul, .doc__body ul + p { margin-top: 12px; }
.doc__body ul { display: grid; gap: 6px; }
.doc__body ul li { position: relative; padding-left: 20px; }
.doc__body ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 2px; background: var(--electric); }
.doc__body strong { color: var(--ink); font-weight: 500; }
.doc__body a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(12, 13, 18, .3); text-underline-offset: 2px; }
.doc__body a:hover { color: var(--electric); }
.doc__card { margin-top: 18px; padding: 20px 22px; border-radius: 18px; background: #fff; }
.doc__card dl { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; font-size: 15px; }
.doc__card dt { color: rgba(12, 13, 18, .5); }
/* то, что нужно заполнить реквизитами Руслана */
.todo { background: #fff3b0; color: var(--ink); padding: 0 4px; border-radius: 4px; }

.doc-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 22px var(--gut);
  border-top: 1px solid var(--line);
  color: rgba(12, 13, 18, .6);
}
.doc-foot a:hover { color: var(--ink); }
.doc-foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }

/* ===== 404 ===== */
.e404 {
  min-height: calc(100svh - 80px);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 40px var(--gut) 40px;
  overflow: hidden;
}
.e404__top { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: end; }
.e404__num {
  font-size: clamp(160px, 30vw, 520px);
  font-weight: 500;
  letter-spacing: -.08em;
  line-height: .78;
  display: flex;
  align-items: flex-end;
}
.e404__num i {
  display: inline-block;
  width: .12em;
  height: .62em;
  margin: 0 0 .02em .06em;
  background: var(--electric);
  border-radius: .01em;
  animation: blink 1.1s steps(1) infinite;
}
.e404__txt h1 { font-size: clamp(34px, 3.6vw, 60px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.e404__txt p { margin-top: 18px; max-width: 420px; font-size: 17px; line-height: 1.5; color: rgba(12, 13, 18, .65); }
.e404__cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.e404__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 60px; }
.e404__links a { padding: 10px 16px; border-radius: 999px; background: #fff; font-size: 14px; transition: background .3s, color .3s; }
.e404__links a:hover { background: var(--ink); color: #fff; }

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 30px; padding: 40px var(--gut) 80px; }
  .doc__side { position: static; }
  .doc__side .h-big { font-size: 8.6vw; }
  .doc__toc { display: none; }
  .doc__lead { font-size: 19px; margin-bottom: 30px; }
  .doc__body h2 { font-size: 23px; gap: 12px; }
  .doc__body p, .doc__body li { font-size: 15px; }
  .doc__card dl { grid-template-columns: 1fr; gap: 2px; }
  .doc__card dd { margin-bottom: 10px; }
  .doc-hdr .btn { display: none; }
  .e404__top { grid-template-columns: 1fr; gap: 30px; }
  .e404__num { font-size: 44vw; }
}
