/* === Base === */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;700;800&family=Plus+Jakarta+Sans:wght@400;600;700&display=swap");

:root {
  --purple-deep: #0d1b2a;
  --purple-card: #1b3a5c;
  --pink: #e07a2f;
  --pink-hover: #f4a261;
  --black: #060d14;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.84);
  --header-text: #0d1b2a;
  --nav-gray: #4a6278;
  --star: #f4c430;
  --container: 1180px;
  --radius-card: 16px;
  --radius-btn: 999px;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Plus Jakarta Sans", serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--black);
  line-height: 1.45;
}

h1,
h2,
h3,
.logo__title,
.rank-name,
.rank-score__num,
.btn,
.site-nav a,
.site-nav__modal-btn,
.modal__title {
  font-family: var(--font-display);
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

/* === Header === */
.site-header {
  background: #f0f4f8;
  border-bottom: 1px solid #c5d4e0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--header-text);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__title {
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: 20px;
  color: var(--purple-deep);
}

.logo__sub {
  font-size: 12px;
  color: #5a7088;
  margin-top: 4px;
}

.logo--inverse .logo__title {
  color: var(--white);
}

.logo--inverse .logo__sub {
  color: rgba(255, 255, 255, 0.72);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #b8ccd9;
  border-radius: 10px;
  background: #e8eef3;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--purple-deep);
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 26px;
}

.site-nav a {
  color: var(--nav-gray);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--pink);
  text-decoration: underline;
}

.site-nav a.is-current {
  color: var(--pink);
  font-weight: 800;
}

.site-nav a.is-current--boxed {
  border: 1px solid #c45c1a;
  padding: 5px 10px;
  border-radius: 3px;
  margin: -6px -2px;
}

.site-nav a.is-current--boxed:hover {
  text-decoration: none;
  border-color: #a34d15;
  color: #a34d15;
}

.logo__sub--accent {
  color: #b85c1a;
  font-weight: 700;
}

.logo__mark--double {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* === About page === */
.about-page {
  background: var(--black);
  color: var(--white);
  padding: 44px 0 72px;
  min-height: 55vh;
}

.about-page__container {
  max-width: 920px;
}

.about-page__title {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
}

.about-page__p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.94);
  text-align: left;
}

.about-page__p--lead {
  margin-bottom: 28px;
  font-size: 17px;
  color: var(--white);
}

.about-page__p--last {
  margin-bottom: 0;
}

.about-page__h2 {
  margin: 32px 0 18px;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--white);
  text-align: left;
}

.about-page__tagline {
  margin: 28px 0 22px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--white);
  text-align: left;
}

.footer__nav a[aria-current="page"] {
  color: var(--pink);
  font-weight: 700;
}

/* === FAQ page === */
.faq-page__title {
  margin-bottom: 40px;
}

.faq-section {
  margin-bottom: 36px;
  text-align: left;
}

.faq-section:last-of-type {
  margin-bottom: 0;
}

.faq-section__heading {
  margin: 0 0 12px;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
}

.faq-section__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #ffffff;
}

.legal-page .about-page__title {
  margin-bottom: 10px;
}

.legal-page__meta {
  margin: 0 0 32px;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.68);
}

.legal-page__meta strong {
  color: #ffffff;
  font-weight: 700;
}

/* === Hero === */
.hero {
  background: var(--purple-deep);
  padding: 44px 0 52px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 36px 40px;
  align-items: center;
}

.hero__title {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.1vw, 38px);
  line-height: 1.18;
  font-weight: 800;
  color: var(--white);
}

.hero__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 560px;
}

.hero__media {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  min-height: 280px;
  background: #152a40;
}

.hero__media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: 55% 35%;
}

/* === Ranking === */
.ranking {
  background: var(--black);
  padding: 10px 0 56px;
}

.ranking__stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.rank-card {
  position: relative;
  background: var(--purple-card);
  border-radius: var(--radius-card);
  padding: 26px 22px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 8px;
}

.rank-card__link {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: -28px;
  z-index: 10;
  border-radius: var(--radius-card);
  cursor: pointer;
}

.rank-card__link:focus-visible {
  outline: 3px solid rgba(224, 122, 47, 0.95);
  outline-offset: 3px;
}

.rank-card:hover {
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
}

.rank-card:hover .btn--primary {
  filter: brightness(1.06);
}

.rank-card__badge-row {
  position: absolute;
  left: 18px;
  top: -16px;
  display: flex;
  align-items: center;
  z-index: 3;
  pointer-events: none;
}

.rank-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  flex: 0 0 auto;
}

.rank-ribbon {
  margin-left: -6px;
  background: var(--pink);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 9px 18px 9px 16px;
  border-radius: 0 8px 8px 0;
  transform: skewX(-14deg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  max-width: min(420px, 72vw);
}

.rank-ribbon span {
  display: block;
  transform: skewX(14deg);
}

.rank-card__top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
  padding-left: 72px;
  min-height: 44px;
}

.rank-score {
  text-align: right;
}

.rank-score__num {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
}

.stars {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 8px;
}

