/* =============================================
   CRDGAME — страница испытаний
   /file/tests/tests.css
   PROFILE / FORUM STYLE REBUILD
   v20260717_tests_profile_forum_1
============================================= */

.crd-tests-body {
  background:
    radial-gradient(circle at 50% 0%, rgba(174, 137, 84, 0.08), transparent 42%),
    linear-gradient(180deg, #15110d 0%, #0d0c10 100%) !important;
}

.crd-tests-module,
.crd-tests-module * {
  box-sizing: border-box !important;
}

.crd-tests-module {
  --crd-tests-width: 2360px;
  --crd-tests-inner-width: 2100px;
  --crd-tests-side-gap: 80px;

  --crd-soft-bg-1: rgba(22, 18, 13, 0.72);
  --crd-soft-bg-2: rgba(10, 8, 6, 0.86);
  --crd-soft-line: rgba(174, 137, 84, 0.13);
  --crd-soft-line-hover: rgba(174, 137, 84, 0.34);
  --crd-soft-gold: #ae8954;
  --crd-soft-gold-light: #d7b06f;
  --crd-soft-title: #e4dbcd;
  --crd-soft-text: #c9c1b3;
  --crd-soft-muted: #8e8578;

  width: calc(100% - var(--crd-tests-side-gap)) !important;
  max-width: var(--crd-tests-width) !important;

  margin: 0 auto !important;
  padding: 0 0 96px !important;

  color: var(--crd-soft-text) !important;

  font-family: "Open Sans", Arial, sans-serif !important;
}

.crd-tests-content {
  width: 100% !important;
  max-width: 100% !important;

  float: none !important;

  margin: 0 auto !important;
  padding: 0 !important;
}

.crd-tests-section {
  width: 100%;
  box-sizing: border-box;
}

/* =============================================
   BREADCRUMBS
============================================= */

.crd-tests-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  width: 100%;
  max-width: var(--crd-tests-inner-width);

  margin: 0 auto 34px;
  padding: 14px 0;

  border-bottom: 1px solid rgba(174, 137, 84, 0.12);

  color: var(--crd-soft-muted);

  font-family: "Open Sans", Arial, sans-serif;
  font-size: 12px;
}

.crd-tests-breadcrumbs a {
  color: var(--crd-soft-muted) !important;
  text-decoration: none !important;
}

.crd-tests-breadcrumbs a:hover {
  color: var(--crd-soft-gold-light) !important;
}

.crd-tests-breadcrumbs strong,
.crd-tests-breadcrumbs span:last-child {
  color: var(--crd-soft-gold-light);
  font-weight: 600;
}

/* =============================================
   HEADING
============================================= */

.crd-tests-heading {
  position: relative;

  width: 100%;
  max-width: var(--crd-tests-inner-width);

  margin: 0 auto 42px;
  padding: 34px 42px;

  background:
    radial-gradient(circle at 0% 0%, rgba(174, 137, 84, 0.09), transparent 42%),
    linear-gradient(135deg, rgba(22, 18, 13, 0.62), rgba(10, 8, 6, 0.82));

  border: 0;
  border-top: 1px solid var(--crd-soft-line);
  border-bottom: 1px solid rgba(174, 137, 84, 0.10);

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.022);
}

.crd-tests-heading::before {
  content: "";

  position: absolute;
  left: 0;
  top: 0;

  width: 320px;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      rgba(174, 137, 84, 0.48),
      transparent
    );

  pointer-events: none;
}

.crd-tests-heading::after {
  display: none;
}

.crd-tests-label {
  display: inline-flex;
  align-items: center;

  width: fit-content;

  margin: 0 0 14px;
  padding: 0;

  border: 0;

  color: var(--crd-soft-gold-muted, #b99a68);

  font-family: "Russo One", "Open Sans", Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.crd-tests-heading h1 {
  margin: 0 0 16px !important;

  color: var(--crd-soft-title) !important;

  font-family: "Russo One", "Open Sans", Arial, sans-serif !important;
  font-size: clamp(34px, 2vw, 52px) !important;
  font-weight: 400 !important;
  line-height: 1.12 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
}

.crd-tests-heading p {
  width: 100%;
  max-width: 1100px;

  margin: 0;

  color: var(--crd-soft-text);

  font-size: clamp(15px, .78vw, 18px);
  line-height: 1.76;
}

/* =============================================
   TEST GRID
============================================= */

.crd-tests-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 1.5vw, 34px);

  width: 100%;
  max-width: var(--crd-tests-inner-width);

  margin: 0 auto;
}

/* =============================================
   TEST CARD
============================================= */

