:root{
  --bg: 15 17 19;      /* #0F1113 */
  --surface: 22 24 27; /* #16181B */
  --card: 28 31 35;    /* #1C1F23 */
  --text: 218 212 201; /* #DAD4C9 */
  --muted: 156 150 140;
  --accent: 199 162 107; /* золото */
  --line: 199 162 107;

  --radius-2xl: 20px;
  --container: 1240px;

  --font-serif: var(--font-cormorant), ui-serif, Georgia, "Times New Roman", Times, serif;
  --tracking-hero: 0.22em;
  --tracking-card: 0.28em;
}

/* ===== База ===== */
html, body { height: 100%; }
html { font-synthesis-weight: none; }
body {
  font-family: var(--font-cormorant), ui-serif, Georgia, serif;
  font-weight: 300;
}

/* ===== Только Firefox: компенсация веса ===== */
@supports (-moz-appearance:none){
  :root{ --ff-wght: 272 } /* подстройка 268–278 по твоему монитору */

  body, h1, h2, h3, .gold-emboss{
    font-weight: 300;                            /* метрики */
    font-variation-settings: "wght" var(--ff-wght); /* фактический тоньший штрих, если variable */
    text-rendering: geometricPrecision;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Утилиты под макет */
.container{ max-width: var(--container); margin-inline:auto; padding-inline:24px; }
.bg-card{ background: rgb(var(--card)); }
.text-muted{ color: rgb(var(--muted)); }
.text-accent{ color: rgb(var(--accent)); }
.border-line{ border-color: color-mix(in oklab, rgb(var(--line)) 28%, transparent); }

/* Заголовки как в фигме */
.h-hero{
  letter-spacing: var(--tracking-hero);
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.15;
}
.h-section{
  letter-spacing: var(--tracking-hero);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.2;
}

/* Карточки разделов */
.card{
  background: rgb(var(--card));
  border: 1px solid color-mix(in oklab, rgb(var(--line)) 28%, transparent);
  border-radius: var(--radius-2xl);
  padding: 20px;
  transition: transform .25s ease, border-color .25s ease;
  will-change: transform;
}
.card:hover{ transform: translateY(-2px); }
.card__img{
  aspect-ratio: 4/3;
  border: 1px solid color-mix(in oklab, rgb(var(--line)) 28%, transparent);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  margin-bottom: 12px;
}
.card__label{
  text-align: center;
  letter-spacing: var(--tracking-card);
  font-size: 12px;
}

/* Хедер/низ */
.header{
  position: fixed; inset-inline:0; top:0; height:64px;
  z-index: 50; display:flex; align-items:center;
}
.footer{ color: rgb(var(--muted)); padding: 48px 0; text-align: center; }
.text-accent{ color: rgb(var(--accent)); }


  /* чтобы браузер не подделывал толщину */
html { font-synthesis-weight: none; }

.imag{opacity: 0.68!important;}







/* === Debossed gold — как в макете === */
.gold-emboss {
  position: relative;
  display: inline-block;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.08;

  /* Заливка букв — градиент TL → BR */
  background-image: linear-gradient(to bottom right, #BD9574 0%, #BD8454 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;

  /* Едва заметная опора под глифы (как у Figma Drop 0/2/0.9/46%) */
  text-shadow: -1px -0.7px 2px rgba(0,0,0,0.46);
}

/* Верхний блик — имитация «вдавливания» светом сверху */
.gold-emboss::before{
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* тонкая светлая полоска сверху и к середине — в ноль */
  background: linear-gradient(to bottom, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 55%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;

  transform: translateY(-1px);     /* смещение вверх = блик на верхнем ребре */
  filter: blur(.6px);
  mix-blend-mode: screen;
  opacity: .8;
}

/* Внутренняя тень снизу — «впуклость» */
.gold-emboss::after{
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* затемнение от низа к центру */
  background: linear-gradient(to top, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0) 55%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;

  transform: translateY(3px);      /* Figma inner: Y=3 */
  filter: blur(1px);               /* Figma inner: Blur=1 */
  mix-blend-mode: multiply;
  opacity: .9;
}

body{padding-top:60px!important;}
header{top: 60px!important;}
main h1{margin-top: 13vh;}

.windows{padding:35px 45px ; background: rgba(55, 55, 55, 0.95);border:1px solid #bd95742d;padding: 35px 45px;}

  .itemn{color:#B8B0A3;font-size:22px;}
  .itemw{color:#E7E1D6;font-size:18px;}
  .itemp{color:#E7E1D6;font-size:18px;}






@media screen and (max-width: 760px) {
  img.gold_emboss { width: 50px; }
  header { top: 0px !important; }
  body { padding-top: 60px !important; }
  main h1 { margin-top: 1vh; }
}


.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: "Inter", sans-serif;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: #BD9574;

  padding: 14px 32px;
  border-radius: 12px;

  /* Внутренняя обводка */
  border: 1px solid rgba(189, 149, 116, 0.25); /* #BD9574 @25% */

  /* Внутренняя тень — имитация глубины */
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.15),
    1px 1px 1px 1px rgba(0, 0, 0, 0.10); /* внешняя тень из Figma */

  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(2px);
  transition: all 0.25s ease;
}

.btn-gold:hover {
  background: rgba(189, 149, 116, 0.10);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.25),
    2px 2px 3px 3px rgba(0, 0, 0, 0.20);
  color: #F1E9D8;
  transform: translateY(-1px);
}

.btn-gold:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.25);
}

.trans{transition:3s}