:root {
  --gold: #B88E4F;
  --gold-2: #C5A059;
  --gold-d: #8F6A35;
  --ink: #0D0D0D;
  --ink-2: #1A1A1A;
  --paper: #F6F3EE;
  --white: #FFFFFF;
  --muted: #6D675F;
  --line: rgba(184, 142, 79, 0.28);
  --shadow: 0 18px 50px rgba(13, 13, 13, 0.12);
  --radius: 2px;
  --container: 1180px;
  --header: 100px;
  --font: "Outfit", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.gold-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
}
.gold-rule::before,
.gold-rule::after {
  content: "";
  height: 1px;
  width: 42px;
  background: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn:hover { background: var(--gold-d); border-color: var(--gold-d); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.btn-ink:hover { background: var(--gold); border-color: var(--gold); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--ink), var(--gold) 45%, var(--ink));
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 24px;
}
.logo img {
  height: 78px;
  width: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-list > li > a,
.nav-list > li > span {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.nav-list > li > a:hover,
.nav-list > li.is-active > a { color: var(--gold-d); }
.nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .2s;
}
.nav-list > li > a:hover::after { transform: scaleX(1); }

.has-children { position: relative; }
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 8px 0;
  display: none;
}
.has-children:hover .submenu { display: block; }
.submenu a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
}
.submenu a:hover { color: var(--gold-d); background: var(--paper); }

.header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-phone {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.2;
}
.header-phone small { color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-size: 10px; }
.header-phone strong { letter-spacing: 0.04em; }
.lang-switch { display: flex; gap: 8px; }
.lang-switch a {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.lang-switch a.is-active { color: var(--gold); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.menu-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  display: block;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img,
.hero-slide .hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-fallback {
  background:
    radial-gradient(circle at 20% 20%, rgba(184,142,79,.28), transparent 36%),
    linear-gradient(160deg, #111 0%, #000 55%, #1c150c 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.62));
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 80px 20px;
  max-width: 820px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 16px 0 18px;
  font-weight: 700;
}
.hero p {
  color: rgba(255,255,255,.82);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 28px;
}
.hero-nav {
  position: absolute;
  z-index: 4;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-nav button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.35);
  cursor: pointer;
}
.hero-nav button.is-active { background: var(--gold); }

/* Page hero */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 72px 0 56px;
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
}
.page-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.03em;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  margin-top: 14px;
}
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: var(--gold); }

.section { padding: 88px 0; }
.section-sand { background: var(--paper); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}
.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* Catalog */
.catalog-grid,
.product-grid,
.card-grid {
  display: grid;
  gap: 22px;
}
.catalog-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
.product-grid { grid-template-columns: repeat(4, 1fr); align-items: start; }
.card-grid { grid-template-columns: repeat(3, 1fr); }

.catalog-card,
.product-card {
  position: relative;
  overflow: hidden;
  background: #111;
  isolation: isolate;
}
.catalog-card { aspect-ratio: 9 / 16; }
.product-card { aspect-ratio: 9 / 16; }
.catalog-card img,
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.catalog-card:hover img,
.product-card:hover img { transform: scale(1.06); }
.product-card { cursor: zoom-in; }
.catalog-card::after,
.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.78));
}
.catalog-card figcaption,
.product-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 22px;
  color: var(--white);
}
.catalog-card h3,
.product-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.catalog-card span,
.product-card span {
  color: var(--gold-2);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.catalog-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, #161616 0 12px, #111 12px 24px);
  color: var(--gold);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: 12px;
}