.crd-test-card {
  position: relative;

  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;

  min-height: 220px;

  padding: 28px 30px;

  color: var(--crd-soft-text) !important;
  text-decoration: none !important;

  background:
    radial-gradient(circle at 100% 0%, rgba(174, 137, 84, 0.055), transparent 38%),
    linear-gradient(135deg, rgba(22, 18, 13, 0.62), rgba(10, 8, 6, 0.84));

  border: 0;
  border-top: 1px solid rgba(174, 137, 84, 0.13);
  border-bottom: 1px solid rgba(174, 137, 84, 0.08);

  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.018);

  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.crd-test-card::before {
  content: "";

  position: absolute;
  left: 0;
  top: 0;

  width: 180px;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      rgba(174, 137, 84, 0.34),
      transparent
    );

  pointer-events: none;
}

.crd-test-card::after {
  display: none;
}

.crd-test-card:hover {
  transform: translateY(-3px);

  background:
    radial-gradient(circle at 100% 0%, rgba(174, 137, 84, 0.085), transparent 40%),
    linear-gradient(135deg, rgba(25, 20, 15, 0.72), rgba(10, 8, 6, 0.90));

  border-top-color: var(--crd-soft-line-hover);

  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.024);
}

.crd-test-card--elite::before {
  background:
    linear-gradient(
      90deg,
      rgba(215, 176, 111, 0.58),
      transparent
    );
}

/* Иконка без квадратной рамки */
.crd-test-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 96px;
  height: 96px;

  background: transparent;
  border: 0;
  box-shadow: none;
}

.crd-test-card__icon img {
  display: block;

  max-width: 96px;
  max-height: 96px;

  object-fit: contain;

  background: transparent;
  border: 0;
  box-shadow: none;

  filter:
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.38))
    saturate(.96);
}

.crd-test-card__kicker {
  margin: 0 0 9px;

  color: var(--crd-soft-gold-muted, #b99a68);

  font-family: "Russo One", "Open Sans", Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.crd-test-card h2 {
  margin: 0 0 12px !important;

  color: var(--crd-soft-title) !important;

  font-family: "Russo One", "Open Sans", Arial, sans-serif !important;
  font-size: clamp(20px, 1.05vw, 26px) !important;
  font-weight: 400 !important;
  line-height: 1.28 !important;
  letter-spacing: .7px !important;
  text-transform: uppercase !important;
}

.crd-test-card p {
  margin: 0;

  color: var(--crd-soft-text);

  font-size: clamp(13px, .72vw, 15px);
  line-height: 1.65;
}

.crd-test-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 18px;
}

.crd-test-card__meta span {
  display: inline-flex;
  align-items: center;

  min-height: 28px;

  padding: 5px 10px;

  color: var(--crd-soft-muted);

  background:
    linear-gradient(135deg, rgba(22, 18, 13, 0.48), rgba(10, 8, 6, 0.64));

  border-top: 1px solid rgba(174, 137, 84, 0.13);
  border-bottom: 1px solid rgba(174, 137, 84, 0.07);

  font-size: 11px;
  line-height: 1.2;
}

.crd-test-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 104px;
  min-height: 42px;

  padding: 0 22px;

  color: #14110d;

  background: var(--crd-soft-gold-light);

  border: 1px solid rgba(215, 176, 111, 0.72);

  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);

  font-family: "Russo One", "Open Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1.4px;
  text-transform: uppercase;

  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease;
}

.crd-test-card:hover .crd-test-card__action {
  background: #f0d194;
  border-color: rgba(240, 209, 148, 0.80);
  color: #0d0b08;
}

/* =============================================
   NOTE
============================================= */

.crd-tests-note {
  position: relative;

  width: 100%;
  max-width: var(--crd-tests-inner-width);

  margin: 34px auto 0;
  padding: 22px 28px;

  color: var(--crd-soft-text);

  background:
    radial-gradient(circle at 0% 0%, rgba(174, 137, 84, 0.075), transparent 42%),
    linear-gradient(135deg, rgba(22, 18, 13, 0.62), rgba(10, 8, 6, 0.80));

  border: 0;
  border-top: 1px solid var(--crd-soft-line);
  border-bottom: 1px solid rgba(174, 137, 84, 0.10);

  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.022);

  font-size: clamp(14px, .74vw, 16px);
  line-height: 1.7;
}

.crd-tests-note::before {
  content: "";

  position: absolute;
  left: 0;
  top: 0;

  width: 260px;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      rgba(174, 137, 84, 0.48),
      transparent
    );

  pointer-events: none;
}

.crd-tests-note strong {
  color: var(--crd-soft-gold-light);
}

/* =============================================
   OPEN TEST BODY
============================================= */

