:root {
  color-scheme: light;
  --ink: #0f1311;
  --ink-2: #161c19;
  --green: #0f3428;
  --green-2: #164a3a;
  --sand: #e3d6bf;
  --gold: #c2a46a;
  --gold-2: #e4cf9f;
  --paper: #f4efe5;
  --card: #fbf8f2;
  --muted: #5b625d;
  --line-dark: rgba(194, 164, 106, .28);
  --line-light: rgba(15, 52, 40, .14);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.02; }
em { font-style: italic; }
.wrap { width: min(1240px, calc(100% - clamp(40px, 9vw, 140px))); margin-inline: auto; }

/* Мелкая подпись над заголовком */
.eyebrow { display: inline-flex; align-items: center; gap: 14px; color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.eyebrow-dark { color: #8a7243; }

/* Верхняя полоса */
.topbar { background: #0a0d0c; color: #a7a08f; font-size: 12px; letter-spacing: .04em; }
.topbar-inner { display: flex; justify-content: center; gap: 10px; padding-block: 8px; }
.topbar a { color: var(--gold-2); border-bottom: 1px solid var(--line-dark); transition: border-color .3s; }
.topbar a:hover { border-color: var(--gold-2); }

/* Шапка */
.header { position: sticky; top: 0; z-index: 20; background: rgba(15, 19, 17, .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); color: var(--paper); border-bottom: 1px solid var(--line-dark); transition: background .3s; }
.header.is-scrolled { background: rgba(10, 13, 12, .94); }
.header-inner { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 18px; transition: min-height .3s var(--ease); }
.header.is-scrolled .header-inner { min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; line-height: 1; white-space: nowrap; }
.brand strong { display: block; font: 600 21px/1 var(--serif); letter-spacing: .14em; }
.brand small { display: block; color: var(--gold); margin-top: 6px; font-size: 8px; font-weight: 600; letter-spacing: .34em; }
.header nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); font-size: 13px; letter-spacing: .06em; }
.nav-link { position: relative; padding-block: 4px; color: #d8d2c4; transition: color .3s; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-link:hover { color: var(--paper); }
.nav-link:hover::after { transform: scaleX(1); }
.tg-pill { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-2); transition: background .3s, color .3s; }
.tg-pill svg { margin-left: -2px; }
.tg-pill:hover { background: var(--gold); color: var(--ink); }

/* Кнопки */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 17px 28px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border: 1px solid transparent; transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease), box-shadow .35s; }
.button span { font-size: 16px; letter-spacing: 0; transition: transform .35s var(--ease); }
.button:hover span { transform: translateX(4px); }
.button-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #a88a52); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(194, 164, 106, .55); }
.button-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(194, 164, 106, .7); }
.button-ghost { color: var(--paper); border-color: rgba(244, 239, 229, .3); }
.button-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.button-ghost:hover span { transform: translateY(3px); }

/* Первый экран */
.hero { position: relative; color: var(--paper); overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 52%, rgba(22, 74, 58, .55), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(194, 164, 106, .08), transparent 70%),
    var(--ink); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; min-height: clamp(560px, 46vw, 720px); }
