* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }

    body {
      background: #ffffff;
    }

    .quiz-container {
      width: 100%;
      max-width: 900px;
      margin: 20px auto;
      background: #ffffff;
      border-radius: 12px;
      box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
      padding: 24px 32px 32px;
 
    }

    /* --- Общие элементы --- */

    .hidden {
      display: none;
    }

    .quiz-header {
      margin-bottom: 16px;
    }

    .question-counter {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 8px;
    }

    .progress-bar {
      width: 100%;
      height: 8px;
      background: #e5e7eb;
      border-radius: 999px;
      overflow: hidden;
    }

    .progress-bar__fill {
      height: 100%;
      width: 0;
      background: #22c55e;
      transition: width 0.25s ease;
    }

    .quiz-image-wrapper {
      width: 100%;
      max-width: 700px;
      max-height: 450px;
      overflow: hidden;
      margin: 16px auto 20px;
      border-radius: 10px;
      background: #000;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .quiz-image-wrapper img {
      width: 100%;
      height: auto;
      display: block;
      object-fit: cover;
    }

    .quiz-question-text {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 16px;
    }

    .quiz-options {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 12px;
      margin-bottom: 20px;
    }

    .quiz-option {
      border-radius: 10px;
      border: 1px solid #e5e7eb;
      padding: 12px 16px;
      background: #f9fafb;
      text-align: center;
      cursor: pointer;
      font-size: 15px;
      transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease,
        border-color 0.15s ease;
    }

    .quiz-option:hover {
      background: #eef2ff;
      transform: translateY(-1px);
      box-shadow: 0 4px 8px rgba(15, 23, 42, 0.12);
    }

    .quiz-option.selected {
      background: #e0f2fe;
      border-color: #0ea5e9;
      box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.3);
    }

    .quiz-button-primary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 10px 22px;
      border-radius: 999px;
      border: none;
      background: #22c55e;
      color: #ffffff;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
    }

    .quiz-button-primary:disabled {
      background: #9ca3af;
      cursor: not-allowed;
      box-shadow: none;
      transform: none;
    }

    .quiz-button-primary:not(:disabled):hover {
      background: #16a34a;
      box-shadow: 0 6px 14px rgba(22, 163, 74, 0.35);
      transform: translateY(-1px);
    }

    .quiz-footer {
      display: flex;
      justify-content: flex-end;
    }

    /* --- Экран результата --- */

    .result-layout {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      margin-bottom: 24px;
      align-items: center;
    }

    .result-image-wrapper {
      flex: 0 0 140px;
      max-width: 180px;
    }

    .result-image-wrapper img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 10px;
    }

    .result-text-blocks {
      flex: 1 1 260px;
      min-width: 0;
    }

    .result-main-title {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 6px;
    }

    .result-subtitle {
      font-size: 14px;
      color: #4b5563;
      line-height: 1.5;
    }

    .answers-summary-title {
      margin-bottom: 8px;
      font-weight: 600;
      font-size: 15px;
    }

    .answers-summary-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 24px;
    }

    .answer-pill {
      min-width: 32px;
      padding: 6px 10px;
      border-radius: 6px;
      text-align: center;
      font-size: 13px;
      font-weight: 600;
      color: #ffffff;
    }

    .answer-pill.correct {
      background: #22c55e;
    }

    .answer-pill.incorrect {
      background: #ef4444;
    }

    .result-button-row {
      display: flex;
      justify-content: center;
    }

    @media (max-width: 640px) {
      body {
        padding: 16px;
      }

      .quiz-container {
        padding: 18px 16px 20px;
      }

      .quiz-image-wrapper {
        max-height: 260px;
      }
    }