/* ============================================
   LEGAL GATES — Premium redesign
   ============================================ */

:root {
  --ink: #0e0c0b;
  --ink-soft: #1a1614;
  --ink-mid: #2a2420;
  --stone: #f3eee7;
  --stone-dim: #e6dfd4;
  --stone-mute: #b7aea2;
  --paper: #faf8f5;
  --burgundy: #8b0f0a;
  --burgundy-deep: #5c0906;
  --burgundy-soft: #ab504b;
  --gold: #c4a574;
  --white: #ffffff;
  --success: #2f6b4f;

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --container: 1180px;
  --header-h: 76px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* Noise + cursor glow */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 15, 10, 0.12), transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}

body.is-pointer .cursor-glow {
  opacity: 1;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Typography helpers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.eyebrow--on-dark {
  color: var(--gold);
}

.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  z-index: 2;
}

.section__head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__head--light {
  color: var(--stone);
}

.section__head--light .section__title {
  color: var(--white);
}

.section__head--light .section__desc {
  color: rgba(243, 238, 231, 0.7);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section__desc {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: #5c564e;
  max-width: 42ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

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

.btn--primary {
  background: var(--burgundy);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(139, 15, 10, 0.28);
}

.btn--primary:hover {
  background: var(--burgundy-deep);
  box-shadow: 0 16px 36px rgba(139, 15, 10, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--stone);
  border-color: rgba(243, 238, 231, 0.28);
}

.btn--ghost:hover {
  border-color: rgba(243, 238, 231, 0.55);
  background: rgba(255, 255, 255, 0.04);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(14, 12, 11, 0.18);
}

.btn--outline:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
}

.btn--wide {
  width: 100%;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    box-shadow 0.4s ease;
}

.header.is-scrolled {
  background: rgba(14, 12, 11, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header__inner {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  line-height: 0;
}

.header__logo img {
  display: block;
  width: 140px;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
}

.header__nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(243, 238, 231, 0.78);
  transition: color 0.25s ease;
}

.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.header__nav a:hover {
  color: var(--white);
}

.header__nav a:hover::after {
  transform: scaleX(1);
}

.header__phone {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--stone);
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.header__phone:hover {
  color: var(--gold);
}

.header__burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(243, 238, 231, 0.2);
  border-radius: var(--radius);
  background: transparent;
  position: relative;
  cursor: pointer;
}

.header__burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--stone);
  transition: transform 0.35s var(--ease), opacity 0.25s ease, top 0.35s var(--ease);
}

.header__burger span:first-child { top: 17px; }
.header__burger span:last-child { top: 25px; }

.header__burger.is-open span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.header__burger.is-open span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 5rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(139, 15, 10, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(196, 165, 116, 0.08), transparent 50%),
    linear-gradient(165deg, #120f0e 0%, #1a1210 45%, #0e0c0b 100%);
  color: var(--stone);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 238, 231, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 238, 231, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, black, transparent);
  animation: mesh-drift 28s linear infinite;
}

@keyframes mesh-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-72px, -72px, 0); }
}

.hero__gate {
  position: absolute;
  right: max(-8%, calc(50% - 520px));
  top: 50%;
  width: min(52vw, 520px);
  height: auto;
  color: rgba(243, 238, 231, 0.18);
  transform: translateY(-48%);
}

.gate-arch {
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: draw-gate 2.4s var(--ease-out) 0.3s forwards;
}

.gate-inner {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: draw-gate 2.6s var(--ease-out) 0.55s forwards;
}

.gate-base {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-gate 1.4s var(--ease-out) 1.1s forwards;
}

.gate-step {
  opacity: 0;
  animation: fade-step 0.8s ease forwards;
}

.gate-step--1 { animation-delay: 1.3s; }
.gate-step--2 { animation-delay: 1.45s; }
.gate-step--3 { animation-delay: 1.6s; }

@keyframes draw-gate {
  to { stroke-dashoffset: 0; }
}

@keyframes fade-step {
  to { opacity: 1; }
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orb-float 10s ease-in-out infinite;
}

.hero__orb--1 {
  width: 280px;
  height: 280px;
  background: rgba(139, 15, 10, 0.45);
  top: 18%;
  right: 18%;
}

.hero__orb--2 {
  width: 180px;
  height: 180px;
  background: rgba(196, 165, 116, 0.18);
  bottom: 16%;
  left: 12%;
  animation-delay: -4s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -24px) scale(1.08); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__eyebrow {
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 1.35rem;
}

.hero__lead {
  max-width: 38ch;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300;
  color: rgba(243, 238, 231, 0.72);
  margin-bottom: 2.25rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 238, 231, 0.45);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(196, 165, 116, 0.8), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(0.7); opacity: 1; }
}

