:root {
  --bg-black: #0a0806;
  --bg-black-2: #120c0a;
  --gold: #d9c199;
  --gold-bright: #ecdcb8;
  --gold-dim: #a5854f;
  --maroon: #5a0f1e;
  --maroon-bright: #7a1626;
  --text-cream: #ece3d3;
  --text-muted: #b7a888;
  --card-border: rgba(201, 168, 118, 0.28);
  --card-bg: rgba(24, 16, 13, 0.55);
  --radius-card: 26px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-black);
  color: var(--text-cream);
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  position: relative;
  display: flex;
  justify-content: center;
}

/* ---------- background texture ---------- */

.bg-layer {
  position: fixed;
  top: -8%;
  left: -8%;
  right: -8%;
  bottom: -8%;
  z-index: 0;
  filter: contrast(1.12) brightness(0.6);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  will-change: transform;
  background-image: url('../assets/backgrounds/bg_phone.webp');
}
 
@media (min-width: 601px) and (max-width: 1023px) {
  .bg-layer {
    background-image: url('../assets/backgrounds/bg_tablet.webp');
  }
}
 
@media (min-width: 1024px) {
  .bg-layer {
    background-image: url('../assets/backgrounds/bg_pc.webp');
  }
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background:
    radial-gradient(
      ellipse at center 42% 38%,
      rgba(0, 0, 0, 0.02) 0%,
      rgba(0, 0, 0, 0.18) 38%,
      rgba(0, 0, 0, 0.48) 72%,
      rgba(0, 0, 0, 0.72) 100%
    );
}

/* ---------- layout ---------- */

.page {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  padding: 56px 26px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- hero ---------- */

.hero {
  text-align: center;
  margin-bottom: 8px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.logo-image {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 128px;
  height: 64px;
}

.logo-image img {
  display: block;
  width: 128px;
  height: 64px;

  filter:
    brightness(0)
    saturate(100%)
    invert(70%)
    sepia(24%)
    saturate(520%)
    hue-rotate(355deg)
    brightness(92%)
    contrast(105%)
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 5px rgba(210, 165, 90, 0.18));
}

.logo-shine {
  position: absolute;
  inset: 0;

  pointer-events: none;
  z-index: 2;

  background:
    linear-gradient(
      105deg,
      transparent 0%,

      transparent calc(var(--logo-shine, -20%) - 9%),

      rgba(255, 225, 160, 0.08)
        calc(var(--logo-shine, -20%) - 7%),

      rgba(255, 241, 195, 0.45)
        calc(var(--logo-shine, -20%) - 3%),

      rgba(255, 252, 225, 0.95)
        var(--logo-shine, -20%),

      rgba(255, 241, 195, 0.45)
        calc(var(--logo-shine, -20%) + 3%),

      rgba(255, 225, 160, 0.08)
        calc(var(--logo-shine, -20%) + 7%),

      transparent
        calc(var(--logo-shine, -20%) + 9%),

      transparent 100%
    );

  mix-blend-mode: screen;

  -webkit-mask-image: url('../assets/logo.png');
  mask-image: url('../assets/logo.png');

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: center;
  mask-position: center;

  -webkit-mask-size: contain;
  mask-size: contain;

  opacity: 0.9;

  filter:
    drop-shadow(0 0 3px rgba(255, 235, 180, 0.35))
    drop-shadow(0 0 8px rgba(255, 210, 120, 0.18));
}

.spark {
  color: var(--gold-bright);
  font-size: 13px;
  filter: drop-shadow(0 0 6px rgba(232, 213, 176, 0.5));
}

.logo-text {
  font-family: 'Cormorant SC', serif;
  font-size: 58px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 2px;

  position: relative;

  color: transparent;

  background:
    linear-gradient(
      110deg,
      #6f4d24 0%,
      #b88a4b 25%,
      #c79a5b 38%,

      #ead9b5 45%,
      #f3e6c8 50%,
      #d6b878 55%,

      #9a6b35 68%,
      #e2bd7b 82%,
      #795127 100%
    );

  background-size: 220% 100%;
  background-position: var(--logo-shine, 0%) center;

  -webkit-background-clip: text;
  background-clip: text;

  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.8))
    drop-shadow(0 0 7px rgba(210, 165, 90, 0.16));
}

