@font-face {
  font-family: 'Mona Sans';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(../fonts/mona-sans-wdth-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 {
  --bg: #fff;
  --surface: #f3f3f3;
  --ink: #000;
  --muted: #545454;
  --blue: #1f30e0;
  --red: #ff3b1f;
  --navy: #050a5c;
  --line: #e3e3e3;
  --gut: 8px;
  --off: 20px;
  --lw: 3px;
  --sec: 80px;
}
@media (min-width: 720px) {
  :root { --gut: 24px; --off: 56px; --lw: 4px; --sec: 128px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.625 'Mona Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 720px) { body { font-size: 1.0625rem; line-height: 1.65; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: from-font; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 {
  font-size: clamp(2.625rem, 0.9rem + 5.2vw, 4.5rem);
  line-height: 1.05;
  font-stretch: 112%;
  font-weight: 850;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.875rem, 1.2rem + 2.2vw, 2.625rem);
  line-height: 1.07;
  font-stretch: 108%;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 8px;
}
@media (min-width: 720px) { h3 { font-size: 1.4375rem; line-height: 1.26; } }
.lead { font-size: 1.125rem; line-height: 1.6; max-width: 62ch; }
@media (min-width: 720px) { .lead { font-size: 1.3125rem; line-height: 1.58; } }
.small { font-size: .875rem; line-height: 1.55; color: var(--muted); }
.narrow { max-width: 680px; }

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 24px; } }

.skip { position: absolute; left: 16px; top: -100px; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 20; }
.skip:focus { top: 8px; }

/* Кнопки */
.btn {
  display: inline-block;
  padding: 16px 28px;
  border: 2px solid transparent;
  border-radius: 0;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--surface); color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0 0; }

/* Хедер */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 10; }
.bar { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-stretch: 112%; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand:hover { color: inherit; }
.brand img { display: block; border-radius: 10px; }
.get-link { font-weight: 600; font-size: .9375rem; margin-left: auto; white-space: nowrap; padding-block: 10px; }
.nav-toggle {
  order: 3; min-height: 44px; padding: 8px 14px; background: transparent; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 0; font-family: inherit; font-size: .9375rem; font-weight: 600; line-height: 1; cursor: pointer;
}
.site-nav ul { list-style: none; display: flex; gap: 4px 24px; }
.site-nav a { display: inline-block; padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.site-nav a:hover { color: var(--blue); text-decoration: underline; }
.site-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; }
@media (max-width: 899px) {
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .js .site-nav:not(.open) { display: none; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px 0; font-size: 1.0625rem; }
}
@media (max-width: 479px) { .get-link { display: none; } .nav-toggle { margin-left: auto; } }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { margin-left: auto; }
  .get-link { margin-left: 24px; }
}
@media (max-width: 899px) { .site-nav ul { gap: 0; } }

/* Мотузка */
.rope { position: relative; }
.rope::before {
  content: '';
  position: absolute; top: 0; bottom: 0;
  left: calc(max(0px, (100% - 1160px) / 2) + var(--gut));
  width: var(--lw);
  background: var(--red);
  z-index: 2;
}
.rope-in { padding-left: calc(var(--gut) + var(--off)); }
.knot { position: relative; }
.knot::before {
  content: '';
  position: absolute; z-index: 3;
  left: calc(-1 * var(--off) + var(--lw) / 2 - 7px);
  top: calc(.53em - 7px);
  width: 14px; height: 14px;
  box-sizing: border-box;
  border: 3px solid var(--red);
  border-radius: 50%;
  background: var(--red);
  transition: background-color 200ms;
}
.js .knot:not(.lit)::before { background: #fff; }
@media (prefers-reduced-motion: reduce) { .knot::before { transition: none; } .js .knot:not(.lit)::before { background: var(--red); } }
.rope-end {
  position: absolute; z-index: 3; bottom: -11px;
  left: calc(max(0px, (100% - 1160px) / 2) + var(--gut) + var(--lw) / 2 - 11px);
  width: 22px; height: 22px; border-radius: 50%; background: var(--red);
}

.section { padding-top: var(--sec); }
.verdict { position: relative; padding-bottom: var(--sec); }

/* Hero */
.hero { padding-top: 40px; }
@media (min-width: 720px) { .hero { padding-top: 72px; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.hero-art { position: relative; }
.hero-main { width: 240px; }
.frame.hero-second { display: none; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
  .hero-art { margin-top: -24px; }
  .hero-main { width: min(380px, 100%); }
}
@media (min-width: 1200px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 456px; }
  .hero-main { width: 320px; }
  .frame.hero-second {
    display: block; position: absolute; bottom: 0; left: 336px;
    width: 120px; height: 60%; object-fit: cover; object-position: center;
  }
}

.hero h1 { margin-bottom: 28px; }
.hero .lead { margin-bottom: 0; }

/* Рамки */
.frame { display: block; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); height: auto; }

/* Інфо */
.info { background: var(--surface); margin-top: 72px; padding: 40px 0 32px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; margin: 0; }
@media (min-width: 900px) { .info-grid { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; } }
.info-dl { display: contents; }
.info-grid > div, .info-dl > div { min-width: 0; }
.info-icon img { display: block; width: 56px; height: 56px; border-radius: 12px; }
dt { font-size: .8125rem; line-height: 1.4; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
dd { margin: 0; font-weight: 600; font-size: 1rem; line-height: 1.4; }
.info-note { margin: 28px 0 0; }

/* Рухи */
.moves { list-style: none; display: grid; gap: 40px; margin-top: 48px; }
.moves li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; max-width: 760px; }
.moves .frame { width: 96px; border-radius: 12px; }
.moves li.no-frame { grid-template-columns: minmax(0, 1fr); padding-left: 116px; }
.moves p { margin: 0; max-width: 56ch; }
@media (min-width: 720px) {
  .moves li { grid-template-columns: 120px minmax(0, 1fr); gap: 32px; }
  .moves .frame { width: 120px; border-radius: 14px; }
  .moves li.no-frame { padding-left: 152px; }
}

/* Спліти */
.split { display: grid; gap: 32px; margin-top: 40px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.skins .pair { grid-template-columns: minmax(0, 1fr); max-width: 240px; }
.frame.desk-only { display: none; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
  .skins .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .frame.desk-only { display: block; }
  .split.courses h3 { margin-top: 0; }
}

/* Маркери */
.marks { list-style: none; margin: 0 0 1em; }
.marks.narrow { max-width: 720px; }
.marks li { position: relative; padding-left: 28px; margin-bottom: 14px; max-width: 62ch; }
.marks li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--red); }
#tips .marks li { margin-bottom: 18px; }
.split p + .marks, .split h3 + .marks { margin-top: 24px; }
.split h3 + .marks { margin-top: 12px; }

