/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; cursor: inherit; }
html { cursor: default; }

:root {
  --white: #ffffff;
  --off-white: #faf9f7;
  --cream: #f5f0eb;
  --light: #ede8e2;
  --gold: #b8975a;
  --gold-light: #ddc898;
  --dark: #2c2c2c;
  --mid: #5a5a5a;
  --gray: #888888;
  --light-gray: #e8e4df;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', 'Helvetica Neue', sans-serif;
  --transition: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; font-size: 16px; }
a, button, label, [role="button"],
.nav-links a, .nav-cta, .nav-logo,
.btn-primary, .btn-outline,
.catalog-card, .catalog-page-card, .service-card,
.filter-btn, .social-link, .hero-video-btn { cursor: pointer; }
input, textarea { cursor: text; }
select { cursor: pointer; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; }
ul { list-style: none; }

/* cursor: standard system cursor */

/* ===== NAV TOP COVER ===== */

/* ===== LOADER ===== */
.loader {
  position: fixed; inset: 0;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  z-index: 9000;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-text {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--dark);
  letter-spacing: 0.35em;
}
.loader-text span {
  display: inline-block;
  animation: loaderReveal 0.7s cubic-bezier(0.77,0,0.175,1) forwards;
  opacity: 0;
  transform: translateY(30px);
}
@keyframes loaderReveal { to { opacity: 1; transform: translateY(0); } }

/* ===== NAVIGATION ===== */
nav {
  position: fixed; top: 1.2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 4rem);
  max-width: 1360px;
  padding: 0.45rem 1.8rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 60px;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
nav.scrolled {
  background: rgba(255,255,255,0.97);
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 4px 40px rgba(0,0,0,0.10);
  /* Blur is invisible behind a 97% white background but was recomputed on every scroll frame */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Logo */
.nav-logo {
  display: block;
  overflow: hidden;
  position: relative;
  width: 170px;
  height: 48px;
}
.nav-logo img {
  position: absolute;
  height: 220px;
  width: auto;
  top: -73px;
  left: -16px;
  filter: invert(1);
  transition: filter 0.4s;
}
nav.scrolled .nav-logo img {
  filter: none;
}

/* Links */
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  position: relative;
  transition: color 0.3s;
}
nav.scrolled .nav-links a { color: var(--mid); }
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:not(.nav-cta):hover { color: var(--gold) !important; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold) !important; }
.nav-links a.active::after { width: 100%; }

/* Login link */
.nav-login {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65) !important;
  transition: color 0.3s !important;
}
.nav-login:hover { color: var(--white) !important; }
nav.scrolled .nav-login { color: var(--mid) !important; }
nav.scrolled .nav-login:hover { color: var(--dark) !important; }
.nav-login::after { display: none !important; }

/* CTA button */
.nav-cta {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.92) !important;
  transition: all 0.4s !important;
}
nav.scrolled .nav-cta {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold) !important; border-color: var(--gold) !important; color: var(--white) !important; }

/* Language switcher (разметку рисует js/i18n.js) */
.nav-lang, .nav-lang-mobile { color: rgba(255,255,255,0.85); transition: color 0.4s; }
nav.scrolled .nav-lang, nav.scrolled .nav-lang-mobile { color: var(--mid); }
.nav-lang .lang-switch button { font-size: 0.72rem; }
.nav-lang-mobile { display: none; margin-left: auto; margin-right: 0.4rem; }
.mob-lang { color: rgba(255,255,255,0.7); margin-top: 0.6rem; }
.mob-lang button { font-size: 0.8rem; padding: 0.5rem 0.6rem; }

/* ===== HERO — VIDEO BG ===== */
.hero {
  height: 100vh;
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
  background: #1a1816;
}

/* Video background */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Soft light overlay поверх видео */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to right,
    rgba(15,13,11,0.72) 0%,
    rgba(15,13,11,0.45) 55%,
    rgba(15,13,11,0.15) 100%
  );
}