.logo-r2 {
  margin-left: -14px;
  position: relative;
  top: 4px;
}

.brand {
  font-family: 'Cormorant SC', serif;
  font-weight: 600;
  font-size: clamp(26px, 8.5vw, 44px);
  letter-spacing: clamp(2px, 0.5vw, 6px);
  margin: 0 0 18px;
  white-space: nowrap;
  text-transform: uppercase;
  background: linear-gradient(180deg,
    #f3e6d3 0%,
    #e6cfae 45%,
    #cdab7c 75%,
    #b8946a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(217, 193, 153, 0.2));
}

/* ---------- elegant gold divider ---------- */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 320px;

  margin: 0 auto 18px;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  opacity: 0.75;
}

.divider::before {
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(165, 133, 79, 0.06) 15%,
      rgba(180, 145, 90, 0.18) 48%,
      rgba(220, 190, 135, 0.38) 88%,
      rgba(245, 225, 185, 0.70) 100%
    );
}

.divider::after {
  background:
    linear-gradient(
      90deg,
      rgba(245, 225, 185, 0.70) 0%,
      rgba(220, 190, 135, 0.38) 12%,
      rgba(180, 145, 90, 0.18) 52%,
      rgba(165, 133, 79, 0.06) 85%,
      transparent 100%
    );
}

/* маленькая ювелирная звезда */

.divider-star {
  position: relative;

  width: 14px;
  height: 14px;

  flex: 0 0 14px;

  background: rgba(255, 246, 220, 0.92);

  clip-path: polygon(
    50% 0%,
    56% 43%,
    100% 50%,
    56% 57%,
    50% 100%,
    44% 57%,
    0% 50%,
    44% 43%
  );

  filter:
    drop-shadow(0 0 2px rgba(255, 239, 195, 0.65))
    drop-shadow(0 0 5px rgba(218, 178, 105, 0.25));
}

.divider-star::after {
  content: "";

  position: absolute;
  left: 50%;
  top: 50%;

  width: 3px;
  height: 3px;

  transform: translate(-50%, -50%);

  border-radius: 50%;

  background: #fffdf2;

  box-shadow:
    0 0 3px rgba(255, 248, 220, 0.9),
    0 0 7px rgba(235, 200, 130, 0.45);
}

.footer-divider {
  margin-top: 30px;
  margin-bottom: 22px;
}

.tagline {
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(11px, 3vw, 14px);
  letter-spacing: clamp(1.5px, 0.8vw, 4px);
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  margin: 0 0 36px;
}

/* ---------- links ---------- */

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  position: relative;

  display: flex;
  align-items: center;
  gap: 16px;

  min-height: 88px;
  padding: 16px 20px;

  border-radius: var(--radius-card);

  border: 1px solid rgba(255, 225, 205, 0.07);

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.018) 45%,
      rgba(20, 8, 8, 0.12)
    );

  text-decoration: none;
  color: inherit;

  backdrop-filter: blur(3px) saturate(125%);
  -webkit-backdrop-filter: blur(3px) saturate(125%);

  box-shadow:
    inset 0 1px 0 rgba(255, 245, 235, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 10px 30px rgba(0, 0, 0, 0.32);

  overflow: hidden;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.card::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  pointer-events: none;
  z-index: 0;

  background:
    linear-gradient(
      var(--glass-angle, 135deg),
      rgba(255, 245, 235, 0.16) 0%,
      rgba(255, 245, 235, 0.035) 18%,
      transparent 38%,
      transparent 67%,
      rgba(214, 155, 155, 0.045) 82%,
      rgba(255, 235, 220, 0.10) 100%
    );

  opacity: 0.85;

  transition:
    background 0.8s ease,
    opacity 0.8s ease;
}

