/* ==========================================================================
   GROCENBERG — one-page brand site
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg-dark: #241f1b;
  --bg-darker: #17130f;
  --bg-cream: #faf7f2;
  --bg-cream-alt: #f2ece2;
  --text-cream: #f4ede2;
  --text-muted-dark: #cabfae;
  --text-dark: #2a231d;
  --text-muted-light: #6f665a;
  --gold: #b8935a;
  --gold-light: #d4b483;
  --gold-bright: #d4aa62;
  --gold-bright-hover: #e2bc78;
  --ozon: #005bff;
  --ozon-morning: #00a2ff;
  --ozon-aqua: #28d1eb;
  --ozon-night: #090089;
  --line-dark: rgba(244, 237, 226, 0.16);
  --line-light: rgba(42, 35, 29, 0.12);
  --shadow: 0 20px 50px rgba(23, 19, 15, 0.18);
  --radius: 2px;
  --container: 1200px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text-dark);
  background: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 120px 0; }
.section--tight { padding: 90px 0; }
.section--dark {
  background: var(--bg-dark);
  color: var(--text-cream);
}
.section--darker {
  background: var(--bg-darker);
  color: var(--text-cream);
}
.section--alt { background: var(--bg-cream-alt); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 20px;
  letter-spacing: 0.01em;
}

h2 { font-size: clamp(32px, 4vw, 46px); }
h3 { font-size: 26px; }

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

p { line-height: 1.75; color: var(--text-muted-light); margin: 0 0 16px; }
.section--dark p, .section--darker p { color: var(--text-muted-dark); }

.lede {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.6;
  color: var(--text-dark);
}
.section--dark .lede, .section--darker .lede { color: var(--text-cream); }

/* Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: #1c1712;
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-catalog {
  background: var(--gold-bright);
  color: #1c1712;
  border-color: var(--gold-bright);
}
.btn-catalog:hover { background: var(--gold-bright-hover); border-color: var(--gold-bright-hover); }

.btn-ozon {
  background-color: var(--ozon);
  background-image: linear-gradient(105deg, var(--ozon) 0%, var(--ozon-morning) 62%, var(--ozon-aqua) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(0, 91, 255, 0.28);
}
.btn-ozon:hover {
  background-image: linear-gradient(105deg, var(--ozon-night) 0%, var(--ozon) 42%, var(--ozon-morning) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(9, 0, 137, 0.28);
}

.btn-outline {
  border-color: currentColor;
  color: inherit;
  background: transparent;
}
.btn-outline:hover { background: rgba(184, 147, 90, 0.12); border-color: var(--gold); color: var(--gold); }

.btn-ghost {
  color: var(--gold);
  padding: 16px 8px;
  border-bottom: 1px solid rgba(184, 147, 90, 0.4);
  border-radius: 0;
}
.btn-ghost:hover { border-color: var(--gold); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Header ---------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.site-header.is-scrolled {
  background: rgba(36, 31, 27, 0.94);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.logo-link { display: flex; align-items: center; }
.logo-link img { height: 30px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-cream);
  opacity: 0.85;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}
.main-nav a:hover { opacity: 1; border-color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 22px; }
.header-phone {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-cream);
  letter-spacing: 0.02em;
}
.header-phone span { display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-dark);
  background: transparent;
  border-radius: var(--radius);
  position: relative;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px;
  height: 1px;
  background: var(--text-cream);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle::before { top: 14px; }
.nav-toggle span { top: 19px; }
.nav-toggle::after { top: 24px; }
.nav-toggle.is-open::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle.is-open::after { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle.is-open span { opacity: 0; }

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--text-cream);
  background: var(--bg-darker);
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 20% center; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23,19,15,0.55) 0%, rgba(23,19,15,0.25) 35%, rgba(23,19,15,0.75) 100%),
    linear-gradient(90deg, rgba(23,19,15,0.55) 0%, rgba(23,19,15,0.1) 55%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 220px 0 90px;
  width: 100%;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}
.hero-brand-mark {
  height: 58px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.96;
}
.hero-brand-name {
  height: 26px;
  width: auto;
  max-width: min(460px, calc(100% - 76px));
  object-fit: contain;
  object-position: left center;
  opacity: 0.96;
}
.hero h1 {
  font-size: clamp(34px, 7vw, 84px);
  max-width: 1040px;
  color: #fff;
  margin-bottom: 24px;
  overflow-wrap: break-word;
}
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero-sub {
  font-size: 18px;
  max-width: 520px;
  color: var(--text-muted-dark);
  margin-bottom: 40px;
}
/* About / brand ------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat span { font-size: 13px; color: var(--text-muted-light); letter-spacing: 0.02em; }

.finishes-card {
  background: var(--bg-dark);
  color: var(--text-cream);
  padding: 44px 40px;
  border-radius: var(--radius);
}
.finishes-card h3 { color: var(--text-cream); margin-bottom: 8px; }
.finishes-card > p { margin-bottom: 30px; }
.finish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 16px;
}
.finish-item { text-align: center; }
.finish-dot {
  width: 46px; height: 46px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.25);
}
.finish-item span { font-size: 11.5px; color: var(--text-muted-dark); line-height: 1.3; display: block; }

.f-mg { background: linear-gradient(145deg,#cdab6f,#8f7140); }
.f-bg { background: linear-gradient(145deg,#6b6b6b,#3a3a3a); }
.f-nk { background: linear-gradient(145deg,#c9c9c9,#8f8f8f); }
.f-bl { background: linear-gradient(145deg,#3a3a3a,#111); }
.f-cr { background: linear-gradient(145deg,#ffffff,#a9a9a9); }
.f-wc { background: linear-gradient(145deg,#f4f4f4,#c7d3da); }
.f-br { background: linear-gradient(145deg,#a9713f,#6e4423); }
.f-go { background: linear-gradient(145deg,#e8cd8a,#a9822f); }
.f-gl { background: linear-gradient(145deg,#d8bd7c,#8a6a2e); }

/* Products / catalog grid ------------------------------------------------ */

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -8px 0 48px;
}
.catalog-chip {
  padding: 10px 18px;
  border: 1px solid var(--line-light);
  background: #fff;
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all 0.2s ease;
}
.catalog-chip:hover { border-color: var(--gold); color: var(--gold); }
.catalog-chip.is-active {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: var(--text-cream);
}

