/* MIRA — дизайн-система владельца, файл mira.css из mira_design_handoff.zip (24.09).
 *
 * 🔴 ВЗЯТ КАК ЕСТЬ. Правка ровно одна, и она разрешена README архива: убран
 * @import шрифтов — импорт внутри CSS тормозит первую отрисовку, шрифты
 * подключены <link> в разметке теми же семействами (Cormorant Garamond, Manrope).
 * Всё остальное — переменные, классы, брейкпоинты — не тронуто ни на строку,
 * чтобы следующий мог сверить файл с архивом по diff, а не читать глазами.
 */

:root {
  --bg-primary: #090b0c;
  --bg-secondary: #0d1012;
  --bg-elevated: #121517;
  --bg-card: #101315;

  --text-primary: #f1e9dd;
  --text-secondary: #b9b2a8;
  --text-muted: #77756f;

  --gold-primary: #c9975d;
  --gold-light: #e3b977;
  --gold-soft: #ad7c49;
  --gold-dark: #715034;

  --border-subtle: rgba(225, 185, 119, 0.13);
  --border-default: rgba(225, 185, 119, 0.24);
  --border-strong: rgba(225, 185, 119, 0.5);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1280px;
  --radius-card: 14px;
  --radius-pill: 999px;

  --section-space: 120px;
  --section-space-lg: 150px;
  --section-space-mobile: 72px;

  --transition: 320ms ease-out;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-primary);
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  background:
    radial-gradient(
      circle at 70% 12%,
      rgba(174, 118, 60, 0.07),
      transparent 28%
    ),
    var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

::selection {
  background: rgba(201, 151, 93, .28);
  color: var(--text-primary);
}

/* Layout */

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
  border-top: 1px solid rgba(255,255,255,.045);
}

.section--large {
  padding-block: var(--section-space-lg);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Typography */

.display,
.hero-title,
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-primary);
}

.hero-title {
  font-size: clamp(64px, 6vw, 92px);
  line-height: .94;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.section-title {
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1;
  text-wrap: balance;
}

.body-copy {
  max-width: 680px;
  color: var(--text-secondary);
}

.body-copy--large {
  font-size: 19px;
}

.small {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--gold-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.highlight {
  color: var(--gold-light);
  font-weight: 600;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 84px;
  display: flex;
  align-items: center;
  background: rgba(9, 11, 12, .76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.site-header__inner {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  color: var(--gold-light);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .28em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 13px;
  transition: color var(--transition);
}

.site-nav a:hover {
  color: var(--text-primary);
}

/* Buttons */

.button {
  min-height: 54px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.button-primary {
  color: #17120d;
  background: linear-gradient(180deg, #e4bd80 0%, #c89559 100%);
  box-shadow: 0 8px 30px rgba(199, 148, 82, .14);
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 36px rgba(199, 148, 82, .24);
}

.button-secondary {
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-default);
}

.button-secondary:hover {
  border-color: var(--border-strong);
}

/* Hero */

.hero {
  min-height: calc(100svh - 84px);
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 64px;
  align-items: center;
  padding-block: 72px 96px;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__description {
  max-width: 610px;
  margin-top: 28px;
  font-size: 18px;
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__formats {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--text-muted);
  font-size: 13px;
}

.hero__format {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 12% 15%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(201,151,93,.08);
  filter: blur(90px);
}

/* Cards */

.card {
  background: rgba(255,255,255,.015);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px;
}

.card__icon {
  width: 24px;
  height: 24px;
  margin-bottom: 18px;
  color: var(--gold-primary);
  stroke-width: 1.5;
}

.card__title {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
}

.card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step {
  padding: 0 36px;
}

.step:first-child {
  padding-left: 0;
}

.step:last-child {
  padding-right: 0;
}

.step + .step {
  border-left: 1px solid rgba(255,255,255,.07);
}

.step-number {
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
  color: var(--gold-primary);
}

.step-title {
  margin: 0 0 10px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
}

.step-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Brand flow motif */

.flow {
  position: relative;
}

.flow svg path {
  stroke: #bc8753;
  stroke-width: 1;
  opacity: .5;
  fill: none;
}

.flow svg circle {
  fill: var(--gold-primary);
}

.flow__endpoint {
  filter: drop-shadow(0 0 18px rgba(227,185,119,.3));
}

/* Image treatment */

.cinematic-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.65) contrast(1.06) brightness(.72);
}

.image-overlay {
  position: relative;
  overflow: hidden;
}

.image-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      var(--bg-primary) 0%,
      rgba(9,11,12,.7) 35%,
      rgba(9,11,12,.1) 70%
    );
}

/* Security */

.security {
  background: var(--bg-secondary);
}

.security__icon {
  width: 56px;
  height: 56px;
  color: var(--gold-light);
  stroke-width: 1.2;
}

.security-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.security-item {
  padding: 0 30px;
}

.security-item:first-child {
  padding-left: 0;
}

.security-item:last-child {
  padding-right: 0;
}

.security-item + .security-item {
  border-left: 1px solid rgba(255,255,255,.07);
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pricing-card {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: rgba(255,255,255,.012);
}

.pricing-card--featured {
  border-color: rgba(224,178,107,.6);
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(205,150,84,.08),
      transparent 55%
    );
}

.pricing-card__term {
  color: var(--gold-light);
  font-size: 15px;
  font-weight: 600;
}

.pricing-card__price {
  margin-top: 8px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
}

.pricing-card__monthly {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.pricing-card__description {
  margin-top: 26px;
  color: var(--text-secondary);
  font-size: 14px;
}

.pricing-card__action {
  margin-top: auto;
  padding-top: 32px;
}

/* Glow */

.gold-glow {
  box-shadow: 0 0 36px rgba(211,156,87,.12);
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 460ms ease-out,
    transform 460ms ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

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

/* Tablet */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr .8fr;
    gap: 40px;
  }

  .hero__visual {
    min-height: 440px;
  }

  .site-nav {
    gap: 20px;
  }

  .section {
    padding-block: 96px;
  }
}

/* Mobile */

@media (max-width: 768px) {
  :root {
    --section-space: var(--section-space-mobile);
  }

  body {
    font-size: 16px;
  }

  .container,
  .site-header__inner {
    width: calc(100% - 36px);
  }

  .site-header {
    min-height: 64px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-block: 30px 64px;
  }

  .hero__visual {
    order: -1;
    width: 100%;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(42px, 12vw, 48px);
    line-height: .98;
  }

  .section-title {
    font-size: clamp(36px, 10vw, 44px);
  }

  .hero__description {
    margin-top: 22px;
    font-size: 16px;
  }

  .hero__actions {
    margin-top: 26px;
  }

  .button {
    min-height: 52px;
  }

  .grid-2,
  .grid-3,
  .pricing-grid,
  .security-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .steps {
    display: block;
  }

  .step {
    padding: 28px 0;
  }

  .step:first-child {
    padding-top: 0;
  }

  .step:last-child {
    padding-bottom: 0;
  }

  .step + .step {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.07);
  }

  .step-number {
    font-size: 48px;
    margin-bottom: 16px;
  }

  .security-item {
    padding: 24px 0;
  }

  .security-item + .security-item {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.07);
  }

  .pricing-card {
    min-height: auto;
  }
}
