/* IBM Plex Sans, variable weight, self-hosted subsets. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('./assets/fonts/plex-sans-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('./assets/fonts/plex-sans-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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('./assets/fonts/plex-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+20A0-20AB, U+20AD-20C4;
}

:root {
  --paper: #eceef1;
  --white: #ffffff;
  --sunk: #f5f6f8;
  --ink: #000000;
  --text: #2b3038;
  --muted: #5a616c;
  --rule: #c4c9d1;
  --premium: #d98a00;
  --premium-ink: #8a5a00;
  --premium-soft: #fbeed6;
  --boost: #1764bd;
  --boost-soft: #dce8f7;

  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 76rem;
  --gutter: 1.5rem;
  --header-height: 4rem;
  --radius: 2px;
  --row: 2.25rem;
  --stub: 1.75rem;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
fieldset {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--boost);
  outline-offset: 2px;
}

[tabindex='-1']:focus {
  outline: none;
}

.container {
  width: min(calc(100% - 2 * var(--gutter)), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

/* Buttons */

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 140ms ease,
    color 140ms ease;
}

.button--primary {
  background: var(--ink);
  color: var(--white);
}

.button--primary:hover {
  background: #2b3038;
}

.button--secondary {
  background: transparent;
  color: var(--ink);
}

.button--secondary:hover {
  background: var(--white);
}

.button--compact {
  min-height: 2.375rem;
  padding: 0.4375rem 0.875rem;
  font-size: 0.9375rem;
}

/* Header */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
}

.brand__mark {
  width: 1.75rem;
  height: 1.75rem;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.site-header__inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  gap: 2.5rem;
}

.desktop-nav {
  display: flex;
  gap: 1.75rem;
  margin-right: auto;
}

.desktop-nav a,
.header-login {
  color: var(--text);
  font-size: 0.9375rem;
  text-decoration: none;
  text-underline-offset: 0.3em;
}

.desktop-nav a:hover,
.header-login:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

/* Hero */

.hero {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3.5rem, 7vw, 5.5rem);
}

.hero__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.hero h1 {
  grid-column: span 7;
  font-size: clamp(2.25rem, 1.45rem + 2.5vw, 3.5rem);
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.hero__side {
  grid-column: span 5;
}

.hero__lead {
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
}

.hero__price {
  color: var(--muted);
  font-size: 0.9375rem;
}

.hero__price strong {
  color: var(--ink);
  font-weight: 600;
}

/* Diagram: mirrors -> bus -> slot queue -> your counter */

.diagram {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
}

.diagram__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.diagram__title {
  margin-right: auto;
  font-size: 1.0625rem;
  letter-spacing: 0;
}

.modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  padding: 0;
  border: 0;
}

.modes label {
  display: inline-flex;
  min-height: 2.375rem;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  cursor: pointer;
  font-size: 0.9375rem;
}

.modes input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.modes label:has(input:checked) {
  color: var(--ink);
  font-weight: 600;
}

.diagram__toggle {
  min-width: 7.5rem;
}

.diagram__body {
  position: relative;
  display: grid;
  grid-template-areas: 'mirrors . queue result';
  grid-template-columns: minmax(0, 1fr) calc(2 * var(--stub)) minmax(0, 1.3fr) minmax(0, 0.85fr);
  column-gap: 0;
  padding: 1.5rem 1.25rem 1.75rem;
}

.diagram__mirrors {
  grid-area: mirrors;
}

.diagram__queue {
  grid-area: queue;
}

.diagram__result {
  grid-area: result;
  margin-left: 2.5rem;
}

