:root {
  --brand-red: #d40000;
  --brand-red-dark: #8b0000;
  --brand-black: #040404;
  --brand-white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #050505 0%, #101010 55%, #191919 100%);
  color: var(--brand-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.subpage {
  background: linear-gradient(180deg, #050505 0%, #101010 55%, #191919 100%);
  color: var(--brand-white);
}

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

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  position: relative;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 1.1rem;
  justify-self: center;
  text-align: center;
}

.language-switcher {
  display: flex;
  align-items: center;
  justify-self: start;
  font-size: 0.92rem;
}

.language-switcher select {
  background: #000000;
  color: var(--brand-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.95rem;
  width: 110px;
}

.menu-toggle {
  justify-self: end;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 8px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-white);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: #111111;
  border-color: rgba(255, 255, 255, 0.6);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 70%;
  max-width: 300px;
  padding: 96px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  background: linear-gradient(180deg, #0c0c0c 0%, #151515 100%);
  transform: translateX(120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.32s ease, opacity 0.2s ease, visibility 0s linear 0.32s;
  box-shadow: none;
  z-index: 12;
  pointer-events: none;
  will-change: transform;
}

.primary-nav.is-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.32s ease, opacity 0.2s ease;
  box-shadow: -18px 0 32px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}

.primary-nav a {
  position: relative;
  padding: 10px 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  width: 100%;
  text-align: center;
  white-space: normal;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 11;
}

.nav-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

.cookie-banner {
  position: fixed;
  left: 8px;
  bottom: 16px;
  transform: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(12, 12, 12, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  z-index: 15;
  width: min(250px, calc(100% - 16px));
  max-width: 250px;
}

.cookie-banner__text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-banner__actions {
  display: inline-flex;
  gap: 10px;
}

.cookie-btn {
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease;
}

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

.cookie-btn--accept {
  background: var(--brand-red);
  color: var(--brand-white);
}

.cookie-btn--decline {
  background: transparent;
  color: var(--brand-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.cookie-banner.is-hidden {
  display: none;
}

.subpage-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  padding: 12px 16px;
}

.subpage-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.back-button {
  color: var(--brand-white);
  text-decoration: none;
  font-weight: 700;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: #000000;
  transition: background 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-button:hover,
.back-button:focus-visible {
  background: #111111;
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.back-icon {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 12px solid var(--brand-white);
  display: inline-block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.subpage-title {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  text-transform: none;
}

.subpage-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.subpage main {
  flex: 1 0 auto;
  width: 100%;
}

.subpage-content h1 {
  margin-top: 0;
  letter-spacing: 0.08em;
}

.tester-notes .subpage-content h2 {
  color: var(--brand-red);
}

.subpage-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.subpage-content ul {
  padding-left: 22px;
  margin: 14px 0 22px;
}

.subpage-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.bugs-fixes-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.bugs-fixes-row {
  display: grid;
  grid-template-columns: 120px 140px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.bugs-fixes-row--head {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-red);
}

.bugs-fixes-text {
  line-height: 1.5;
}

.bugs-fixes-text--bug {
  color: #ff4d4f;
}

.bugs-fixes-text--fix {
  color: #4da3ff;
}

@media (max-width: 700px) {
  .bugs-fixes-row {
    grid-template-columns: 1fr;
  }
}

.login-form {
  display: grid;
  gap: 14px;
  margin: 16px 0 18px;
  max-width: 420px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.98rem;
}

.form-field input {
  background: #000000;
  color: var(--brand-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
}

.form-field select,
.form-field textarea {
  background: #000000;
  color: var(--brand-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
}

.password-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.password-row input {
  flex: 1;
}

.password-toggle {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #000000;
  color: var(--brand-white);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: #111111;
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.contact-form {
  display: grid;
  gap: 14px;
  margin: 16px 0 18px;
  max-width: 520px;
}

.hp-wrapper {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.contact-form textarea {
  background: #000000;
  color: var(--brand-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
  resize: vertical;
}

.review-form {
  display: grid;
  gap: 14px;
  margin: 16px 0 18px;
  max-width: 620px;
}

.form-status {
  font-size: 0.95rem;
  min-height: 1.2em;
}

.form-status.success {
  color: #7df5c0;
}

.form-status.error {
  color: #ff9d9d;
}

.login-submit {
  align-self: start;
  justify-self: start;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: var(--brand-white);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.login-submit:hover,
.login-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.member-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  position: relative;
}

.member-title {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  text-align: right;
}

.member-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  justify-self: flex-start;
  justify-content: flex-start;
}

.member-nav a {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.member-nav a:hover,
.member-nav a:focus-visible {
  border-color: rgba(255, 255, 255, 0.8);
}

.member-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  justify-content: flex-end;
  text-align: right;
}

.member-logout {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #000000;
  color: var(--brand-white);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.member-logout:hover,
.member-logout:focus-visible {
  background: #111111;
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.nav-logout {
  font-weight: 700;
}

.muted {
  color: rgba(255, 255, 255, 0.65);
  margin: 6px 0 0;
}

.review-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 28px;
}

.review-list__head {
  display: grid;
  grid-template-columns: 1fr 120px 120px;
  gap: 10px;
  padding: 0 4px 8px;
  font-weight: 700;
  color: var(--brand-red);
  letter-spacing: 0.03em;
}

.review-list__item {
  display: grid;
  grid-template-columns: 1fr 120px 120px;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.review-list__item:hover,
.review-list__item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
}

.review-list__name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.review-list__meta {
  display: contents;
}

.review-list__score {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.review-list__count {
  font-size: 0.95rem;
  color: var(--brand-red);
  text-align: right;
}

@media (max-width: 640px) {
  .review-list__head {
    display: none;
  }

  .review-list__item {
    grid-template-columns: 1fr;
  }

  .review-list__meta {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    justify-content: space-between;
  }

  .review-list__count::after {
    content: " reviews";
    color: var(--brand-red);
    margin-left: 4px;
  }
}

.tag-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 28px;
}

.tag-list__head {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 10px;
  padding: 0 4px 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.03em;
}

.tag-list__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.tag-list__item:hover,
.tag-list__item:focus-within {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
}

.tag-list__name {
  font-weight: 700;
  letter-spacing: 0.02em;
  display: block;
  padding: 12px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.tag-list__time {
  text-align: center;
  color: var(--brand-red);
  display: block;
  padding: 12px 14px;
}

@media (max-width: 640px) {
  .tag-list__head {
    display: none;
  }

  .tag-list__item {
    grid-template-columns: 1fr;
  }

.tag-list__time {
  display: none;
  }
}

.stats-board {
  margin: 14px 0 24px;
  padding: 12px 16px;
  background: #ffffff;
  color: #000000;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 420px;
}

.stats-label {
  color: var(--brand-red);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.stats-board__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.stats-table__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7ch 4ch;
  gap: 8px;
  padding: 0 6px 4px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-red);
}

.stats-table__head--league {
  grid-template-columns: 5ch minmax(0, 1fr) repeat(5, 5ch);
}

.stats-table__head--league span {
  text-align: center;
}

.stats-table__head--league span:nth-child(2) {
  text-align: left;
}

.stats-table__head span:last-child {
  text-align: right;
}

.stats-table__head .stats-table__time {
  color: var(--brand-red);
}

.stats-table {
  display: grid;
  gap: 6px;
  margin: 0 0 8px;
}

.stats-table__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7ch 4ch;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
}

.stats-table__row--league {
  grid-template-columns: 2.25rem minmax(0, 1fr) 1.9rem 1.9rem 1.9rem 2.4rem 2.75rem;
}

.stats-table__row--league span {
  text-align: center;
}

.stats-table__row--league span:first-child {
  text-align: left;
}

.stats-table__row--league span:nth-child(2) {
  text-align: left;
}

.stats-table__row--league span:last-child {
  text-align: right;
}

.stats-table__row--head {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-red);
}

.stats-table__name {
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}

.stats-table__time {
  text-align: right;
  font-weight: 700;
  color: #000000;
}

.stats-table__date {
  text-align: center;
  font-weight: 600;
}

.bike-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.9em;
  line-height: 1;
}

.bike-badge + .bike-badge {
  margin-left: 4px;
}

.tag-placeholder-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 4px 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.03em;
}

.tag-placeholder-head__time {
  text-align: right;
}

.tag-title-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 12px;
}

.tag-feedback {
  justify-self: end;
  text-align: right;
  min-height: 1.2em;
}

.tag-placeholders {
  display: grid;
  gap: 12px;
  margin: 12px 0 24px;
}

.tag-placeholder-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tag-placeholder {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.tag-placeholder--with-thumb {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 12px;
}

.tag-placeholder__thumb {
  width: 100%;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #000;
}

.tag-placeholder__label {
  display: block;
}

.tag-placeholder--secondary {
  text-align: right;
}

.tag-placeholder--credit {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--brand-white);
}

.tag-placeholder--credit:hover,
.tag-placeholder--credit:focus-visible {
  background: #ffd166 !important;
  background-image: none !important;
  border-color: #ffd166 !important;
  color: #000000;
}

.tag-placeholder:hover,
.tag-placeholder:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.flag-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.flag-list__item {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.flag-list__item:hover,
.flag-list__item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.09);
}

.flag-list__item--flagged {
  border-color: #ffd166;
  background: rgba(255, 209, 102, 0.1);
  color: #ffd166;
}

.flag-list__name {
  display: block;
}

.flag-list__meta {
  display: block;
  text-align: right;
  font-weight: 600;
  color: var(--brand-red);
  font-size: 0.8em;
}

.flag-location-title {
  color: #ff4d4f;
}

.flag-form__submit {
  margin-top: 15px;
}

.flag-cards {
  display: grid;
  gap: 12px;
  margin: 12px 0 18px;
}

.flag-card {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.flag-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: -12px -14px 8px;
  padding: 12px 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffd166 0%, #f0b541 100%);
  border-radius: 10px 10px 0 0;
  color: #2b1a00;
}

.flag-card__date {
  color: rgba(43, 26, 0, 0.85);
}

@media (max-width: 640px) {
  .tag-placeholder-head {
    grid-template-columns: 1fr;
  }

  .tag-title-row {
    grid-template-columns: 1fr;
  }

  .tag-feedback {
    justify-self: start;
    text-align: left;
  }

  .tag-placeholder-head__time {
    display: none;
  }

  .tag-placeholders {
    grid-template-columns: 1fr;
  }

  .tag-placeholder--secondary {
    display: none;
  }
}

.review-cards {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.review-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.review-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: -14px -16px 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  border-radius: 10px 10px 0 0;
}

.review-card__name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.review-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

.review-card__rating {
  font-weight: 700;
  color: #ffd166;
}

.review-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

@media (min-width: 769px) {
  .nav-logout {
    display: none;
  }
}

.rating-display {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stars {
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.stars__base,
.stars__fill {
  display: block;
}

.stars__fill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #ffd166;
}

.stars__value {
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

.review-title-stars-inline {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  vertical-align: middle;
}

.review-title-stars-inline .rating-display {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.review-title-stars-inline .stars {
  font-size: 0.9em;
}

.review-title-stars-inline .stars__fill {
  color: #ffd166;
}

.review-title-stars-inline .stars__base {
  color: #444;
}

.review-title-stars-inline .stars__value {
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .member-right {
    display: none;
  }

  .member-header {
    grid-template-columns: auto 1fr;
  }

  .menu-toggle {
    grid-column: 1;
    justify-self: start;
  }

  .member-nav {
    grid-column: 1;
  }
}

@media (min-width: 769px) {
  .member-header {
    grid-template-columns: auto 1fr auto;
  }

  .member-nav {
    justify-self: flex-start;
    justify-content: flex-start;
  }

  .menu-toggle {
    display: none;
  }

  .member-right {
    justify-self: end;
  }
}

@media (max-width: 520px) {
  .cookie-banner {
    gap: 10px;
    bottom: 80px;
    left: 8px;
    padding: 10px 12px;
    width: min(250px, calc(100% - 16px));
    max-width: 250px;
  }

  .cookie-banner__text {
    font-size: 0.9rem;
  }

  .cookie-btn {
    padding: 8px 12px;
  }
}

.hero {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 48px;
}

.video-shell {
  position: relative;
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.subpage-content .video-title-spaced {
  margin-top: 48px;
}

.video-shell video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

.video-controls,
.desktop-full-link,
.store-links {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
}

.video-controls {
  right: 18px;
  top: 18px;
}

.control-button {
  background: rgba(0, 0, 0, 0.75);
  color: var(--brand-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.control-button:hover,
.control-button:focus-visible {
  background: var(--brand-red);
  transform: translateY(-1px);
}

.store-links {
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  gap: 18px;
}

.store-links-inline {
  position: static;
  transform: none;
  gap: 18px;
  justify-content: center;
  margin-top: 24px;
}

.store-links img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
  transition: transform 0.3s ease;
}

.store-links img:hover,
.store-links img:focus-visible {
  transform: translateY(-2px);
}

.desktop-full-link {
  left: 18px;
  bottom: 16px;
  display: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.7);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.3s ease, transform 0.2s ease;
}

.desktop-full-link:hover,
.desktop-full-link:focus-visible {
  background: var(--brand-red);
  transform: translateY(-1px);
}

.hero-copy {
  max-width: 960px;
  padding: 32px 20px 0;
  text-align: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3.2rem);
  margin: 0 0 16px;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: var(--brand-red);
  text-transform: none;
}

.hero-copy p {
  margin: 0;
  font-size: clamp(1.05rem, 0.9vw + 1rem, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.hero-social {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.hero-social .social-icon {
  width: 28px;
  height: 28px;
  display: block;
}

.content-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 72px 20px;
}

.content-section h2 {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(1.4rem, 1.4vw + 1rem, 2.1rem);
  margin-bottom: 16px;
}

.content-section p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.site-footer {
  margin-top: auto;
  height: 50px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  text-align: center;
  font-size: 0.82rem;
  color: var(--brand-white);
}

.site-footer span {
  display: inline-block;
}

@media (min-width: 769px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "nav nav nav"
      "lang brand .";
    align-items: center;
    gap: 10px 16px;
  }

  .brand {
    grid-area: brand;
    justify-self: center;
    text-align: center;
  }

  .primary-nav {
    position: static;
    height: auto;
    width: 100%;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    background: transparent;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: none;
    box-shadow: none;
    pointer-events: auto;
    flex: 1;
    justify-content: space-between;
    flex-wrap: nowrap;
    grid-area: nav;
  }

  .primary-nav a {
    width: auto;
    padding: 0 0 6px;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    flex: 1 1 0;
  }

  .menu-toggle {
    display: none;
  }

  .nav-overlay {
    display: none;
  }

  .language-switcher {
    grid-area: lang;
    justify-self: flex-start;
  }
}

@media (min-width: 768px) {
  .desktop-full-link {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: 1fr auto 1fr;
  }

  .brand {
    font-size: 1.05rem;
    letter-spacing: 0.06em;
  }

  .primary-nav {
    font-size: 1rem;
  }

  .primary-nav a {
    padding: 12px 0;
  }

  .store-links {
    gap: 14px;
  }

  .store-links img {
    height: 38px;
  }
}

@media (max-width: 520px) {
  .language-switcher select {
    font-size: 0.85rem;
  }

  .store-links img {
    height: 32px;
  }
}
