*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #1a56db;
  --color-primary-light: #3b82f6;
  --color-primary-dark: #1e40af;
  --color-primary-bg: #eff6ff;
  --color-accent: #0ea5e9;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-success: #22c55e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Отступ для фиксированного прогресс-бара 
  padding-top: 10px !important; */
}

/* =========================================
   HEADER
   ========================================= */
.header {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-accent) 100%);
  color: white;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}

.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  margin-bottom: 1.25rem;
  font-size: 1.8rem;
}

.header h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.header h1 span {
  display: block;
  font-size: 0.5em;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 0.35rem;
  letter-spacing: 0;
  line-height: 1.4;
}

.header-subtitle {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.55;
}

.header-subtitle a {
  color: #bfdbfe;
  text-decoration: underline;
  text-decoration-color: rgba(191, 219, 254, 0.4);
  text-underline-offset: 2px;
}

.header-subtitle a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.wave-separator {
  position: relative;
  margin-top: -1px;
  background: var(--color-bg);
}

.wave-separator svg {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================
   MAIN CONTENT & SEO
   ========================================= */
.main {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.seo-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.seo-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.seo-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 1.5rem 0 0.75rem;
}

.seo-content p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.seo-content ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem 0;
}

.seo-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.seo-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.seo-content strong {
  color: var(--color-text);
  font-weight: 600;
}

/* =========================================
   FEATURES & INFO CARDS
   ========================================= */
.features-section {
  margin-bottom: 2.5rem;
}

.features-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.features-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-success);
  font-weight: 700;
  font-size: 0.9rem;
}

.features-list li strong {
  color: var(--color-text);
  font-weight: 600;
}

.wish-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-top: 1.25rem;
  font-style: italic;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: box-shadow 0.2s;
}

.info-card:hover {
  box-shadow: var(--shadow-sm);
}

.info-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.info-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.info-card p {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* =========================================
   TEST CARD & SELECTS
   ========================================= */
.test-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 0;
}

.test-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.test-card-title .icon {
  font-size: 1.2rem;
}

/* Mobile-first grid for selects */
.selects-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.select-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.select-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.select-group select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
}

.select-group select:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.select-group select:hover {
  border-color: var(--color-text-muted);
}

.or-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0;
}

.or-divider span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 2px 8px rgba(26, 86, 219, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-start::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.btn-start:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.35);
}

.btn-start:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(26, 86, 219, 0.3);
}

.btn-start:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-start .btn-icon {
  font-size: 1.1rem;
}

/* =========================================
   BREADCRUMBS & FOOTER
   ========================================= */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.breadcrumbs a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span[aria-current="page"] {
  color: var(--color-text-secondary);
}

.footer {
  border-top: 1px solid var(--color-border-light);
  padding: 1.5rem;
  text-align: center;
  background: var(--color-surface);
  margin-top: 1.5rem;
  border-radius: 12px 12px 0 0;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.footer-author {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.footer-author a {
  color: var(--color-primary-light);
  text-decoration: none;
}

.footer-author a:hover {
  text-decoration: underline;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1rem;
}

.footer-tag {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--color-border-light);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
  color: #ffffff;
  overflow: hidden;
  border-radius: var(--radius, 12px);
  margin-bottom: 2rem;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.92) 0%, rgba(30, 58, 95, 0.85) 50%, rgba(30, 58, 95, 0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem 2.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
  max-width: 650px;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
  opacity: 0.92;
  max-width: 600px;
}

.hero-note {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  opacity: 0.88;
  padding-left: 1rem;
  border-left: 3px solid rgba(255, 255, 255, 0.35);
  max-width: 600px;
}

.hero-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
  gap: 12px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.01em;
}

.hero-cta:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  text-decoration: none;
}

.hero-stat {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  background: rgba(255, 255, 255, 0.97);
  color: #1e3a5f;
  padding: 1rem 1.4rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 3;
  backdrop-filter: blur(10px);
  text-align: center;
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.85;
  line-height: 1.3;
}

/* =========================================
   PROGRESS BAR & COUNTER
   ========================================= */
#compact-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 8px 16px;
  margin: 0;
}

