@import url("/vendor/css/detail-page.css?v=2");

/* Exact donor logo for every detail-page header and footer. */
.detail-logo {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: 40px;
  gap: 10px;
  overflow: visible;
  background: none;
  color: #fff;
  font-size: 0;
  text-decoration: none;
}

.detail-logo::before {
  content: "";
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  background: url("/neiroset/assets/images/donor-header-mark.svg") center / contain no-repeat;
}

.detail-logo::after {
  content: "Нейросеть Онлайн";
  color: #fff;
  font-family: "Myriad Pro", Montserrat, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* Shared fixed-header contrast for every autonomous detail page. */
.detail-header__bar {
  background: rgba(11, 11, 14, .96);
  border-color: rgba(255, 255, 255, .18);
  box-shadow:
    0 14px 38px rgba(0, 0, 0, .58),
    0 0 0 1px rgba(121, 92, 255, .08);
  backdrop-filter: blur(24px) saturate(125%);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
}

.detail-footer {
  isolation: isolate;
  padding: 36px 0;
  background: #050506 !important;
  border-top: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(121, 92, 255, .08);
}

.detail-footer::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 46% 22px at 50% 0, rgba(121, 92, 255, .2), transparent 78%);
}

.detail-footer > .detail-container {
  position: relative;
  z-index: 1;
}

.detail-footer__grid {
  gap: 28px 24px;
}

.detail-footer__grid > div:first-child p {
  margin: 12px 0 16px;
}

.detail-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 11px;
  background: #fff;
  color: #17131d;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease;
}

.detail-footer__cta:hover {
  background: #eeeaf4;
  transform: translateY(-1px);
}

.detail-footer__cta:focus-visible {
  outline: 3px solid rgba(185, 137, 255, .72);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .detail-header__bar {
    padding: 0 6px 0 10px;
  }

  .detail-logo {
    height: 30px;
    gap: 6px;
  }

  .detail-logo::before {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }

  .detail-logo::after {
    font-size: 13px;
  }

  .detail-actions {
    gap: 4px;
  }

  .detail-btn {
    padding-inline: 9px;
    font-size: 12px;
  }

  .detail-footer {
    padding: 28px 0;
  }

  .detail-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px 16px;
  }

  .detail-footer__grid > div:first-child p {
    margin: 10px 0 14px;
  }

  .detail-footer h2 {
    margin-bottom: 10px;
  }

  .detail-footer ul {
    gap: 7px;
  }

  .detail-legal {
    margin-top: 22px;
  }
}

@media (max-width: 360px) {
  .detail-header__bar {
    padding-inline: 7px 5px;
  }

  .detail-logo {
    gap: 5px;
  }

  .detail-logo::before {
    flex-basis: 21px;
    width: 21px;
    height: 21px;
  }

  .detail-logo::after {
    font-size: 11.5px;
  }

  .detail-btn {
    padding-inline: 7px;
    font-size: 11.5px;
  }
}

@media (max-width: 340px) {
  .detail-logo {
    gap: 4px;
  }

  .detail-logo::before {
    flex-basis: 20px;
    width: 20px;
    height: 20px;
  }

  .detail-logo::after,
  .detail-btn {
    font-size: 11px;
  }

  .detail-btn {
    padding-inline: 6px;
  }
}

/* Shared detail-page accessibility without enlarging the visible 40px pills. */
.detail-btn {
  position: relative;
  isolation: isolate;
  height: 44px;
  min-height: 44px;
  padding-block: 2px;
  border: 0;
  background: none;
}

.detail-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2px 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50px;
  background: #171717;
}

.detail-btn--primary::before {
  border: 0;
  background: var(--gradient);
}

.detail-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.detail-legal {
  color: #aaa5b0;
}

