/* ===== Design tokens ===== */
:root {
  --bg: #0b0f16;
  --bg-elevated: #121823;
  --bg-panel: rgba(18, 24, 35, 0.86);
  --bg-soft: rgba(255, 255, 255, 0.03);
  --surface: #182131;
  --surface-strong: #223047;
  --border: rgba(193, 200, 211, 0.14);
  --border-strong: rgba(193, 200, 211, 0.24);
  --text: #eef2f7;
  --text-muted: #a9b2bf;
  --text-soft: #838c98;
  --accent: #a88c57;
  --accent-strong: #d2bb86;
  --accent-glow: rgba(210, 187, 134, 0.2);
  --accent-glow-strong: rgba(210, 187, 134, 0.36);
  --whatsapp: #22c55e;
  --white: #ffffff;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-num: "IBM Plex Mono", "SF Mono", Consolas, monospace;
  --container: min(1180px, calc(100% - 40px));
  --header-height: 84px;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.42);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.26);
  --transition: 220ms ease;
}

/* ===== Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(168, 140, 87, 0.08), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(64, 84, 118, 0.12), transparent 26%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html.menu-open,
body.menu-open {
  overflow: hidden;
}

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

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.site-shell {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.site-shell__grid,
.site-shell__grid::before {
  position: absolute;
  inset: 0;
}

.site-shell__grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 85%);
  opacity: 0.22;
}

.site-shell__grid::before {
  content: "";
  background: linear-gradient(180deg, rgba(168, 140, 87, 0.12), transparent 30%);
}

.site-shell__glow {
  position: absolute;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}

.site-shell__glow--one {
  top: -12rem;
  left: -10rem;
  background: rgba(168, 140, 87, 0.75);
}

.site-shell__glow--two {
  right: -12rem;
  bottom: -12rem;
  background: rgba(93, 108, 255, 0.7);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: var(--header-height);
}

.header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--header-height);
  background: rgba(9, 11, 16, 0.45);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled::before {
  background: rgba(9, 11, 16, 0.78);
  border-color: var(--border);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.logo__photo {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  object-fit: cover;
  object-position: center 22%;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  flex-shrink: 0;
}

.logo__text {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-overlay {
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__link {
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-strong), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
}

.nav__link--cta {
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover,
.nav__link--cta:focus-visible {
  border-color: rgba(210, 187, 134, 0.42);
  box-shadow: 0 0 0 6px rgba(210, 187, 134, 0.08);
}

.burger {
  display: none;
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 999px;
  transform: translateX(-50%);
  transition: transform var(--transition), opacity var(--transition);
}

.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }

.burger.is-open span:nth-child(1) {
  transform: translateX(-50%) translateY(6px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateX(-50%) translateY(-6px) rotate(-45deg);
}

/* ===== Buttons ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 56px;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: hidden;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(-140%);
  transition: transform 0.7s ease;
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateX(140%);
}

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

.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, rgba(168, 140, 87, 0.95), rgba(95, 73, 37, 0.98));
  box-shadow: 0 18px 50px rgba(95, 73, 37, 0.28);
}

.btn--primary::after {
  content: "APPROVED";
  position: absolute;
  right: 1rem;
  bottom: 0.35rem;
  font-family: var(--font-num);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.24);
  transform: rotate(-10deg) scale(0.9);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}

.btn--primary:hover::after,
.btn--primary:focus-visible::after {
  opacity: 1;
  transform: rotate(-10deg) scale(1);
}

.btn--secondary {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  border-color: rgba(210, 187, 134, 0.42);
  box-shadow: 0 0 0 6px rgba(210, 187, 134, 0.08);
}

.btn--whatsapp {
  border-color: rgba(34, 197, 94, 0.32);
}

.btn--whatsapp:hover,
.btn--whatsapp:focus-visible {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.55);
}

.btn--telegram {
  border-color: rgba(49, 155, 242, 0.3);
}

.btn--telegram:hover,
.btn--telegram:focus-visible {
  background: rgba(49, 155, 242, 0.12);
  border-color: rgba(49, 155, 242, 0.55);
  box-shadow: 0 0 0 6px rgba(49, 155, 242, 0.08);
}

.btn--instagram {
  border-color: rgba(225, 48, 108, 0.3);
}

.btn--instagram:hover,
.btn--instagram:focus-visible {
  background: rgba(225, 48, 108, 0.12);
  border-color: rgba(225, 48, 108, 0.55);
  box-shadow: 0 0 0 6px rgba(225, 48, 108, 0.08);
}

/* ===== Shared sections ===== */
.section {
  position: relative;
  padding: 2.2rem 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: 0.9rem;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-head__eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, rgba(210, 187, 134, 0.1), rgba(210, 187, 134, 0.95));
}

