/*
 * файл: landing-seo.css
 * путь: c:\openserver\domains\start.voiceofgalaxies.ru\css\landing\landing-seo.css
 * назначение: свернутый SEO-блок "О проекте" без общего скролла страницы
 */

.landing-seo {
  position: fixed;
  right: 18px;
  bottom: 8px;
  z-index: 85;
  width: auto;
  pointer-events: none;
}

.landing-seo-details {
  width: auto;
  pointer-events: auto;
}

.landing-seo-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  padding: 0 4px;
  border: 0;
  color: rgba(191, 234, 255, 0.72);
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  list-style: none;
}

.landing-seo-summary:hover,
.landing-seo-summary:focus-visible {
  color: #bfeaff;
  outline: none;
}

.landing-seo-summary::-webkit-details-marker {
  display: none;
}

.landing-seo-close {
  display: none;
}

.landing-seo-details[open] .landing-seo-summary {
  position: fixed;
  left: calc(50% + min(590px, calc((100vw - 36px) / 2)) - 58px);
  top: calc(24vh + 30px);
  z-index: 120;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(91, 194, 255, 0.46);
  border-radius: 50%;
  color: transparent;
  background: rgba(4, 18, 42, 0.94);
  text-decoration: none;
  box-shadow: 0 0 18px rgba(61, 184, 255, 0.26);
}

.landing-seo-details[open] .landing-seo-summary span:first-child {
  display: none;
}

.landing-seo-details[open] .landing-seo-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
}

.landing-seo-inner {
  display: none;
}

.landing-seo-details[open] .landing-seo-inner {
  position: fixed;
  left: 50%;
  top: 24vh;
  display: block;
  width: min(1180px, calc(100vw - 36px));
  max-height: 72vh;
  transform: translateX(-50%);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 54px 30px 30px;
  border: 1px solid rgba(91, 194, 255, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(31, 141, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(5, 11, 25, 0.98), rgba(2, 7, 20, 0.98));
  box-shadow:
    0 0 54px rgba(31, 141, 255, 0.22),
    inset 0 0 24px rgba(91, 194, 255, 0.08);
}

.landing-seo-header {
  max-width: 820px;
  margin-bottom: 24px;
}

.landing-seo-header span {
  display: inline-block;
  margin-bottom: 10px;
  color: #74d7ff;
  font-size: 12px;
  letter-spacing: 4px;
}

.landing-seo-header h2,
.landing-seo-story h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  text-shadow: 0 0 22px rgba(91, 194, 255, 0.28);
}

.landing-seo-header p,
.landing-seo-story p,
.landing-seo-card p {
  color: #b9d7f4;
  line-height: 1.7;
}

.landing-seo-header p {
  max-width: 760px;
  margin: 0;
  font-size: 17px;
}

.landing-seo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.landing-seo-card {
  min-height: 180px;
  padding: 18px;
  border: 1px solid rgba(91, 194, 255, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(9, 35, 74, 0.76), rgba(4, 13, 30, 0.9));
  box-shadow:
    0 0 26px rgba(31, 141, 255, 0.1),
    inset 0 0 18px rgba(91, 194, 255, 0.06);
}

.landing-seo-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 19px;
}

.landing-seo-card p {
  margin: 0;
  font-size: 14px;
}

.landing-seo-story {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(91, 194, 255, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(8, 29, 65, 0.86), rgba(4, 13, 30, 0.92));
}

.landing-seo-story p {
  max-width: 920px;
  margin: 0;
  font-size: 15px;
}

@media (max-width: 980px) {
  .landing-seo-details[open] .landing-seo-inner {
    top: 18vh;
    max-height: 78vh;
    padding: 54px 22px 22px;
  }

  .landing-seo-details[open] .landing-seo-summary {
    top: calc(18vh + 16px);
    left: auto;
    right: 28px;
  }

  .landing-seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-seo-card {
    min-height: 150px;
  }
}

@media (max-width: 560px) {
  .landing-seo {
    right: 10px;
    bottom: 6px;
  }

  .landing-seo-summary {
    font-size: 11px;
  }

  .landing-seo-details[open] .landing-seo-inner {
    top: 12vh;
    width: calc(100vw - 18px);
    max-height: 84vh;
    padding: 52px 18px 18px;
    border-radius: 18px;
  }

  .landing-seo-details[open] .landing-seo-summary {
    top: calc(12vh + 14px);
    right: 22px;
  }

  .landing-seo-grid {
    grid-template-columns: 1fr;
  }

  .landing-seo-card {
    min-height: auto;
    padding: 16px;
  }

  .landing-seo-story {
    padding: 18px;
  }

  .landing-seo-header p {
    font-size: 15px;
  }
}