/* Same typefaces served locally; SIL licenses in /static/fonts/. */
/* cyrillic-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/static/fonts/co3ZmX5slCNuHLi8bLeY9MK7whWMhyjYrEtFmSq17w-ae25de0507a4.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/static/fonts/co3ZmX5slCNuHLi8bLeY9MK7whWMhyjYrEtMmSq17w-cb13c04533ee.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/static/fonts/co3ZmX5slCNuHLi8bLeY9MK7whWMhyjYrEtHmSq17w-b8ecb4ae898c.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/static/fonts/co3ZmX5slCNuHLi8bLeY9MK7whWMhyjYrEtGmSq17w-cd5bf126b2c8.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/static/fonts/co3ZmX5slCNuHLi8bLeY9MK7whWMhyjYrEtImSo-6f2f5c3b1abc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/co3ZmX5slCNuHLi8bLeY9MK7whWMhyjYrEtFmSq17w-ae25de0507a4.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/co3ZmX5slCNuHLi8bLeY9MK7whWMhyjYrEtMmSq17w-cb13c04533ee.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/co3ZmX5slCNuHLi8bLeY9MK7whWMhyjYrEtHmSq17w-b8ecb4ae898c.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/co3ZmX5slCNuHLi8bLeY9MK7whWMhyjYrEtGmSq17w-cd5bf126b2c8.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/co3ZmX5slCNuHLi8bLeY9MK7whWMhyjYrEtImSo-6f2f5c3b1abc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/static/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYpHtKgS4-a4d7cf345b80.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/static/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYrXtKgS4-017fab69b4be.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/static/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYpntKgS4-6252e819a766.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/static/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYp3tKgS4-cfa9a397d86f.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/static/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYqXtK-d80df8ff5aec.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYpHtKgS4-a4d7cf345b80.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYrXtKgS4-017fab69b4be.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYpntKgS4-6252e819a766.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYp3tKgS4-cfa9a397d86f.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYqXtK-d80df8ff5aec.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYpHtKgS4-a4d7cf345b80.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYrXtKgS4-017fab69b4be.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYpntKgS4-6252e819a766.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYp3tKgS4-cfa9a397d86f.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYqXtK-d80df8ff5aec.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/static/fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q-a5d38fe99f93.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/static/fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4-9fea608a947e.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q-a5d38fe99f93.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4-9fea608a947e.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q-a5d38fe99f93.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4-9fea608a947e.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =============================================
   ALMAZ JEWELRY — LUXURY FIGMA-STYLE REDESIGN
   Dark gold aesthetic with dynamic animations
   ============================================= */


:root {
  --gold: #C9A84C;
  --gold-light: #E4C76B;
  --gold-pale: #F0DFA0;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --dark: #0A0A0A;
  --dark-2: #111111;
  --dark-3: #1A1A1A;
  --dark-4: #242424;
  --surface: #161616;
  --surface-2: #1E1E1E;
  --border: rgba(201, 168, 76, 0.2);
  --border-subtle: rgba(255,255,255,0.06);
  --text: #F5F0E8;
  --text-dim: rgba(245, 240, 232, 0.55);
  --text-muted: rgba(245, 240, 232, 0.3);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius: 4px;
  --radius-lg: 12px;
  --header-h: 80px;
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  padding-top: var(--header-h);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ---- PRELOADER ---- */
.mask {
  position: fixed; inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.mask.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader {
  width: 48px; height: 48px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================
   HEADER
   ============================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

header.scrolled {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 1px 40px rgba(201, 168, 76, 0.08);
}

/* Logo */
.logo a { display: block; line-height: 0; }
.logo img {
  height: 44px;
  width: auto;
  filter: brightness(1.1);
  transition: transform 0.4s var(--ease-spring), filter 0.3s;
}
.logo:hover img {
  transform: scale(1.05);
  filter: brightness(1.3) drop-shadow(0 0 12px rgba(201,168,76,0.4));
}

/* Nav */
#nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

#nav a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 2px;
  position: relative;
  transition: color 0.25s var(--ease);
}
#nav a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 16px; right: 16px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
#nav a:hover, #nav a.active { color: var(--text); }
#nav a:hover::after, #nav a.active::after { transform: scaleX(1); }

/* Dropdown */
.dropdown { position: relative; }
.dropbtn { cursor: pointer; }
.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 200px;
  padding: 8px;
  z-index: 1001;
  box-shadow: 0 24px 48px rgba(0,0,0,0.6);
  animation: fadeDown 0.2s var(--ease-out);
}

.dropdown-content a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.dropdown-content a:hover {
  background: var(--gold-dim);
  color: var(--gold-light);
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.dropdown:hover .dropdown-content { display: block; }
.dropdown-content:hover { display: block !important; }


/* Language Switcher */
.language-switcher { position: relative; }
.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 7px 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.lang-btn:hover { border-color: var(--gold); color: var(--gold); }
.lang-dropdown-content {
  display: none;
  position: absolute;
  right: 0; top: calc(100% + 8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 100px;
  padding: 6px;
  z-index: 1002;
  box-shadow: 0 16px 32px rgba(0,0,0,0.5);
}
.lang-dropdown-content.show { display: block; }
.lang-link {
  display: block;
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.lang-link:hover, .lang-link.active { background: var(--gold-dim); color: var(--gold-light); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1100;
  padding: 4px 0;
}
.burger div {
  height: 1.5px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.burger:hover div { background: var(--gold); }

/* ============================
   HERO SLIDER
   ============================ */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 560px;
  overflow: hidden;
  background: var(--dark-2);
}

.hero-slides { height: 100%; }
.hero-slide picture { display: block; width: 100%; height: 100%; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.8);
  transform: scale(1.05);
  transition: transform 8s var(--ease);
}
.hero-slide.active img { transform: scale(1); }

/* Hero overlay gradient */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0.2) 50%,
    rgba(201,168,76,0.05) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 80px 80px 100px;
  z-index: 2;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 100%);
}