.card::after {
  content: "";

  position: absolute;
  inset: 0;

  padding: 1px;
  border-radius: inherit;

  pointer-events: none;
  z-index: 3;

  background:
    conic-gradient(
      from var(--edge-angle, 215deg),

      rgba(255, 235, 220, 0.08) 0deg,
      rgba(255, 235, 220, 0.08) 35deg,

      rgba(255, 250, 242, 0.72) 48deg,
      rgba(255, 225, 210, 0.18) 61deg,

      rgba(255, 235, 220, 0.06) 105deg,

      rgba(255, 248, 238, 0.38) 145deg,
      rgba(255, 225, 210, 0.10) 158deg,

      rgba(255, 235, 220, 0.06) 220deg,

      rgba(255, 248, 238, 0.55) 275deg,
      rgba(255, 225, 210, 0.10) 290deg,

      rgba(255, 235, 220, 0.08) 360deg
    );

  /*
   * Оставляем только 1px кольцо по краю.
   */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);

  -webkit-mask-composite: xor;

  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);

  mask-composite: exclude;

  filter:
    drop-shadow(0 0 2px rgba(255, 225, 205, 0.22))
    drop-shadow(0 0 7px rgba(255, 190, 175, 0.07));

  opacity: 0.9;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(217, 193, 153, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 12px 28px rgba(0,0,0,0.45),
    0 0 22px rgba(180, 140, 70, 0.15);
}

.card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.card-icon {
  flex: 0 0 46px;

  width: 46px;
  height: 46px;

  min-width: 46px;
  min-height: 46px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.card-icon svg {
  width: 22px;
  height: 22px;

  flex: 0 0 22px;
}

.icon-maroon {
  background: radial-gradient(circle at 35% 30%, var(--maroon-bright), var(--maroon) 70%);
  color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px rgba(217,193,153,0.25);
}

.icon-outline {
  background: rgba(255,255,255,0.02);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(217,193,153,0.4);
}

.icon-menu {
  background: radial-gradient(circle at 35% 30%, var(--maroon-bright), var(--maroon) 70%);
  color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px rgba(217,193,153,0.35);
}

.card-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 21px;
  color: var(--text-cream);
  font-weight: 500;
}

.card-title-caps {
  letter-spacing: 4px;
  text-transform: uppercase;
  font-family: 'Cormorant SC', serif;
  font-size: 22px;
}