.cp-track {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.cp-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.cp-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

.cp-current {
  font-weight: 600;
  color: #3b82f6;
}

.compact-counter {
  margin: 1.5rem 0 0.5rem 0;
  padding: 0.5rem 0;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

.compact-counter-text {
  font-size: 0.8rem;
  color: #64748b;
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.compact-counter-text strong {
  color: #334155;
  font-weight: 600;
}

/* =========================================
   MENU CARDS
   ========================================= */
.menu-card:hover {
  border-color: var(--color-primary-light) !important;
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-1px);
}

.menu-card-current {
  cursor: default !important;
  pointer-events: none;
}

.menu-card-current:hover {
  transform: none !important;
  box-shadow: var(--shadow-sm) !important;
}

.menu-card:focus-visible {
  outline: 2px solid var(--color-primary, #3b82f6);
  outline-offset: 2px;
}

/* =========================================
   BACK TO TOP BUTTON
   ========================================= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: #007bff;
  color: #ffffff;
  border-radius: 50%;
  text-align: center;
  line-height: 48px;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
  z-index: 9999;
}

.back-to-top:hover {
  background-color: #0056b3;
  transform: translateY(0);
  color: #ffffff;
  text-decoration: none;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================================
   JET SKI QUIZ APP (Pure CSS Logic)
   ========================================= */
#jet-ski-quiz-app,
#jet-ski-quiz-app *,
#jet-ski-quiz-app *::before,
#jet-ski-quiz-app *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#jet-ski-quiz-app {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f0f4f8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  color: #1a1a2e;
  -webkit-font-smoothing: antialiased;
}

#jet-ski-quiz-app .jsq-container {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#jet-ski-quiz-app .jsq-hidden-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

#jet-ski-quiz-app .jsq-header {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

#jet-ski-quiz-app .jsq-header__type-label {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.3px;
}

#jet-ski-quiz-app .jsq-card {
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

#jet-ski-quiz-app .jsq-card__top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
}

#jet-ski-quiz-app .jsq-card__question-label {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
}

#jet-ski-quiz-app .jsq-card__tag {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  background-color: #f3f4f6;
  padding: 4px 10px;
  border-radius: 6px;
}

#jet-ski-quiz-app .jsq-card__image-wrapper {
  padding: 0 20px 16px;
}

#jet-ski-quiz-app .jsq-card__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

#jet-ski-quiz-app .jsq-card__text {
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.55;
  color: #374151;
}

#jet-ski-quiz-app .jsq-options {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  position: relative;
}

#jet-ski-quiz-app .jsq-option {
  position: relative;
}

#jet-ski-quiz-app .jsq-option:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background-color: #e5e7eb;
  pointer-events: none;
}

#jet-ski-quiz-app .jsq-option-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: left;
  width: 100%;
  font-size: 15px;
  color: #374151;
  line-height: 1.4;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#jet-ski-quiz-app .jsq-option-label:active {
  background-color: #f3f4f6;
}

#jet-ski-quiz-app .jsq-option__number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e5e7eb;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, color 0.25s ease;
}

#jet-ski-quiz-app .jsq-option__label {
  flex: 1;
}

#jet-ski-quiz-app .jsq-option__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: scale(0.7);
}

/* Selection states */
#jet-ski-quiz-app #opt1:checked ~ .jsq-options .jsq-option:nth-child(1) .jsq-option-label,
#jet-ski-quiz-app #opt2:checked ~ .jsq-options .jsq-option:nth-child(2) .jsq-option-label,
#jet-ski-quiz-app #opt3:checked ~ .jsq-options .jsq-option:nth-child(3) .jsq-option-label,
#jet-ski-quiz-app #opt4:checked ~ .jsq-options .jsq-option:nth-child(4) .jsq-option-label {
  background-color: #eef2ff;
}

#jet-ski-quiz-app #opt1:checked ~ .jsq-options .jsq-option:nth-child(1) .jsq-option__number,
#jet-ski-quiz-app #opt2:checked ~ .jsq-options .jsq-option:nth-child(2) .jsq-option__number,
#jet-ski-quiz-app #opt3:checked ~ .jsq-options .jsq-option:nth-child(3) .jsq-option__number,
#jet-ski-quiz-app #opt4:checked ~ .jsq-options .jsq-option:nth-child(4) .jsq-option__number {
  background-color: #3b82f6;
  color: #ffffff;
}