.hero-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 1;
  transform: none;
  animation: none;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 28px;
  opacity: 1;
  transform: none;
  animation: none;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: 15px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  max-width: 420px;
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Slider arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10,10,10,0.6);
  border: 1px solid var(--border);
  color: var(--text);
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  font-size: 20px;
  border-radius: 50%;
  backdrop-filter: blur(8px);
}
.arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.arrow.left { left: 32px; }
.arrow.right { right: 32px; }

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 24px; height: 2px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s, width 0.3s var(--ease);
}
.hero-dot.active { background: var(--gold); width: 40px; }

/* ============================
   SECTION ANATOMY
   ============================ */
section { padding: 100px 80px; }

.section-tag {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-tag::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--gold-light); }

.section-desc {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.8;
}

/* Gold divider */
.divider {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 32px 0;
}

/* ============================
   ABOUT SECTION
   ============================ */
.about {
  background: var(--dark-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 500px;
}

.about-img-main {
  width: 75%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  filter: brightness(0.85) saturate(0.9);
}

.about-img-accent {
  position: absolute;
  right: 0; bottom: -30px;
  width: 45%;
  height: 55%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 4px solid var(--dark-2);
  filter: brightness(0.9) saturate(0.9);
  box-shadow: 0 24px 48px rgba(0,0,0,0.6);
}

/* Gold badge on about */
.about-badge {
  position: absolute;
  top: 24px; right: 12%;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  border-radius: 2px;
  z-index: 2;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ============================
   GALLERY / FEATURED
   ============================ */
.gallery-section {
  background: var(--dark);
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: var(--dark-3);
}

.gallery-item:first-child { grid-row: span 2; aspect-ratio: unset; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.85);
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.9) saturate(1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

/* ============================
   CATALOG PAGE
   ============================ */
.catalog-page {
  padding: 60px 80px 100px;
  background: var(--dark);
  min-height: 80vh;
}

.catalog-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 8px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

.catalog-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  padding: 0;
  max-width: 100%;
  background: var(--border-subtle);
}

.catalog-item {
  background: var(--dark-2);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: background 0.3s var(--ease);
}

.catalog-item:hover { background: var(--dark-3); }

.catalog-item-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.catalog-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) saturate(0.85);
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}

.catalog-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.95) saturate(1);
}

/* Zoom icon */
.catalog-item-img::after {
  content: '+';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 48px; height: 48px;
  background: rgba(201,168,76,0.9);
  color: var(--dark);
  font-size: 28px;
  font-weight: 300;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 48px;
  text-align: center;
  transition: transform 0.3s var(--ease-spring);
}
.catalog-item:hover .catalog-item-img::after { transform: translate(-50%, -50%) scale(1); }

.catalog-item p {
  padding: 16px 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  border-top: 1px solid var(--border-subtle);
}