.section__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--text);
  text-wrap: balance;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-height) + 2.75rem) 0 2.5rem;
  overflow: clip;
}

.hero__backdrop,
.hero__backdrop::before,
.hero__backdrop::after {
  position: absolute;
  inset: 0;
}

.hero__backdrop {
  background:
    radial-gradient(circle at 18% 20%, rgba(168, 140, 87, 0.14), transparent 22%),
    radial-gradient(circle at 80% 30%, rgba(63, 78, 112, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 14%),
    linear-gradient(180deg, #0c1118 0%, #101723 48%, #0d141d 100%);
}

.hero__backdrop::before {
  content: "";
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.04) 50%, transparent 51%),
    linear-gradient(transparent 49%, rgba(255, 255, 255, 0.04) 50%, transparent 51%);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95), transparent 86%);
  opacity: 0.28;
  animation: driftGrid 18s linear infinite;
}

.hero__backdrop::after {
  content: "";
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 64%);
  opacity: 0.4;
}

.hero__engraving {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  opacity: 0.45;
}

.hero__engraving::before,
.hero__engraving::after {
  content: "";
  position: absolute;
  inset: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.hero__engraving::after {
  inset: 3rem;
}

.hero__engraving--left {
  left: -10rem;
  top: 9rem;
}

.hero__engraving--right {
  right: -8rem;
  bottom: 4rem;
}

.hero__container {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 3rem;
  align-items: center;
}

.hero__content {
  max-width: 660px;
}

.hero__eyebrow {
  margin: 0 0 1.2rem;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 10.5ch;
  text-wrap: balance;
}

.hero__title-line {
  display: block;
}

.hero__subtitle {
  margin: 1.5rem 0 0;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero__tags {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 2rem;
  max-width: 100%;
  overflow: hidden;
}

.hero__tag {
  flex: 0 0 auto;
  padding: 0.62rem 0.82rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.metric {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.metric__value {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
}

.metric__label {
  color: var(--text-muted);
  font-size: 0.93rem;
  text-wrap: pretty;
}

.hero__visual {
  position: relative;
}

.hero__panel {
  position: relative;
  min-height: 620px;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 18%, rgba(210, 187, 134, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 26%),
    var(--bg-panel);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero__panel::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: calc(var(--radius-lg) - 10px);
}

.hero__panel-header {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero__panel-chip,
.hero__panel-code {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(10, 14, 21, 0.48);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__panel-chip {
  color: var(--accent-strong);
}

.hero__panel-code {
  margin-left: auto;
}

.hero__panel-ring {
  position: absolute;
  top: 52%;
  left: 54%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hero__panel-ring::before,
.hero__panel-ring::after {
  content: "";
  position: absolute;
  inset: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.hero__panel-ring::after {
  inset: 3.2rem;
}

.hero__panel-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, 0.05) calc(50% - 1px), rgba(255, 255, 255, 0.05) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(transparent calc(50% - 1px), rgba(255, 255, 255, 0.05) calc(50% - 1px), rgba(255, 255, 255, 0.05) calc(50% + 1px), transparent calc(50% + 1px));
  opacity: 0.32;
}

.gavel {
  position: absolute;
  top: 3.55rem;
  left: 2rem;
  width: 256px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: rgba(227, 237, 247, 0.92);
}

.gavel__svg {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.22));
  transform-origin: 120px 120px;
  animation: gavelStrike 5.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.gavel__frame {
  position: absolute;
  inset: 22px 18px 34px;
  border-radius: 28px;
  border: 1px solid rgba(210, 187, 134, 0.12);
  background:
    radial-gradient(circle at 38% 34%, rgba(210, 187, 134, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 36%),
    rgba(12, 17, 25, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 18px 32px rgba(0, 0, 0, 0.16);
}

.gavel__frame::before,
.gavel__frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.gavel__frame::after {
  inset: auto 18px 16px 18px;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(210, 187, 134, 0.3), transparent);
}

.gavel__impact {
  position: absolute;
  right: 0.85rem;
  bottom: 1.65rem;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(210, 187, 134, 0.22), rgba(210, 187, 134, 0.05) 42%, transparent 68%);
  filter: blur(14px);
  animation: impactPulse 5.4s ease-in-out infinite;
}

.gavel__mark {
  transform-origin: 120px 120px;
}

.gavel__mark rect,
.gavel__mark path,
.gavel__mark ellipse {
  shape-rendering: geometricPrecision;
}

.scales {
  position: absolute;
  top: 6.6rem;
  right: 1.65rem;
  width: 182px;
  color: rgba(255, 255, 255, 0.34);
}

.scales__svg {
  width: 100%;
  height: auto;
}

.hero__seal {
  position: absolute;
  right: 2.4rem;
  left: auto;
  top: 19%;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(210, 187, 134, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 187, 134, 0.16), rgba(210, 187, 134, 0.03) 68%);
  transform: rotate(-10deg);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.02);
  animation: sealFloat 5s ease-in-out infinite;
}

.hero__seal::before,
.hero__seal::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(210, 187, 134, 0.28);
  border-radius: 50%;
}

.hero__seal::before {
  inset: 0.7rem;
}

.hero__seal::after {
  inset: 1.25rem;
}

.hero__seal-text {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  color: var(--accent-strong);
}

.hero__note {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 1.8rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(10, 14, 21, 0.72);
  backdrop-filter: blur(12px);
}

.hero__note-label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__note-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero__scroll-label {
  color: var(--text-soft);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 68px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent);
  animation: scrollLine 2.5s ease-in-out infinite;
}

/* ===== About ===== */
.about__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2rem;
  align-items: start;
}