#jet-ski-quiz-app #opt1:checked ~ .jsq-options .jsq-option:nth-child(1) .jsq-option__label,
#jet-ski-quiz-app #opt2:checked ~ .jsq-options .jsq-option:nth-child(2) .jsq-option__label,
#jet-ski-quiz-app #opt3:checked ~ .jsq-options .jsq-option:nth-child(3) .jsq-option__label,
#jet-ski-quiz-app #opt4:checked ~ .jsq-options .jsq-option:nth-child(4) .jsq-option__label {
  color: #1e40af;
  font-weight: 600;
}

#jet-ski-quiz-app #opt1:checked ~ .jsq-options .jsq-option:nth-child(1) .jsq-option__check,
#jet-ski-quiz-app #opt2:checked ~ .jsq-options .jsq-option:nth-child(2) .jsq-option__check,
#jet-ski-quiz-app #opt3:checked ~ .jsq-options .jsq-option:nth-child(3) .jsq-option__check,
#jet-ski-quiz-app #opt4:checked ~ .jsq-options .jsq-option:nth-child(4) .jsq-option__check {
  opacity: 1;
  transform: scale(1);
}

/* Correct answer highlight (option 4) */
#jet-ski-quiz-app #opt4:checked ~ .jsq-options .jsq-option:nth-child(4) .jsq-option-label {
  background-color: #ecfdf5;
}

#jet-ski-quiz-app #opt4:checked ~ .jsq-options .jsq-option:nth-child(4) .jsq-option__number {
  background-color: #10b981;
  color: #ffffff;
}

#jet-ski-quiz-app #opt4:checked ~ .jsq-options .jsq-option:nth-child(4) .jsq-option__label {
  color: #065f46;
  font-weight: 600;
}

/* Wrong selection: highlight correct answer in green */
#jet-ski-quiz-app #opt1:checked ~ .jsq-options .jsq-option:nth-child(4) .jsq-option-label,
#jet-ski-quiz-app #opt2:checked ~ .jsq-options .jsq-option:nth-child(4) .jsq-option-label,
#jet-ski-quiz-app #opt3:checked ~ .jsq-options .jsq-option:nth-child(4) .jsq-option-label {
  background-color: #ecfdf5;
  opacity: 0.9;
}

#jet-ski-quiz-app #opt1:checked ~ .jsq-options .jsq-option:nth-child(4) .jsq-option__number,
#jet-ski-quiz-app #opt2:checked ~ .jsq-options .jsq-option:nth-child(4) .jsq-option__number,
#jet-ski-quiz-app #opt3:checked ~ .jsq-options .jsq-option:nth-child(4) .jsq-option__number {
  background-color: #10b981;
  color: #ffffff;
}

#jet-ski-quiz-app #opt1:checked ~ .jsq-options .jsq-option:nth-child(4) .jsq-option__label,
#jet-ski-quiz-app #opt2:checked ~ .jsq-options .jsq-option:nth-child(4) .jsq-option__label,
#jet-ski-quiz-app #opt3:checked ~ .jsq-options .jsq-option:nth-child(4) .jsq-option__label {
  color: #065f46;
  font-weight: 600;
}

/* Wrong selection: red for wrong pick */
#jet-ski-quiz-app #opt1:checked ~ .jsq-options .jsq-option:nth-child(1) .jsq-option-label,
#jet-ski-quiz-app #opt2:checked ~ .jsq-options .jsq-option:nth-child(2) .jsq-option-label,
#jet-ski-quiz-app #opt3:checked ~ .jsq-options .jsq-option:nth-child(3) .jsq-option-label {
  background-color: #fef2f2;
}

#jet-ski-quiz-app #opt1:checked ~ .jsq-options .jsq-option:nth-child(1) .jsq-option__number,
#jet-ski-quiz-app #opt2:checked ~ .jsq-options .jsq-option:nth-child(2) .jsq-option__number,
#jet-ski-quiz-app #opt3:checked ~ .jsq-options .jsq-option:nth-child(3) .jsq-option__number {
  background-color: #ef4444;
  color: #ffffff;
}

#jet-ski-quiz-app #opt1:checked ~ .jsq-options .jsq-option:nth-child(1) .jsq-option__label,
#jet-ski-quiz-app #opt2:checked ~ .jsq-options .jsq-option:nth-child(2) .jsq-option__label,
#jet-ski-quiz-app #opt3:checked ~ .jsq-options .jsq-option:nth-child(3) .jsq-option__label {
  color: #991b1b;
  font-weight: 600;
}