.hero-copy { padding-block: 72px; }
h1 { margin-top: 26px; font-size: clamp(48px, 6vw, 92px); letter-spacing: -.02em; }
h1 em, .closing h2 em { display: block; font-weight: 500; background: linear-gradient(100deg, var(--gold-2), var(--gold) 60%, #a88a52); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 26px; max-width: 36ch; color: #c9c1b0; font-size: clamp(16px, 1.3vw, 18px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-art { width: 112%; max-width: none; height: auto; margin-left: -4%; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .45)); animation: appear 1.1s var(--ease) both .15s; }
@keyframes appear { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* Бегущая строка */
.ticker { overflow: hidden; background: var(--ink-2); border-block: 1px solid var(--line-dark); color: var(--sand); }
.ticker-track { display: flex; width: max-content; align-items: center; gap: 34px; padding-block: 18px; font: italic 500 clamp(20px, 2vw, 26px)/1 var(--serif); white-space: nowrap; animation: ticker 38s linear infinite; }
.ticker i { color: var(--gold); font-style: normal; font-size: 12px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Коллекция */
.collection { padding-block: clamp(72px, 9vw, 130px); }
.collection-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); }
h2 { margin-top: 18px; font-size: clamp(46px, 5.4vw, 80px); letter-spacing: -.02em; }
.category-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.category-nav a { border: 1px solid var(--line-light); border-radius: 99px; padding: 9px 16px; font-size: 13px; color: #2e3833; transition: background .3s, color .3s, border-color .3s; }
.category-nav a:hover, .category-nav a[aria-current] { background: var(--green); border-color: var(--green); color: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px); }
.card { position: relative; background: var(--card); border: 1px solid var(--line-light); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.card:hover { transform: translateY(-4px); border-color: rgba(194, 164, 106, .55); box-shadow: 0 30px 60px -30px rgba(15, 30, 24, .35); }
.card:target { outline: 1px solid var(--gold); outline-offset: 6px; }
.card-media { position: relative; overflow: hidden; }
.card-media img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.card:hover .card-media img { transform: scale(1.045); }
.card-num { position: absolute; top: 16px; left: 16px; padding: 7px 11px 8px; font: italic 500 19px/1 var(--serif); color: var(--gold-2); background: rgba(15, 19, 17, .72); border: 1px solid var(--line-dark); }
.card-text { padding: clamp(22px, 2.6vw, 36px); }
h3 { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -.01em; }
.card-text p { margin-top: 12px; color: var(--muted); max-width: 42ch; }
.card-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding-bottom: 6px; border-bottom: 1px solid var(--gold); color: var(--green); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transition: color .3s, gap .35s var(--ease); }
.card-link span { font-size: 15px; letter-spacing: 0; }
.card-link:hover { color: #8a7243; gap: 18px; }

/* Контакты */
.closing { position: relative; overflow: hidden; color: var(--paper);
  background: radial-gradient(50% 80% at 85% 20%, rgba(194, 164, 106, .12), transparent 70%), linear-gradient(160deg, var(--green-2), var(--green) 55%, #0b2a20); }
.closing-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: end; padding-block: clamp(72px, 9vw, 130px); }
.closing h2 { margin-top: 0; }
.contact { padding: clamp(26px, 3vw, 38px); border: 1px solid var(--line-dark); background: rgba(10, 20, 16, .35); backdrop-filter: blur(6px); }
.contact h3 { margin-top: 18px; font-size: 32px; }
.contact > p:not(.eyebrow) { margin-top: 10px; color: #cfc6b3; }
.contact-handle { display: inline-block; margin-top: 18px; font: italic 500 26px/1 var(--serif); color: var(--gold-2); border-bottom: 1px solid var(--line-dark); padding-bottom: 4px; transition: border-color .3s; }
.contact-handle:hover { border-color: var(--gold-2); }
.contact .button { display: flex; margin-top: 26px; width: 100%; }

/* Подвал */
.footer { background: var(--ink); color: #9d978a; font-size: 13px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; padding-block: 30px; padding-right: 72px; }
.footer .brand { color: var(--paper); }
.footer .brand strong { font-size: 17px; }
.footer a:not(.brand) { transition: color .3s; }
.footer a:not(.brand):hover { color: var(--gold-2); }

/* Плавающая кнопка Telegram */
.tg-float { position: fixed; right: 22px; bottom: 22px; z-index: 30; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: var(--ink); background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .5); transition: transform .35s var(--ease); }
.tg-float:hover { transform: translateY(-3px) scale(1.04); }
.tg-float::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(194, 164, 106, .5); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.cards .card:nth-child(2) { transition-delay: .08s; }
.cards .card:nth-child(4) { transition-delay: .08s; }
.card.is-visible:hover { transform: translateY(-4px); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding-block: 56px 0; }
  .hero-art { width: min(106%, 560px); margin: 0 auto; }
  .closing-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .topbar-inner { font-size: 11px; }
  .header-inner { min-height: 64px; gap: 10px; }
  .brand img { width: 30px; height: 30px; }
  .brand strong { font-size: 16px; letter-spacing: .1em; }
  .brand small { font-size: 7px; }
  .header nav { gap: 14px; font-size: 12px; }
  .tg-pill { width: 40px; height: 40px; }
  .cards { grid-template-columns: 1fr; }
  .hero-actions .button { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .tg-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
@media (max-width: 400px) {
  .header nav .nav-link:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