/* Catalogue links, page controls and individual model pages. */
.catalog-intro { margin-bottom: 36px; }
.image-skeleton { position: relative; overflow: hidden; background-color: var(--dark-2); }
.hero-slide.image-skeleton { position: absolute; }
.gallery-item picture { display: block; width: 100%; height: 100%; }
.js-images .image-skeleton.is-loading::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, #181818 25%, #2c2923 45%, #181818 65%);
  background-size: 200% 100%; animation: almaz-image-shimmer 1.5s linear infinite;
  pointer-events: none;
}
.js-images .image-skeleton.is-loading > img,
.js-images .image-skeleton.is-loading > picture,
.js-images .image-skeleton.has-image-error > img,
.js-images .image-skeleton.has-image-error > picture { opacity: 0; }
.image-loading-error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; color: var(--text-dim); font: 14px/1.5 var(--font-body); text-align: center; }
@keyframes almaz-image-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .js-images .image-skeleton.is-loading::before { animation: none; } }
.catalog-intro .section-title { margin-top: 8px; }
.catalog-intro .divider { margin: 20px 0; }
.catalog-intro .section-desc { max-width: 900px; }
.order-copy { margin-top: 16px; }
.catalog-preview { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; cursor: zoom-in; }
.product-link { display: block; color: var(--text); text-decoration: none; }
.product-link:hover, .order-copy a:hover, .order-information a:hover { color: var(--gold); }
.catalog-preview:focus-visible, .product-link:focus-visible, .catalog-pagination a:focus-visible, .product-photo:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.catalog-count { margin: 24px 0; color: var(--text-dim); }
.catalog-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.catalog-pagination a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-subtle); color: var(--text); text-decoration: none; }
.catalog-pagination a[aria-current] { border-color: var(--gold); color: var(--gold); }
.order-information .section-desc + .section-desc { margin-top: 20px; }
.product-page { padding: 130px 48px 80px; max-width: 1400px; margin: 0 auto; }
.product-breadcrumbs { display: block; position: static; margin-bottom: 28px; color: var(--text-dim); }
.product-breadcrumbs a { color: var(--gold); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.product-photo { aspect-ratio: 1; width: 100%; padding: 0; border: 0; background: var(--dark-2); cursor: zoom-in; }
.product-photo img { display: block; width: 100%; height: 100%; max-height: 760px; object-fit: contain; }
.product-details h1 { font-family: var(--font-display); font-size: clamp(30px,4vw,50px); line-height: 1.15; margin-bottom: 28px; }
.product-details h2 { margin: 24px 0 12px; font-size: 22px; }
.product-details p { color: var(--text-dim); line-height: 1.7; margin-bottom: 18px; }
.product-details dl { display: grid; grid-template-columns: 120px 1fr; gap: 12px; margin: 0 0 24px; }
.product-details dt { color: var(--text-dim); }
.product-details dd { margin: 0; overflow-wrap: anywhere; }
.product-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0; }
.product-actions a { color: var(--gold); border: 1px solid var(--gold); padding: 12px 18px; text-decoration: none; }
@media (max-width: 900px) {
  .product-page { padding: 110px 24px 60px; }
  .product-layout { grid-template-columns: 1fr; gap: 28px; }
}

/* Img placeholder */
.img-placeholder {
  width: 100%; aspect-ratio: 1;
  background: var(--dark-3);
  display: flex; align-items: center; justify-content: center;
}
.img-placeholder::after {
  content: '';
  width: 32px; height: 32px;
  border: 1.5px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

/* No products */
.no-products {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
}

/* ============================
   ABOUT PAGE
   ============================ */
.about-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}

.about-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 12px;
}

.about-page .divider { margin: 24px 0 40px; }

.about-page p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.9;
  margin-bottom: 28px;
}

.about-page h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--text);
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.about-page ul {
  list-style: none;
  margin-bottom: 28px;
}
.about-page ul li {
  padding: 12px 0;
  padding-left: 20px;
  font-size: 15px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.about-page ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  font-size: 7px;
  top: 16px;
  color: var(--gold);
}

/* ============================
   MAP + FOOTER / CONTACTS
   ============================ */
.map {
  padding: 0;
  line-height: 0;
  filter: grayscale(1) contrast(0.85) brightness(0.7);
  transition: filter 0.5s;
}
.map:hover { filter: grayscale(0.3) contrast(0.9) brightness(0.8); }
.map iframe { display: block; }

footer.contacts {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 80px 80px 60px;
}

footer.contacts h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 48px;
}