.about__content,
.about__aside,
.contacts__panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 20%),
    rgba(14, 18, 25, 0.72);
  box-shadow: var(--shadow-card);
}

.about__content {
  padding: 2rem;
}

.about__text {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 1rem;
  text-wrap: pretty;
}

.about__text:last-child {
  margin-bottom: 0;
}

.about__aside {
  padding: 2rem;
}

.about__quote {
  position: relative;
  min-height: 100%;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: calc(var(--radius-lg) - 10px);
  background: rgba(255, 255, 255, 0.02);
}

.about__quote-mark {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-strong);
  font-size: 2rem;
  line-height: 1;
}

.about__quote-text {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.65;
  text-wrap: pretty;
}

/* ===== Services ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.card {
  position: relative;
  isolation: isolate;
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(210, 187, 134, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    rgba(16, 21, 29, 0.82);
  overflow: hidden;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(210, 187, 134, 0.24);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

.card__index {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-strong);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
}

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.25rem;
}

.card__title {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  line-height: 1.3;
  text-wrap: balance;
}

.card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  text-wrap: pretty;
}

/* ===== Advantages ===== */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.advantage {
  padding: 1.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  min-height: 100%;
}

.advantage__number {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-strong);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
}

.advantage__title {
  margin: 0 0 0.7rem;
  font-size: 1.08rem;
  text-wrap: balance;
}

.advantage__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  text-wrap: pretty;
}

/* ===== Contacts ===== */
.contacts__panel {
  padding: 2.6rem;
  text-align: center;
}

.contacts__intro {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1rem;
  text-wrap: pretty;
}

.contacts__phone {
  display: inline-block;
  margin-top: 1.35rem;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color var(--transition), transform var(--transition);
}

