/* Премиум вау-дизайн для юридического центра «Гарант» */
:root {
  /* Палитра индиго-золото */
  --indigo: #1e1638;
  --indigo-light: #312659;
  --indigo-mid: #3d3170;
  --gold-primary: #d4a574;
  --gold-bright: #f4c563;
  --gold-light: #ffd98e;
  --cream: #fffef7;
  --white: #ffffff;
  --glass: rgba(49, 38, 89, 0.42);
  --glass-strong: rgba(30, 22, 56, 0.65);
  --glass-border: rgba(212, 165, 116, 0.35);
  --shadow-gold: 0 12px 48px rgba(212, 165, 116, 0.4);
  --shadow-glass: 0 16px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);

  /* Радиусы */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  /* Шрифты */
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Raleway", -apple-system, system-ui, sans-serif;
  --font-num: "Montserrat", system-ui, sans-serif;

  /* Лимиты */
  --max-width: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.page-home {
  font-family: var(--font-sans);
  color: var(--white);
  background: var(--indigo);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ========== Hero screen с градиентами и паралакс-слоями ========== */
.hero-screen {
  position: relative;
  min-height: 100vh;
  padding: 20px 28px 48px;
  overflow: hidden;
  background:
    radial-gradient(1.2px 1.2px at 14% 20%, rgba(255, 236, 200, 0.8), transparent),
    radial-gradient(1px 1px at 32% 48%, rgba(255, 220, 160, 0.5), transparent),
    radial-gradient(1.3px 1.3px at 58% 16%, rgba(255, 244, 220, 0.65), transparent),
    radial-gradient(1px 1px at 78% 36%, rgba(244, 197, 99, 0.45), transparent),
    radial-gradient(1.2px 1.2px at 88% 68%, rgba(255, 236, 200, 0.55), transparent),
    radial-gradient(1px 1px at 22% 78%, rgba(255, 220, 170, 0.35), transparent),
    radial-gradient(ellipse 55% 48% at 86% 14%, rgba(110, 70, 200, 0.4), transparent 58%),
    radial-gradient(ellipse 48% 52% at 10% 88%, rgba(50, 28, 110, 0.55), transparent 62%),
    radial-gradient(ellipse 42% 38% at 52% 48%, rgba(65, 35, 140, 0.2), transparent 70%),
    radial-gradient(ellipse 40% 36% at 72% 72%, rgba(244, 197, 99, 0.08), transparent 55%),
    linear-gradient(165deg, #05040f 0%, #0b071c 36%, #070414 70%, #03020a 100%);
}

/* Текстурный слой */
.hero-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 25% 35%, rgba(120, 80, 220, 0.07), transparent 42%),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255, 255, 255, 0.012) 3px, rgba(255, 255, 255, 0.012) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255, 255, 255, 0.012) 3px, rgba(255, 255, 255, 0.012) 4px);
  opacity: 0.45;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Плавающий свет — космическая туманность */
.hero-screen::after {
  content: "";
  position: absolute;
  width: 58%;
  height: 52%;
  right: -8%;
  top: 18%;
  z-index: 1;
  background: radial-gradient(
    ellipse at center,
    rgba(120, 80, 210, 0.32) 0%,
    rgba(60, 35, 130, 0.16) 40%,
    transparent 70%
  );
  filter: blur(100px);
  pointer-events: none;
  animation: float-glow 12s ease-in-out infinite alternate;
}

@keyframes float-glow {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(-5%, 8%) scale(1.05);
    opacity: 0.55;
  }
  100% {
    transform: translate(3%, -5%) scale(0.95);
    opacity: 0.45;
  }
}

/* Canvas частиц */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-screen > *:not(.hero-particles) {
  position: relative;
  z-index: 3;
}

/* ========== Шапка glassmorphism ========== */
.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 22px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: var(--shadow-glass);
  animation: header-appear 0.8s ease-out;
  overflow: visible;
}

@keyframes header-appear {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: scale(1.02);
}

