/* CALIBRE — base styles. Old-money palette: ivory paper, racing green, a thread of gold.
   Colors, fonts and motion are variables at the top of the file: change them here
   and they change everywhere. */
:root {
  --bg: #f4efe6;              /* ivory paper */
  --surface: #faf7f1;         /* cards and fields */
  --surface-2: #ebe4d6;       /* product photo mat */
  --ink: #1c1c1a;
  --ink-2: #45423b;
  --muted: #7b756a;
  --line: #ddd4c3;            /* hairlines */
  --line-2: #c9bda7;
  --accent: #1f3a2e;          /* CALIBRE — British racing green */
  --accent-2: #16291f;
  --accent-ink: #f4efe6;
  --gold: #a8864f;
  --gold-light: #c9a96e;
  --dark: #14271f;            /* deep green: footer, bands */
  --dark-2: #1f3a2e;
  --ok: #2f5d46;
  --low: #9a6b2f;
  --out: #9a948a;
  --sale: #7a2433;            /* burgundy */
  --focus: #a8864f;
  --radius: 0px;
  --radius-sm: 0px;
  --shadow: 0 1px 2px rgba(28, 28, 26, .04), 0 18px 40px -18px rgba(28, 28, 26, .18);
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: var(--font);
  --ease: cubic-bezier(.22, .61, .21, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1440px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 300 16px/1.65 var(--font); letter-spacing: .01em; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
  font-feature-settings: "lnum";
}
.main { flex: 1; padding-bottom: 96px; }
/* A page that ends with a dark band (limited editions) runs straight into the dark footer. */
.main:has(> .limited:last-child) { padding-bottom: 0; }
html.js .main { animation: page-in .9s var(--ease) both; }
@keyframes page-in { from { opacity: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
b, strong { font-weight: 500; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
.mono { font-family: var(--font); font-variant-numeric: lining-nums tabular-nums; letter-spacing: .03em; }
.muted { color: var(--muted); }
.flip { transform: scaleX(-1); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 1px solid var(--focus); outline-offset: 3px; }
html.js .js-hide { display: none; }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.icon--xs { width: 12px; height: 12px; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 30px; height: 30px; stroke-width: 1; }
.icon--xl { width: 48px; height: 48px; stroke-width: .9; }

/* --- typography --------------------------------------------------------------- */
.h1 { font: 400 clamp(34px, 4.4vw, 64px)/1.04 var(--serif); letter-spacing: -.012em; margin: 0 0 16px; }
.h2 { font: 400 clamp(26px, 2.8vw, 40px)/1.1 var(--serif); margin: 0 0 18px; }
.h3 { font: 500 22px/1.2 var(--serif); margin: 0; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font: 500 11px/1.2 var(--font); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.lead { color: var(--ink-2); font-size: 17px; line-height: 1.7; margin: 0 0 20px; max-width: 62ch; }
.hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.section-head { margin-bottom: clamp(28px, 4vw, 56px); }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.section-head--row .lead { max-width: 40ch; margin: 0; }

/* --- top bar and header ------------------------------------------------------- */
.topbar { background: var(--dark); color: #d9d1c0; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; }
.topbar__row { display: flex; align-items: center; gap: 28px; min-height: 36px; }
.topbar__item { white-space: nowrap; }
.topbar__center { margin-inline: auto; color: var(--gold-light); }
.topbar__phone { margin-left: auto; color: #f4efe6; text-decoration: none; letter-spacing: .14em; }
.topbar__center + .topbar__phone { margin-left: 0; }

.header { position: sticky; top: 0; z-index: 40; background: rgba(244, 239, 230, 0); border-bottom: 1px solid transparent;
  transition: background .5s var(--ease), border-color .5s var(--ease), transform .6s var(--ease); }
.header.is-scrolled { background: rgba(244, 239, 230, .9); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.header.is-hidden { transform: translateY(-100%); }
.header__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: var(--header-h); }
.header__left { display: flex; align-items: center; gap: 22px; }

.logo { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--ink); line-height: 1; }
.logo__word { font: 500 27px/1 var(--serif); letter-spacing: .34em; margin-right: -.34em; white-space: nowrap; font-variant-numeric: lining-nums; }
/* "RC" large and bold, "WATCH" small capitals beside it */
.logo__word:has(.logo__tail) { display: inline-flex; align-items: baseline; gap: .38em; letter-spacing: 0; margin-right: 0; }
.logo__mark { font-weight: 700; font-size: 1.5em; letter-spacing: .03em; }
.logo__tail { font: 600 .5em/1 var(--font); letter-spacing: .4em; margin-right: -.4em; }
.logo__sub { margin-top: 6px; font: 400 8.5px/1 var(--font); letter-spacing: .42em; text-transform: uppercase; color: var(--gold); }

.nav { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav__link { position: relative; padding: 8px 0; text-decoration: none; font-size: 11.5px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; transition: color .3s; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .5s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.action { position: relative; display: grid; place-items: center; width: 40px; height: 40px; text-decoration: none; color: var(--ink); cursor: pointer; list-style: none; transition: color .3s; }
.action::-webkit-details-marker { display: none; }
.action:hover { color: var(--gold); }
.action__badge { position: absolute; top: 3px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font: 500 9.5px/16px var(--font); text-align: center; letter-spacing: 0; }
.action__badge--muted { background: var(--gold); }
.action__badge.is-bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.45); } }

.lang { display: inline-flex; align-items: center; margin-right: 8px; }
.lang__btn { border: 0; background: none; padding: 6px 7px; font-size: 10.5px; letter-spacing: .2em; color: var(--muted); cursor: pointer; transition: color .3s; }
.lang__btn + .lang__btn { border-left: 1px solid var(--line-2); }
.lang__btn:hover { color: var(--ink); }
.lang__btn.is-active { color: var(--ink); font-weight: 500; }

/* search: a <details> — opens without JavaScript */
.search-pop { position: relative; }
.search-pop > summary { list-style: none; }
.search-pop .search { position: absolute; right: -10px; top: calc(100% + 18px); width: min(420px, 90vw); display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 8px 8px 20px; }
.search-pop[open] .search { animation: drop .45s var(--ease-out); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.search__input { flex: 1; border: 0; border-bottom: 1px solid var(--line-2); background: none; padding: 10px 0; outline: none; font: 400 20px var(--serif); }
.search__input:focus { border-bottom-color: var(--accent); }
.search__btn { display: grid; place-items: center; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; color: var(--accent); }

/* burger and the collections drawer: also a <details> */
.drawer > summary { list-style: none; }
.drawer > summary::-webkit-details-marker { display: none; }
.burger { position: relative; z-index: 62; display: grid; place-items: center; width: 40px; height: 40px; margin-left: -8px; cursor: pointer; }
.burger__lines, .burger__lines::before { display: block; width: 24px; height: 1px; background: var(--ink); position: relative; transition: transform .5s var(--ease), background .3s, width .4s var(--ease); }
.burger__lines { width: 24px; transform: translateY(-3px); }
.burger__lines::before { content: ""; width: 16px; transform: translateY(6px); }
.burger:hover .burger__lines::before { width: 24px; }
/* the open menu: the burger turns into a cross and moves to the top left corner of the screen */
.drawer[open] .burger { position: fixed; top: 22px; left: max(16px, calc(var(--gutter) - 8px)); width: 48px; height: 48px; margin: 0; }
.drawer[open] .burger__lines { transform: rotate(45deg); background: var(--accent-ink); }
.drawer[open] .burger__lines::before { width: 24px; transform: rotate(-90deg); background: var(--accent-ink); }
.drawer[open] .burger:hover .burger__lines, .drawer[open] .burger:hover .burger__lines::before { background: var(--gold-light); }
.drawer__panel { position: fixed; inset: 0; z-index: 61; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto; align-items: center; column-gap: clamp(32px, 5vw, 96px);
  padding: calc(var(--header-h) + 24px) max(var(--gutter), calc((100vw - 1320px) / 2)) 0;
  color: #efe7d6; overflow-y: auto;
  background: radial-gradient(70% 90% at 85% 40%, #22412f 0%, rgba(34, 65, 47, 0) 60%), var(--dark); }
.drawer[open] .drawer__panel { animation: curtain .9s var(--ease-out); }
@keyframes curtain { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.drawer__nav { position: relative; align-self: center; }
.drawer__list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.drawer__list > li { padding: 6px 0; }
.drawer__link { position: relative; display: flex; align-items: baseline; gap: clamp(18px, 2vw, 32px); padding: 4px 0;
  text-decoration: none; font: 300 clamp(44px, 6vw, 96px)/1.02 var(--serif); letter-spacing: -.01em;
  transition: opacity .5s var(--ease), color .5s var(--ease); }
.drawer__num { min-width: 2.4em; font: 400 11px var(--font); letter-spacing: .24em; color: var(--gold-light); transform: translateY(-1.6em); }
.drawer__label { position: relative; transition: transform .7s var(--ease), font-style .3s; }
.drawer__label::after { content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: 1px; background: var(--gold-light);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.drawer__list:hover .drawer__link { opacity: .32; }
.drawer__list .drawer__link:hover { opacity: 1; color: var(--gold-light); }
.drawer__link:hover .drawer__label { transform: translateX(14px); font-style: italic; }
.drawer__link:hover .drawer__label::after { transform: scaleX(1); }
.drawer__sub { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 6px 0 14px calc(2.4 * 11px + clamp(18px, 2vw, 32px) + 1.6em);
  padding: 0; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; }
.drawer__sub a { text-decoration: none; color: #a9a18f; transition: color .3s; }
.drawer__sub a:hover { color: #efe7d6; }
.drawer__aside { align-self: center; justify-self: end; display: grid; justify-items: center; align-content: center; gap: 22px;
  width: min(100%, 600px, calc(100dvh - var(--header-h) - 200px));
  padding: clamp(28px, 4vw, 56px); border: 1px solid rgba(201, 169, 110, .22); border-radius: 50%; aspect-ratio: 1;
  background: repeating-radial-gradient(circle, transparent 0 13px, rgba(201, 169, 110, .06) 13px 14px); }
.drawer__watch { width: 88%; }
.drawer__watch .live-watch { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.drawer__time { margin: 0; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: #a9a18f; }
.drawer__time time { color: var(--gold-light); letter-spacing: .1em; }
.drawer__foot { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px 40px;
  padding: 22px 0 26px; margin-top: 32px; border-top: 1px solid rgba(201, 169, 110, .2); position: relative; }
.drawer__pages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, max-content); gap: 10px 48px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; }
.drawer__pages a, .drawer__contact a { text-decoration: none; color: #a9a18f; transition: color .3s; }
.drawer__pages a:hover, .drawer__contact a:hover { color: #efe7d6; }
.drawer__contact { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin: 0; font-size: 12px; letter-spacing: .14em; }
.drawer__contact a:first-child { color: #efe7d6; font: 400 18px var(--serif); letter-spacing: .08em; }
/* the items rise one after another when the curtain opens */
html.js .drawer[open] .drawer__list > li, html.js .drawer[open] .drawer__aside, html.js .drawer[open] .drawer__foot {
  animation: drawer-in 1s var(--ease-out) both; animation-delay: calc(.25s + var(--i, 0) * .08s); }
html.js .drawer[open] .drawer__aside { --i: 3; }
html.js .drawer[open] .drawer__foot { --i: 5; }
@keyframes drawer-in { from { opacity: 0; transform: translateY(28px); } }
html.drawer-open, html.drawer-open body { overflow: hidden; }

/* --- breadcrumbs, messages -------------------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 22px 0 10px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-current] { color: var(--ink-2); }
.crumbs .icon { width: 9px; height: 9px; }
.notices { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.notice { padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--gold); font-size: 14px; }
.notice--success { border-left-color: var(--ok); }
.notice--warning { border-left-color: var(--low); }
.notice--error { border-left-color: var(--sale); }

/* --- buttons and fields ------------------------------------------------------------ */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 30px;
  border: 1px solid transparent; font: 500 11px/1 var(--font); letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate; transition: color .45s var(--ease), border-color .45s, background .45s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: 50% 100%; transition: transform .55s var(--ease); }
.btn:hover::before { transform: scaleY(1); }
.btn .icon { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent::before { background: var(--accent-2); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark::before { background: var(--accent); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); }
.btn--light { background: transparent; border-color: rgba(239, 231, 214, .5); color: #efe7d6; }
.btn--light::before { background: #efe7d6; }
.btn--light:hover { color: var(--dark); }
.btn--lg { min-height: 58px; padding: 0 38px; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 10px; }
.btn--block { width: 100%; }
.btn--icon { padding: 0 16px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; background: none; cursor: pointer; color: var(--muted); transition: color .3s; }
.icon-btn:hover { color: var(--ink); }
.link-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; color: var(--ink-2); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: color .3s; }
.link-btn span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); padding-bottom: 2px; }
.link-btn:hover { color: var(--ink); }
.link-btn:hover span { background-size: 100% 1px; }
.link-btn.is-active { color: var(--sale); }
.link-btn.is-active .icon { fill: currentColor; }
.link-arrow { display: inline-flex; align-items: center; gap: 14px; font: italic 400 22px/1.2 var(--serif); text-decoration: none; color: var(--ink); }
.link-arrow .icon { width: 26px; color: var(--gold); transition: transform .6s var(--ease); }
.link-arrow:hover .icon { transform: translateX(8px); }

.input, .select, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 0; background: var(--surface); outline: none; font-weight: 400; transition: border-color .3s;
}
.field textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.input--sm { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.select { appearance: none; padding-right: 38px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237b756a' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; cursor: pointer; }

.field { display: grid; gap: 8px; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.field__req { color: var(--gold); margin-left: 3px; }
.field__help { margin: 0; font-size: 12px; color: var(--muted); }
.field__error { margin: 0; font-size: 13px; color: var(--sale); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--sale); }
.field ul { list-style: none; margin: 0; padding: 0; }

.check { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 6px 0; user-select: none; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { flex: none; width: 16px; height: 16px; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; transition: .3s var(--ease); }
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box::after { content: ""; width: 8px; height: 4px; border: 1.2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check input:focus-visible + .check__box { outline: 1px solid var(--focus); outline-offset: 3px; }
.check__label { flex: 1; font-size: 14px; }
.check__count { color: var(--muted); font-size: 11px; }
.check.is-empty { opacity: .4; }
.check--switch .check__box { width: 34px; height: 18px; border-radius: 9px; position: relative; }
.check--switch .check__box::before { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); transition: .35s var(--ease); }
.check--switch input:checked + .check__box::after { display: none; }
.check--switch input:checked + .check__box::before { left: 18px; background: var(--accent-ink); }

.swatch { width: 14px; height: 14px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 0 0 2px var(--surface); flex: none; }

.form { display: grid; gap: 18px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
@media (max-width: 620px) { .form__grid { grid-template-columns: 1fr; } }

/* --- product tile (catalog, account, similar) ------------------------------------------ */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 28px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { position: relative; display: flex; flex-direction: column; }
.tile__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 38%, #f6f1e8 0%, var(--surface-2) 70%); }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 7%; transition: transform 1.4s var(--ease), opacity .8s var(--ease); }
.tile__img--alt { object-fit: cover; padding: 0; opacity: 0; transform: scale(1.08); }
.tile:hover .tile__img { transform: scale(1.045); }
.tile:hover .tile__img--alt { opacity: 1; transform: scale(1); }
/* The close-up replaces the photo completely, so the two never show through each other. */
.tile:hover .tile__img:has(+ .tile__img--alt) { opacity: 0; }
.tile__noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--line-2); }
.tile__flags { position: absolute; left: 14px; top: 14px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.flag { display: inline-block; padding: 5px 9px 4px; background: var(--flag, var(--accent)); color: var(--accent-ink); font: 500 9px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; }
.flag--gold { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.flag--sale { background: var(--sale); }
.tile__fav { position: absolute; right: 10px; top: 10px; margin: 0; z-index: 1; }
.fav { display: grid; place-items: center; width: 38px; height: 38px; border: 0; background: none; color: var(--ink-2); cursor: pointer; transition: color .3s, transform .4s var(--ease-out); }
.fav:hover { color: var(--sale); transform: scale(1.12); }
.fav.is-active { color: var(--sale); }
.fav.is-active .icon { fill: currentColor; }
.tile__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 2px 0; flex: 1; }
.tile__meta { display: flex; justify-content: space-between; gap: 8px; margin: 0; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.tile__brand { color: var(--gold); font-weight: 500; }
.tile__ref { color: var(--muted); letter-spacing: .12em; }
.tile__title { margin: 0; font: 400 23px/1.15 var(--serif); }
.tile__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.tile__title a:hover { background-size: 100% 1px; }
.tile__specs { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tile__specs div { display: flex; align-items: baseline; }
.tile__specs div + div::before { content: "·"; margin: 0 8px; color: var(--gold); }
.tile__specs dd { margin: 0; }
.tile__body > .stock { margin-top: auto; padding-top: 10px; }
.tile__buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.tile__body > .stock + .tile__buy { margin-top: 12px; }
.tile__buy form { margin: 0; }
.tile__add { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 0; cursor: pointer; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.tile__add .icon { transition: transform .5s var(--ease); }
.tile__add:hover .icon { transform: rotate(90deg); }
.tile__add:disabled { opacity: .5; }
.tile--out .tile__img:not(.tile__img--alt) { opacity: .6; filter: grayscale(.5); }

.stock { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.stock i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.stock--ok { color: var(--ok); }
.stock--low { color: var(--low); }
.stock--low i { animation: pulse 2.4s ease-in-out infinite; }
.stock--out { color: var(--out); }
@keyframes pulse { 50% { opacity: .25; } }

.price { display: flex; flex-direction: column; gap: 4px; line-height: 1.1; }
.price__old { color: var(--muted); font-size: 13px; }
.price__now { font-size: 16px; font-weight: 400; letter-spacing: .06em; }
.price__now--sale { color: var(--sale); }

.empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 72px 20px; border: 1px solid var(--line); color: var(--ink-2); }
.empty h2 { margin: 0; font: 400 32px var(--serif); color: var(--ink); }
.empty p { margin: 0 0 10px; }
.empty .icon { color: var(--gold); }
.empty--page { margin-top: 24px; padding: 96px 20px; }

.panel { background: var(--surface); border: 1px solid var(--line); padding: 28px; }
.panel + .panel { margin-top: 18px; }
.panel--flat { background: none; border: 0; padding: 0; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.panel__head a { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }

/* --- quantity stepper (product page, cart) --- */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); background: var(--surface); height: 58px; }
.stepper__btn { width: 44px; height: 100%; border: 0; background: none; cursor: pointer; color: var(--ink-2); display: grid; place-items: center; transition: color .3s; }
.stepper__btn:hover { color: var(--accent); }
.stepper__input { width: 40px; height: 100%; border: 0; text-align: center; font-size: 16px; outline: none; -moz-appearance: textfield; background: none; }
.stepper__input::-webkit-outer-spin-button, .stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper--sm { height: 42px; }
.stepper--sm .stepper__btn { width: 34px; }
.stepper--sm .stepper__input { width: 34px; font-size: 15px; }

/* --- toasts ------------------------------------------------------------------------------ */
.toast-stack { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: grid; gap: 8px; max-width: min(400px, calc(100vw - 48px)); }
.toast { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; background: var(--dark); color: #efe7d6; box-shadow: 0 20px 40px -12px rgba(0,0,0,.35); animation: toast-in .6s var(--ease-out); font-size: 14px; border-left: 2px solid var(--gold-light); }
.toast--warning { border-left-color: #d9a441; }
.toast--error { background: #3b1219; border-left-color: #c25a6a; }
.toast a { color: var(--gold-light); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.toast.is-leaving { opacity: 0; transform: translateX(16px); transition: .4s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px); } }

/* --- footer -------------------------------------------------------------------------------- */
.footer { background: var(--dark); color: #b9b19f; font-size: 14px; overflow: hidden; }
.footer__intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-block: 96px 64px; border-bottom: 1px solid rgba(201, 169, 110, .18); }
.footer__quote { margin: 0; max-width: 16ch; font: italic 300 clamp(34px, 4.6vw, 64px)/1.05 var(--serif); color: #efe7d6; }
.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 56px 40px; }
.footer__title { margin: 0 0 18px; font: 500 10.5px/1 var(--font); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__col a { text-decoration: none; transition: color .3s; }
.footer__col a:hover { color: #efe7d6; }
.footer__contacts p { margin: 0 0 8px; }
.footer__phone { display: inline-block; margin: 6px 0 10px; color: #efe7d6; font: 400 24px var(--serif); letter-spacing: .06em; text-decoration: none; }
.footer__tg { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-light) !important; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 22px 26px; border-top: 1px solid rgba(201, 169, 110, .18); font-size: 11px; letter-spacing: .08em; color: #8d8676; }

/* --- tables, statuses -------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 10px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .2em; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: 4px 10px 3px; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--ink-2); }
.status--new { border-color: var(--gold); color: var(--gold); }
.status--work, .status--confirmed { border-color: var(--accent); color: var(--accent); }
.status--shipped { border-color: var(--ink-2); }
.status--done { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.prose { color: var(--ink-2); font-size: 16px; line-height: 1.8; max-width: 68ch; }
.prose h2 { color: var(--ink); font: 400 28px/1.2 var(--serif); margin: 40px 0 12px; }
.prose ul { padding-left: 0; list-style: none; }
.prose li { position: relative; margin: 6px 0; padding-left: 26px; }
.prose li::before { content: ""; position: absolute; left: 0; top: .85em; width: 14px; height: 1px; background: var(--gold); }

/* --- motion: reveals, split lines --------------------------------------------------------- */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word > span { display: inline-block; }
html.js [data-split].is-ready .split-word > span { transform: translateY(108%); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--w, 0) * 55ms); }
html.js [data-split].is-in .split-word > span { transform: none; }
[data-split-words] .word { transition: opacity .5s linear, color .5s linear; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html.js [data-reveal], html.js [data-split].is-ready .split-word > span { opacity: 1; transform: none; }
}

/* --- responsive ----------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav { gap: 18px; }
  .nav__link { font-size: 10.5px; letter-spacing: .14em; }
}
@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .topbar__hide-sm { display: none; }
  .nav { display: none; }
  .header__row { grid-template-columns: 1fr auto; }
  .lang { margin-right: 2px; }
  .grid, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__intro { flex-direction: column; align-items: flex-start; padding-block: 72px 48px; }
  .drawer__panel { grid-template-columns: 1fr; }
  .drawer__aside { display: none; }
  .drawer__pages { grid-template-columns: repeat(2, max-content); }
}
@media (max-width: 620px) {
  body { font-size: 15px; }
  .topbar__row { justify-content: space-between; gap: 12px; }
  .topbar__phone { margin-left: 0; }
  .logo__word { font-size: 18px; letter-spacing: .2em; margin-right: -.2em; }
  .logo__sub { letter-spacing: .32em; }
  .header__left { gap: 12px; }
  .actions { gap: 0; }
  .action { width: 36px; }
  .lang__btn { padding: 6px 5px; }
  .tile__body { padding-top: 14px; }
  .tile__title { font-size: 19px; }
  .tile__specs { display: none; }
  .tile__buy { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tile__meta { flex-direction: column; gap: 4px; }
  .toast-stack { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .panel { padding: 20px; }
  .search-pop .search { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 44px); width: auto; }
}
@media (max-width: 620px) {
  /* one quiet line on top, the phone lives in the menu and the footer */
  .topbar__row { justify-content: center; min-height: 32px; }
  .topbar__phone { display: none; }
  .topbar { font-size: 9.5px; letter-spacing: .18em; }
  .logo__sub { white-space: nowrap; font-size: 7.5px; letter-spacing: .26em; }
  .footer__intro { padding-block: 56px 40px; gap: 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-block: 40px 28px; }
  .footer__contacts { grid-column: 1 / -1; }
  .footer__legal { flex-direction: column; }
  .drawer__panel { padding-top: calc(var(--header-h) + 8px); }
  .drawer__link { font-size: 46px; }
  .drawer__sub { margin-left: 0; }
  .drawer__num { min-width: 2em; }
  .drawer__foot { grid-template-columns: 1fr; }
  .drawer__pages { grid-template-columns: 1fr; }
  .drawer__contact { align-items: flex-start; }
}
@media (max-width: 400px) {
  .lang { display: none; }
}
