/* ============================================================
   /review/style.css
   Самодостаточные стили страницы «Отзывы».
   ============================================================ */

:root {
  --body-bg: #060910;
  --bg: #0b0f14;
  --card: #11161d;
  --ink: #e8eef7;
  --muted: #9aa6b2;
  --blue: #4a92f3;
  --blue-2: #2b6de6;
  --gold: #e6c468;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-lg: 22px;
  --max: 1200px;
  --card-bg: #0b0e17;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --subnav-h: 55px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--body-bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #060910 0%, #0b0f14 42%, #060910 100%);
  font-family: "Golos Text", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 70%);
}

::selection {
  color: #fff;
  background: var(--blue-2);
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

[data-lucide] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 1.8;
  color: currentColor;
  vertical-align: middle;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h2 {
  margin: 18px 0 0;
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}

h2 em {
  color: var(--blue);
  font-style: normal;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(74, 146, 243, 0.1);
  content: "";
}

.section {
  padding: 100px 0;
}

.section--short {
  padding: 60px 0;
}

/* ============ HERO ============ */
.hero {
  width: min(calc(100% - 48px), 900px);
  margin-inline: auto;
  text-align: center;
  padding: 170px 0 60px;
}

.hero-copy .eyebrow {
  margin-bottom: 28px;
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(48px, 8.4vw, 118px);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.92;
}

.hero-status-row {
  display: flex;
  justify-content: center;
  margin: 0 0 26px;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 11px;
  border: 1px solid rgba(127, 213, 141, 0.28);
  border-radius: 999px;
  color: #b8e6c1;
  background: rgba(127, 213, 141, 0.06);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.hero-status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fd58d;
  flex-shrink: 0;
}

.hero-status-dot::before {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #7fd58d;
  content: "";
  animation: heroStatusPing 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes heroStatusPing {
  0% { opacity: 0.6; transform: scale(1); }
  75% { opacity: 0; transform: scale(2.4); }
  100% { opacity: 0; transform: scale(2.4); }
}

.hero-description {
  max-width: 620px;
  margin: 24px auto 0;
  color: #c4cdd8;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
}

/* ============ RATING SUMMARY ============ */
.rating-summary {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "score stars"
    "desc desc";
  gap: 8px 32px;
  align-items: center;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(230, 196, 104, 0.06), transparent 60%),
    var(--card-bg);
}

.rating-summary__score {
  grid-area: score;
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.rating-summary__value {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}

.rating-summary__max {
  font-size: 20px;
  color: var(--muted);
  letter-spacing: -0.03em;
}

.rating-summary__stars {
  grid-area: stars;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
}

.rating-summary__stars [data-lucide] {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke-width: 1.6;
}

.rating-summary__desc {
  grid-area: desc;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

/* ============ FEATURED REVIEW ============ */
.featured-review {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 44px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(74, 146, 243, 0.08), transparent 55%),
    var(--card-bg);
  box-shadow: var(--shadow);
}

.featured-review__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.featured-review__text {
  margin: 0 0 22px;
  color: #d2dbe6;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.55;
}

.featured-review__foot {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ============ REVIEW META ============ */
.review-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.review-meta__initials {
  display: grid;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(74, 146, 243, 0.1);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.review-meta__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.review-meta__name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.review-meta__role {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

/* ============ STARS ============ */
.review-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--gold);
  flex-shrink: 0;
}

.review-stars [data-lucide] {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke-width: 1.6;
}

.review-stars [data-lucide].is-empty {
  color: rgba(230, 196, 104, 0.22);
  fill: transparent;
}

/* ============ REVIEWS HEAD ============ */
.reviews-head {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}

.reviews-title {
  margin: 18px 0 0;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.reviews-intro {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

/* ============ REVIEWS GRID ============ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(74, 146, 243, 0.04), transparent 55%),
    var(--card-bg);
  transition:
    border-color 0.35s var(--ease),
    transform 0.35s var(--ease),
    background 0.35s var(--ease);
}

.review-card:hover {
  border-color: rgba(74, 146, 243, 0.4);
  background:
    linear-gradient(160deg, rgba(74, 146, 243, 0.1), transparent 55%),
    var(--card);
  transform: translateY(-4px);
}

.review-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.review-card__text {
  margin: 0 0 20px;
  color: #c4cdd8;
  font-size: 14.5px;
  line-height: 1.6;
}

.review-card__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.review-date {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

/* CTA-карточка */
.review-card--cta {
  padding: 0;
  background:
    linear-gradient(160deg, rgba(74, 146, 243, 0.14), transparent 60%),
    var(--card);
  border-color: rgba(74, 146, 243, 0.35);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.review-card--cta:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 146, 243, 0.55);
}

.review-card__cta-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 26px;
}

.review-card__cta-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(74, 146, 243, 0.4);
  border-radius: 12px;
  color: var(--blue);
  background: rgba(74, 146, 243, 0.12);
  margin-bottom: 4px;
}

.review-card__cta-icon [data-lucide] {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.review-card__cta-title {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.review-card__cta-text {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 280px;
}

/* ============ BUTTONS ============ */
.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border: 1px solid var(--blue);
  border-radius: 100px;
  color: var(--ink);
  background: var(--blue-2);
  font-size: 14.5px;
  transition:
    background 0.25s ease,
    transform 0.25s var(--ease),
    border-color 0.25s ease;
}

.button:hover {
  background: var(--blue);
  transform: translateY(-3px);
}

.button [data-lucide] {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.button--outline {
  color: var(--ink);
  background: transparent;
  border-color: var(--border);
}

.button--outline:hover {
  border-color: var(--blue);
  background: rgba(74, 146, 243, 0.08);
}

.button--outline [data-lucide] {
  color: var(--blue);
}

/* ============ SEO BLOCK ============ */
.seo-text-block {
  position: relative;
  max-width: 900px;
  margin: 40px auto 20px;
  padding: 40px;
  text-align: center;
  color: #6c7a9c;
}

.seo-text-block .seo-text-hide {
  max-height: 170px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.seo-text-block .seo-text-hide::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 110px;
  background: linear-gradient(to bottom, rgba(10, 10, 12, 0) 0%, #060910 100%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.seo-text-block.expanded .seo-text-hide {
  max-height: 6000px;
}

.seo-text-block.expanded .seo-text-hide::after {
  opacity: 0;
}

.seo-text-block .seo-title {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.seo-text-block p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.65;
}

.seo-text-block strong {
  color: #aab6c4;
}

.seo-text-block .seo-link {
  color: #8a99ad;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.seo-text-block .seo-link:hover {
  color: #fff;
}

.seo-toggle-btn {
  display: block;
  margin: 24px auto 0;
  padding: 0;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Golos Text", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}

.seo-toggle-btn:hover {
  color: #fff;
}

/* ============ FOOTER ============ */
.footer {
  position: relative;
  padding: 60px 20px;
  padding-bottom: max(60px, env(safe-area-inset-bottom));
  background: #060910;
  overflow: hidden;
  font-size: 15px;
  color: var(--muted);
}

.footer::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -100px;
  width: 800px;
  height: 600px;
  background: radial-gradient(
    70% 60% at 90% 100%,
    rgba(59, 91, 140, 0.35) 0%,
    rgba(59, 91, 140, 0.15) 40%,
    rgba(59, 91, 140, 0.1) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #fff;
  padding: 6px;
}

.footer-menu {
  display: flex;
  gap: 32px;
  font-size: 16px;
  flex-wrap: wrap;
}

.footer-menu a {
  color: #b0b8c2;
  text-decoration: none;
  transition: 0.3s;
}

.footer-menu a:hover {
  font-weight: 600;
  color: #fff;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 50px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #b0b8c2;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
  display: inline-block;
}

.footer-col a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-cta h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer .button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  background: #11141a;
  border: 1px solid #2a2b2e;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  transition: 0.2s;
  width: auto;
}

.footer .button:hover {
  background: #2b2c31;
  transform: none;
}

.footer .button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 60px;
  border-top: 1px solid #2a2a2d;
  padding-top: 20px;
  font-size: 14px;
  color: #b0b8c2;
}

.crafted {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crafted img {
  height: 40px;
}

.scroll-top {
  position: absolute;
  right: 0;
  bottom: 125px;
  color: #fff;
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 24px;
  border-radius: 9999px;
  transition: background 0.3s;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.scroll-top:hover {
  background: #2a2b30;
}

/* ============ REVEAL ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ АДАПТИВ ============ */
@media (max-width: 1100px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .reviews-head {
    gap: 40px;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .hero {
    padding: 100px 0 40px;
  }

  .reviews-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .reviews-intro {
    max-width: 100%;
  }

  .featured-review {
    padding: 32px 28px 28px;
  }

  .featured-review__head {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 32px), var(--max));
  }

  .hero {
    width: min(calc(100% - 32px), 900px);
    padding: 72px 0 32px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 60px);
    margin-bottom: 22px;
  }

  .hero-status {
    padding: 5px 12px 5px 10px;
    font-size: 11.5px;
  }

  .hero-description {
    font-size: 15.5px;
  }

  .section {
    padding: 60px 0;
  }

  .section--short {
    padding: 32px 0;
  }

  .rating-summary {
    grid-template-columns: 1fr;
    grid-template-areas:
      "score"
      "stars"
      "desc";
    gap: 10px;
    padding: 24px 22px;
    text-align: left;
  }

  .rating-summary__desc {
    text-align: left;
  }

  .featured-review {
    padding: 24px 22px 22px;
  }

  .featured-review__text {
    font-size: 16px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .review-card {
    padding: 22px 20px 20px;
  }

  .review-card__cta-body {
    padding: 28px 20px;
  }

  .seo-text-block {
    padding: 24px 20px;
    margin-top: 32px;
  }

  .footer {
    padding: 40px 16px max(40px, env(safe-area-inset-bottom));
    text-align: center;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .footer-menu {
    flex-direction: column;
    gap: 12px;
  }

  .footer-cta h2 {
    font-size: 20px;
  }

  .footer-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer .button {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 16px;
    text-align: center;
  }

  .crafted img {
    height: 32px;
  }

  .scroll-top {
    position: static;
    margin: 24px auto 0;
    width: 100%;
    max-width: 200px;
    display: block;
  }
}

@media (max-width: 550px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-col {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
  }

  .footer-col:last-child {
    border-bottom: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}