.card-sub {
  font-size: 15px;
  color: var(--gold-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chevron {
  flex: none;
  font-size: 22px;
  color: var(--gold-dim);
}

.card-menu {
  background: linear-gradient(135deg, rgba(90,15,30,0.35), rgba(20,10,10,0.55));
  border-color: rgba(217,193,153,0.35);
}

/* ---------- footer ---------- */

.footer {
  text-align: center;
  margin-top: 4px;
}

.footer-line {
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(11px, 3vw, 14px);
  letter-spacing: clamp(1.5px, 0.8vw, 2.5px);
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.footer-city {
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(11px, 3vw, 14px);
  letter-spacing: clamp(1.5px, 0.8vw, 2.5px);
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px;
}

/* ---------- responsive ---------- */

@media (max-width: 380px) {
  .brand { font-size: 30px; letter-spacing: 5px; }
  .logo-text { font-size: 46px; }
  .card-title { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}

/* ---------- микроцарапины и следы на стекле ---------- */

.glass-wear {
  position: absolute;
  inset: 0;

  z-index: 2;
  pointer-events: none;

  border-radius: inherit;
  overflow: hidden;

  background-image: url('../assets/glass-wear.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  opacity: 0.2;

  mix-blend-mode: screen;

  /* лёгкая интеграция текстуры со стеклом */
  filter: contrast(1.15) brightness(1.02);
}

.spark {
  display: block;
  width: 18px;
  height: 18px;
  color: #e8d8b8;

  filter:
    drop-shadow(0 0 3px rgba(255, 240, 200, 0.55))
    drop-shadow(0 0 8px rgba(220, 180, 100, 0.18));
}

.spark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.spark path {
  fill: currentColor;
}

/* ---------- символы в кнопках ---------- */

.icon-symbol {
  background: rgba(20, 10, 10, 0.35);
  box-shadow:
    inset 0 0 0 1px rgba(217, 193, 153, 0.28),
    0 0 10px rgba(180, 140, 70, 0.06);
}

.icon-symbol img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  opacity: 0.9;
}

/* ---------- юридическая сноска ---------- */

.instagram-note {
  width: 100%;
  max-width: 360px;

  margin: 20px auto 0;

  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  line-height: 1.55;
  font-weight: 300;
  letter-spacing: 0.05px;

  text-align: center;

  color: rgba(205, 192, 165, 0.68);
}

/* ---------- золотые частицы ---------- */

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

.particle {
  position: absolute;

  width: var(--size);
  height: var(--size);

  border-radius: 50%;

  background: rgba(236, 220, 184, var(--opacity));

  box-shadow:
    0 0 4px rgba(236, 220, 184, 0.18),
    0 0 10px rgba(210, 165, 90, 0.08);

  animation:
    particle-float var(--duration) linear infinite;

  animation-delay: var(--delay);
}

@keyframes particle-float {
  0% {
    transform:
      translate3d(0, 110vh, 0)
      scale(0.7);
  }

  25% {
    transform:
      translate3d(var(--drift-1), 75vh, 0)
      scale(1);
  }

  50% {
    transform:
      translate3d(var(--drift-2), 50vh, 0)
      scale(0.85);
  }

  75% {
    transform:
      translate3d(var(--drift-3), 25vh, 0)
      scale(1);
  }

  100% {
    transform:
      translate3d(var(--drift-4), -10vh, 0)
      scale(0.65);
  }
}

/* ---------- экран загрузки ---------- */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #0a0806;

  opacity: 1;
  visibility: visible;

  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

.loader-logo {
  position: relative;

  width: 128px;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo img {
  display: block;

  width: 128px;
  height: 64px;

  filter:
    brightness(0)
    saturate(100%)
    invert(70%)
    sepia(24%)
    saturate(520%)
    hue-rotate(355deg)
    brightness(92%)
    contrast(105%)
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 5px rgba(210, 165, 90, 0.18));
}

.loader-logo-shine {
  position: absolute;
  inset: 0;

  pointer-events: none;
  z-index: 2;

  background:
    linear-gradient(
      105deg,
      transparent 0%,
      transparent 44%,
      rgba(255, 225, 160, 0.08) 46%,
      rgba(255, 241, 195, 0.45) 48.5%,
      rgba(255, 252, 225, 0.95) 50%,
      rgba(255, 241, 195, 0.45) 51.5%,
      rgba(255, 225, 160, 0.08) 54%,
      transparent 56%,
      transparent 100%
    );

  mix-blend-mode: screen;

  -webkit-mask-image: url('../assets/logo.png');
  mask-image: url('../assets/logo.png');

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: center;
  mask-position: center;

  -webkit-mask-size: contain;
  mask-size: contain;

  opacity: 0;

  animation: loader-shine 2.8s ease-in-out infinite;
}

@keyframes loader-shine {
  0% {
    opacity: 0;
    background-position: -120% 0;
  }

  15% {
    opacity: 0.9;
  }

  50% {
    opacity: 0.9;
    background-position: 0% 0;
  }

  75% {
    opacity: 0.9;
    background-position: 120% 0;
  }

  100% {
    opacity: 0;
    background-position: 120% 0;
  }
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .loader-logo-shine {
    animation: none;
    opacity: 0;
  }

  .page-loader {
    transition: none;
  }
}