﻿:root {
  --bg: #f3f7fb;
  --bg-alt: #e8f1f8;
  --panel: #ffffff;
  --text: #18212f;
  --muted: #5b677a;
  --line: #d6dfec;
  --brand: #10324f;
  --brand-2: #2f6f86;
  --accent: #d98f2b;
  --accent-2: #2fbf71;
  --shadow: 0 14px 36px rgba(16, 50, 79, 0.09);
  --radius: 22px;
  --radius-sm: 15px;
  --max: 1180px;
  --anchor-offset: clamp(96px, 10vw, 128px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 111, 134, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(217, 143, 43, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

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

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

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 9999;
  background: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 251, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 226, 239, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 24px rgba(17, 58, 92, 0.22);
}

.brand-mark::after {
  content: "";
  width: 13px;
  height: 8px;
  border-left: 3px solid rgba(255, 255, 255, 0.96);
  border-bottom: 3px solid rgba(255, 255, 255, 0.96);
  transform: translateY(-1px) rotate(-45deg);
  transform-origin: center;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--brand);
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(17, 58, 92, 0.08);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(17, 58, 92, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 252, 0.98));
  box-shadow: 0 10px 24px rgba(17, 58, 92, 0.08);
  cursor: pointer;
  line-height: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
}

.site-header.is-nav-open .nav {
  display: flex;
}

.hero {
  padding: 28px 0 18px;
}

.hero-card {
  background:
    linear-gradient(135deg, rgba(14, 47, 74, 0.98), rgba(45, 107, 129, 0.96)),
    var(--brand);
  color: #fff;
  border-radius: 30px;
  padding: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: linear-gradient(135deg, rgba(17, 58, 92, 0.10), rgba(31, 111, 139, 0.16));
  border: 1px solid rgba(31, 111, 139, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand);
  box-shadow: 0 8px 24px rgba(17, 58, 92, 0.08);
}

.hero .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.20);
  color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-actions-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
}

.hero-actions-main .button,
.hero-actions-main .button-secondary {
  width: 100%;
  padding: 0 14px;
  font-size: 15px;
}

.hero-pill-center {
  text-align: center;
  line-height: 1.1;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button {
  background: var(--accent);
  color: #1b1b1b;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.button:hover,
.button-secondary:hover,
.button:focus-visible,
.button-secondary:focus-visible {
  transform: translateY(-1px);
}

.hero-highlights {
  display: grid;
  gap: 12px;
}

.hero-highlight {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 14px 16px;
}

.hero-highlight strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.hero-highlight span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.5;
}

.hero-highlight span a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-highlight-alt {
  border-color: rgba(244, 163, 64, 0.32);
  background: rgba(244, 163, 64, 0.12);
}

.hero-disclosure {
  margin-top: 0;
  max-width: 52ch;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.55;
}

.ranking-switcher {
  margin-top: 0;
  scroll-margin-top: var(--anchor-offset);
}

.ranking-switcher-intro {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.ranking-switcher-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 18px;
  border-radius: 18px;
  border: 1px solid rgba(17, 58, 92, 0.12);
  background: linear-gradient(135deg, rgba(17, 58, 92, 0.08), rgba(31, 111, 139, 0.12));
  color: var(--brand);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 24px rgba(17, 58, 92, 0.08);
}

.ranking-switcher-pill-mobile {
  display: none;
}

.switcher-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.switcher-tab {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 246, 252, 0.92));
  border-radius: 18px;
  padding: 16px 16px 16px 56px;
  font-weight: 800;
  color: var(--brand);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(17, 58, 92, 0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.switcher-tab small {
  display: block;
  margin-top: 4px;
  color: rgba(24, 33, 47, 0.82);
  font-weight: 600;
}

.switcher-tab::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(17, 58, 92, 0.10);
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.switcher-tab::after {
  content: "→";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(17, 58, 92, 0.62);
  font-size: 20px;
  font-weight: 900;
  transition: transform 0.18s ease, color 0.18s ease;
}

.switcher-tab[data-ranking-tab="pozyczki"]::before {
  content: "1";
}

.switcher-tab[data-ranking-tab="konsolidacja"]::before {
  content: "2";
}

.switcher-tab[data-ranking-tab="karty"]::before {
  content: "3";
}

.switcher-tab[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(17, 58, 92, 0.12), rgba(31, 111, 139, 0.14));
  border-color: rgba(31, 111, 139, 0.34);
  box-shadow: 0 12px 26px rgba(17, 58, 92, 0.12);
}

.switcher-tab[aria-selected="true"]::before {
  background: rgba(255, 255, 255, 0.92);
}

.switcher-tab[aria-selected="true"] small {
  color: rgba(24, 33, 47, 0.92);
}