.diagram__label {
  min-height: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.diagram__foot {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Mirror rows: plain server-browser lines with a stub into the bus. */
.mirrors {
  display: grid;
  gap: 0.375rem;
}

.mirrors li {
  position: relative;
  display: flex;
  min-height: var(--row);
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--sunk);
  font-size: 0.875rem;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.mirrors li::after {
  position: absolute;
  top: 50%;
  left: calc(100% + 1px);
  width: var(--stub);
  border-top: 1px solid var(--rule);
  content: '';
}

.mirrors__name {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mirrors__players {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.mirrors li.is-connecting {
  border-color: var(--ink);
  background: var(--white);
}

.mirrors li.is-connecting::after {
  border-color: var(--ink);
}

.mirrors li.is-connecting .mirrors__name {
  color: var(--ink);
  font-weight: 600;
}

/* Vertical bus; JS places it between the columns. */
.diagram__bus {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 0;
  background: var(--ink);
}

/* Slot queue */
.queue {
  display: grid;
  gap: 0.375rem;
}

.queue__slot {
  position: relative;
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0 0.75rem 0 0.875rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.875rem;
}

/* Stub from the bus into the slot, on the same line as the mirror stub opposite. */
.queue__slot::before {
  position: absolute;
  top: calc(var(--row) / 2 - 1px);
  right: calc(100% + 1px);
  width: var(--stub);
  border-top: 1px solid var(--ink);
  content: '';
}

/* Colour bar: amber for premium, blue for boost. */
.queue__slot::after {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -1px;
  width: 4px;
  content: '';
}

.queue__slot[data-zone='premium']::after {
  background: var(--premium);
}

.queue__slot[data-zone='boost']::after {
  background: var(--boost);
}

.queue__badge {
  display: grid;
  align-content: start;
  padding-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

.queue__badge small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.queue__slot[data-zone='premium'] .queue__badge {
  color: var(--premium-ink);
}

.queue__slot[data-zone='boost'] .queue__badge {
  color: var(--boost);
}

.queue__servers {
  display: grid;
  min-width: 0;
}

.queue__server {
  position: relative;
  display: grid;
  /* The slot border adds 2px: rows then keep the mirror pitch, so stubs line up. */
  min-height: calc(var(--row) - 2px);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  margin-inline: -0.5rem;
  padding: 0.375rem 0.5rem 0.375rem 1.25rem;
  color: var(--text);
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.queue__server[hidden] {
  display: none;
}

.queue__slot[data-zone='boost'] .queue__server + .queue__server {
  border-top: 1px dashed var(--rule);
}

/* Whose turn it is inside the shared boost slot. */
.queue__server.is-turn::before {
  position: absolute;
  top: 50%;
  left: 0.5rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--boost);
  content: '';
  transform: translateY(-50%);
}

.queue__server.is-yours {
  color: var(--ink);
  font-weight: 600;
}

.queue__server.is-receiving {
  background: var(--boost-soft);
}

.queue__slot[data-zone='premium'] .queue__server.is-receiving {
  background: var(--premium-soft);
}

.queue__server.is-receiving::after {
  color: var(--ink);
  content: '+1 игрок';
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Result: counter of transitions to your server. */
.counter {
  padding: 0.75rem 1rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: clamp(2.5rem, 1.5rem + 2.5vw, 3.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
}

.counter span {
  display: inline-block;
}

.diagram__note {
  margin-top: 1rem;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* The player travelling through the diagram. */
.diagram__player {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--white);
  pointer-events: none;
}

.diagram__player[hidden] {
  display: none;
}

.diagram__footer {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 0.625rem 1.25rem;
  border-top: 1px solid var(--rule);
}

.diagram__status {
  flex: 1;
  color: var(--text);
  font-size: 0.9375rem;
}

/* Sections */

.section {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--ink);
}

.section__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem;
}

.section__head {
  grid-column: span 4;
}

.section__head h2 {
  font-size: clamp(1.75rem, 1.25rem + 1.5vw, 2.375rem);
}

.section__head p {
  max-width: 22rem;
  margin-top: 0.875rem;
  color: var(--muted);
}

.section__head a,
.faq a {
  color: var(--ink);
  text-underline-offset: 0.2em;
}

.section__body {
  grid-column: span 8;
  min-width: 0;
}

.section__footnote {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Prices */

.compare {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.compare thead td:first-child,
.compare tbody th,
.compare tfoot td:first-child {
  width: 28%;
}

.compare th,
.compare td {
  padding: 0.875rem 1.25rem 0.875rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.compare tbody th {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 400;
}

.compare .compare__plan {
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--ink);
  font-size: 1.3125rem;
  font-weight: 600;
}

.compare .compare__plan--premium {
  border-bottom-color: var(--premium);
}

.compare .compare__plan--boost {
  border-bottom-color: var(--boost);
}

.compare__price td {
  color: var(--ink);
}

.compare__price strong {
  font-size: 1.6875rem;
  font-weight: 600;
}

.compare tfoot td {
  padding-top: 1.5rem;
  border-bottom: 0;
}

/* Dashboard screenshot */

.screenshot__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: #0a0e1a;
}

.screenshot__frame img {
  width: 100%;
  height: auto;
}

.screenshot__pin,
.screenshot__legend li::before {
  display: grid;
  width: 1.625rem;
  height: 1.625rem;
  place-items: center;
  border-radius: 50%;
  background: var(--premium);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

.screenshot__pin {
  position: absolute;
  top: var(--y);
  left: var(--x);
  transform: translate(-50%, -50%);
}

.screenshot__legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  counter-reset: pin;
}

.screenshot__legend li {
  position: relative;
  padding-left: 2.375rem;
  color: var(--muted);
  font-size: 0.9375rem;
  counter-increment: pin;
}

.screenshot__legend li::before {
  position: absolute;
  top: 0.05rem;
  left: 0;
  content: counter(pin);
}

.screenshot__legend strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

/* FAQ: everything open, two columns. */

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}

.faq div {
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.faq dt {
  color: var(--ink);
  font-weight: 600;
}

.faq dd {
  margin-top: 0.375rem;
  color: var(--text);
  font-size: 0.9375rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--ink);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1.3fr 1.2fr;
  gap: 2.5rem;
  padding-block: 3rem;
}

.footer-brand p {
  max-width: 17rem;
  margin-block: 0.875rem 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-column h2 {
  margin-bottom: 0.875rem;
  font-size: 0.9375rem;
  letter-spacing: 0;
}

.footer-column ul,
.footer-column dl {
  display: grid;
  gap: 0.5rem;
}

.footer-column li,
.footer-column dd {
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.45;
}

.footer-column dt {
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer-column a,
.site-footer__bottom a {
  text-decoration: none;
  text-underline-offset: 0.2em;
}

.footer-column a:hover,
.site-footer__bottom a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  z-index: 200;
  right: 1rem;
  bottom: 1rem;
  width: min(calc(100% - 2rem), 30rem);
  transform: translateY(0.75rem);
  opacity: 0;
  transition:
    opacity 180ms ease,
    transform 180ms var(--ease);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner.is-visible {
  transform: none;
  opacity: 1;
}

.cookie-banner__inner {
  padding: 1.25rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
}

.cookie-banner h2 {
  font-size: 1rem;
  letter-spacing: 0;
}

.cookie-banner p {
  margin-top: 0.375rem;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-banner p a {
  color: var(--ink);
  text-underline-offset: 0.15em;
}

.cookie-banner__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Narrow desktop */

@media (max-width: 72rem) {
  .hero h1,
  .hero__side {
    grid-column: 1 / -1;
  }

  .hero h1 {
    max-width: 20ch;
  }

  .diagram__body {
    grid-template-areas:
      'mirrors . queue'
      'result result result';
    grid-template-columns: minmax(0, 1fr) calc(2 * var(--stub)) minmax(0, 1.3fr);
    row-gap: 1.5rem;
  }

  .diagram__result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 1.5rem;
    margin-left: 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
  }

  .diagram__result .diagram__label {
    grid-column: 1 / -1;
  }

  .diagram__note {
    margin-top: 0;
  }
}

/* Tablet */

@media (max-width: 61.25rem) {
  .desktop-nav,
  .site-header__actions {
    display: none;
  }

  .site-header__inner {
    justify-content: space-between;
  }

  .menu-toggle {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-content: center;
    gap: 0.4rem;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 1.125rem;
    height: 1.5px;
    background: currentColor;
    transition: transform 160ms ease;
  }

  .menu-toggle[aria-expanded='true'] span:first-child {
    transform: translateY(0.24rem) rotate(45deg);
  }

  .menu-toggle[aria-expanded='true'] span:last-child {
    transform: translateY(-0.24rem) rotate(-45deg);
  }

  .mobile-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    background: var(--paper);
    visibility: hidden;
    transition:
      max-height 220ms var(--ease),
      visibility 220ms;
  }

  .mobile-menu.is-open {
    max-height: 32rem;
    border-top: 1px solid var(--rule);
    visibility: visible;
  }

  .mobile-menu__inner {
    display: grid;
    padding-block: 0.25rem 1.25rem;
  }

  .mobile-menu__inner > a {
    padding-block: 0.875rem;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
    text-decoration: none;
  }

  .mobile-menu__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.25rem;
  }

  .section__head,
  .section__body {
    grid-column: 1 / -1;
  }

  .section__head p {
    max-width: 36rem;
  }

  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */

@media (max-width: 48rem) {
  :root {
    --gutter: 1rem;
    --stub: 1.25rem;
  }

  .diagram__bar {
    padding-inline: 1rem;
  }

  .diagram__title {
    width: 100%;
  }

  .modes {
    gap: 0 0.875rem;
  }

  .modes label {
    font-size: 0.875rem;
  }

  .diagram__footer {
    align-items: flex-start;
    padding-inline: 1rem;
  }

  .diagram__status {
    font-size: 0.875rem;
  }

  /* One column; the bus runs down the left edge. */
  .diagram__body {
    grid-template-areas:
      'mirrors'
      'queue'
      'result';
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.25rem;
    padding: 1.25rem 1rem 1.5rem calc(1rem + 2 * var(--stub));
  }

  .mirrors li:nth-child(n + 3) {
    display: none;
  }

  .mirrors li::after {
    right: calc(100% + 1px);
    left: auto;
  }

  .diagram__foot {
    margin-top: 0.375rem;
  }

  .queue__slot {
    grid-template-columns: 4.75rem minmax(0, 1fr);
    gap: 0.5rem;
    padding-right: 0.5rem;
  }

  .diagram__result {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.75rem;
  }

  .counter {
    width: fit-content;
    min-width: 6rem;
  }

  .hero__actions .button {
    width: 100%;
  }

  /* Prices: one block per row, values labelled by plan. */
  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: 100%;
  }

  .compare thead {
    display: none;
  }

  .compare tbody tr {
    padding-block: 1rem;
    border-bottom: 1px solid var(--rule);
  }

  .compare tbody th,
  .compare tbody td {
    width: 100%;
    padding: 0;
    border: 0;
  }

  .compare tbody th {
    margin-bottom: 0.5rem;
  }

  .compare tbody td + td {
    margin-top: 0.625rem;
  }

  .compare tbody td::before {
    display: block;
    color: var(--ink);
    content: attr(data-label);
    font-weight: 600;
  }

  .compare tbody td:nth-of-type(1)::before {
    color: var(--premium-ink);
  }

  .compare tbody td:nth-of-type(2)::before {
    color: var(--boost);
  }

  .compare tfoot {
    display: block;
  }

  .compare tfoot tr {
    display: grid;
    gap: 0.75rem;
    padding-top: 1.25rem;
  }

  .compare tfoot td {
    padding: 0;
  }

  .compare tfoot td:first-child {
    display: none;
  }

  .compare tfoot .button {
    width: 100%;
  }

  .screenshot__pin {
    width: 1.125rem;
    height: 1.125rem;
    font-size: 0.6875rem;
  }

  .screenshot__legend,
  .faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.25rem;
    padding-block: 1rem;
  }

  .cookie-banner {
    right: 0.5rem;
    bottom: 0.5rem;
    width: calc(100% - 1rem);
  }

  .cookie-banner__actions .button {
    flex: 1;
  }
}

@media (max-width: 30rem) {
  .mobile-menu__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