.contacts__phone:hover,
.contacts__phone:focus-visible {
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.contacts__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin-top: 1.45rem;
}

.contacts__note {
  max-width: 40rem;
  margin: 1.35rem auto 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  text-wrap: pretty;
}

/* ===== Footer ===== */
.footer {
  padding: 1.6rem 0 2rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.footer__info {
  display: grid;
  gap: 0.38rem;
}

.footer__text,
.footer__meta,
.footer__link {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footer__text,
.footer__meta {
  margin: 0;
}

.footer__meta {
  font-size: 0.85rem;
}

.footer__reg {
  display: inline-block;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(210, 187, 134, 0.45);
  padding-bottom: 0.08rem;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--text);
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Keyframes ===== */
@keyframes driftGrid {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, 24px, 0);
  }
}

@keyframes scrollLine {
  0%, 100% {
    opacity: 0.3;
    transform: scaleY(0.65);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

@keyframes gavelStrike {
  0%, 100% {
    transform: rotate(-7deg) translateY(0);
  }
  16% {
    transform: rotate(2deg) translateY(-1px);
  }
  23% {
    transform: rotate(7deg) translateY(1px);
  }
  29% {
    transform: rotate(-3deg) translateY(0);
  }
  38% {
    transform: rotate(-1deg) translateY(0);
  }
  70% {
    transform: rotate(-7deg) translateY(0);
  }
}

@keyframes impactPulse {
  0%, 18%, 100% {
    opacity: 0;
    transform: scale(0.84);
  }
  24% {
    opacity: 0.65;
    transform: scale(1.05);
  }
  34% {
    opacity: 0.1;
    transform: scale(1.28);
  }
}

@keyframes sealFloat {
  0%, 100% {
    transform: translate(-50%, -50%) rotate(-12deg);
  }
  50% {
    transform: translate(-50%, calc(-50% - 8px)) rotate(-7deg);
  }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .hero__grid,
  .about__layout {
    grid-template-columns: 1fr;
  }

  .hero__content {
    max-width: none;
  }

  .hero__panel {
    min-height: 560px;
    max-width: 720px;
    margin: 0 auto;
  }

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

@media (max-width: 820px) {
  :root {
    --header-height: 76px;
    --container: min(100% - 24px, 1180px);
  }

  .burger {
    display: inline-flex;
  }

  .nav-overlay {
    position: fixed;
    inset: var(--header-height) 0 auto;
    padding: 0.75rem 0 1rem;
    background: rgba(9, 11, 16, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition), visibility var(--transition);
  }

  .nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav {
    width: var(--container);
    margin: 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .nav__link {
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
  }

  .nav__link::after {
    display: none;
  }

  .nav__link--cta {
    text-align: center;
  }

  .hero {
    padding-top: calc(var(--header-height) + 2rem);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 160px;
    grid-template-areas:
      "eyebrow eyebrow"
      "title visual"
      "subtitle subtitle"
      "actions actions"
      "tags tags"
      "metrics metrics";
    gap: 0.9rem 0.9rem;
    align-items: start;
  }

  .hero__content {
    display: contents;
  }

  .hero__eyebrow {
    grid-area: eyebrow;
    margin-bottom: 0;
  }

  .hero__title {
    grid-area: title;
    max-width: 7.2ch;
    margin-top: 0.1rem;
    font-size: clamp(2.3rem, 8.6vw, 3.55rem);
    line-height: 0.96;
  }

  .hero__visual {
    grid-area: visual;
    align-self: start;
    justify-self: start;
    width: 100%;
    margin-top: 3.1rem;
    margin-left: -1.85rem;
    transform: none;
  }

  .hero__subtitle {
    grid-area: subtitle;
    max-width: 34rem;
    margin-top: 0.5rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero__actions {
    grid-area: actions;
    margin-top: 0.65rem;
    gap: 0.85rem;
  }

  .hero__tags {
    grid-area: tags;
    margin-top: 0.45rem;
    gap: 0.55rem;
  }

  .hero__tag {
    padding: 0.58rem 0.85rem;
    font-size: 0.82rem;
  }

  .hero__metrics {
    grid-area: metrics;
    margin-top: 0.35rem;
  }

  .hero__metrics,
  .services__grid,
  .advantages__grid {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    min-height: auto;
    width: 176px;
    max-width: 176px;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0.72rem;
    border-radius: 24px;
  }

  .hero__panel-header {
    top: 0.6rem;
    left: 0.6rem;
    right: 0.6rem;
    gap: 0.35rem;
  }

  .hero__panel-chip,
  .hero__panel-code {
    min-height: 22px;
    padding: 0.22rem 0.45rem;
    font-size: 0.45rem;
    letter-spacing: 0.12em;
  }

  .hero__panel::before {
    inset: 0.55rem;
    border-radius: 20px;
  }

  .hero__panel-ring {
    top: 60%;
    left: 54%;
    width: 112px;
    height: 112px;
  }

  .hero__panel-ring::before {
    inset: 0.8rem;
  }

  .hero__panel-ring::after {
    inset: 1.8rem;
  }

  .hero__panel-lines {
    opacity: 0.32;
  }

  .gavel {
    top: 1.35rem;
    left: 0.45rem;
    width: 110px;
  }

  .scales {
    top: 2.4rem;
    right: 0.55rem;
    width: 62px;
    color: rgba(255, 255, 255, 0.26);
  }

  .hero__seal {
    width: 50px;
    height: 50px;
    top: 0.8rem;
    right: 0.75rem;
  }

  .hero__seal::before {
    inset: 0.45rem;
  }

  .hero__seal::after {
    inset: 0.95rem;
  }

  .hero__seal-text {
    font-size: 0.34rem;
    letter-spacing: 0.18em;
  }

  .hero__note {
    display: none;
  }

  .contacts__panel {
    padding: 1.7rem 1.15rem;
  }

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

@media (max-width: 560px) {
  :root {
    --header-height: 70px;
  }

  .section {
    padding: 1.75rem 0;
  }

  .logo__text {
    font-size: 0.82rem;
  }

  .hero__actions,
  .contacts__actions {
    flex-direction: column;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 152px;
    gap: 0.85rem 0.55rem;
  }

  .btn {
    width: 100%;
  }

  .hero__engraving--left {
    left: -14rem;
  }

  .hero__engraving--right {
    right: -14rem;
  }

  .hero__eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
  }

  .hero__title {
    max-width: 6.6ch;
    font-size: clamp(2rem, 8.8vw, 3rem);
  }

  .hero__visual {
    margin-top: 3.55rem;
    margin-left: -2rem;
  }

  .hero__subtitle {
    margin-top: 0.6rem;
    font-size: 0.97rem;
  }

  .hero__panel {
    width: 152px;
    max-width: 152px;
    aspect-ratio: 1 / 1;
    padding: 0.7rem;
  }

  .hero__panel-header {
    top: 0.55rem;
    left: 0.55rem;
    right: 0.55rem;
  }

  .hero__panel-chip,
  .hero__panel-code {
    min-height: 20px;
    padding: 0.18rem 0.38rem;
    font-size: 0.4rem;
  }

  .hero__panel-ring {
    width: 96px;
    height: 96px;
  }

  .gavel {
    top: 1.18rem;
    left: 0.38rem;
    width: 92px;
  }

  .scales {
    top: 2.15rem;
    right: 0.32rem;
    width: 54px;
  }

  .hero__seal {
    width: 44px;
    height: 44px;
    top: 0.8rem;
    right: 0.55rem;
  }

  .hero__note {
    display: none;
  }

  .hero__scroll {
    display: none;
  }

  .hero__tags {
    margin-top: 0.25rem;
    justify-content: center;
    gap: 0.28rem;
  }

  .hero__tag {
    padding: 0.46rem 0.56rem;
    font-size: 0.67rem;
    letter-spacing: -0.01em;
  }

  .hero__metrics {
    margin-top: 0.25rem;
  }

  .metric {
    padding: 0.95rem 1rem;
  }

  .contacts__phone {
    font-size: 1.6rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

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