.switcher-tab:hover,
.switcher-tab:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(17, 58, 92, 0.12);
}

.switcher-tab:hover::after,
.switcher-tab:focus-visible::after {
  color: rgba(17, 58, 92, 0.7);
  transform: translateY(-50%) translateX(2px);
}

.section {
  padding: 20px 0;
}

.section-rankings {
  padding-top: 2px;
  padding-bottom: 4px;
}

.section-rankings .section-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}

.section-ranking-panel {
  padding-top: 0;
}

.section-ranking-panel .section-inner {
  padding-top: 10px;
  padding-bottom: 18px;
}

.section-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-inner {
  padding: 26px;
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.section p.lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-intro {
  max-width: 760px;
}

.section-intro-wide {
  max-width: none;
  width: 100%;
}

.section-intro-wide .link-list {
  width: 100%;
}

.section-intro > .eyebrow {
  margin-bottom: 14px;
}

.ranking-panel {
  display: none;
}

.ranking-panel.is-active {
  display: block;
}

.ranking-frame {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: visible;
  background: #fff;
  min-height: 260px;
  padding: 0 0 10px;
}

.seo-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.mini-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.mini-card-link:hover,
.mini-card-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(31, 111, 139, 0.38);
  box-shadow: 0 16px 30px rgba(17, 58, 92, 0.12);
  background: linear-gradient(180deg, #fff, rgba(239, 246, 252, 0.92));
}

.mini-card-link:active {
  transform: translateY(-1px);
  border-color: rgba(31, 111, 139, 0.42);
  box-shadow: 0 14px 26px rgba(17, 58, 92, 0.11);
  background: linear-gradient(180deg, #fff, rgba(232, 242, 250, 0.96));
}

.mini-card-link:focus-visible {
  outline: none;
}

.mini-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.link-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.link-pill span:last-child {
  color: var(--brand-2);
  font-weight: 800;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.accordion-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 58, 92, 0.05);
  overflow: hidden;
}

.accordion-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
  color: var(--brand);
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(17, 58, 92, 0.08);
  color: var(--brand);
  font-size: 18px;
  line-height: 1;
}

.accordion-item[open] summary::after {
  content: "−";
}

.accordion-body {
  padding: 0 20px 18px;
  color: var(--muted);
  line-height: 1.75;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(17, 58, 92, 0.03), rgba(17, 58, 92, 0.00)),
    #fff;
  box-shadow: 0 10px 30px rgba(17, 58, 92, 0.06);
}

.guide-card h3 {
  margin: 0;
  font-size: 20px;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.guide-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.article {
  max-width: 840px;
}

.article-full {
  max-width: none;
}

.premium-page .section-inner.article-full {
  padding: 32px;
}

.premium-page .section-inner.article-full > .eyebrow {
  margin-bottom: 24px;
}

.premium-page .section-inner.article-full > h1 {
  margin-bottom: 16px;
}

.premium-page .section-inner.article-full > .lead {
  margin-bottom: 10px;
}

.premium-page .seo-grid {
  gap: 18px;
  margin-top: 28px;
}

.premium-page .mini-card {
  padding: 22px;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(17, 58, 92, 0.04);
}

.premium-page .accordion-list {
  gap: 16px;
  margin-top: 28px;
}

.premium-page .accordion-item summary {
  padding: 20px 22px;
}

.premium-page .accordion-body {
  padding: 0 22px 20px;
}

.premium-page .link-list {
  margin-top: 22px;
}

.faq-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.95fr;
  gap: 18px;
  margin-top: 22px;
  align-items: stretch;
}

.faq-feature-card {
  min-height: 100%;
}

.faq-side-panel {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(17, 58, 92, 0.08), rgba(244, 163, 64, 0.08));
  border: 1px solid rgba(17, 58, 92, 0.12);
  box-shadow: 0 10px 28px rgba(17, 58, 92, 0.04);
}

.faq-side-label {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(17, 58, 92, 0.10);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.faq-side-panel p {
  margin: 14px 0 0;
  color: var(--text);
  line-height: 1.75;
}

.section-note {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.collab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.collab-grid .mini-card {
  min-height: 100%;
}

.collab-grid ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.collab-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(244, 163, 64, 0.10), rgba(17, 58, 92, 0.04));
  border: 1px solid rgba(244, 163, 64, 0.20);
  color: var(--text);
  line-height: 1.7;
}

.collab-note a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.95fr;
  gap: 18px;
  margin-top: 22px;
  align-items: stretch;
}

.contact-primary-card {
  min-height: 100%;
}