/* Fallback когда видео нет */
.hero-video-placeholder {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #1e1c1a 0%, #2e2b27 50%, #1e1c1a 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1.2rem;
  pointer-events: none;
  user-select: none;
}
.hero-video-placeholder .ph-video-icon { display: none; }
.hero-video-placeholder span { display: none; }

/* Кнопка play/pause */
.hero-video-btn {
  position: absolute; bottom: 2.5rem; right: 4rem;
  z-index: 3;
  display: flex; align-items: center; gap: 0.7rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}
.hero-video-btn:hover {
  background: rgba(255,255,255,0.18);
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.hero-video-btn .btn-icon {
  width: 18px; height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-video-btn .play-icon {
  width: 0; height: 0;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent currentColor;
  margin-left: 1px;
}
.hero-video-btn .pause-icon {
  display: none;
  gap: 2px;
}
.hero-video-btn .pause-bar {
  width: 2px; height: 7px; background: currentColor;
}
.hero-video-btn.playing .play-icon { display: none; }
.hero-video-btn.playing .pause-icon { display: flex; }

.hero-bg-pattern { display: none; }
.hero-line-top { display: none; }

.hero-img-area {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 48%;
  overflow: hidden;
  z-index: 0;
}
.hero-img-ph {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #ede7df 0%, #ddd5c9 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero-img-ph-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.hero-img-ph span {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.2);
}
.hero-content {
  position: relative; z-index: 3;
  padding: 0 4rem;
  max-width: 56%;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.2rem;
  opacity: 0; transform: translateY(14px);
  animation: fadeUp 0.7s 1.0s forwards;
}
.hero-tag { display: none; }
.hero-tag::before { display: none; }
.hero-logo-wrap {
  position: relative;
  overflow: hidden;
  width: 300px;
  height: 115px;
  margin-bottom: 2rem;
  opacity: 0; transform: translateY(28px);
  animation: fadeUp 0.9s 1.2s forwards;
}
.hero-logo {
  position: absolute;
  height: 400px;
  width: auto;
  top: -143px;
  left: -85px;
  filter: invert(1);
}
.hero-divider {
  width: 48px;
  height: 1px;
  background: var(--gold-light);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp 0.6s 1.5s forwards;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 300;
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: 2rem;
  opacity: 0; transform: translateY(28px);
  animation: fadeUp 0.85s 1.4s forwards;
}
.hero h1 em { color: var(--gold-light); font-style: italic; font-weight: 400; }
.hero-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  max-width: 460px;
  line-height: 1.9;
  margin-bottom: 3rem;
  font-weight: 300;
  opacity: 0; transform: translateY(18px);
  animation: fadeUp 0.7s 1.7s forwards;
}
.hero-sub-accent {
  color: rgba(255,255,255,0.9);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex; gap: 1.2rem; align-items: center;
  opacity: 0; transform: translateY(18px);
  animation: fadeUp 0.7s 1.8s forwards;
}
.hero .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.hero .btn-primary:hover { background: #a07840; border-color: #a07840; }
.hero .btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}
.hero .btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); background: transparent; }
.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  background: var(--gold);
  color: var(--white);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 40px;
  border: 1px solid var(--gold);
  transition: all 0.3s;
}
.btn-primary:hover { background: #a07840; border-color: #a07840; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,151,90,0.3); }
.btn-outline {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  border: 1px solid var(--light-gray);
  color: var(--dark);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 40px;
  transition: all 0.3s;
  background: transparent;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 4rem;
  display: flex; align-items: center; gap: 0.8rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0; animation: fadeUp 0.7s 2.2s forwards;
  z-index: 3;
}
.scroll-line {
  width: 40px; height: 1px; background: rgba(255,255,255,0.2);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--gold-light);
  animation: scrollLine 2.2s 2.5s infinite;
}
@keyframes scrollLine { to { left: 100%; } }

