:root {
  --feedback-bg: #070a0b;
  --feedback-surface: rgba(13, 17, 17, 0.72);
  --feedback-line: rgba(239, 234, 218, 0.13);
  --feedback-text: #f5f3ed;
  --feedback-muted: #aaa99f;
  --feedback-gold: #c9ae76;
  --feedback-max: 1240px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--feedback-text);
  background: var(--feedback-bg);
}

body::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: -28px;
  background: url("/assets/feedback/feedback-forest.jpg") center top / cover no-repeat;
  filter: blur(24px) saturate(0.55) brightness(0.28);
  transform: scale(1.06);
  opacity: 0.5;
}

body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 8, 0.28), #070a0b 64%, #070a0b);
  pointer-events: none;
}

.feedback-hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.feedback-hero::before {
  content: "";
  position: absolute;
  inset: -10px;
  background: url("/assets/feedback/feedback-forest.jpg") center 42% / cover no-repeat;
  filter: saturate(0.72) contrast(1.04);
  transform: scale(1.025);
}

.feedback-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 9, 0.94) 0%, rgba(5, 8, 9, 0.76) 37%, rgba(5, 8, 9, 0.32) 73%, rgba(5, 8, 9, 0.62) 100%),
    linear-gradient(180deg, rgba(5, 8, 9, 0.24) 0%, rgba(5, 8, 9, 0.16) 48%, #070a0b 100%);
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 2;
  width: min(var(--feedback-max), calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  display: grid;
  justify-items: end;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  justify-self: start;
}

.brand-beta {
  margin: 5px 1px 0 0;
  color: #f5c451;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links {
  justify-self: center;
}

.nav-actions {
  justify-self: end;
}

.nav-links a {
  color: #d3dae6;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links .external-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-links .external-link span {
  font-size: 11px;
}

.language {
  min-width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #e8ecf3;
  background: rgba(10, 14, 21, 0.38);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 850;
}

.login {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 10px;
  color: #0a0d13;
  background: #f6f8fb;
  font-size: 13px;
  font-weight: 850;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--feedback-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 68px;
}

.hero-copy {
  max-width: 690px;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d6c69f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: #baa16d;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(45px, 6.4vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.hero-copy p {
  max-width: 610px;
  margin: 0;
  color: #d2d4cf;
  font-size: 16px;
  line-height: 1.7;
}

main.reviews {
  width: min(var(--feedback-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 88px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-head div span {
  color: #a89b7e;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 5px 0 0;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.section-head p {
  max-width: 440px;
  margin: 0;
  color: #838780;
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.feedback-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--feedback-line);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--feedback-surface);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(22px) saturate(0.8);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.feedback-card::before {
  content: none;
}

.feedback-card:hover {
  transform: translateY(-2px);
  border-color: rgba(220, 207, 174, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.016)),
    rgba(13, 17, 17, 0.78);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.avatar.fallback {
  display: grid;
  place-items: center;
  color: #e5dbc3;
  background: #242820;
  font-size: 13px;
  font-weight: 900;
}

.identity {
  min-width: 0;
}

.identity h2 {
  overflow: hidden;
  margin: 0;
  color: var(--feedback-text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.identity p {
  overflow: hidden;
  margin: 4px 0 0;
  color: #858981;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.client-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid rgba(166, 190, 159, 0.18);
  border-radius: 999px;
  color: #c8d8c4;
  background: rgba(112, 137, 105, 0.08);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.client-badge i {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #dce8d8;
  background: rgba(123, 150, 116, 0.18);
  box-shadow: none;
  font-size: 9px;
  font-style: normal;
}

.rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.stars {
  color: #d9b868;
  font-size: 15px;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.stars span {
  color: #3c403a;
}

.recommend {
  padding: 0;
  color: #8d9188;
  background: transparent;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.recommend.yes {
  color: #afc5aa;
  background: transparent;
}

.recommend.no {
  color: #b3a09a;
  background: transparent;
}

.review-copy {
  position: relative;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.quote-mark {
  position: absolute;
  top: 7px;
  right: 0;
  color: rgba(205, 179, 118, 0.15);
  font-family: Georgia, serif;
  font-size: 42px;
  line-height: 1;
}

.feedback-card h3 {
  position: relative;
  margin: 0 30px 7px 0;
  font-size: 14px;
  letter-spacing: -0.012em;
}

.message {
  position: relative;
  min-height: 48px;
  margin: 0;
  color: #bfc2bb;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.58;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

time {
  color: #686d67;
  font-size: 9px;
}

.heart {
  min-width: 42px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(198, 150, 143, 0.16);
  border-radius: 999px;
  color: #bd918a;
  background: rgba(122, 76, 70, 0.07);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.heart:hover,
.heart.hearted {
  border-color: rgba(204, 145, 136, 0.32);
  color: #dfaaa2;
  background: rgba(143, 76, 70, 0.13);
  box-shadow: none;
}

.heart span {
  font-size: 15px;
  line-height: 1;
}

.heart strong {
  font-size: 10px;
}

.empty {
  grid-column: 1 / -1;
  padding: 48px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 17px;
  color: var(--feedback-muted);
  background: rgba(10, 14, 14, 0.36);
  text-align: center;
  backdrop-filter: blur(16px);
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 24px;
}

.pagination a {
  width: max-content;
  padding: 10px 13px;
  border: 1px solid var(--feedback-line);
  border-radius: 10px;
  color: #d4d4cc;
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
  font-weight: 800;
}

.pagination a:last-child {
  justify-self: end;
}

.pagination strong {
  color: #777b74;
  font-size: 10px;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 13px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 8px;
    padding-top: 4px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    font-size: 12px;
  }

  .feedback-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav,
  .hero-inner,
  main.reviews {
    width: calc(100% - 26px);
  }

  .feedback-hero {
    min-height: 380px;
  }

  .hero-inner {
    padding: 52px 0 62px;
  }

  .hero-copy h1 {
    font-size: 46px;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head p {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .login {
    display: none;
  }

  .client-badge {
    padding: 5px 7px;
    font-size: 8px;
  }

  .feedback-card {
    padding: 16px;
  }
}
