/* PicPac — библиотека документов
   Палитра и графика взяты из айдентики: бисквит #f4ede4, коралловый #dd5656,
   тёмно-зелёный #364b49. Типографика: Literata (текст и заголовки), системный
   гротеск — для служебных подписей. */

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/literata-normal-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/literata-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/literata-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/literata-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/literata-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/literata-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f4ede4;
  --paper-deep: #eee4d8;
  --paper-card: #faf6f1;
  --ink: #231d18;
  --ink-soft: #574c43;
  --ink-mute: #6f655c;
  --rule: rgba(35, 29, 24, 0.13);
  --rule-strong: rgba(35, 29, 24, 0.26);
  --red: #dd5656;
  --red-deep: #c33f3f;
  --green: #364b49;
  --white: #fff;

  --serif: "Literata", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --pad: clamp(18px, 4.6vw, 44px);
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.62;
  font-variant-numeric: oldstyle-nums proportional-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--red);
  color: var(--white);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--red-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ——— служебная типографика ——— */

.micro {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
}

.tnum {
  font-variant-numeric: lining-nums tabular-nums;
}

/* ——— шапка ——— */

.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.site-head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__tile {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 1px 0 rgba(35, 29, 24, 0.14);
}

.brand__tile img {
  width: 100%;
  height: 100%;
}

.brand__text {
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1;
}

.brand__name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.brand__sep {
  width: 1px;
  height: 17px;
  background: var(--rule-strong);
  transform: translateY(2px);
}

.brand__section {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.head-link {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.head-link:hover {
  color: var(--ink);
  border-color: var(--rule-strong);
}

.head-link svg {
  width: 14px;
  height: 14px;
  flex: none;
}

/* ——— главная: обложка ——— */

.home {
  background:
    radial-gradient(ellipse clamp(220px, 43vw, 640px) 420px at 0% 34px,
      rgb(221 86 86 / 16%), rgb(221 86 86 / 7%) 42%, rgb(221 86 86 / 0) 100%),
    radial-gradient(ellipse clamp(230px, 42vw, 600px) 440px at 100% 145px,
      rgb(54 75 73 / 13%), rgb(54 75 73 / 5%) 46%, rgb(54 75 73 / 0) 100%);
}

.hero {
  padding-block: clamp(44px, 7vw, 92px) clamp(34px, 5vw, 60px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.045em;
  color: var(--ink-mute);
}

.hero__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 6.6vw, 76px);
  line-height: 0.98;
  font-weight: 460;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--red-deep);
}

.hero__lead {
  margin: 26px 0 0;
  max-width: 38ch;
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero__meta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__meta svg {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

/* логотип на обложке */
.hero__logo {
  width: min(100%, 270px);
  justify-self: end;
}

.hero__logo img {
  width: 100%;
  height: auto;
  border-radius: clamp(10px, 1.6vw, 16px);
  outline: 1px solid rgba(35, 29, 24, 0.09);
  outline-offset: -1px;
}

/* ——— список документов ——— */

.docs {
  padding-bottom: clamp(40px, 6vw, 84px);
}

.docs__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-strong);
}

.docs__head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: var(--sans);
  text-transform: uppercase;
  color: var(--ink-soft);
}

.docs__head p {
  margin: 0;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--ink-mute);
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc {
  border-bottom: 1px solid var(--rule);
}

.doc__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 26px;
  align-items: baseline;
  padding: 27px 12px 27px 0;
  position: relative;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.doc__in:hover {
  background: rgba(255, 255, 255, 0.5);
  padding-left: 12px;
}


.doc__body {
  min-width: 0;
}