/* ========== ABOUT ========== */
.about {
  background:
    linear-gradient(180deg, #f7f3ed 0%, var(--paper) 100%);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.about__lead {
  font-size: 1.2rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.about__story p + p {
  margin-top: 1rem;
  color: #5c564e;
}

.about__visual {
  display: flex;
  justify-content: center;
}

.stat-ring {
  position: relative;
  width: min(240px, 70vw);
  aspect-ratio: 1;
}

.stat-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.stat-ring__track {
  fill: none;
  stroke: rgba(139, 15, 10, 0.12);
  stroke-width: 8;
}

.stat-ring__progress {
  fill: none;
  stroke: var(--burgundy);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 553;
  stroke-dashoffset: 553;
  transition: stroke-dashoffset 1.6s var(--ease-out);
}

.stat-ring.is-active .stat-ring__progress {
  stroke-dashoffset: 140;
}

.stat-ring__value {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.stat-ring__num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--burgundy);
}

.stat-ring__label {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a7368;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(14, 12, 11, 0.08);
  border: 1px solid rgba(14, 12, 11, 0.08);
  overflow: hidden;
}

.metric {
  background: var(--paper);
  padding: 1.75rem 1.4rem;
  transition: background 0.35s ease;
}

.metric:hover {
  background: #fff;
}

.metric__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1.1rem;
  color: var(--burgundy);
}

.metric__icon svg {
  width: 100%;
  height: 100%;
}

.metric__value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.metric__label {
  font-size: 0.88rem;
  color: #6b645c;
}

/* ========== OPPONENTS ========== */
.opponents {
  background: var(--ink);
  color: var(--stone);
  overflow: hidden;
}

.opponents__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(139, 15, 10, 0.35), transparent 55%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 48px,
      rgba(243, 238, 231, 0.015) 48px,
      rgba(243, 238, 231, 0.015) 49px
    );
  pointer-events: none;
}

.opponents__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.opponent {
  position: relative;
  padding: 1.75rem 1.6rem 1.5rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(243, 238, 231, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.45s var(--ease),
    border-color 0.35s ease,
    background 0.35s ease;
}

.opponent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--burgundy), var(--gold));
  transition: height 0.55s var(--ease);
}

.opponent:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 165, 116, 0.28);
  background: linear-gradient(160deg, rgba(139, 15, 10, 0.22), rgba(255, 255, 255, 0.03));
}

.opponent:hover::before,
.opponent.is-visible::before {
  height: 100%;
}

.opponent__num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: rgba(196, 165, 116, 0.55);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.opponent__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.opponent__text {
  font-size: 0.95rem;
  color: rgba(243, 238, 231, 0.68);
  margin-bottom: 1.25rem;
}

.opponent__text strong {
  color: var(--gold);
  font-weight: 700;
}

.opponent__bar {
  height: 2px;
  background: rgba(243, 238, 231, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.opponent__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--burgundy), var(--gold));
  transition: width 1.2s var(--ease-out) 0.3s;
}

.opponent.is-visible .opponent__bar span {
  width: var(--w);
}

/* ========== PRACTICE ========== */
.practice {
  background:
    linear-gradient(180deg, var(--paper) 0%, #f0ebe3 100%);
}

.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.case {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(14, 12, 11, 0.06);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(14, 12, 11, 0.04);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}

.case:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(14, 12, 11, 0.08);
}

.case__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.case__badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: rgba(139, 15, 10, 0.08);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.case__id {
  font-size: 0.78rem;
  font-weight: 600;
  color: #7a7368;
}

.case__chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.25rem;
  height: 140px;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
  border-bottom: 1px solid rgba(14, 12, 11, 0.08);
}

.case__col {
  position: relative;
  width: 48px;
  height: 0;
  border-radius: 4px 4px 0 0;
  transition: height 1.2s var(--ease-out) 0.2s;
}

.case.is-visible .case__col {
  height: var(--h);
}

.case__col span {
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.4s ease 0.8s;
}

.case.is-visible .case__col span {
  opacity: 1;
}

.case__col--claim {
  background: linear-gradient(180deg, rgba(139, 15, 10, 0.35), rgba(139, 15, 10, 0.15));
}

.case__col--result {
  background: linear-gradient(180deg, var(--burgundy), var(--burgundy-deep));
}

.case__meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: end;
  margin-bottom: 1rem;
}

.case__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a8378;
  margin-bottom: 0.25rem;
}

.case__sum {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.1;
}

.case__sum--claim {
  color: #8a8378;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.case__sum--result {
  color: var(--burgundy);
}

.case__arrow {
  color: var(--gold);
  padding-bottom: 0.35rem;
}

.case__cut {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success);
}

/* ========== PRICING ========== */
.pricing {
  background: var(--ink-soft);
  color: var(--stone);
}

.pricing .section__title {
  color: var(--white);
}

.pricing .section__desc {
  color: rgba(243, 238, 231, 0.65);
}

.pricing .eyebrow {
  color: var(--gold);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 1.5rem;
}

.price {
  position: relative;
  padding: 2.25rem 1.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(243, 238, 231, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.35s ease;
}

.price:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 165, 116, 0.3);
}

.price--featured {
  background: linear-gradient(165deg, rgba(139, 15, 10, 0.35), rgba(255, 255, 255, 0.03));
  border-color: rgba(139, 15, 10, 0.55);
}