/* ===== MARQUEE ===== */
.marquee-section {
  padding: 2rem 0;
  overflow: hidden;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 2.5rem, black 5rem, black calc(100% - 5rem), transparent calc(100% - 2.5rem), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, transparent 2.5rem, black 5rem, black calc(100% - 5rem), transparent calc(100% - 2.5rem), transparent 100%);
  overflow: hidden;
  background: var(--white);
}
.marquee-track {
  display: flex; gap: 3.5rem;
  animation: marquee 22s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  display: flex; align-items: center; gap: 1.2rem;
  font-family: var(--font-serif);
  font-size: 1rem; color: var(--mid);
  flex-shrink: 0;
}
.marquee-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== SECTION BASE ===== */
section { padding: 7rem 4rem; }
.section-label {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.section-label::before { display: none; }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.18;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ===== ABOUT ===== */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 65vh;
  overflow: hidden;
}
.about-image {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: var(--light);
}
.about-img-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #ede7df, #d9d0c5);
  display: flex; align-items: center; justify-content: center;
}
.about-img-placeholder span {
  font-size: 0.75rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: rgba(0,0,0,0.18);
}
.about-deco {
  position: absolute; bottom: 2rem; right: 2rem;
  width: 45%; aspect-ratio: 1;
  border: 1px solid var(--gold-light);
  opacity: 0.5;
  transition: transform 0.6s, opacity 0.6s;
}
.about-strip:hover .about-deco { transform: translate(-6px,-6px); opacity: 0.8; }
.about-content {
  padding: 6rem 5rem;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--off-white);
}
.about-content p {
  color: var(--mid);
  line-height: 1.95;
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 1.2rem;
}
.about-stats {
  display: flex; gap: 3rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--light-gray);
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.6rem; font-weight: 300;
  color: var(--dark); line-height: 1;
}
.stat-gold { color: var(--gold); }
.stat-label {
  font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gray); margin-top: 0.4rem;
}

/* ===== SERVICES ===== */
.services { background: var(--white); }
.services-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 3.5rem;
}
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--light-gray);
}
.service-card {
  background: var(--white);
  padding: 3rem 2.5rem;
  position: relative; overflow: hidden;
  transition: background 0.4s;
}
.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s;
}
.service-card:hover { background: var(--off-white); }
.service-card:hover::after { transform: scaleX(1); }
.service-num {
  font-family: var(--font-serif);
  font-size: 3.5rem; font-weight: 300;
  color: var(--light-gray); line-height: 1;
  margin-bottom: 1.5rem;
  transition: color 0.4s;
}
.service-card:hover .service-num { color: var(--gold-light); }
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem; font-weight: 400;
  margin-bottom: 0.9rem;
}
.service-card p { font-size: 0.88rem; color: var(--mid); line-height: 1.85; font-weight: 300; }

/* ===== CATALOG PREVIEW ===== */
.catalog-preview { background: var(--cream); }
.catalog-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 3rem;
}
.catalog-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  perspective: 1200px;
}
.catalog-card {
  cursor: pointer;
  transform-style: preserve-3d;
  border-radius: 12px;
  transition: transform 0.08s ease-out, box-shadow 0.4s ease;
  will-change: transform;
  border-radius: 4px;
}
.catalog-card:hover {
  box-shadow: 0 30px 60px rgba(0,0,0,0.12), 0 10px 20px rgba(0,0,0,0.06);
}
.catalog-img {
  overflow: hidden;
  border-radius: 12px;
  background: #f7f5f2;
  line-height: 0;
}
.catalog-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}
/* Блик — движется за мышью */
.catalog-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0) 100%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 2;
}
.catalog-card:hover .catalog-img::after { opacity: 1; }
.catalog-card:hover .catalog-img img { transform: scale(1.06); }
.catalog-img-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.5s ease;
}
.catalog-card:hover .catalog-img-ph { transform: scale(1.06); }
.catalog-ph-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.6rem;
}
.ph-diamond {
  width: 36px; height: 36px;
  border: 1px solid rgba(184,151,90,0.35);
  transform: rotate(45deg);
  transition: transform 0.4s;
}
.catalog-card:hover .ph-diamond { transform: rotate(45deg) scale(1.2); }
.ph-text {
  font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(0,0,0,0.18);
}
.catalog-info {
  padding: 1rem 1rem 0.8rem;
}
.catalog-info h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 400; margin-bottom: 0.25rem;
}
.catalog-info .cat-type { font-size: 0.78rem; color: var(--gray); }
.catalog-price { font-size: 0.82rem; color: var(--gold); margin-top: 0.4rem; }