.contact-list {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.contact-item h3 {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.contact-item p, .contact-item span {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Social */
.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 0;
  text-align: left;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: border-color 0.25s, background 0.25s;
}
.social-link:hover { border-color: var(--gold); background: var(--gold-dim); }
.social-link img {
  width: 20px; height: 20px;
  filter: invert(1) brightness(0.7);
  transition: filter 0.25s, transform 0.25s var(--ease-spring);
}
.social-link:hover img {
  filter: invert(0.8) sepia(1) saturate(2) hue-rotate(10deg);
  transform: scale(1.15);
}

/* Footer copyright */
.footer-copy {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* Hidden H1 for SEO */
footer h1[style*="white"] {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============================
   SCROLL TO TOP
   ============================ */
.scroll-top {
  display: none;
  position: fixed;
  bottom: 40px; right: 40px;
  width: 48px; height: 48px;
  background: var(--gold);
  color: var(--dark);
  border-radius: 50%;
  text-align: center;
  line-height: 48px;
  font-size: 22px;
  cursor: pointer;
  z-index: 800;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}
.scroll-top:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(201,168,76,0.4); }

/* ============================
   MODAL
   ============================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(12px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s var(--ease-out);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 40px 80px rgba(0,0,0,0.8);
  animation: zoomIn 0.3s var(--ease-spring);
}
@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 28px;
  color: var(--text-dim);
  cursor: pointer;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: all 0.25s;
}
.modal-close:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-dim); }

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 10, 0.8);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 24px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.3s;
  z-index: 2001;
}

.modal-nav:hover {
  background: var(--gold-dim);
  color: var(--gold);
  border-color: var(--gold);
}

.modal-prev { left: 20px; }
.modal-next { right: 20px; }

.modal-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 10, 0.8);
  color: var(--text);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  border: 1px solid var(--border);
}

/* ============================
   REVEAL ANIMATIONS
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================
   MOBILE
   ============================ */
@media (max-width: 900px) {
  header { padding: 0 24px; }
  section { padding: 72px 32px; }

  .burger { display: flex; }

  #nav {
    position: fixed;
    top: var(--header-h); left: -100%;
    width: 280px;
    height: calc(100vh - var(--header-h));
    background: var(--dark-2);
    border-right: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 0;
    gap: 0;
    overflow-y: auto;
    transition: left 0.4s var(--ease);
    z-index: 1050;
  }
  #nav.open { left: 0; }

  #nav a {
    width: 100%;
    padding: 14px 28px;
    font-size: 14px;
    border-radius: 0;
  }
  #nav a::after { left: 28px; right: 28px; }

  .dropdown-content, .sub-dropdown-content {
    position: static;
    transform: none;
    animation: none;
    min-width: 100%;
    box-shadow: none;
    background: var(--dark-3);
    border: none;
    border-radius: 0;
    padding: 0 0 0 20px;
  }
  .dropdown.dropdown-open .dropdown-content { display: block; }
  .sub-dropdown.sub-open .sub-dropdown-content { display: block; }

  .about { grid-template-columns: 1fr; gap: 48px; padding: 72px 32px; }
  .about-visual { height: 360px; }

  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-row: span 1; }

  .hero-content { padding: 48px 32px 72px; }
  .hero-dots { bottom: 24px; }

  footer.contacts { padding: 60px 32px 48px; }
  .contact-list { gap: 40px; }

  .catalog-page { padding: 48px 24px 80px; }
  .catalog-container { gap: 1px; }

  .arrow.left { left: 16px; }
  .arrow.right { right: 16px; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-row: auto; }
  .about-stats { flex-wrap: wrap; gap: 24px; }
  .catalog-container { grid-template-columns: 1fr 1fr; }
  .scroll-top { bottom: 24px; right: 24px; }
}