.brand__mark {
  width: auto;
  height: 68px;
  max-width: min(280px, 46vw);
  max-height: 72px;
  border-radius: 0;
  background: transparent;
  display: block;
  object-fit: contain;
  object-position: left center;
  box-shadow: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  display: none !important;
}

.brand__slogan {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0;
  max-width: none;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
}

.nav-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex: 1;
}

.nav-main a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  position: relative;
  transition: color 0.25s ease;
}

.nav-main > a::after,
.nav-main .nav-item__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-bright));
  transition: width 0.3s ease;
}

.nav-main > a:hover,
.nav-main > a:focus-visible,
.nav-main .nav-item__link:hover,
.nav-main .nav-item__link:focus-visible {
  color: var(--gold-bright);
  outline: none;
}

.nav-main > a:hover::after,
.nav-main .nav-item__link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  color: var(--white);
  line-height: 1.25;
  transition: transform 0.2s ease;
}

.header-phone:hover {
  transform: translateY(-2px);
}

.header-phone__num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
}

.header-phone__num svg {
  width: 17px;
  height: 17px;
  fill: var(--gold-bright);
  filter: drop-shadow(0 0 6px rgba(244, 197, 99, 0.6));
}

.header-phone__hours {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 3px;
}

/* ========== Кнопки с градиентами ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

.btn--gold {
  background: linear-gradient(135deg, #d4a574 0%, #f4c563 50%, #ffd98e 100%);
  color: #1a1028;
  padding: 13px 24px;
  box-shadow: var(--shadow-gold);
  font-weight: 800;
}

.btn--gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 56px rgba(212, 165, 116, 0.55);
}

.btn--gold:active {
  transform: translateY(-1px) scale(0.99);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 13px 26px;
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold-light);
  transform: translateY(-3px);
}

.btn--header {
  padding: 12px 20px;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ========== Hero grid с параллакс эффектами ========== */
.hero {
  max-width: var(--max-width);
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 28px 48px;
  align-items: stretch;
  min-height: calc(100vh - 180px);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 12px 12px 8px;
  max-width: 680px;
  animation: content-slide-in 1s ease-out 0.2s both;
}

@keyframes content-slide-in {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  padding: 10px 20px 10px 12px;
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  color: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 8px 32px rgba(212, 165, 116, 0.35);
  }
}

.hero-badge__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(212, 165, 116, 0.2);
  box-shadow: 0 0 0 2px rgba(244, 197, 99, 0.4);
  font-size: 0.9rem;
}

.hero-badge__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(244, 197, 99, 0.8);
  animation: pulse-dot 2s ease-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(244, 197, 99, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(244, 197, 99, 0);
    transform: scale(1.1);
  }
}

.hero__title {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #f4c563 85%, #d4a574 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 24px rgba(244, 197, 99, 0.3);
  text-wrap: balance;
  animation: title-glow 3s ease-in-out infinite alternate;
}

@keyframes title-glow {
  from {
    filter: drop-shadow(0 0 20px rgba(244, 197, 99, 0.3));
  }
  to {
    filter: drop-shadow(0 0 32px rgba(244, 197, 99, 0.5));
  }
}

.hero__lead {
  margin: 0 0 24px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
}

.hero__bullets {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  padding-left: 8px;
  transition: transform 0.2s ease;
}

.hero__bullets li:hover {
  transform: translateX(6px);
}

.hero__bullets li::before {
  content: "✔";
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 0 12px rgba(244, 197, 99, 0.6);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__cta .btn {
  min-width: 200px;
  padding: 16px 32px;
  font-size: 1rem;
}

/* ========== Визуальная часть с паралакс ========== */
.hero__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 600px;
  animation: visual-fade-in 1.2s ease-out 0.4s both;
}