.price__glow {
  position: absolute;
  width: 200px;
  height: 200px;
  top: -60px;
  right: -40px;
  background: radial-gradient(circle, rgba(196, 165, 116, 0.18), transparent 70%);
  pointer-events: none;
}

.price__ribbon {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
}

.price__tier {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 238, 231, 0.55);
  margin-bottom: 0.75rem;
}

.price__amount {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 3.5rem);
  line-height: 1;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.price__amount span {
  font-size: 0.45em;
  vertical-align: super;
}

.price__cond {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.price__note {
  font-size: 0.88rem;
  color: rgba(243, 238, 231, 0.55);
  margin-bottom: 1.5rem;
}

.price__list {
  list-style: none;
  margin-bottom: 1.75rem;
  display: grid;
  gap: 0.7rem;
}

.price__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  color: rgba(243, 238, 231, 0.8);
}

.price__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
}

/* ========== FAQ ========== */
.faq {
  background: var(--paper);
}

.faq__layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.faq__list {
  display: grid;
  gap: 0.75rem;
}

.faq__item {
  border: 1px solid rgba(14, 12, 11, 0.1);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq__item[open] {
  border-color: rgba(139, 15, 10, 0.35);
  box-shadow: 0 12px 30px rgba(14, 12, 11, 0.05);
}

.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(14, 12, 11, 0.15);
  border-radius: 50%;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--burgundy);
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.faq__icon::before {
  width: 12px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  width: 1.5px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.faq__item[open] .faq__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__answer {
  padding: 0 1.25rem 1.25rem;
  color: #5c564e;
  animation: faq-open 0.35s var(--ease);
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.faq__answer strong {
  color: var(--burgundy);
}

/* ========== CONTACTS ========== */
.contacts {
  padding-top: 0;
  background: linear-gradient(180deg, var(--paper) 0%, #ebe5db 100%);
}

.contacts__panel {
  width: min(100% - 2.5rem, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: var(--ink);
  color: var(--stone);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(14, 12, 11, 0.2);
}

.contacts__copy {
  padding: clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(139, 15, 10, 0.4), transparent 55%),
    linear-gradient(160deg, #1a1210, #0e0c0b);
}

.contacts__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1rem;
}

.contacts__text {
  max-width: 38ch;
  color: rgba(243, 238, 231, 0.68);
  margin-bottom: 2rem;
}

.contacts__channels {
  display: grid;
  gap: 0.85rem;
}

.contact-link {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(243, 238, 231, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease);
}

a.contact-link:hover {
  border-color: rgba(196, 165, 116, 0.4);
  background: rgba(196, 165, 116, 0.06);
  transform: translateX(4px);
}

.contact-link__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(196, 165, 116, 0.3);
  border-radius: 50%;
}

.contact-link__icon svg {
  width: 18px;
  height: 18px;
}

.contact-link small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 238, 231, 0.45);
  margin-bottom: 0.15rem;
}

.contact-link span:last-child {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
}

.contacts__form {
  padding: clamp(2rem, 5vw, 3.5rem);
  background: #fff;
  color: var(--ink);
}

.contacts__form-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a7368;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(14, 12, 11, 0.12);
  border-radius: 6px;
  background: var(--paper);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(139, 15, 10, 0.12);
}

.contacts__form-note {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: #8a8378;
}

.form-status {
  margin-top: 0.85rem;
  min-height: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--success);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--ink);
  color: rgba(243, 238, 231, 0.55);
  padding: 2.5rem 0;
}

.footer__inner {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
}

.footer__logo img {
  width: 130px;
  margin-bottom: 0.5rem;
}

.footer__copy {
  font-size: 0.88rem;
}

.footer__sub {
  font-size: 0.8rem;
  color: rgba(243, 238, 231, 0.35);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .about__grid,
  .faq__layout,
  .contacts__panel {
    grid-template-columns: 1fr;
  }

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

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

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

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }

  .hero__gate {
    opacity: 0.35;
    right: -15%;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 56px;
  }

  .header__inner {
    gap: 0.75rem;
  }

  .header__logo img {
    width: 120px;
    height: auto;
  }

  .header__nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: grid;
    gap: 0;
    margin-left: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: rgba(14, 12, 11, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(243, 238, 231, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.35s ease;
  }

  .header__nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .header__nav a {
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(243, 238, 231, 0.08);
    font-size: 1rem;
  }

  .header__phone {
    margin-left: 0;
    margin-right: 0.25rem;
    font-size: 0.8rem;
  }

  .header__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .header__burger span:first-child { top: 15px; }
  .header__burger span:last-child { top: 23px; }

  .header__burger.is-open span:first-child,
  .header__burger.is-open span:last-child {
    top: 19px;
  }
}

@media (max-width: 640px) {
  .container,
  .contacts__panel {
    width: min(100% - 1.5rem, var(--container));
  }

  .header__phone {
    display: none;
  }

  .hero {
    min-height: 100svh;
    align-items: flex-end;
    padding-bottom: 4.5rem;
  }

  .hero__cta {
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
  }

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

  .case__meta {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .case__arrow {
    display: none;
  }

  .contacts__panel {
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
