/* happ-nastroyka.top — a plain reference site: white paper, ink text, blue links, one yellow accent for actions.
   System fonts only; no images, web fonts or scripts. Mobile first: nothing scrolls sideways at 375 px (holds to 320). */

:root {
  --paper: #ffffff;
  --tint: #f4f5f6;
  --ink: #16181b;
  --ink-2: #3d444c;
  --ink-3: #636c77;
  --rule: #e1e4e8;
  --rule-2: #c5cad1;
  --link: #0a4fa6;
  --link-2: #073a7c;
  --yellow: #ffd60a;
  --yellow-2: #f2c500;
  --yellow-soft: #fff6c7;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--font); overflow-wrap: break-word; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-2); text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 7.4vw, 40px); font-weight: 800; }
h2 { margin-top: 40px; font-size: clamp(22px, 5.6vw, 27px); font-weight: 700; }
h3 { margin-top: 22px; font-size: 18px; font-weight: 700; letter-spacing: 0; }
p, ul, ol { margin: 14px 0 0; }
ul, ol { padding-left: 22px; }
li + li { margin-top: 6px; }
code { font: 0.9em/1.4 var(--mono); padding: 2px 5px; background: var(--tint); border: 1px solid var(--rule); border-radius: 5px; overflow-wrap: anywhere; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap--wide { max-width: 1180px; }
.wide { display: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 40; padding: 8px 12px; background: var(--ink); color: #fff; border-radius: 6px; }
.skip:focus { left: 16px; }

/* buttons: the yellow is used only for actions and step numbers */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; background: var(--yellow); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 8px; font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--yellow-2); color: var(--ink); }
.btn--sm { min-height: 38px; padding: 6px 11px; font-size: 15px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top__row { display: flex; align-items: center; gap: 8px; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 7px; min-width: 0; margin-right: auto; color: var(--ink); font-weight: 800; font-size: 16px; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }
.brand span { overflow: hidden; text-overflow: ellipsis; }
.nav { display: none; }
.menu > summary { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 11px; border: 1.5px solid var(--rule-2); border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__icon { display: block; width: 18px; height: 2px; margin: 0 1px; background: var(--ink); box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink); }
.menu .wide { margin-left: 9px; }
.menu[open] > summary { background: var(--tint); border-color: var(--ink); }
.menu__list { position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 4px 16px 12px; list-style: none; background: var(--paper); border-bottom: 1px solid var(--rule-2); box-shadow: 0 14px 24px rgba(22, 24, 27, 0.1); }
.menu__list li + li { margin: 0; border-top: 1px solid var(--rule); }
.menu__list a { display: block; padding: 12px 2px; color: var(--ink); font-weight: 600; text-decoration: none; }
.menu__list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--yellow); padding-left: 12px; }

/* page top */
article { padding-top: 22px; }
.crumbs { margin: 0 0 10px; font-size: 14px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.lead { margin-top: 14px; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; }
.cta__more { font-weight: 600; }
.cta__note { margin-top: 10px; padding-bottom: 4px; font-size: 14.5px; color: var(--ink-3); }

/* numbered steps */
.steps { padding: 0; list-style: none; counter-reset: step; }
.steps > li { position: relative; margin-top: 14px; padding-left: 44px; counter-increment: step; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 30px; height: 30px; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 50%; font-size: 15px; font-weight: 800; line-height: 1; }

/* list of pages */
.hub { display: grid; gap: 10px; margin-top: 16px; padding: 0; list-style: none; }
.hub li + li { margin: 0; }
.hub a { display: block; height: 100%; padding: 13px 16px; border: 1px solid var(--rule-2); border-radius: 10px; color: var(--ink); text-decoration: none; }
.hub a:hover { border-color: var(--ink); background: var(--tint); }
.hub b { display: block; }
.hub span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.45; color: var(--ink-3); }

/* price table */
.tbl { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 10px 6px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.tbl thead th { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.tbl tbody th { font-weight: 700; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; text-align: right; }
.tbl .pct { color: var(--ink-3); white-space: nowrap; }
.tbl .btn { min-width: 80px; }

/* questions */
.faq h3 { margin-top: 24px; }
.faq p { margin-top: 6px; color: var(--ink-2); }

/* closing price block */
.offer { margin-top: 48px; padding: 20px 16px; background: var(--tint); border: 1px solid var(--rule); border-radius: 12px; }
.offer h2 { margin: 0; font-size: 22px; }
.offer__sub { margin-top: 8px; color: var(--ink-2); }
.plans { margin-top: 16px; padding: 0; list-style: none; background: var(--paper); border: 1px solid var(--rule-2); border-radius: 10px; overflow: hidden; }
.plans li + li { margin: 0; border-top: 1px solid var(--rule); }
.plan { display: flex; align-items: center; gap: 12px; padding: 11px 12px 11px 14px; color: var(--ink); text-decoration: none; }
.plan:hover { background: var(--yellow-soft); color: var(--ink); }
.plan__info { flex: 1; min-width: 0; }
.plan__term { display: block; }
.plan__price { display: block; font-size: 14.5px; color: var(--ink-3); }
.plan__go { flex: none; padding: 7px 12px; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 8px; font-size: 15px; font-weight: 700; line-height: 1.2; }
.offer__note, .offer__more { margin-top: 12px; font-size: 14.5px; color: var(--ink-3); }

/* footer */
.foot { margin-top: 56px; padding: 26px 0 34px; background: var(--tint); border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }
.foot__nav { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.foot__nav li + li { margin: 0; }
.foot__nav a { color: var(--ink-2); }
.foot__nav a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; }
.foot__note { margin-top: 20px; }
.foot__meta { margin-top: 6px; font-size: 14px; color: var(--ink-3); }

@media (max-width: 350px) {
  .brand { font-size: 15px; }
  .brand svg { display: none; }
  .tbl { font-size: 14px; }
  .tbl th, .tbl td { padding: 10px 4px; }
  .tbl .btn { min-width: 0; padding: 6px 8px; font-size: 14px; }
}

@media (min-width: 600px) {
  .brand { gap: 8px; font-size: 17px; }
  .wide { display: inline; }
  .narrow { display: none; }
  .hub, .foot__nav { grid-template-columns: 1fr 1fr; }
  .tbl { font-size: 16px; }
  .tbl th, .tbl td { padding: 12px 10px; }
  .offer { padding: 24px; }
  .plan { padding: 12px 14px 12px 18px; }
  article { padding-top: 32px; }
}

@media (min-width: 1100px) {
  .menu { display: none; }
  .nav { display: flex; gap: 2px; margin-right: 10px; }
  .nav a { padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-size: 15px; font-weight: 600; text-decoration: none; }
  .nav a:hover { background: var(--tint); color: var(--ink); }
  .nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
}