.crd-test-body {
  position: relative;

  width: 100%;
  max-width: var(--crd-tests-inner-width);

  margin: 0 auto;
  padding: 34px 40px;

  color: var(--crd-soft-text);

  background:
    radial-gradient(circle at 0% 0%, rgba(174, 137, 84, 0.07), transparent 42%),
    linear-gradient(135deg, rgba(22, 18, 13, 0.66), rgba(10, 8, 6, 0.86));

  border: 0;
  border-top: 1px solid rgba(174, 137, 84, 0.14);
  border-bottom: 1px solid rgba(174, 137, 84, 0.10);

  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.020);
}

.crd-test-body::before {
  content: "";

  position: absolute;
  left: 0;
  top: 0;

  width: 280px;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      rgba(174, 137, 84, 0.46),
      transparent
    );

  pointer-events: none;
}

/* =============================================
   OPEN TEST READABILITY
============================================= */

.crd-test-body,
.crd-test-body p,
.crd-test-body div,
.crd-test-body span,
.crd-test-body td,
.crd-test-body th,
.crd-test-body li {
  color: var(--crd-soft-text) !important;
}

.crd-test-body table {
  width: 100% !important;

  background: transparent !important;

  border-collapse: collapse !important;
}

.crd-test-body td,
.crd-test-body th {
  padding: 12px 14px !important;

  color: var(--crd-soft-text) !important;

  background: transparent !important;

  border-color: rgba(174, 137, 84, 0.10) !important;
}

.crd-test-body h1,
.crd-test-body h2,
.crd-test-body h3,
.crd-test-body h4,
.crd-test-body .eTitle,
.crd-test-body .test-title,
.crd-test-body .testName,
.crd-test-body .poll-title {
  color: var(--crd-soft-title) !important;

  font-family: "Russo One", "Open Sans", Arial, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;

  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65) !important;
}

.crd-test-body b,
.crd-test-body strong,
.crd-test-body label,
.crd-test-body .question,
.crd-test-body .question-title,
.crd-test-body .test-question,
.crd-test-body .testQuestion {
  color: #f0e7d8 !important;
}

.crd-test-body small,
.crd-test-body .comm,
.crd-test-body .gray,
.crd-test-body .hint,
.crd-test-body .test-info {
  color: var(--crd-soft-muted) !important;
}

.crd-test-body label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;

  line-height: 1.5 !important;

  cursor: pointer !important;
}

.crd-test-body label:hover {
  color: var(--crd-soft-gold-light) !important;
}

.crd-test-body input[type="radio"],
.crd-test-body input[type="checkbox"] {
  accent-color: var(--crd-soft-gold) !important;
  margin-right: 7px !important;
}

.crd-test-body hr {
  border: none !important;
  border-top: 1px solid rgba(174, 137, 84, 0.18) !important;

  margin: 24px 0 !important;
}

/* =============================================
   BUTTONS INSIDE TEST
============================================= */

.crd-test-body input[type="submit"],
.crd-test-body input[type="button"],
.crd-test-body button {
  min-height: 42px !important;

  padding: 0 24px !important;

  color: #14110d !important;

  background: var(--crd-soft-gold-light) !important;

  border: 1px solid rgba(215, 176, 111, 0.72) !important;
  border-radius: 0 !important;

  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;

  font-family: "Russo One", "Open Sans", Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 1.4px !important;
  text-transform: uppercase !important;

  cursor: pointer !important;

  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease !important;
}

.crd-test-body input[type="submit"]:hover,
.crd-test-body input[type="button"]:hover,
.crd-test-body button:hover {
  transform: translateY(-2px) !important;

  background: #f0d194 !important;
  border-color: rgba(240, 209, 148, 0.80) !important;
}

/* Убираем стандартные лишние линии внутри секции */
.crd-tests-section > hr {
  display: none !important;
}

/* =============================================
   ULTRAWIDE
============================================= */

@media (min-width: 2600px) {
  .crd-tests-module {
    width: calc(100% - 80px) !important;
    max-width: 2440px !important;
  }

  .crd-tests-heading,
  .crd-tests-grid,
  .crd-tests-note,
  .crd-test-body,
  .crd-tests-breadcrumbs {
    max-width: 2280px;
  }
}

/* =============================================
   RESPONSIVE
============================================= */

@media (min-width: 769px) and (max-width: 1320px) {
  .crd-tests-module {
    --crd-tests-side-gap: 32px;

    width: calc(100% - 32px) !important;
    max-width: calc(100vw - 32px) !important;

    padding-bottom: 76px !important;
  }

  .crd-test-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .crd-test-card__action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 1000px) {
  .crd-tests-grid {
    grid-template-columns: 1fr;
  }

  .crd-test-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .crd-test-card__action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .crd-tests-module {
    width: 100% !important;
    max-width: 100% !important;

    padding: 0 14px 48px !important;
  }

  .crd-tests-breadcrumbs {
    margin-bottom: 24px;
  }

  .crd-tests-heading {
    padding: 26px 20px;
  }

  .crd-tests-heading h1 {
    font-size: 25px !important;
  }

  .crd-tests-heading p {
    font-size: 14px;
    line-height: 1.68;
  }

  .crd-test-card {
    grid-template-columns: 1fr;

    padding: 24px 18px;

    text-align: center;
  }

  .crd-test-card__icon {
    margin: 0 auto;
  }

  .crd-test-card__meta {
    justify-content: center;
  }

  .crd-test-body {
    padding: 22px 16px;
  }
}
/* ==========================================================================
   CRDGAME TESTS — SMART HERO REAL FIX
   v20260717_tests_smart_hero_real_1

   Только для страницы испытаний:
   - убирает верхний зазор между меню и hero
   - возвращает нормальную высоту hero
   - запрещает сжатие картинки
========================================================================== */