.contact-label,
.contact-side-label {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(17, 58, 92, 0.10);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.contact-primary-card h3 {
  margin-top: 14px;
}

.contact-primary-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.contact-primary-card a {
  font-weight: 800;
  color: var(--brand);
}

.contact-side-panel {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(17, 58, 92, 0.08), rgba(244, 163, 64, 0.08));
  border: 1px solid rgba(17, 58, 92, 0.12);
  box-shadow: 0 10px 28px rgba(17, 58, 92, 0.04);
}

.contact-side-panel p {
  margin: 14px 0 0;
  color: var(--text);
  line-height: 1.75;
}

.article h2 {
  margin-top: 30px;
}

.article ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.article li + li {
  margin-top: 8px;
}

.article-meta {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.article-meta span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.info-note {
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: rgba(244, 163, 64, 0.08);
  border-radius: 14px;
  color: var(--text);
  line-height: 1.7;
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  background:
    radial-gradient(circle at top left, rgba(47, 111, 134, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(217, 143, 43, 0.09), transparent 26%),
    linear-gradient(135deg, rgba(12, 33, 52, 0.97), rgba(16, 50, 79, 0.98)),
    #0f2436;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 42%);
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 112px));
}

.footer-shell {
  padding: 50px 0 34px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.footer-brand h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: #fff;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand p {
  margin: 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.footer-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
}

.footer-card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 36px rgba(5, 14, 24, 0.16);
  backdrop-filter: blur(12px);
}

.footer-card h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.footer-card p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.footer-project-note {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-project-note-left {
  margin-top: 2px;
  max-width: none;
}

.footer-project-note a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-projects a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
}

.footer-projects a:hover,
.footer-projects a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.footer-projects span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links .footer-link-wide {
  grid-column: 1 / -1;
  justify-content: center;
  text-align: center;
  min-height: 42px;
}

.footer-credits {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.footer-credits a {
  color: #fff;
  font-weight: 700;
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.74);
  font-size: 13.5px;
}

.footer-bottom-copy {
  display: grid;
  gap: 4px;
  max-width: 74ch;
  line-height: 1.6;
}

.footer-realization {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.footer-realization a {
  color: #fff;
  font-weight: 700;
}

.footer-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-mini-links a {
  color: rgba(255, 255, 255, 0.84);
}

.footer-mini-links a:hover,
.footer-mini-links a:focus-visible {
  color: #fff;
}

.copyright {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ffd08a);
  color: #1b1b1b;
  box-shadow: 0 16px 30px rgba(244, 163, 64, 0.32);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 14px 0;
  background: rgba(15, 36, 54, 0.96);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cookie-banner p {
  margin: 0;
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

.cookie-accept {
  background: var(--accent);
  color: #1b1b1b;
}

.cookie-settings {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 960px) {
  .hero-grid,
  .seo-grid,
  .info-grid,
  .guide-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .switcher-tabs {
    grid-template-columns: 1fr;
  }

  .ranking-switcher-intro {
    margin-bottom: 8px;
  }

  .cookie-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--max), calc(100% - 20px));
  }

  .header-inner {
    position: relative;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding-right: 56px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    position: absolute;
    top: 10px;
    right: 0;
  }

  .nav {
    display: none;
    width: 100%;
    justify-content: flex-start;
    margin-top: 12px;
    padding: 8px 0 0;
  }

  .site-header.is-nav-open .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header.is-nav-open .header-inner {
    padding-bottom: 10px;
  }

  .section-rankings {
    padding-top: 2px;
  }

  .section-rankings .section-inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .ranking-switcher {
    margin-top: 0;
  }

  .ranking-switcher-intro {
    margin-bottom: 6px;
  }

  .ranking-frame {
    margin-top: 8px;
    padding-bottom: 14px;
  }

  .ranking-switcher-pill {
    padding: 11px 14px;
    font-size: 15px;
    line-height: 1.18;
  }

  .ranking-switcher-pill-desktop {
    display: none;
  }

  .ranking-switcher-pill-mobile {
    display: flex;
  }

  .hero-card,
  .section-inner {
    padding: 18px;
  }

  .hero h1 {
    font-size: clamp(28px, 9vw, 40px);
    line-height: 1.02;
  }

  .hero-actions-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .footer-realization {
    margin-top: 6px;
  }

  .site-footer .container {
    width: min(var(--max), calc(100% - 40px));
  }

  .footer-shell {
    padding: 30px 0 22px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .collab-grid {
    grid-template-columns: 1fr;
  }

  .faq-hero-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) and (pointer: coarse) {
  .mini-card-link {
    -webkit-tap-highlight-color: rgba(31, 111, 139, 0.16);
  }

  .mini-card-link:active {
    transform: translateY(-1px);
    border-color: rgba(31, 111, 139, 0.42);
    box-shadow: 0 14px 26px rgba(17, 58, 92, 0.11);
    background: linear-gradient(180deg, #fff, rgba(232, 242, 250, 0.96));
  }
}