/* Contact actions share one appearance across the public store. */
a[href^="tel:"],
a[href^="mailto:"],
a[href^="https://wa.me/"],
a[href^="http://wa.me/"],
a[href^="https://api.whatsapp.com/"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  max-width: 100%;
  padding: 11px 16px;
  border: 1px solid rgba(201, 168, 76, 0.7);
  border-radius: 4px;
  background: rgba(201, 168, 76, 0.06);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
  vertical-align: middle;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
a[href^="tel:"]::before,
a[href^="mailto:"]::before,
a[href^="https://wa.me/"]::before,
a[href^="http://wa.me/"]::before,
a[href^="https://api.whatsapp.com/"]::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: var(--contact-icon) center / contain no-repeat;
  mask: var(--contact-icon) center / contain no-repeat;
}
a[href^="tel:"] {
  --contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3H4c-.6 0-1 .4-1 1 0 9.4 7.6 17 17 17 .6 0 1-.4 1-1v-3l-5-2-2 2a15 15 0 0 1-7-7l2-2-2-5Z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");
}
a[href^="mailto:"] {
  --contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='m3 6 9 7 9-7' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");
}
a[href^="https://wa.me/"],
a[href^="http://wa.me/"],
a[href^="https://api.whatsapp.com/"] {
  --contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 11.5a9 9 0 0 1-13.4 7.9L3 21l1.6-4.6A9 9 0 1 1 21 11.5Z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='m9 7-1.5 1c0 4 2.5 6.5 6.5 6.5l1-1.5-2-1-1 1c-1.4-.6-2.4-1.6-3-3l1-1-1-2Z' fill='black'/%3E%3C/svg%3E");
}
a[href^="tel:"]:visited,
a[href^="mailto:"]:visited,
a[href^="https://wa.me/"]:visited,
a[href^="http://wa.me/"]:visited,
a[href^="https://api.whatsapp.com/"]:visited { color: var(--gold-light); }
a[href^="tel:"]:hover,
a[href^="mailto:"]:hover,
a[href^="https://wa.me/"]:hover,
a[href^="http://wa.me/"]:hover,
a[href^="https://api.whatsapp.com/"]:hover {
  color: var(--dark);
  border-color: var(--gold-light);
  background-color: var(--gold-light);
}
a[href^="tel:"]:focus-visible,
a[href^="mailto:"]:focus-visible,
a[href^="https://wa.me/"]:focus-visible,
a[href^="http://wa.me/"]:focus-visible,
a[href^="https://api.whatsapp.com/"]:focus-visible {
  outline: 2px solid var(--gold-pale);
  outline-offset: 4px;
}
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.product-actions { gap: 12px; }
.contacts .contact-item { min-width: 0; }
.contacts .social-icons { flex-wrap: wrap; align-items: center; }
.contacts .social-icons a[href^="https://wa.me/"] { width: auto; height: auto; }
.contacts .social-icons a[href^="https://wa.me/"] img { display: none; }

/* Each real card keeps the same width; partial rows are centred without filler cells. */
.catalog-container {
  --catalog-columns: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  background: transparent;
}
.catalog-container .catalog-item {
  flex: 0 0 calc((100% - (var(--catalog-columns) - 1) * 12px) / var(--catalog-columns));
  min-width: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}
.catalog-container .no-products { flex: 1 0 100%; }
.catalog-item img { object-fit: contain; }
.catalog-item:hover img { transform: none; }

/* Product photographs keep their intrinsic aspect instead of a square white canvas. */
.product-photo { display: flex; justify-content: center; align-items: center; aspect-ratio: auto; width: 100%; background: var(--dark-2); }
.product-photo img { width: auto; height: auto; max-width: 100%; max-height: 760px; object-fit: contain; }
@media (max-width: 1559px) { .catalog-container { --catalog-columns: 4; } }
@media (max-width: 1279px) { .catalog-container { --catalog-columns: 3; } }
@media (max-width: 1000px) { .catalog-container { --catalog-columns: 2; } }
@media (max-width: 560px) {
  .contacts .contact-list { gap: 28px; }
  .contact-actions, .product-actions { gap: 10px; }
  a[href^="tel:"], a[href^="mailto:"], a[href^="https://wa.me/"], a[href^="http://wa.me/"], a[href^="https://api.whatsapp.com/"] { padding: 11px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  a[href^="tel:"], a[href^="mailto:"], a[href^="https://wa.me/"], a[href^="http://wa.me/"], a[href^="https://api.whatsapp.com/"] { transition: none; }
}

/* The expanded original has its own placeholder until it loads and decodes. */
.modal-close, .modal-counter { z-index: 2002; }
.modal-image-frame { display: flex; align-items: center; justify-content: center; max-width: 90vw; max-height: 88vh; border-radius: var(--radius); }
.modal-image-frame.is-loading, .modal-image-frame.has-image-error { width: min(72vw, 720px); height: min(78vh, 760px); }
.modal-image-frame .modal-content { display: block; width: auto; height: auto; max-width: 90vw; max-height: 88vh; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .modal, .modal-content { animation: none; } }


/* Initial hero paints without transition; navigation restores the original effects. */
.hero.hero-startup .hero-slide:first-child{opacity:1;transition:none}
.hero.hero-startup .hero-slide:first-child img{transform:none;transition:none}