/* 2026-08-30: shared light product design for all autonomous detail pages. */
:root {
  --bg: #fff;
  --surface: #f4f6fb;
  --surface2: #e9edff;
  --line: #dfe3ec;
  --text: #1f1f1f;
  --muted: #606774;
  --violet: #1252d3;
  --gradient: linear-gradient(135deg, #1252d3, #246be8);
  --radius: 18px;
}

html,
body {
  background: #fff;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.detail-container {
  width: min(calc(100% - 48px), 1160px);
}

.detail-header {
  inset: 0 0 auto;
  height: 76px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(31,31,31,.06);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.detail-header__bar {
  height: 76px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.detail-logo {
  gap: 9px;
  color: var(--text);
}

.detail-logo::before {
  flex-basis: 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background-color: #1252d3;
  background-size: 23px 23px;
  box-shadow: 0 8px 18px rgba(18,82,211,.22);
}

.detail-logo::after {
  color: var(--text);
  font-family: inherit;
  font-size: 19px;
}

.detail-nav a {
  color: #4e5562;
  font-weight: 550;
}

.detail-nav a:hover {
  color: #1252d3;
}

.detail-btn {
  height: 44px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
}

.detail-btn::before {
  inset: 0;
  border: 0;
  border-radius: 8px;
  background: #f2f4f8;
}

.detail-btn--primary {
  color: #fff;
}

.detail-btn--primary::before {
  background: #1252d3;
  box-shadow: 0 10px 24px rgba(18,82,211,.22);
}

.detail-btn--primary:hover::before {
  background: #0c3da7;
}

.detail-main {
  padding-top: 76px;
  background: #fff;
}

.detail-hero {
  position: relative;
  padding: 66px 0 78px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 74%, rgba(255,114,181,.26), transparent 24%),
    radial-gradient(circle at 92% 32%, rgba(99,226,129,.24), transparent 24%),
    linear-gradient(180deg, #e9edff, #f3f5ff);
}

.detail-hero::before,
.detail-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.detail-hero::before {
  left: -90px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 44% 56% 58% 42% / 38% 44% 56% 62%;
  background: linear-gradient(145deg, #ff73b8, #ffb4df 48%, #7857ff);
  box-shadow: inset 18px 20px 38px rgba(255,255,255,.34);
  transform: rotate(-16deg);
}

.detail-hero::after {
  right: -70px;
  top: 100px;
  width: 190px;
  height: 190px;
  border-radius: 38% 62% 45% 55% / 56% 44% 56% 44%;
  background: linear-gradient(150deg, #b8ff47, #52d981 44%, #18a7ff);
  box-shadow: inset 18px 18px 38px rgba(255,255,255,.38);
  transform: rotate(22deg);
}

.detail-hero .detail-container {
  position: relative;
  z-index: 2;
}

.detail-hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr);
  gap: 52px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

h1 {
  color: var(--text);
  font-size: clamp(44px, 5.4vw, 68px);
  font-weight: 650;
  line-height: .99;
  letter-spacing: -.052em;
  text-wrap: balance;
}

.detail-lead {
  margin-top: 22px;
  color: #4f5663;
  font-size: 18px;
  line-height: 1.5;
}

.detail-hero__actions {
  margin-top: 26px;
}

.detail-visual {
  padding: 10px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 24px 70px rgba(40,61,122,.16);
  transform: rotate(1.5deg);
}

.detail-section {
  padding: 88px 0;
  background: #fff;
}

.detail-section--tone {
  background: #161616;
  color: #fff;
}

.detail-heading {
  max-width: 780px;
  margin: 0 0 42px;
}

.detail-heading h2 {
  color: var(--text);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.detail-heading p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

.detail-section--tone .detail-heading h2 {
  color: #fff;
}

.detail-section--tone .detail-heading p {
  color: rgba(255,255,255,.68);
}

.detail-grid {
  gap: 16px;
}

.detail-card {
  min-height: 210px;
  padding: 26px;
  border: 0;
  border-radius: 18px;
  background: #f4f6fb;
}

.detail-section--tone .detail-card {
  border: 1px solid rgba(255,255,255,.12);
  background: #202020;
}

.detail-section--tone .detail-card:nth-child(2) {
  border-color: #1252d3;
  background: #1252d3;
}

.detail-card b {
  color: var(--text);
  font-size: 21px;
}

.detail-section--tone .detail-card b {
  color: #fff;
}

.detail-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}

.detail-section--tone .detail-card p {
  color: rgba(255,255,255,.68);
}

.detail-section--tone .detail-card:nth-child(2) p {
  color: rgba(255,255,255,.84);
}

.detail-outline {
  gap: 12px;
}

.detail-outline li {
  min-height: 145px;
  padding: 20px;
  border: 0;
  border-radius: 16px;
  background: #f4f6fb;
  color: var(--text);
}

.detail-outline li:nth-child(4n+1) { background: #eef2ff; }
.detail-outline li:nth-child(4n+2) { background: #fff1f6; }
.detail-outline li:nth-child(4n+3) { background: #effbef; }
.detail-outline li:nth-child(4n+4) { background: #fff7df; }

.detail-outline li::before {
  color: #1252d3;
}

.detail-related {
  gap: 16px;
}

.detail-related a {
  padding: 10px;
  border: 0;
  border-radius: 18px;
  background: #f4f6fb;
  transition: transform .2s ease, box-shadow .2s ease;
}

.detail-related a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(40,61,122,.12);
}

.detail-related img {
  background: #e9edff;
}

.detail-faq {
  gap: 10px;
}

.detail-faq details {
  border: 1px solid #e1e5ed;
  border-radius: 12px;
  background: #fff;
}

.detail-faq summary {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
}

.detail-faq summary::after {
  color: #1252d3;
}

.detail-faq p {
  color: var(--muted);
}

.detail-cta {
  padding: 0 0 88px;
  background: #fff;
}

.detail-cta__box {
  position: relative;
  min-height: 290px;
  padding: 44px;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 93% 110%, #ff6ea9 0 12%, transparent 29%),
    linear-gradient(135deg, #103db1, #155be3);
  color: #fff;
}

.detail-cta__box::after {
  content: "";
  position: absolute;
  right: 7%;
  bottom: -72px;
  width: 210px;
  height: 210px;
  border-radius: 38% 62% 48% 52% / 44% 38% 62% 56%;
  background: linear-gradient(145deg, #ffaf42, #ff597f 48%, #684dff);
  box-shadow: inset 20px 16px 38px rgba(255,255,255,.35);
  transform: rotate(20deg);
}

.detail-cta__box > * {
  position: relative;
  z-index: 2;
}

.detail-cta h2 {
  max-width: 650px;
  color: #fff;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.detail-cta p {
  color: rgba(255,255,255,.78);
}

.detail-cta .detail-btn--primary {
  color: var(--text);
}

.detail-cta .detail-btn--primary::before {
  background: #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,.16);
}

.detail-footer {
  padding: 64px 0 24px;
  background: #161616 !important;
  border: 0;
  color: rgba(255,255,255,.68);
  box-shadow: none;
}

.detail-footer::before {
  display: none;
}

.detail-footer .detail-logo::after,
.detail-footer h2 {
  color: #fff;
}

.detail-footer p,
.detail-footer li a,
.detail-legal {
  color: rgba(255,255,255,.62);
}

.detail-footer__cta {
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

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

  .detail-visual {
    width: min(100%, 720px);
  }
}

@media (max-width: 560px) {
  .detail-container {
    width: min(calc(100% - 28px), 1160px);
  }

  .detail-header,
  .detail-header__bar {
    height: 64px;
  }

  .detail-header {
    inset: 0 0 auto;
  }

  .detail-header__bar {
    padding: 0;
  }

  .detail-logo {
    gap: 6px;
  }

  .detail-logo::before {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    background-size: 19px 19px;
  }

  .detail-logo::after {
    font-size: 14px;
  }

  .detail-actions {
    gap: 4px;
  }

  .detail-btn {
    min-height: 40px;
    height: 40px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .detail-main {
    padding-top: 64px;
  }

  .detail-hero {
    padding: 52px 0 64px;
  }

  .detail-hero::before {
    width: 130px;
    height: 130px;
    left: -65px;
  }

  .detail-hero::after {
    width: 120px;
    height: 120px;
    right: -62px;
  }

  .detail-hero__grid {
    gap: 32px;
    padding: 0;
  }

  h1 {
    font-size: clamp(38px, 11vw, 50px);
  }

  .detail-lead {
    font-size: 16px;
  }

  .detail-section {
    padding: 68px 0;
  }

  .detail-heading {
    margin-bottom: 30px;
  }

  .detail-heading h2 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .detail-grid,
  .detail-outline,
  .detail-related,
  .detail-footer__grid {
    grid-template-columns: 1fr;
  }

  .detail-card,
  .detail-outline li {
    min-height: 0;
  }

  .detail-cta {
    padding: 0 0 68px;
  }

  .detail-cta__box {
    min-height: 390px;
    padding: 28px 24px;
  }

  .detail-cta__box::after {
    right: -72px;
  }
}