/* About / features */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}
.feature {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.about-panel {
  background: var(--ink);
  color: var(--white);
  min-height: 420px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  position: relative;
  overflow: hidden;
}
.about-panel::before {
  content: "P";
  position: absolute;
  right: -20px;
  top: -40px;
  font-size: 280px;
  font-weight: 700;
  color: rgba(184,142,79,.12);
  line-height: 1;
}
.about-panel h3 { font-size: 32px; margin: 0 0 12px; position: relative; }
.about-panel p { color: rgba(255,255,255,.72); position: relative; }

/* Content */
.rich-content,
.blog-content {
  font-size: 17px;
  color: #2b2b2b;
}
.rich-content h2, .rich-content h3 { letter-spacing: -0.02em; }
.rich-content img { margin: 20px 0; }
.split {
  display: grid;
  grid-template-columns: 1.6fr .8fr;
  gap: 40px;
}
.side-box {
  background: var(--paper);
  padding: 24px;
  border: 1px solid var(--line);
}
.side-box h3 { margin: 0 0 14px; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; }
.side-box a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.side-box a:hover { color: var(--gold-d); }

.blog-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.blog-card img { width: 100%; height: 150px; object-fit: cover; }
.blog-card h2 { margin: 0 0 8px; font-size: 24px; }
.meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.pagination { display: flex; gap: 8px; margin-top: 24px; }
.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.pagination .active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.logo-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: center;
}
.logo-row img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  background: var(--white);
  padding: 16px;
  border: 1px solid var(--line);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}
.gallery-grid a { display: block; overflow: hidden; cursor: zoom-in; }
.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s;
}
.gallery-grid a:hover img { transform: scale(1.05); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 40px;
}
.contact-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list small { color: var(--muted); display: block; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 14px 16px;
  color: var(--ink);
  outline: none;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--gold); }
#msg { margin-bottom: 12px; }
.form-ok { color: #1d6b3a; }
.form-error { color: #b42318; }
.map-wrap iframe { width: 100% !important; height: 360px !important; border: 0; display: block; filter: grayscale(1) contrast(1.05); }

.empty-state {
  padding: 48px;
  text-align: center;
  background: var(--paper);
  border: 1px dashed var(--line);
  color: var(--muted);
}

.cta {
  background: var(--ink);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.cta h2 { font-size: clamp(28px, 4vw, 44px); margin: 12px 0 18px; letter-spacing: -0.03em; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.site-footer h3 {
  color: var(--white);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.site-footer a:hover { color: var(--gold-2); }
.footer-logo { height: 84px; width: auto; margin-bottom: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(184,142,79,.22);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  background: var(--ink);
  color: var(--white);
  padding: 16px 18px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow);
}
.cookie.is-open { display: flex; }
.cookie p { margin: 0; font-size: 14px; }

.error-box { text-align: center; padding: 80px 0; }
.error-box h2 { font-size: 42px; margin-bottom: 8px; }

.pana-lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 72px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}
.pana-lb.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.pana-lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, .92);
}
.pana-lb__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
}
.pana-lb__img {
  max-width: min(92vw, 1280px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .5);
}
.pana-lb__cap {
  margin-top: 12px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}
.pana-lb__close,
.pana-lb__nav {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(184, 142, 79, .45);
  background: rgba(13, 13, 13, .55);
  color: var(--gold);
  cursor: pointer;
  line-height: 1;
}
.pana-lb__close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 28px;
}
.pana-lb__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 36px;
}
.pana-lb__prev { left: 16px; }
.pana-lb__next { right: 16px; }
.pana-lb__close:hover,
.pana-lb__nav:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

@media (max-width: 720px) {
  .pana-lb { padding: 64px 16px 24px; }
  .pana-lb__nav { width: 40px; height: 40px; font-size: 28px; }
  .pana-lb__prev { left: 8px; }
  .pana-lb__next { right: 8px; }
}

.mobile-nav {
  display: none;
}

@media (max-width: 1024px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid, .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .logo-row { grid-template-columns: repeat(3, 1fr); }
  .header-phone { display: none; }
}

@media (max-width: 820px) {
  .nav, .lang-switch { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav.is-open {
    display: block;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 24px;
  }
  .mobile-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 14px;
  }
  .catalog-grid,
  .product-grid,
  .card-grid,
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .blog-card { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cookie { flex-direction: column; align-items: stretch; }
  .section { padding: 56px 0; }
  .hero { min-height: 78vh; }
}

@media (max-width: 560px) {
  .catalog-grid,
  .product-grid,
  .logo-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .logo img { height: 60px; }
  .footer-bottom { flex-direction: column; }
}