@keyframes visual-fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__glow {
  position: absolute;
  right: 8%;
  top: 10%;
  width: 75%;
  height: 80%;
  background:
    radial-gradient(circle at 55% 45%, rgba(244, 197, 99, 0.5) 0%, transparent 60%),
    radial-gradient(circle at 40% 65%, rgba(212, 165, 116, 0.3) 0%, transparent 55%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: glow-pulse 6s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from {
    opacity: 0.6;
    transform: scale(1);
  }
  to {
    opacity: 0.85;
    transform: scale(1.1);
  }
}

.hero__sparkles {
  position: absolute;
  inset: 10% 5% 22% 12%;
  background:
    radial-gradient(2px 2px at 12% 28%, rgba(255, 253, 237, 0.95) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 28% 52%, rgba(244, 197, 99, 0.85) 0%, transparent 100%),
    radial-gradient(2.5px 2.5px at 42% 18%, rgba(255, 253, 237, 0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 58% 68%, rgba(212, 165, 116, 0.75) 0%, transparent 100%),
    radial-gradient(2px 2px at 72% 32%, rgba(244, 197, 99, 0.9) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 85% 55%, rgba(255, 253, 237, 0.8) 0%, transparent 100%),
    radial-gradient(2.5px 2.5px at 92% 22%, rgba(212, 165, 116, 0.85) 0%, transparent 100%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
  animation: sparkle-float 5s ease-in-out infinite alternate;
}

@keyframes sparkle-float {
  0% {
    opacity: 0.65;
    transform: translate(0, 0);
  }
  50% {
    opacity: 1;
    transform: translate(-6px, 4px);
  }
  100% {
    opacity: 0.75;
    transform: translate(2px, -3px);
  }
}

.hero__statue {
  position: relative;
  z-index: 2;
  width: min(100%, 540px);
  height: auto;
  max-height: 680px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 24px 56px rgba(0, 0, 0, 0.5));
  user-select: none;
  pointer-events: none;
  animation: statue-parallax 8s ease-in-out infinite alternate;
}

@keyframes statue-parallax {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-12px) scale(1.01);
  }
}

/* ========== Калькулятор glassmorphism с эффектами ========== */
.calc-card {
  position: absolute;
  z-index: 3;
  left: calc(100% - min(540px, 100%));
  bottom: 5%;
  transform: translateX(-50%);
  width: min(340px, 82%);
  padding: 22px 22px 18px;
  border-radius: var(--radius-xl);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  box-shadow: var(--shadow-glass);
  animation: calc-appear 1s ease-out 0.6s both;
}

@keyframes calc-appear {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.calc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(145deg, rgba(244, 197, 99, 0.4), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.calc-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.calc-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cream);
  text-shadow: 0 2px 8px rgba(244, 197, 99, 0.3);
}

.calc-card__sub {
  margin: 5px 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.calc-card__badge {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(212, 165, 116, 0.22);
  border: 1px solid rgba(244, 197, 99, 0.45);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 0 16px rgba(244, 197, 99, 0.3);
  animation: badge-glow 2s ease-in-out infinite alternate;
}

@keyframes badge-glow {
  from {
    box-shadow: 0 0 12px rgba(244, 197, 99, 0.25);
  }
  to {
    box-shadow: 0 0 20px rgba(244, 197, 99, 0.45);
  }
}

.calc-toggles {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.calc-toggle {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-pill);
  padding: 10px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calc-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.calc-toggle.is-active,
.calc-toggle[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.3), rgba(244, 197, 99, 0.2));
  border-color: rgba(244, 197, 99, 0.6);
  color: var(--cream);
  box-shadow: 0 4px 16px rgba(212, 165, 116, 0.3);
}

.calc-field__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.calc-field__value {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: 1.15rem;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(244, 197, 99, 0.4));
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    rgba(212, 165, 116, 0.9) 0%,
    rgba(244, 197, 99, 0.6) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  outline: none;
  margin: 6px 0 8px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4a574 0%, #f4c563 50%, #ffd98e 100%);
  border: 3px solid #fffef7;
  box-shadow: 0 4px 16px rgba(212, 165, 116, 0.6), 0 0 0 0 rgba(244, 197, 99, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  animation: thumb-pulse 2s ease-in-out infinite;
}

@keyframes thumb-pulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.6), 0 0 0 0 rgba(244, 197, 99, 0.4);
  }
  50% {
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.8), 0 0 0 8px rgba(244, 197, 99, 0.15);
  }
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 24px rgba(212, 165, 116, 0.8);
}