.doc__title {
  margin: 0;
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 460;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.doc__desc {
  margin: 8px 0 0;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.doc__tags {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.doc__tags span {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px 10px 2px;
  background: var(--paper-card);
}

.doc__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  white-space: nowrap;
}

/* ——— кнопки ——— */

.btn {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.btn--solid {
  background: var(--ink);
  color: var(--paper);
}

.btn--solid:hover {
  background: var(--red-deep);
}

.btn--ghost {
  border-color: var(--rule-strong);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  padding: 10px 15px;
  font-size: 12.5px;
}

/* ——— реквизиты ——— */

.facts {
  margin-top: clamp(44px, 6vw, 76px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-card);
}

.fact {
  padding: 24px 26px 26px;
  border-right: 1px solid var(--rule);
}

.fact:last-child {
  border-right: 0;
}

.fact dt {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.fact dd {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.5;
}

.fact dd + dd {
  margin-top: 4px;
}

.fact a {
  border-bottom: 1px solid var(--rule-strong);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.fact a:hover {
  color: var(--red-deep);
  border-color: var(--red-deep);
}

/* ——— подвал ——— */

.site-foot {
  margin-top: clamp(50px, 7vw, 90px);
  border-top: 1px solid var(--rule);
  padding: 26px 0 46px;
}

.site-foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-mute);
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-foot a {
  transition: color 0.18s ease;
}

.site-foot a:hover {
  color: var(--ink);
}

/* ——— страница документа ——— */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  background: transparent;
  z-index: 60;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.08s linear;
}

.doc-head {
  padding: clamp(30px, 5vw, 56px) 0 clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--rule);
}

.doc-head__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  justify-content: space-between;
}

.breadcrumb {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb svg {
  width: 13px;
  height: 13px;
  opacity: 0.6;
}

.doc-head h1 {
  margin: 26px 0 0;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.05;
  font-weight: 460;
  letter-spacing: -0.025em;
  max-width: 26ch;
  text-wrap: balance;
}

.doc-head__sub {
  margin: 14px 0 0;
  font-size: clamp(16px, 1.6vw, 19px);
  font-style: italic;
  color: var(--ink-soft);
}

.doc-head__note {
  margin: 20px 0 0;
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-mute);
  font-family: var(--sans);
}

.doc-head__actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.doc-head__meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* раскладка «содержание + текст» */
.reader {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(30px, 4.5vw, 52px) 0 clamp(40px, 6vw, 80px);
}

.toc {
  position: sticky;
  top: 26px;
  max-height: calc(100vh - 52px);
  overflow: auto;
  padding-right: 6px;
}

.toc__label {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  display: block;
}

.toc ol {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.toc a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 6px;
  position: relative;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-soft);
  border-left: 2px solid transparent;
  padding: 6px 0 6px 12px;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.toc__n {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.toc a:hover {
  color: var(--ink);
}

.toc a.is-active {
  color: var(--ink);
  border-left-color: var(--red);
}

.toc__print {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

/* текст документа */
.paper {
  max-width: 68ch;
  font-size: 17.5px;
  line-height: 1.7;
}

.paper section + section {
  margin-top: 42px;
}

.paper h2 {
  margin: 0 0 20px;
  font-size: clamp(21px, 2.1vw, 25px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.012em;
  scroll-margin-top: 24px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: baseline;
  gap: 0;
}

.paper h2 .sec-num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--red-deep);
  font-weight: 600;
  transform: translateY(-2px);
}

.clause {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  text-wrap: pretty;
}

.clause + .clause {
  margin-top: 0.82em;
}

.clause__n {
  font-family: var(--sans);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-mute);
  padding-top: 0.42em;
  letter-spacing: 0.01em;
}

.paper .lead {
  font-size: clamp(17px, 1.7vw, 19.5px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 34px;
  text-wrap: pretty;
}

.callout {
  margin: 34px 0;
  padding: 22px 24px;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--green);
  border-radius: 4px var(--radius) var(--radius) 4px;
}

.callout__label {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.callout p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.doc-end {
  margin-top: 54px;
  border-top: 1px solid var(--rule-strong);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.doc-end p {
  margin: 0;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-mute);
  max-width: 46ch;
  flex: 1 1 240px;
}

.pager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.pager a {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--paper-card);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.pager a:hover {
  border-color: var(--rule-strong);
  background: var(--white);
}

.pager span {
  display: block;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 7px;
}

.pager strong {
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.3;
}

/* ——— адаптив ——— */

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .hero__logo {
    width: min(55vw, 200px);
    justify-self: start;
  }
  .hero__lead {
    max-width: 46ch;
  }
  .reader {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static;
    max-height: none;
    padding: 0 0 4px;
    margin-bottom: 4px;
  }
  .toc__label {
    border-bottom: 0;
    padding-bottom: 10px;
  }
  .toc ol {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0;
    padding: 0 0 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--rule);
  }
  .toc ol::-webkit-scrollbar {
    display: none;
  }
  .toc li {
    flex: none;
  }
  .toc a {
    white-space: nowrap;
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: 8px 13px 8px 10px;
    font-size: 13px;
    background: var(--paper-card);
  }
  .toc a.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
  }
  .toc a.is-active .toc__n {
    color: var(--paper);
  }
  .toc__print {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16.5px;
  }
  .doc__in {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px 12px;
    padding-right: 0;
  }
  .doc__actions {
    justify-content: flex-start;
    margin-top: 14px;
    white-space: normal;
    flex-wrap: wrap;
  }
  .doc__in:hover {
    padding-left: 0;
    background: transparent;
  }
  .docs__head p {
    display: none;
  }
  .fact {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .fact:last-child {
    border-bottom: 0;
  }
  .paper {
    font-size: 16.5px;
  }
  .paper h2,
  .clause {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .brand__section,
  .brand__sep {
    display: none;
  }
  .doc-head__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .hero__logo {
    gap: 7px;
  }
  .doc-head h1 {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ——— печать ——— */

@media print {
  @page {
    margin: 20mm 18mm;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.5;
  }
  .site-head,
  .site-foot,
  .progress,
  .toc,
  .doc-head__actions,
  .doc-end,
  .pager,
  .breadcrumb {
    display: none !important;
  }
  .reader {
    display: block;
    padding: 0;
  }
  .paper {
    max-width: none;
    font-size: 11pt;
  }
  .paper h2 {
    page-break-after: avoid;
    margin-top: 18pt;
  }
  .clause {
    page-break-inside: avoid;
  }
  .doc-head {
    border: 0;
    padding: 0 0 12pt;
  }
  .doc-head h1 {
    font-size: 20pt;
  }
  a {
    text-decoration: none;
    color: #000;
  }
}