.catalog-group { margin-bottom: 48px; }
.catalog-group.is-hidden { display: none; }
.catalog-group-title {
  font-size: 22px;
  margin: 0 0 22px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: inherit;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-media {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 12px;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.product-info { padding: 8px 20px 22px; }
.product-info .finish-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.product-info .finish-dot {
  width: 12px;
  height: 12px;
  margin: 0;
  border: 1px solid rgba(42, 35, 29, 0.12);
  box-shadow: none;
  flex-shrink: 0;
}
.product-info h4 { font-family: var(--serif); font-size: 20px; margin: 0 0 6px; }
.product-info p { font-size: 13.5px; margin: 0 0 12px; }
.product-sku {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-dark);
}

.products-foot {
  margin-top: 16px;
  text-align: center;
}

/* Gallery --------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  height: 940px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  display: block;
  width: 100%; height: 100%;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 26px;
  background: linear-gradient(0deg, rgba(23,19,15,0.85), transparent 70%);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Catalog CTA ------------------------------------------------------------ */

.catalog-section {
  position: relative;
  overflow: hidden;
}
.catalog-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.catalog-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.catalog-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(23,19,15,0.92) 0%, rgba(23,19,15,0.75) 45%, rgba(23,19,15,0.45) 100%);
}
.catalog-block {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.catalog-meta { display: flex; gap: 28px; margin: 32px 0 36px; flex-wrap: wrap; }
.catalog-meta div b { display: block; font-family: var(--serif); font-size: 26px; color: var(--gold-light); }
.catalog-meta div span { font-size: 12px; color: var(--text-muted-dark); letter-spacing: 0.04em; }

/* Where to buy ----------------------------------------------------------- */

.buy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.buy-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 40px;
}
.buy-card .icon-badge { margin-bottom: 22px; }
.buy-card h3 { margin-bottom: 10px; }
.buy-card p { margin-bottom: 26px; }

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-cream-alt);
  color: var(--gold);
}
.icon-badge svg { width: 24px; height: 24px; }

/* Payment / requisites ---------------------------------------------------- */

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 8px;
}
.payment-card {
  background: rgba(244,237,226,0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 32px 34px;
}
.payment-card h4 { color: var(--text-cream); font-size: 18px; margin-bottom: 14px; }
.payment-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 14.5px;
  color: var(--text-muted-dark);
}
.payment-list li:last-child { border-bottom: none; }
.payment-list b { color: var(--text-cream); font-weight: 600; min-width: 130px; flex-shrink: 0; }