.calc-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4a574 0%, #f4c563 50%, #ffd98e 100%);
  border: 3px solid #fffef7;
  box-shadow: 0 4px 16px rgba(212, 165, 116, 0.6);
  cursor: pointer;
}

.calc-range {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}

.calc-card .btn {
  width: 100%;
  margin-bottom: 16px;
}

.calc-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.calc-rating__score {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(244, 197, 99, 0.4);
}

.calc-rating__stars {
  color: var(--gold-bright);
  letter-spacing: 2px;
  font-size: 0.9rem;
  filter: drop-shadow(0 0 6px rgba(244, 197, 99, 0.5));
}

.calc-rating__meta {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.35;
}

/* ========== Trust bar с градиентами ========== */
.trust-bar {
  max-width: var(--max-width);
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  animation: trust-fade-in 1s ease-out 0.8s both;
}

@keyframes trust-fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trust-card {
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  box-shadow: var(--shadow-glass);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.trust-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(244, 197, 99, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.trust-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 64px rgba(212, 165, 116, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-color: rgba(244, 197, 99, 0.55);
}

.trust-card:hover::before {
  opacity: 1;
}

.trust-card__value {
  margin: 0;
  font-family: var(--font-num);
  font-weight: 900;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  background: linear-gradient(135deg, #d4a574 0%, #f4c563 50%, #ffd98e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  filter: drop-shadow(0 2px 12px rgba(244, 197, 99, 0.4));
  position: relative;
  z-index: 1;
}

.trust-card__label {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

/* ========== Контент ниже hero ========== */
.page-rest {
  background: linear-gradient(180deg, #f9f7f4 0%, #fdfcfa 100%);
  color: #1a1a1a;
  position: relative;
}

.page-rest::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, var(--indigo) 0%, transparent 100%);
  pointer-events: none;
}

.page-rest main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 4rem;
  position: relative;
}

.page-rest h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 3rem 0 1rem;
  color: var(--indigo);
}

.page-rest h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
  color: var(--indigo-mid);
}

.page-rest a {
  color: #5a4488;
  transition: color 0.2s ease;
}

.page-rest a:hover {
  color: var(--gold-primary);
}

.page-rest ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.page-rest li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.page-rest #temp-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid #e0ddd8;
  color: #666;
  font-size: 0.9rem;
  text-align: center;
}

/* ========== Адаптив ========== */
@media (max-width: 1100px) {
  .nav-main {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero__visual {
    min-height: 520px;
    order: -1;
    max-height: 560px;
  }

  .hero__statue {
    max-height: 520px;
  }

  .calc-card {
    left: calc(100% - min(500px, 100%));
    width: min(320px, 75%);
  }

  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-screen {
    padding: 14px 14px 28px;
  }

  .site-header {
    flex-wrap: wrap;
    padding: 12px 14px;
    gap: 14px;
  }

  .header-phone {
    display: none;
  }

  .brand__slogan {
    display: block;
    font-size: 0.55rem;
    white-space: nowrap;
  }

  .brand__mark {
    width: auto;
    height: 48px;
    max-width: min(200px, 52vw);
    max-height: 52px;
  }

  .brand__name {
    display: none !important;
  }

  .btn--header {
    padding: 11px 14px;
    font-size: 0.78rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .calc-card {
    left: 50%;
    bottom: 3%;
    width: min(310px, 92%);
  }

  .hero__visual {
    min-height: 460px;
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }
}

/* ========== Дополнительные анимации прокрутки (опционально) ========== */
@media (prefers-reduced-motion: no-preference) {
  .trust-card:nth-child(1) {
    animation: trust-fade-in 1s ease-out 0.9s both;
  }
  .trust-card:nth-child(2) {
    animation: trust-fade-in 1s ease-out 1s both;
  }
  .trust-card:nth-child(3) {
    animation: trust-fade-in 1s ease-out 1.1s both;
  }
  .trust-card:nth-child(4) {
    animation: trust-fade-in 1s ease-out 1.2s both;
  }
}