html#root body:has(.crd-tests-module),
html body:has(.crd-tests-module) {
  --crd-smart-hero-top: 0px !important;
  --crd-smart-hero-h: 520px !important;
  --crd-smart-hero-bottom: -118px !important;
  --crd-smart-hero-y: center !important;
}

/* сам контейнер hero */
html#root body:has(.crd-tests-module) .header-logo-center.crd-smart-hero-logo,
html body:has(.crd-tests-module) .header-logo-center.crd-smart-hero-logo {
  position: relative !important;

  display: block !important;

  width: 100% !important;
  max-width: 2560px !important;
  min-width: 0 !important;

  height: 520px !important;
  min-height: 520px !important;
  max-height: 520px !important;

  margin-top: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: -118px !important;

  padding: 0 !important;

  top: auto !important;
  left: auto !important;
  right: auto !important;

  overflow: hidden !important;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;

  line-height: 0 !important;
  text-align: center !important;

  transform: none !important;

  box-sizing: border-box !important;
}

/* ссылка внутри hero */
html#root body:has(.crd-tests-module) .header-logo-center.crd-smart-hero-logo > a,
html#root body:has(.crd-tests-module) .header-logo-center.crd-smart-hero-logo > a.no-bg,
html body:has(.crd-tests-module) .header-logo-center.crd-smart-hero-logo > a,
html body:has(.crd-tests-module) .header-logo-center.crd-smart-hero-logo > a.no-bg {
  position: relative !important;

  display: block !important;

  width: 100% !important;
  max-width: 100% !important;

  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden !important;

  background: transparent !important;
  background-image: none !important;

  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;

  line-height: 0 !important;
  font-size: 0 !important;

  transform: none !important;

  box-sizing: border-box !important;
}

/* картинка — НЕ сжимать, только cover */
html#root body:has(.crd-tests-module) .header-logo-center.crd-smart-hero-logo img.site-logo-img,
html body:has(.crd-tests-module) .header-logo-center.crd-smart-hero-logo img.site-logo-img {
  position: absolute !important;
  inset: 0 !important;

  display: block !important;

  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;

  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 0 !important;

  object-fit: cover !important;
  object-position: center center !important;

  background: transparent !important;

  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;

  transform: none !important;

  filter: brightness(.86) contrast(1.04) !important;

  opacity: 1 !important;

  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 62%,
    rgba(0,0,0,.88) 74%,
    rgba(0,0,0,.46) 88%,
    rgba(0,0,0,0) 100%
  ) !important;

  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 62%,
    rgba(0,0,0,.88) 74%,
    rgba(0,0,0,.46) 88%,
    rgba(0,0,0,0) 100%
  ) !important;

  box-sizing: border-box !important;
}

/* чтобы контент тестов заходил под hero как на остальных страницах */
html#root body:has(.crd-tests-module) .crd-tests-module,
html body:has(.crd-tests-module) .crd-tests-module {
  position: relative !important;
  z-index: 2 !important;

  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* планшеты */
@media (max-width: 1180px) {
  html#root body:has(.crd-tests-module),
  html body:has(.crd-tests-module) {
    --crd-smart-hero-h: 420px !important;
  }

  html#root body:has(.crd-tests-module) .header-logo-center.crd-smart-hero-logo,
  html body:has(.crd-tests-module) .header-logo-center.crd-smart-hero-logo {
    height: 420px !important;
    min-height: 420px !important;
    max-height: 420px !important;
  }
}

/* мобилка */
@media (max-width: 768px) {
  html#root body:has(.crd-tests-module),
  html body:has(.crd-tests-module) {
    --crd-smart-hero-h: 270px !important;
    --crd-smart-hero-bottom: -72px !important;
  }

  html#root body:has(.crd-tests-module) .header-logo-center.crd-smart-hero-logo,
  html body:has(.crd-tests-module) .header-logo-center.crd-smart-hero-logo {
    height: 270px !important;
    min-height: 270px !important;
    max-height: 270px !important;

    margin-bottom: -72px !important;
  }
}