/* Disable re-selection via overlay */
#jet-ski-quiz-app .jsq-options-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 5;
}

#jet-ski-quiz-app #opt1:checked ~ .jsq-options .jsq-options-overlay,
#jet-ski-quiz-app #opt2:checked ~ .jsq-options .jsq-options-overlay,
#jet-ski-quiz-app #opt3:checked ~ .jsq-options .jsq-options-overlay,
#jet-ski-quiz-app #opt4:checked ~ .jsq-options .jsq-options-overlay {
  pointer-events: auto;
}

/* Feedback */
#jet-ski-quiz-app .jsq-feedback {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease;
}

#jet-ski-quiz-app .jsq-feedback__inner {
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

#jet-ski-quiz-app .jsq-feedback__title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

#jet-ski-quiz-app #opt4:checked ~ .jsq-feedback {
  max-height: 200px;
  opacity: 1;
}

#jet-ski-quiz-app #opt4:checked ~ .jsq-feedback .jsq-feedback__inner {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

#jet-ski-quiz-app #opt1:checked ~ .jsq-feedback,
#jet-ski-quiz-app #opt2:checked ~ .jsq-feedback,
#jet-ski-quiz-app #opt3:checked ~ .jsq-feedback {
  max-height: 200px;
  opacity: 1;
}

#jet-ski-quiz-app #opt1:checked ~ .jsq-feedback .jsq-feedback__inner,
#jet-ski-quiz-app #opt2:checked ~ .jsq-feedback .jsq-feedback__inner,
#jet-ski-quiz-app #opt3:checked ~ .jsq-feedback .jsq-feedback__inner {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

#jet-ski-quiz-app .jsq-btn-next {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#jet-ski-quiz-app .jsq-btn-next:hover {
  background-color: #2563eb;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

#jet-ski-quiz-app .jsq-btn-next:active {
  transform: scale(0.97);
}

/* =========================================
   RESPONSIVE / MEDIA QUERIES
   ========================================= */
@media (max-width: 768px) {
  .hero-content {
    padding: 1rem 1.5rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-section {
    min-height: 380px;
  }
  .hero-stat-value {
    font-size: 1.5rem;
  }
  .hero-cta {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 2rem 1.25rem;
  }

  .header-icon {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .test-card {
    padding: 1.5rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .seo-content {
    padding: 1.25rem;
  }

  .seo-content h2 {
    font-size: 1.2rem;
  }

  .seo-content h3 {
    font-size: 1rem;
  }

  /* Принудительный одноколоночный грид для меню на мобильных */
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .select-group select {
    width: 100%;
    min-width: unset !important;
    max-width: 100% !important;
  }
  
  #questionsLimit {
    text-align: left;
    padding-left: 1rem;
    padding-right: 2.5rem;
  }
}

@media (max-width: 360px) {
  #jet-ski-quiz-app {
    padding: 10px;
  }
  #jet-ski-quiz-app .jsq-card__top-bar {
    padding: 12px 16px 10px;
  }
  #jet-ski-quiz-app .jsq-card__image-wrapper {
    padding: 0 16px 14px;
  }
  #jet-ski-quiz-app .jsq-card__text {
    padding: 0 16px 16px;
  }
  #jet-ski-quiz-app .jsq-option-label {
    padding: 14px 16px;
  }
}

@media (min-width: 641px) {
  .selects-row {
    grid-template-columns: 1fr auto 1fr auto 75px;
    gap: 0.75rem;
  }
  
  #questionsLimit {
    width: 75px;
    text-align: center;
    padding-left: 0.25rem;
    padding-right: 1.75rem;
  }
}

/* Кнопка PDF — желтоватая подсветка в том же стиле */
.hero-cta--pdf {
  background: rgba(255, 220, 100, 0.15);
  border-color: rgba(255, 200, 50, 0.4);
  box-shadow: 0 4px 14px rgba(255, 180, 0, 0.1);
}

.hero-cta--pdf:hover {
  background: rgba(255, 220, 100, 0.25);
  border-color: rgba(255, 200, 50, 0.6);
  box-shadow: 0 8px 24px rgba(255, 180, 0, 0.2);
}

/* Иконка внутри кнопки */
.hero-cta .btn-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Мобильные устройства — кнопки друг под другом */
@media (max-width: 480px) {
  .hero-cta-wrap {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .hero-cta,
  .hero-cta--pdf {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}