.star {
  width: 16px;
  height: 16px;
  background: linear-gradient(180deg, #ffe08a, var(--star));
  clip-path: polygon(50% 0%, 63% 38%, 100% 38%, 69% 59%, 82% 100%, 50% 76%, 18% 100%, 31% 59%, 0% 38%, 37% 38%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  border-radius: 2px;
}

.rank-card__main {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px 22px;
  align-items: center;
}

.rank-logo {
  width: 118px;
  height: 118px;
  background: var(--white);
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 12px;
}

.rank-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.rank-name {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
}

.rank-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
}

.rank-card__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  user-select: none;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.btn--primary {
  background: var(--pink);
  color: var(--white);
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  box-shadow: 0 10px 22px rgba(163, 77, 21, 0.38);
}

.btn--primary:hover {
  background: var(--pink-hover);
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--wide {
  min-width: 240px;
  padding: 14px 26px;
  font-size: 15px;
}

/* === Promo banner === */
.promo-banner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin: 6px 0 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.promo-banner__link {
  position: absolute;
  inset: 0;
  z-index: 10;
  border-radius: 14px;
  cursor: pointer;
}

.promo-banner__link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

.promo-banner__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(160px, 0.85fr);
  align-items: center;
  gap: 18px;
  min-height: 132px;
  padding: 18px 18px 18px 10px;
  background: linear-gradient(90deg, #a34d15 0%, #1b3a5c 52%, #060d14 100%);
}

.promo-banner__ghost-logo {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  opacity: 0.18;
  filter: grayscale(1) brightness(1.2);
  pointer-events: none;
}

.promo-banner__ghost-logo img {
  width: 100%;
  height: auto;
}

.promo-banner__center {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 10px;
}

.promo-banner__text {
  margin: 0 0 14px;
  color: var(--white);
  font-weight: 800;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.35;
}

.btn--promo {
  background: var(--pink);
  color: var(--white);
  border: 0;
  padding: 11px 22px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(163, 77, 21, 0.38);
}

.btn--promo:hover {
  background: var(--pink-hover);
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.promo-banner__photo {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(280px, 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.promo-banner__photo img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  object-position: 60% 35%;
}

/* === Article === */
.article {
  background: var(--black);
  padding: 10px 0 36px;
}

.article__inner {
  max-width: 980px;
}

.article__h1 {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  font-weight: 800;
}

.article__h2 {
  margin: 28px 0 14px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
  font-weight: 800;
}

.article__p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}

.cta-block {
  margin: 26px 0;
  text-align: center;
}

.cta-block__text {
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 15px;
  line-height: 1.45;
}

/* === Closing CTA block (bottom) === */
.closing-cta {
  background: var(--black);
  padding: 8px 0 64px;
}

.closing-cta__inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.closing-cta__line {
  margin: 0 0 20px;
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.closing-cta__line--bottom {
  margin-top: 40px;
  margin-bottom: 20px;
}

.closing-cta__body {
  margin: 36px auto 0;
  max-width: 920px;
  color: var(--white);
  font-size: 16px;
  line-height: 1.65;
  text-align: center;
}

.closing-cta__body + .closing-cta__body {
  margin-top: 22px;
}

.btn--closing {
  display: inline-flex;
  background: #c45c1a;
  color: var(--white);
  padding: 16px 36px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  text-transform: lowercase;
  box-shadow: 0 8px 22px rgba(163, 77, 21, 0.42);
}

.btn--closing:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn--closing:active {
  transform: translateY(0);
}

/* === Footer === */
.site-footer {
  background: var(--purple-deep);
  padding: 34px 0 28px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__brand .logo {
  color: var(--white);
}

.footer__about {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.footer__nav a {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__nav a:hover {
  color: var(--pink);
}

.footer__rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  margin-top: 6px;
}

.footer__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

/* === Modal === */
.site-nav__modal-btn {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--nav-gray);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav__modal-btn:hover {
  color: var(--pink);
  text-decoration: underline;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  box-sizing: border-box;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: min(88vh, 760px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 40px 28px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  color: #8a8a93;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.modal__close:hover {
  color: #333;
  background: rgba(0, 0, 0, 0.06);
}

.modal__title {
  margin: 0 0 20px;
  padding: 0 40px 0 12px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: #111;
}

.modal__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #3d3d45;
  text-align: left;
}

/* === Responsive === */
@media (max-width: 960px) {
  .promo-banner__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .promo-banner__ghost-logo {
    left: 50%;
    transform: translate(-50%, -50%);
    top: 45%;
    width: 240px;
  }

  .promo-banner__photo {
    justify-self: center;
    width: min(360px, 100%);
  }
}

@media (max-width: 880px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__media {
    order: 2;
    min-height: 240px;
  }

  .hero__copy {
    order: 1;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0 4px;
  }

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

  .header__inner {
    flex-wrap: wrap;
  }

  .header__inner .logo {
    order: 1;
  }

  .header__inner .nav-toggle {
    order: 2;
    margin-left: auto;
  }

  .header__inner .site-nav {
    order: 3;
    flex-basis: 100%;
  }

  .site-nav__modal-btn {
    width: 100%;
    text-align: left;
    padding: 6px 0;
  }

  .rank-ribbon {
    font-size: 10px;
    max-width: 58vw;
  }

  .rank-card__main {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .rank-logo {
    width: 100%;
    height: auto;
    min-height: 104px;
  }

  .rank-card__top {
    padding-left: 72px;
  }

  .rank-score {
    text-align: right;
  }

  .rank-card__actions {
    justify-content: stretch;
  }

  .rank-card__actions .btn {
    width: 100%;
  }
}