/* ===== SERVICES 3D ===== */
.services-grid { perspective: 1000px; }
.service-card {
  transform-style: preserve-3d;
  transition: transform 0.5s ease, background 0.4s, box-shadow 0.5s;
}
.service-card:hover {
  transform: translateY(-8px) rotateX(3deg);
  box-shadow: 0 24px 48px rgba(0,0,0,0.08);
}
.service-num { transition: color 0.4s, transform 0.4s; }
.service-card:hover .service-num { transform: translateZ(10px) scale(1.05); }

/* ===== CTA ===== */
.cta-section {
  padding: 4rem 4rem 7rem; text-align: center;
  background: var(--cream);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: 'DVA LUX';
  position: absolute;
  font-family: var(--font-serif);
  font-size: 18vw; font-weight: 300;
  color: rgba(184,151,90,0.04);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.15em;
}
.cta-section .section-title { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.cta-section p {
  color: var(--mid); font-size: 1rem; font-weight: 300;
  max-width: 480px; margin: 0 auto 3rem; line-height: 1.9;
}

/* ===== FOOTER — LIGHT ===== */
footer {
  background: var(--off-white);
  color: var(--mid);
  padding: 5rem 4rem 2.5rem;
  border-top: 1px solid var(--light-gray);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--light-gray);
  margin-bottom: 2.5rem;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 2rem; font-weight: 400;
  color: var(--dark); letter-spacing: 0.12em; margin-bottom: 1.2rem;
}
.footer-logo-img {
  width: 260px;
  height: auto;
  display: block;
  margin: -55px 0 -40px -30px;
}
.footer-desc { font-size: 0.88rem; line-height: 1.85; max-width: 280px; font-weight: 300; }
.footer-col h5 {
  font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem;
}
.footer-col a {
  display: block; font-size: 0.86rem; color: var(--mid);
  margin-bottom: 0.8rem; transition: color 0.3s; font-weight: 300;
}
.footer-col a:hover { color: var(--dark); }
.footer-socials {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.6rem;
}
.footer-col .footer-social-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--light-gray);
  border-radius: 50%;
  color: var(--mid);
  transition: all 0.25s;
  margin-bottom: 0 !important;
  flex-shrink: 0;
  padding: 0;
}
.footer-col .footer-social-link:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white) !important;
}
.footer-col .footer-social-link svg { width: 15px; height: 15px; display: block; }
.footer-app-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.store-badges { display: flex; flex-direction: row; gap: 0.55rem; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #111;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 0.42rem 0.9rem 0.42rem 0.65rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}
.store-badge:hover { background: #1e1e1e; border-color: rgba(255,255,255,0.28); transform: translateY(-1px); }
.badge-icon { width: 22px; height: 22px; flex-shrink: 0; display: block; }
.badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.badge-sub { font-size: 0.45rem; color: rgba(255,255,255,0.6); letter-spacing: 0.04em; font-family: var(--font-sans); text-transform: none; }
.badge-name { font-size: 0.85rem; color: #fff; font-weight: 600; font-family: var(--font-sans); letter-spacing: 0.01em; white-space: nowrap; }

/* ===== PWA APP HEADER =====
   В standalone-режиме основная навигация скрыта, и раньше на её месте
   оставалась пустая полоса. Здесь — тонкая брендированная шапка в цвете
   навигации сайта. */
.app-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1900;
  background: var(--dark);
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid rgba(184,151,90,0.28);
}
.app-header-inner {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 12px;
}
.app-header-logo {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--white);
  text-decoration: none;
  line-height: 1;
}
.app-header-logo span { color: var(--gold); }
.app-header-action {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; padding: 0;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s;
}
.app-header-action:active { color: var(--gold); }
.app-header-action svg { width: 20px; height: 20px; }
.app-header-action.left { left: 6px; }
.app-header-action.right { right: 6px; }

/* ===== PWA BOTTOM TAB BAR ===== */
.app-tabbar {
  display: none;
  position: fixed !important;
  top: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  width: auto !important;
  max-width: none !important;
  border-radius: 0 !important;
  background: var(--dark) !important;
  border-top: 1px solid rgba(184,151,90,0.28) !important;
  z-index: 2000 !important;
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)) !important;
  flex-direction: row !important;
}
body.pwa-mode .app-tabbar { display: flex; }
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px 6px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: color 0.18s;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  position: relative;
}
.tab-item svg {
  width: 21px; height: 21px; flex-shrink: 0;
  stroke: rgba(255,255,255,0.45);
  transition: stroke 0.18s;
}
.tab-item.active { color: var(--gold); }
.tab-item.active svg { stroke: var(--gold) !important; }
.tab-item:active { opacity: 0.55; }
.tab-badge {
  position: absolute; top: 3px; right: calc(50% - 20px);
  background: var(--gold); color: #fff;
  font-size: 0.5rem; font-weight: 600;
  border-radius: 10px; min-width: 15px; height: 15px; padding: 0 4px;
  display: none; align-items: center; justify-content: center;
  font-family: var(--font-sans); letter-spacing: 0;
}