details.requisites {
  margin-top: 40px;
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
}
details.requisites summary {
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
details.requisites summary::-webkit-details-marker { display: none; }
details.requisites summary::after {
  content: "+";
  font-size: 18px;
  margin-left: auto;
  transition: transform 0.2s;
}
details.requisites[open] summary::after { transform: rotate(45deg); }

.req-table {
  margin-top: 24px;
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.req-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--bg-dark);
  padding: 14px 18px;
  font-size: 14px;
}
.req-row span:first-child { color: var(--text-muted-dark); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.req-row span:nth-child(2) { color: var(--text-cream); font-family: "Menlo", "Consolas", monospace; font-size: 13.5px; word-break: break-word; }
.copy-btn {
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--text-muted-dark);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.copy-btn:hover, .copy-btn.is-copied { border-color: var(--gold); color: var(--gold); }
.req-note { margin-top: 18px; font-size: 13px; }
.req-actions { margin-top: 22px; }

/* Contact ------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}
.contact-info-list { margin-top: 36px; }
.contact-info-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-light);
}
.contact-info-list li:first-child { padding-top: 0; }
.contact-info-list b { display: block; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.contact-info-list a { font-size: 16px; }
.messenger-row { display: flex; gap: 10px; margin-top: 6px; }
.messenger-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  transition: all 0.2s;
}
.messenger-btn svg { width: 20px; height: 20px; }
.messenger-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--bg-cream-alt); }

.form-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 44px;
}
.form-card form { position: relative; }
.hp-wrap {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted-light);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line-light);
  padding: 10px 2px;
  font-size: 16px;
  color: var(--text-dark);
  background: transparent;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 90px; }
.field-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--text-muted-light); }
.field-consent input { width: auto; margin-top: 3px; }
.consent-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.consent-link:hover { color: var(--gold-light); }
.form-msg { margin-top: 18px; font-size: 14px; display: none; padding: 12px 16px; border-radius: var(--radius); }
.form-msg.is-visible { display: block; }
.form-msg.is-ok { background: #eef4ea; color: #3d6b2d; }
.form-msg.is-error { background: #f6e9e6; color: #9c3b23; }

/* Consent modal ---------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 19, 15, 0.6);
}
.modal-dialog {
  position: relative;
  background: var(--bg-cream);
  color: var(--text-dark);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.modal-dialog h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 20px; padding-right: 20px; }
.modal-dialog p { margin: 0; }
.modal-body { font-size: 14.5px; line-height: 1.7; color: var(--text-muted-light); }
.modal-body h4 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin: 28px 0 10px;
}
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { margin: 0 0 12px; }
.modal-body ul { margin: 0 0 12px; padding-left: 20px; list-style: disc; }
.modal-body li { margin-bottom: 8px; }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted-light);
  cursor: pointer;
  z-index: 1;
}
.modal-close:hover { color: var(--gold); }
.modal-close--light { color: rgba(255,255,255,0.8); }
.modal-close--light:hover { color: #fff; }

/* Lightbox ----------------------------------------------------------------- */

.modal--lightbox .modal-overlay { background: rgba(10, 8, 6, 0.92); }
.lightbox-dialog {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-dialog img {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox-caption {
  margin-top: 18px;
  color: var(--text-cream);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-align: center;
}
.modal-close:hover { color: var(--gold); }

/* Footer ------------------------------------------------------------- */

.site-footer { padding: 70px 0 30px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-top img { height: 30px; margin-bottom: 20px; }
.footer-col h5 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.footer-col li { margin-bottom: 12px; font-size: 14.5px; color: var(--text-muted-dark); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted-dark);
}

/* Cookie banner -------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 96;
  background: var(--bg-darker);
  color: var(--text-cream);
  border-top: 1px solid var(--line-dark);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28);
  transform: translateY(0);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.cookie-banner.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cookie-banner p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted-dark);
}
.cookie-banner .consent-link { color: var(--gold); }
.cookie-banner .consent-link:hover { color: var(--gold-light); }
.cookie-banner-btn {
  flex-shrink: 0;
  padding: 12px 28px;
  font-size: 12px;
}
body.has-cookie-banner .quick-contact { bottom: 108px; }

/* Floating quick-contact ----------------------------------------------- */

.quick-contact {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  transition: bottom 0.35s ease;
}
.quick-contact .messenger-btn {
  width: 48px; height: 48px;
  background: var(--bg-dark);
  color: var(--text-cream);
  border-color: var(--bg-dark);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.quick-contact .messenger-btn svg { width: 20px; height: 20px; }
.quick-contact .messenger-btn:hover { background: var(--gold); border-color: var(--gold); color: #1c1712; }

/* Reveal animation -------------------------------------------------------- */

.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1024px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .gallery-grid { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: 340px 340px; }
  .buy-grid, .payment-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .section { padding: 80px 0; }
  .container { padding: 0 28px; }
  .main-nav, .header-phone { display: none; }
  .nav-toggle { display: block; }
  .main-nav.is-open {
    display: flex;
    position: fixed; inset: 0;
    background: var(--bg-darker);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 99;
  }
  .main-nav.is-open a { font-size: 20px; }
  .hero-inner { padding: 160px 0 70px; }
  .hero-brand { gap: 12px; margin-bottom: 24px; }
  .hero-brand-mark { height: 42px; }
  .hero-brand-name { height: 18px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .product-media { padding: 24px; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery-item { height: auto; aspect-ratio: 3 / 4; }
  .req-row { grid-template-columns: 1fr; text-align: left; }
  .req-row .copy-btn { justify-self: start; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .form-card { padding: 28px; }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 28px;
    gap: 14px;
  }
  .cookie-banner-btn { width: 100%; justify-content: center; }
  body.has-cookie-banner .quick-contact { bottom: 210px; }
  .btn { white-space: normal; text-align: center; max-width: 100%; }
  .btn-row > .btn { flex: 1 1 100%; justify-content: center; }
  .buy-grid, .payment-grid { grid-template-columns: minmax(0, 1fr); }
  .payment-card { padding: 24px 22px; }
  .payment-list li { flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
  .payment-list b { min-width: 0; }
}

@media (max-width: 400px) {
  .container { padding: 0 20px; }
  .btn { padding-left: 20px; padding-right: 20px; letter-spacing: 0.08em; }
}