/* Вердикт */
.verdict-grid { display: grid; gap: 24px; margin-top: 8px; }
.score {
  margin: 0; font-size: 5.5rem; line-height: 1; font-stretch: 125%; font-weight: 900;
  color: var(--blue); letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.wd { display: grid; gap: 8px 48px; margin-top: 32px; }
@media (min-width: 720px) { .wd { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .verdict-grid { grid-template-columns: auto minmax(0, 1fr); gap: 72px; }
  .score { font-size: 8.75rem; }
}

/* Гайди */
.guide-list { list-style: none; max-width: 820px; }
.guide-list li { border-bottom: 1px solid var(--line); }
.guide-list li:first-child { border-top: 1px solid var(--line); }
.guide-list a { display: block; padding: 22px 16px; text-decoration: none; color: var(--ink); }
.guide-list h3 { color: var(--blue); margin-bottom: 4px; }
.guide-list p { margin: 0; }
.guide-list a:hover { background: var(--surface); color: var(--ink); }
.guide-list a:hover h3 { text-decoration: underline; text-underline-offset: .15em; }

/* CTA */
.cta-field { background: var(--blue); color: #fff; margin-top: var(--sec); padding: 72px 0; }
@media (min-width: 720px) { .cta-field { padding: 104px 0; } }
.cta-field h2 { color: #fff; margin-bottom: 16px; }
.cta-field p { font-size: 1.125rem; margin-bottom: 32px; max-width: 52ch; }
.cta-field :focus-visible, .site-footer :focus-visible, .cookie :focus-visible { outline-color: #fff; }

/* Футер */
.site-footer { background: var(--ink); color: #bdbdbd; padding: 72px 0 40px; font-size: .9375rem; line-height: 1.6; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration-thickness: 2px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.foot-grid { display: grid; gap: 40px 32px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
.site-footer h2 { font-size: 1.0625rem; line-height: 1.3; font-stretch: 100%; font-weight: 700; letter-spacing: 0; color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; }
.site-footer li a { display: inline-block; padding-block: 5px; }
.site-footer p { max-width: 36ch; }
.site-footer address { font-style: normal; display: grid; gap: 4px; justify-items: start; overflow-wrap: anywhere; }
.site-footer address a { padding-block: 3px; }
.site-footer .disclaimer { max-width: 80ch; margin: 56px 0 16px; padding-top: 28px; border-top: 1px solid #333; font-size: .875rem; }
.site-footer .copy { margin: 0; font-size: .875rem; }

/* Cookie */
.cookie {
  position: fixed; z-index: 30; left: 12px; right: 12px; bottom: 12px; max-width: 640px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  background: var(--ink); color: #fff; padding: 14px 16px; font-size: .875rem; line-height: 1.5;
  border: 1px solid #444;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1 1 260px; }
.cookie a { color: #fff; }
.cookie .btn { padding: 10px 24px; font-size: .9375rem; background: #fff; color: var(--ink); }
.cookie .btn:hover { background: var(--surface); color: var(--ink); }
@media (min-width: 720px) { .cookie { left: 24px; bottom: 24px; } }

/* Загальне для внутрішніх сторінок */
.prose { max-width: 720px; }