/* ===== GLOBAL PWA / STANDALONE RULES ===== */
@media all and (display-mode: standalone) {
  body { animation: pwaPageIn 0.22s ease both; }
  #mainNav, .mobile-menu, footer, .cart-bubble { display: none !important; }
  .app-tabbar, .app-header { display: flex !important; }
  body {
    padding-top: calc(52px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  }
  /* Отступы под скрытую навигацию сайта больше не нужны — шапка приложения
     уже занимает своё место через padding у body. */
  .catalog-page, .product-page, .contact-page { padding-top: 0 !important; }
  /* Шторка фильтров начинается под шапкой приложения, а не под навигацией сайта. */
  .catalog-sidebar { padding-top: calc(64px + env(safe-area-inset-top, 0px)) !important; }
}
/* JS fallback */
body.pwa-mode #mainNav, body.pwa-mode .mobile-menu, body.pwa-mode footer, body.pwa-mode .cart-bubble { display: none !important; }
body.pwa-mode .app-tabbar, body.pwa-mode .app-header { display: flex !important; }
body.pwa-mode {
  padding-top: calc(52px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
}
body.pwa-mode .catalog-page,
body.pwa-mode .product-page,
body.pwa-mode .contact-page { padding-top: 0 !important; }
body.pwa-mode .catalog-sidebar { padding-top: calc(64px + env(safe-area-inset-top, 0px)) !important; }

@keyframes pwaPageIn { from { opacity: 0; } to { opacity: 1; } }

/* Кнопка «назад» переехала в шапку приложения. */
.pwa-back-btn { display: none !important; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.76rem; color: var(--gray);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(35px); transition: opacity 0.85s ease, transform 0.85s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* ===== BURGER BUTTON ===== */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px 4px;
  cursor: pointer;
  z-index: 1100;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.88);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background 0.4s;
}
nav.scrolled .nav-burger span { background: var(--dark); }
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #1e1c1a;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  /* A closed menu must be visibility:hidden, not just transparent: an invisible
     full-screen layer over the page made Chrome smear and drop text while scrolling */
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transition: opacity 0.35s ease;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.05em;
  transition: color 0.3s;
  text-align: center;
}
.mobile-menu a:hover,
.mobile-menu a:active { color: var(--gold); }
.mobile-menu-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  width: 200px;
}
.mobile-menu-bottom a {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
}
.mob-cta-btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  border-radius: 40px;
  font-family: var(--font-sans) !important;
  font-size: 0.74rem !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
  font-weight: 400 !important;
  transition: background 0.3s, color 0.3s !important;
}
.mob-cta-btn:hover { background: var(--gold) !important; color: var(--white) !important; }
.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  nav, nav.scrolled { padding-left: 1.5rem; padding-right: 1.5rem; }
  section { padding: 5rem 2rem; }
  .hero-img-area { display: none; }
  .hero-content { max-width: 100%; }
  .about-strip { grid-template-columns: 1fr; }
  .about-content { padding: 3rem 2.5rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* NAV */
  nav { width: calc(100% - 2rem); top: 0.7rem; padding: 0.4rem 1.2rem; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-lang-mobile { display: inline-flex; }

  /* HERO */
  .hero-content { max-width: 100%; padding: 0 1.5rem; }
  .hero-logo-wrap { width: 210px; height: 80px; }
  .hero-logo { height: 290px; top: -104px; left: -55px; }
  .hero h1 { font-size: clamp(2.6rem, 9vw, 4rem); }
  .hero-sub { font-size: 0.88rem; max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-scroll { left: 1.5rem; bottom: 1.5rem; }
  .hero-video-btn { right: 1.5rem; bottom: 1.5rem; }

  /* SECTIONS */
  section { padding: 3.5rem 1.5rem; }
  .section-title { font-size: clamp(1.8rem, 7vw, 2.8rem); }

  /* ABOUT */
  .about-content { padding: 2.5rem 1.5rem; }
  .about-stats { gap: 1.5rem; flex-wrap: wrap; }
  .stat-num { font-size: 2rem; }

  /* SERVICES */
  .services-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 2rem 1.5rem; }

  /* CATALOG PREVIEW */
  .catalog-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .catalog-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }


  /* CTA */
  .cta-section { padding: 3rem 1.5rem 4rem; }
  .cta-section p { font-size: 0.9rem; }

  /* FOOTER */
  footer { padding: 3rem 1.5rem 2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; font-size: 0.7rem; }
  .footer-logo-img { width: 190px; margin: -40px 0 -30px -22px; }
}

