/* FABIER · сайт. Дизайн v2 (Claude Design), перенесён в обычный HTML/CSS/JS. */
:root {
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ink: #2F2E2E; --accent: #71141C; --gold: #8A7457; --soft: #F4F4F2;
  --line: #d8d6d0; --line2: #e8e6e1; --muted: #5c5a57;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lock { overflow: hidden; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-weight: 300; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
img { -webkit-user-drag: none; }
a { color: var(--ink); text-decoration: none; transition: color .3s; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, figure { margin: 0; font-weight: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.big { font-family: var(--serif); font-size: clamp(48px, 7vw, 104px); line-height: .9; font-weight: 300; }
.mid { font-family: var(--serif); font-size: clamp(40px, 5.6vw, 84px); line-height: .95; font-weight: 300; }
.mid i, .hero h1 i { color: var(--accent); }
.btn { display: inline-block; padding: 17px 30px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 400; text-align: center; border: 1px solid var(--ink); transition: background-color .3s, color .3s, border-color .3s; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--line:hover { background: var(--ink); color: #fff; }

/* появление */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1.2s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* шторка */
.curtain { position: fixed; inset: 0; z-index: 100; background: #fff; display: flex; align-items: center; justify-content: center; transition: transform 1.1s cubic-bezier(.77,0,.18,1); pointer-events: none; }
.curtain span { font-family: var(--serif); font-size: clamp(40px, 8vw, 96px); letter-spacing: .5em; padding-left: .5em; font-weight: 300; }
.curtain.is-up { transform: translateY(-100%); }
html:not(.js) .curtain { display: none; }

/* шапка */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px var(--pad); border-bottom: 1px solid transparent; transition: background-color .4s, padding .4s, border-color .4s; }
.nav.is-scrolled { background: rgba(255,255,255,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line2); padding-block: 14px; }
.nav__links { display: flex; gap: 28px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; flex-wrap: wrap; }
.nav__logo { font-family: var(--serif); font-size: 26px; letter-spacing: .42em; padding-left: .42em; font-weight: 500; }
.nav__right { display: flex; justify-content: flex-end; }
.nav__tg { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; border: 1px solid var(--ink); padding: 11px 20px; transition: background-color .3s, color .3s; }
.nav__tg:hover { background: var(--ink); color: #fff; }

/* первый экран */
.hero { position: relative; min-height: 100vh; padding: 120px var(--pad) 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 3vw, 48px); align-items: end; overflow: hidden; }
.hero__left { align-self: end; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-family: var(--serif); font-size: clamp(44px, 6vw, 92px); line-height: .95; font-weight: 300; }
.hero__img { height: min(78vh, 820px); overflow: hidden; position: relative; background: var(--soft); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.hero__right { align-self: end; padding-bottom: 40px; display: flex; flex-direction: column; gap: 22px; max-width: 340px; justify-self: end; }
.hero__right p { font-size: 15px; line-height: 1.7; }
.line-link { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.line-link span { width: 48px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.line-link:hover span { width: 72px; }

/* бегущая строка */
.marquee { border-block: 1px solid var(--line2); overflow: hidden; padding: 22px 0; }
.marquee__track { display: flex; gap: 56px; white-space: nowrap; width: max-content; will-change: transform; font-family: var(--serif); font-size: clamp(28px, 3.4vw, 48px); font-weight: 300; font-style: italic; }
.marquee__track span { display: flex; gap: 56px; align-items: center; }
.marquee__track span::after { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); display: block; }

/* часы */
.watch { padding: clamp(100px, 12vw, 180px) var(--pad) 0; }
.watch__head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: 56px; }
.watch__head .big { margin-top: 18px; }
.watch__intro { max-width: 460px; justify-self: end; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.watch__intro p { font-size: 15px; line-height: 1.7; }
.watch__soon { font-family: var(--serif); font-style: italic; font-size: 22px !important; line-height: 1.4 !important; color: var(--accent); margin-bottom: 8px !important; }
.watch__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; height: min(86vh, 820px); }
.watch__gal { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.watch__main { flex: 1; min-height: 0; position: relative; overflow: hidden; background: #0d0d0e; cursor: zoom-in; }
.watch__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.1s ease, transform 6s linear; }
.watch__main img.is-on { opacity: 1; transform: scale(1); }
.watch__video { position: relative; height: 100%; aspect-ratio: 464 / 848; background: #000; overflow: hidden; }
.watch__video video { width: 100%; height: 100%; object-fit: cover; }
.watch__vbtn { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; display: grid; place-items: center; }
.watch__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.watch__thumbs button { aspect-ratio: 8 / 5; overflow: hidden; opacity: .45; transition: opacity .3s; position: relative; }
.watch__thumbs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.watch__thumbs button.is-on { opacity: 1; }
.watch__thumbs button.is-on::after { transform: scaleX(1); transition: transform 4.2s linear; }
.watch__thumbs button:hover { opacity: 1; }
.watch__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* манифест */
.manifest { padding: clamp(100px, 16vw, 220px) var(--pad); display: flex; justify-content: center; }
.manifest p { max-width: 1100px; font-family: var(--serif); font-size: clamp(30px, 4.4vw, 64px); line-height: 1.15; font-weight: 300; text-align: center; text-wrap: balance; }
.manifest span { transition: color .25s; color: #d6d3cd; }

/* коллекция */
.collection { padding: 0 var(--pad) clamp(80px, 10vw, 140px); }
.collection__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding: 12px 20px; border: 1px solid var(--line); transition: all .3s; }
.tabs button span { opacity: .55; }
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 56px 28px; }
.card { display: flex; flex-direction: column; gap: 16px; cursor: pointer; text-align: left; }
.card[hidden] { display: none; }
.card__img { aspect-ratio: 4 / 5; position: relative; overflow: hidden; background: var(--soft); }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__img img + img { opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 1.4s var(--ease); }
@media (hover: hover) { .card:hover .card__img img + img { opacity: 1; transform: scale(1); } }
.card__cat { position: absolute; top: 14px; left: 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; background: #fff; padding: 6px 10px; pointer-events: none; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__name { font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.05; }
.card__price { font-size: 14px; white-space: nowrap; }
.card__tag { font-size: 14px; line-height: 1.55; color: var(--muted); margin-top: -6px; }
.card.is-in { animation: cardin .8s var(--ease) both; }
@keyframes cardin { from { opacity: 0; transform: translateY(24px); } }

/* для кого они сделаны */
.stories { height: 320vh; position: relative; background: var(--soft); }
.stories__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.stories__top { padding: 0 var(--pad); display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; gap: 20px; }
.stories__bar { width: min(240px, 30vw); height: 1px; background: var(--line); position: relative; }
.stories__bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); width: 0; }
.stories__track { display: flex; gap: clamp(24px, 4vw, 64px); padding: 0 var(--pad); width: max-content; will-change: transform; }
.story { width: min(78vw, 980px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 3vw, 48px); align-items: center; flex: none; }
.story__img { height: min(66vh, 640px, 110vw); overflow: hidden; background: #fff; cursor: pointer; }
.story__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.story__img:hover img { transform: scale(1.04); }
.story__txt { display: flex; flex-direction: column; gap: 20px; }
.story__num { font-size: 12px; letter-spacing: .2em; color: var(--gold); }
.story__name { font-family: var(--serif); font-size: clamp(36px, 4.4vw, 64px); line-height: 1; font-weight: 300; }
.story__q { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.4; color: var(--accent); }
.story__btn { align-self: flex-start; border-bottom: 1px solid var(--ink); padding-bottom: 4px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; transition: color .3s, border-color .3s; }
.story__btn:hover { color: var(--accent); border-color: var(--accent); }

/* материалы */
.materials { padding: clamp(100px, 12vw, 180px) var(--pad); }
.materials__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.materials__head p { font-size: 15px; line-height: 1.7; max-width: 380px; }
.mat { border-top: 1px solid var(--ink); }
.mat a { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease), background-color .4s; }
.mat a:hover { padding-inline: 24px; background: var(--soft); color: var(--ink); }
.mat__n { font-size: 12px; letter-spacing: .16em; color: var(--gold); }
.mat__name { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 52px); font-weight: 300; line-height: 1; }
.mat__price { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }

/* мастер */
.master { background: var(--soft); padding: clamp(100px, 12vw, 180px) var(--pad); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(40px, 6vw, 96px); align-items: center; }
.master__img { aspect-ratio: 4 / 5; overflow: hidden; max-height: 760px; }
.master__img img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.master__txt { display: flex; flex-direction: column; gap: 28px; max-width: 620px; }
.master__q { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 50px); line-height: 1.2; font-weight: 300; }
.master__sign { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--accent); }

/* подвал */
.foot { padding: clamp(100px, 12vw, 180px) var(--pad) calc(40px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 80px; }
.foot__cta { display: flex; flex-direction: column; gap: 20px; }
.foot__big { font-family: var(--serif); font-size: clamp(56px, 11vw, 180px); line-height: .9; font-weight: 300; }
.foot__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line2); padding-top: 28px; }
.foot__logo { font-family: var(--serif); font-size: 20px; letter-spacing: .4em; color: var(--ink); }
.foot__links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot__links a { color: var(--muted); }
.foot__links a:hover { color: var(--accent); }

/* окно изделия */
.item { position: fixed; inset: 0; z-index: 80; background: #fff; overflow-y: auto; overscroll-behavior: contain; animation: itemin .5s var(--ease) both; }
.item[hidden] { display: none; }
@keyframes itemin { from { opacity: 0; transform: translateY(30px); } }
.item__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); min-height: 100vh; }
.item__gal { background: var(--soft); display: flex; flex-direction: column; padding: clamp(20px, 3vw, 40px); gap: 14px; min-height: 70vh; position: sticky; top: 0; height: 100vh; }
.item__stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; position: relative; touch-action: pan-y; }
.item__stage img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; transition: opacity .25s; cursor: zoom-in; }
.item__stage img.is-loading { opacity: 0; }
.item__arr { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 1px solid var(--ink); background: #fff; font-size: 18px; transition: background-color .3s, color .3s; }
.item__arr:hover { background: var(--ink); color: #fff; }
.item__arr--l { left: 0; } .item__arr--r { right: 0; }
.item__count { position: absolute; left: 0; bottom: 0; font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.item__thumbs { display: flex; gap: 8px; overflow-x: auto; justify-content: center; scrollbar-width: none; }
.item__thumbs button { width: 56px; height: 70px; flex: none; opacity: .4; transition: opacity .3s; }
.item__thumbs button.is-on, .item__thumbs button:hover { opacity: 1; }
.item__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.item__info { padding: clamp(28px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; gap: 22px; position: relative; }
.item__top { position: absolute; top: 24px; left: clamp(28px, 5vw, 80px); right: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.item__sib { display: flex; gap: 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.item__sib button:hover, .item__close:hover { color: var(--accent); }
.item__close { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.item__name { font-family: var(--serif); font-size: clamp(48px, 5.4vw, 80px); line-height: .95; font-weight: 300; }
.item__price { font-family: var(--serif); font-size: 28px; }
.item__tag { font-size: 17px; line-height: 1.65; }
.item__story { font-size: 15px; line-height: 1.75; color: var(--muted); }
.item__q { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--accent); }
.item__specs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; font-size: 13.5px; line-height: 1.6; border-top: 1px solid var(--line2); padding-top: 18px; }
.item__specs dt { color: var(--muted); }
.item__specs dd { margin: 0; }
.item__alt { font-size: 13px; line-height: 1.6; color: var(--muted); font-style: italic; }
.item__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* полноэкранный просмотр */
.lb { position: fixed; inset: 0; z-index: 120; background: rgba(12,11,11,.96); display: flex; align-items: center; justify-content: center; padding: 56px 64px; touch-action: pan-y; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb button { position: absolute; width: 48px; height: 48px; color: #eee; font-size: 20px; border-radius: 50%; background: rgba(255,255,255,.08); }
.lb button:hover { background: rgba(255,255,255,.18); }
.lb__x { top: 12px; right: 12px; } .lb__l { left: 12px; top: 50%; margin-top: -24px; } .lb__r { right: 12px; top: 50%; margin-top: -24px; }

/* адаптив */
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav { grid-template-columns: auto 1fr; }
  .nav__logo { font-size: 22px; }
  .nav__tg { padding: 9px 14px; font-size: 11px; }
  .hero { padding-top: 96px; min-height: auto; }
  .hero__left, .hero__right { padding-bottom: 0; }
  .hero__img { height: 62vh; }
  .hero__right { justify-self: start; }
  .watch__grid { grid-template-columns: 1fr; height: auto; }
  .watch__main { aspect-ratio: 8 / 5; flex: none; }
  .watch__video { height: auto; width: min(100%, 320px); justify-self: center; }
  .watch__thumbs { gap: 6px; }
  .watch__intro { justify-self: start; }
  .watch__intro .btn { width: 100%; }
  .mat a { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; }
  .mat__price { font-size: 11px; letter-spacing: .1em; }
  .item__gal { position: static; height: auto; min-height: 0; }
  .item__stage img { max-height: 58vh; }
  .item__info { padding-top: 72px; }
  .item__top { left: 20px; right: 20px; }
  .item__btns .btn { flex: 1 1 100%; }
  .lb { padding: 56px 8px 80px; }
  .lb__l, .lb__r { top: auto !important; bottom: 14px; margin: 0 !important; }
  .lb__l { left: calc(50% - 60px) !important; } .lb__r { right: calc(50% - 60px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .curtain { display: none; }
}
