@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/eb-garamond-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/static/fonts/eb-garamond-cyrillic-400-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/static/fonts/eb-garamond-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/eb-garamond-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/eb-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/cormorant-garamond-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/fonts/cormorant-garamond-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("/static/fonts/cormorant-garamond-cyrillic-500-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("/static/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

/* ---- палитра и размеры (те же, что у docs.arbuzz.space) ---------------------------------- */
:root {
  --paper: #f5f0e8; --paper-lift: #fbf8f2; --paper-deep: #ece4d3;
  --rule: #b8ab93; --ink: #1b2530; --slate: #4a5a6a; --slate-soft: #6b7d8f; --link: #3f5d7b;
  --ok: #3f5d7b; --warn: #8a6a2b; --bad: #8a4b3f;
  --display: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --text: "EB Garamond", Georgia, "Times New Roman", serif;
  --ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 20'%3E%3Cg fill='none' stroke='%234a5a6a' stroke-width='1'%3E%3Cpath d='M4 10h122M194 10h122' stroke='%23b8ab93'/%3E%3Cpath d='M160 2l8 8-8 8-8-8z'/%3E%3Cpath d='M160 6l4 4-4 4-4-4z' fill='%234a5a6a'/%3E%3Ccircle cx='136' cy='10' r='2' fill='%234a5a6a' stroke='none'/%3E%3Ccircle cx='184' cy='10' r='2' fill='%234a5a6a' stroke='none'/%3E%3Cpath d='M126 10h6M188 10h6' stroke='%234a5a6a'/%3E%3C/g%3E%3C/svg%3E");
  --ornament-small: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cg fill='none' stroke='%236b7d8f'%3E%3Cpath d='M2 6h44M74 6h44' stroke='%23b8ab93'/%3E%3Cpath d='M60 1l5 5-5 5-5-5z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---- бумага: шум на всей странице + закреплённый слой «света и старения» ------------------ */
* { box-sizing: border-box; }
html {
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .43  0 0 0 0 .35  0 0 0 0 .22  0 0 0 .10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0; color: var(--ink); font-family: var(--text); font-size: 1.28rem; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 80% 45% at 50% 0%, rgba(255,255,255,.55), transparent 70%),
              radial-gradient(ellipse 90% 55% at 50% 100%, rgba(140,118,76,.12), transparent 70%);
}
body::after { content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; box-shadow: inset 0 0 110px rgba(110,88,52,.16); }
::selection { background: rgba(74, 90, 106, .28); }
a { color: var(--link); text-decoration: none; border-bottom: 1px solid rgba(63,93,123,.45); }
a:hover { background: rgba(74,90,106,.10); border-bottom-color: var(--link); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---- шапка ------------------------------------------------------------------------------ */
.masthead { text-align: center; padding: 34px 20px 0; }
.masthead__kicker { margin: 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.25rem; color: var(--slate-soft); letter-spacing: .04em; }
.masthead__title {
  margin: .1em 0 0; padding-bottom: 46px; font-family: var(--display); font-weight: 700; color: var(--slate);
  font-size: clamp(3rem, 12vw, 4.6rem); line-height: 1; letter-spacing: .02em;
  background: var(--ornament) center bottom / min(300px, 78%) 20px no-repeat;
}

/* ---- лист ------------------------------------------------------------------------------- */
.sheet { max-width: 46rem; margin: 0 auto; padding: 12px 20px 30px; }
@media (min-width: 900px) {
  .sheet {
    margin: 10px auto 36px; padding: 40px 56px 44px; background: linear-gradient(var(--paper-lift), rgba(251,248,242,.82));
    border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: 6px; box-shadow: 0 18px 30px -22px rgba(40,52,66,.5);
  }
}

/* ---- карточка подписки ------------------------------------------------------------------ */
.card { margin: 1.2rem 0 1.8rem; padding: 1.3rem 1.4rem 1.4rem; background: var(--paper-lift); border: 1px solid var(--rule); outline: 1px solid rgba(184,171,147,.6); outline-offset: 4px; }
.card__title, .step__title { margin: 0 0 .8rem; font-family: var(--display); font-weight: 700; color: var(--slate); line-height: 1.1; }
.card__title { font-size: 1.9rem; padding-bottom: .5rem; border-bottom: 1px solid var(--rule); }
.facts { display: grid; gap: .1rem 2rem; margin: 0; }
@media (min-width: 560px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts__row { padding: .55rem 0; border-bottom: 1px dotted var(--rule); }
.facts dt { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.1rem; color: var(--slate-soft); }
.facts dd { margin: 0; font-size: 1.3rem; overflow-wrap: anywhere; }
.muted { color: var(--slate); font-size: .92em; }
.badge { display: inline-block; padding: 0 .7em; border: 1px solid currentColor; border-radius: 2px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: .03em; }
.badge--ok { color: var(--ok); } .badge--warn { color: var(--warn); } .badge--bad { color: var(--bad); }
.usage { display: block; width: 100%; height: 14px; margin: 1rem 0 .2rem; border: 1px solid var(--slate); background: rgba(74,90,106,.08); -webkit-appearance: none; appearance: none; }
.usage::-webkit-progress-bar { background: rgba(74,90,106,.08); }
.usage::-webkit-progress-value { background: var(--slate); }
.usage::-moz-progress-bar { background: var(--slate); }
.message { margin: .2rem 0 0; }

/* ---- переключатель платформы ------------------------------------------------------------ */
.tabs { display: flex; margin: 0 0 1.6rem; border: 1px solid var(--slate); }
.tab {
  flex: 1; display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 .6rem; text-align: center;
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: .03em; color: var(--slate);
  background: var(--paper-lift); border: 0; cursor: pointer; -webkit-tap-highlight-color: rgba(74,90,106,.18);
}
.tab + .tab { border-left: 1px solid var(--slate); }
.tab:hover { background: rgba(74,90,106,.10); border-bottom: 0; }
.tab[aria-selected="true"] { background: var(--slate); color: var(--paper-lift); }

/* ---- шаги ------------------------------------------------------------------------------- */
.step { margin: 0 0 2.2rem; }
.step__title { display: flex; align-items: center; gap: 1rem; font-size: 2.05rem; }
.medal {
  flex: none; width: 3rem; height: 3rem; display: grid; place-items: center; font-size: 1.2rem; color: var(--slate);
  background: var(--paper-lift); border: 1px solid var(--slate); border-radius: 50%;
  box-shadow: 0 0 0 4px var(--paper-lift), 0 0 0 5px rgba(74,90,106,.38); margin-right: .2rem;
}
.step__lead { margin: 0 0 1rem; }
.step__lead--small { font-size: 1.1rem; color: var(--slate); }
.app { margin: 0 0 1.1rem; padding: 1rem 1.2rem; border: 1px solid rgba(184,171,147,.8); background: rgba(251,248,242,.7); }
.app--main { border-color: var(--slate); background: var(--paper-lift); box-shadow: 0 0 0 3px var(--paper-lift), 0 0 0 4px rgba(74,90,106,.3); }
.app__head { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.app__name { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--slate); }
.tag { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.05rem; color: var(--slate-soft); border-bottom: 1px solid var(--rule); }
.app__links { display: flex; flex-wrap: wrap; gap: .6rem; margin: .7rem 0 .2rem; }
.app__add { margin: .5rem 0 0; font-size: 1.1rem; }
.note { margin: .7rem 0 0; padding: .05rem 0 .05rem 1rem; border-left: 3px solid var(--slate-soft); color: var(--slate); font-style: italic; font-size: 1.1rem; }
.note--bad { border-left-color: var(--bad); } .note--warn { border-left-color: var(--warn); }
.cta { text-align: center; margin: 1.3rem 0; }
.plain { margin: 0; padding-left: 1.4rem; } .plain li { margin: .5rem 0; padding-left: .3rem; } .plain li::marker { color: var(--slate-soft); font-family: var(--display); font-weight: 700; }

/* ---- кнопки и поле копирования ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 1.5rem; border: 1px solid var(--slate);
  font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: .03em; color: var(--slate); background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: rgba(74,90,106,.18); text-align: center;
}
.btn:hover { background: rgba(74,90,106,.10); border-bottom-color: var(--slate); }
.btn--primary { min-width: min(100%, 20rem); min-height: 58px; font-size: 1.5rem; color: var(--paper-lift); background: var(--slate); box-shadow: 0 0 0 3px var(--paper-lift), 0 0 0 4px var(--slate); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); }
.copy { display: flex; gap: .6rem; flex-wrap: wrap; }
.copy__field { flex: 1 1 14rem; min-width: 0; min-height: 50px; padding: 0 .8rem; font: 1rem/1 "Courier New", Courier, monospace; color: var(--ink); background: var(--paper-lift); border: 1px solid var(--rule); border-radius: 0; text-overflow: ellipsis; }

/* ---- подвал и уведомление --------------------------------------------------------------- */
.foot { text-align: center; padding: 0 20px 44px; font-size: 1.1rem; }
.foot::before { content: ""; display: block; height: 12px; width: 150px; margin: 0 auto 1.4rem; background: var(--ornament-small) center / 150px 12px no-repeat; }
.foot p { margin: 0; } .foot__dot { display: inline-block; width: 6px; height: 6px; margin: 0 .9rem; background: var(--slate-soft); transform: rotate(45deg); vertical-align: middle; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50; padding: .7rem 1.4rem; font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--paper-lift); background: var(--slate); box-shadow: 0 0 0 3px var(--paper-lift), 0 0 0 4px var(--slate); }

@media (max-width: 560px) { body { font-size: 1.2rem; } .card { padding: 1.1rem 1.05rem 1.2rem; } .step__title { font-size: 1.8rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .tabs, .toast, .foot { display: none; } }