@media (max-width: 480px) {
  nav { width: calc(100% - 1.6rem); }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .hero-logo-wrap { width: 175px; height: 66px; }
  .hero-logo { height: 240px; top: -86px; left: -46px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: column; gap: 1.2rem; }
  .btn-primary, .btn-outline { padding: 0.85rem 1.8rem; font-size: 0.72rem; width: 100%; text-align: center; }
  .hero-actions .btn-primary { width: auto; }
}

/* ===== CATALOG PAGE MOBILE ===== */
@media (max-width: 768px) {
  .catalog-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 80% !important;
    max-width: 300px !important;
    height: 100vh !important;
    z-index: 1200 !important;
    transition: left 0.35s ease !important;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15) !important;
    padding-top: 5rem !important;
  }
  .catalog-sidebar.open {
    left: 0 !important;
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
  }
  .sidebar-overlay.open { display: block; }
  .catalog-main { padding-left: 0 !important; }
  .mob-filter-btn {
    display: flex !important;
  }
  .catalog-page { flex-direction: column; }
}

/* Кнопка "Фильтры" на мобильном */
.mob-filter-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1.5px solid var(--light-gray);
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border-radius: 40px;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.mob-filter-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ===== НЕАКТИВНЫЕ КОНТАКТЫ =====
   Соцсети и перечень услуг показываются, но никуда не ведут, пока нет
   настоящих ссылок — вместо ссылок в никуда (href="#"). */
.footer-social-link.is-inactive,
.social-link.is-inactive,
.footer-static {
  cursor: default;
  pointer-events: none;
}
.footer-static { display: block; }
