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

:root {
  --gold: #c9a96e;
  --gold-light: #e8cfa0;
  --dark: #0d0d0d;
  --dark-2: #151515;
  --dark-3: #1e1e1e;
  --gray: #888;
  --light: #f5f3ef;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--light);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* CURSOR */
.cursor {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transition: transform .15s ease, opacity .3s ease;
  mix-blend-mode: difference;
}
.cursor.hide { opacity: 0; }
.cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transition: transform .35s ease, background .3s ease, border-color .3s ease;
  transform: translate(-15px, -15px);
}
.cursor-ring.grow { border-color: var(--gold); background: rgba(201,169,110,.07); }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 60px;
  transition: background .4s, padding .4s;
}
nav.scrolled {
  background: rgba(13,13,13,.92);
  backdrop-filter: blur(12px);
  padding: 18px 60px;
  border-bottom: 1px solid rgba(201,169,110,.15);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 8px;
  color: var(--gold);
  text-decoration: none;
}
.nav-links { display: flex; gap: 40px; list-style: none; align-items: center; }
.nav-links a {
  color: rgba(245,243,239,.6); text-decoration: none;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  transition: color .3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: 10px 24px !important;
  transition: background .3s, color .3s !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--dark) !important; }

/* DROPDOWNS */
.nav-has-dropdown { position: relative; }
.nav-has-dropdown > a { display: flex; align-items: center; gap: 8px; }
.nav-has-dropdown > a::after {
  content: '';
  width: 6px; height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .3s;
  flex-shrink: 0; opacity: .6;
}
.nav-has-dropdown:hover > a::after { transform: rotate(-135deg) translateY(2px); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 20px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(10,10,10,.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(201,169,110,.18);
  border-top: 2px solid var(--gold);
  min-width: 260px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 300;
}
.nav-has-dropdown:hover .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown::before {
  content: '';
  position: absolute; top: -8px; left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 12px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.nav-dd-label {
  padding: 14px 22px 8px;
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(201,169,110,.35);
  border-bottom: 1px solid rgba(201,169,110,.08);
}
.nav-dropdown a {
  display: block !important;
  padding: 13px 22px !important;
  font-size: 11px !important; letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: rgba(245,243,239,.45) !important;
  border-bottom: 1px solid rgba(201,169,110,.05) !important;
  transition: color .2s, background .2s, padding-left .25s !important;
  white-space: nowrap;
}
.nav-dropdown a:last-child { border-bottom: none !important; }
.nav-dropdown a:hover {
  color: var(--gold) !important;
  background: rgba(201,169,110,.05) !important;
  padding-left: 30px !important;
}

/* HERO */
.project-hero {
  height: 100vh; min-height: 700px;
  position: relative;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: #0d0d0d;
}
.project-hero-media {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.project-hero-blur {
  position: absolute;
  inset: -12%;
  width: 124%; height: 124%;
  object-fit: cover;
  object-position: center center;
  filter: blur(36px) saturate(1.08) brightness(.42);
  transform: scale(1.12);
}
.project-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
/* Портретные обложки: не растягиваем — кадр по высоте экрана, по бокам мягкий blur */
.project-hero.is-portrait .project-hero-img {
  inset: auto;
  top: 0; bottom: 0;
  left: 50%;
  width: auto;
  height: 100%;
  max-width: min(72vw, 920px);
  transform: translateX(-50%);
  object-fit: cover;
  object-position: center center;
  box-shadow: 0 0 0 1px rgba(201,169,110,.12), 0 30px 80px rgba(0,0,0,.45);
}
.project-hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(10,9,7,.94) 0%, rgba(10,9,7,.28) 46%, rgba(10,9,7,.55) 100%);
}
@media (max-width: 720px) {
  .project-hero.is-portrait .project-hero-img {
    max-width: 88vw;
  }
}
.hero-grid {
  position: absolute; inset: -30px;
  background-image:
    linear-gradient(rgba(201,169,110,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,110,.03) 1px, transparent 1px);
  background-size: 80px 80px;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transition: margin .6s ease-out;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
.project-hero-content {
  position: relative; z-index: 2;
  padding: 0 60px 80px;
  width: 100%;
}
.breadcrumb {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(245,243,239,.35); margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.service-hero > .breadcrumb {
  position: absolute;
  top: 96px;
  left: 60px;
  z-index: 3;
  margin-bottom: 0;
}
.breadcrumb a { color: rgba(245,243,239,.35); text-decoration: none; transition: color .3s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(201,169,110,.3); }
.project-eyebrow {
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.project-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 300; line-height: .95;
  margin-bottom: 48px;
}
.project-hero-title em { font-style: italic; color: var(--gold); }
.hero-meta {
  display: flex; gap: 0;
  border-top: 1px solid rgba(201,169,110,.15);
  padding-top: 32px;
}
.hero-meta-item {
  padding: 0 48px 0 0;
  margin-right: 48px;
  border-right: 1px solid rgba(201,169,110,.12);
}
.hero-meta-item:last-child { border-right: none; }
.hero-meta-item span {
  display: block; font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(245,243,239,.35);
  margin-bottom: 8px;
}
.hero-meta-item strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 400; color: var(--light);
}
.hero-scroll-hint {
  position: absolute; bottom: 40px; right: 60px; z-index: 2;
}
.scroll-line {
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}

/* MAIN VIEW */
.main-view-wrap {
  border-top: 1px solid rgba(201,169,110,.1);
  border-bottom: 1px solid rgba(201,169,110,.1);
  background: var(--dark-2);
  overflow: hidden;
}
.main-view-svg {
  width: 100%; max-width: 1400px;
  margin: 0 auto;
  display: block;
}
.main-view-svg svg { width: 100%; height: auto; display: block; }

/* PROJECT INTRO */
.project-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; padding: 100px 60px;
}
.intro-h2 { margin-top: 0; }
.intro-desc {
  font-size: 16px; line-height: 1.9;
  color: rgba(245,243,239,.55);
  margin-top: 24px;
}
.intro-specs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; align-content: start;
  border: 1px solid rgba(201,169,110,.1);
}
.spec-item {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(201,169,110,.08);
  border-right: 1px solid rgba(201,169,110,.08);
}
.spec-item:nth-child(even) { border-right: none; }
.spec-label {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(245,243,239,.3); margin-bottom: 8px;
}
.spec-val { font-size: 14px; color: rgba(245,243,239,.8); }

/* GALLERY */
.gallery-section { padding: 0 60px 100px; }
.gallery-header { margin-bottom: 60px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative; overflow: hidden;
  background: var(--dark-3);
  cursor: zoom-in;
}
.gallery-item svg { width: 100%; height: 100%; display: block; transition: transform .7s ease; }
.gallery-item:hover svg { transform: scale(1.04); }
.gi-wide { grid-column: span 8; }
.gi-tall { grid-column: span 4; }
.gi-square { grid-column: span 6; }
.gi-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(13,13,13,.85) 0%, transparent 100%);
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(245,243,239,.6);
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gi-label { opacity: 1; }

/* MATERIALS */
.materials-section { padding: 0 60px 100px; }
.materials-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 2px; margin-top: 60px;
}
.material-card {
  background: var(--dark-2);
  padding: 0 0 28px;
  border: 1px solid transparent;
  overflow: hidden;
  transition: border-color .4s ease, transform .4s cubic-bezier(.2,.7,.2,1);
}
.material-card:hover { border-color: rgba(201,169,110,.28); transform: translateY(-5px); }
.material-swatch {
  height: 120px; width: 100%;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.material-card:hover .material-swatch { transform: scale(1.06); }
.material-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; margin: 20px 20px 6px;
}
.material-use {
  font-size: 11px; letter-spacing: 1px;
  color: rgba(245,243,239,.35); margin: 0 20px;
}

/* NEXT PROJECT */
.next-project-bar {
  border-top: 1px solid rgba(201,169,110,.1);
  padding: 60px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--dark-2);
}
.np-label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(245,243,239,.3);
}
.np-link {
  display: flex; align-items: center; gap: 40px;
  text-decoration: none; color: var(--light);
  transition: gap .3s;
}
.np-link:hover { gap: 60px; }
.np-tag {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.np-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 300;
  transition: color .4s ease;
}
.np-link:hover .np-title { color: var(--gold); }
.np-arrow {
  font-size: 28px; color: var(--gold);
  transition: transform .3s;
}
.np-link:hover .np-arrow { transform: translateX(8px); }

/* PROJECT FOOTER */
.project-footer {
  background: var(--dark-3);
  border-top: 1px solid rgba(201,169,110,.1);
  padding: 40px 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.project-footer p { font-size: 12px; color: rgba(245,243,239,.2); }
.btn-outline-sm {
  border: 1px solid rgba(201,169,110,.4);
  color: var(--gold);
  padding: 12px 28px;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none;
  transition: border-color .3s, background .3s;
}
.btn-outline-sm:hover { border-color: var(--gold); background: rgba(201,169,110,.08); }

/* SERVICE PAGES */
.service-hero {
  height: 70vh; min-height: 500px;
  position: relative;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.service-hero-content {
  position: relative; z-index: 2;
  padding: 0 60px 80px; width: 100%;
}
.service-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 300; line-height: .95;
  margin-bottom: 32px;
}
.service-hero-title em { font-style: italic; color: var(--gold); }
.service-hero-desc {
  font-size: 16px; line-height: 1.8;
  color: rgba(245,243,239,.5);
  max-width: 600px; margin-bottom: 40px;
}
.service-price-tag {
  display: inline-flex; align-items: center; gap: 16px;
  border: 1px solid rgba(201,169,110,.25);
  padding: 16px 28px;
}
.service-price-tag span {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(245,243,239,.35);
}
.service-price-tag strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 400; color: var(--gold);
}

/* SERVICE BODY */
.service-body { padding: 100px 60px; }
.service-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.service-text .section-tag { margin-bottom: 20px; }
.service-desc-text {
  font-size: 16px; line-height: 1.9;
  color: rgba(245,243,239,.55);
  margin-top: 28px;
}
.service-includes { margin-top: 48px; }
.service-includes h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; margin-bottom: 24px;
}
.includes-list { list-style: none; }
.includes-list li {
  padding: 18px 0;
  border-bottom: 1px solid rgba(201,169,110,.08);
  font-size: 14px; color: rgba(245,243,239,.65);
  display: flex; align-items: flex-start; gap: 16px;
  line-height: 1.5;
}
.includes-list li::before {
  content: ''; display: block; flex-shrink: 0;
  width: 20px; height: 1px; background: var(--gold); margin-top: 10px;
}
.service-sidebar {
  display: flex; flex-direction: column; gap: 16px;
}
.sidebar-card {
  background: var(--dark-2);
  border: 1px solid rgba(201,169,110,.1);
  padding: 32px;
  transition: border-color .3s, transform .4s cubic-bezier(.2,.7,.2,1);
}
.sidebar-card:hover { border-color: rgba(201,169,110,.25); transform: translateY(-4px); }
.sidebar-card-icon { color: var(--gold); margin-bottom: 16px; }
.sidebar-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; margin-bottom: 10px;
}
.sidebar-card p {
  font-size: 13px; line-height: 1.7;
  color: rgba(245,243,239,.45);
}
.sidebar-cta {
  background: var(--gold);
  color: var(--dark);
  border: none; cursor: pointer;
  padding: 20px 36px; width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  font-weight: 500; text-decoration: none; display: block; text-align: center;
  transition: background .3s;
}
.sidebar-cta:hover { background: var(--gold-light); }

/* PROCESS IN SERVICE PAGE */
.service-process { padding: 0 60px 100px; background: var(--dark-2); }
.service-process-inner { padding: 100px 0 0; }
.sp-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 60px;
}
.sp-step {
  padding: 40px;
  border-right: 1px solid rgba(201,169,110,.08);
  position: relative;
}
.sp-step:last-child { border-right: none; }
.sp-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px; font-weight: 300;
  color: rgba(201,169,110,.08); line-height: 1;
  margin-bottom: 16px;
}
.sp-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; margin-bottom: 12px;
}
.sp-desc {
  font-size: 13px; line-height: 1.7;
  color: rgba(245,243,239,.4);
}

/* FAQ */
.faq-section { padding: 100px 60px; }
.faq-list { margin-top: 60px; }
.faq-item {
  border-bottom: 1px solid rgba(201,169,110,.1);
  overflow: hidden;
}
.faq-q {
  padding: 28px 0;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  transition: color .3s;
}
.faq-q:hover { color: var(--gold); }
.faq-icon {
  width: 32px; height: 32px; border: 1px solid rgba(201,169,110,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 18px; flex-shrink: 0;
  transition: transform .3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  font-size: 15px; line-height: 1.8;
  color: rgba(245,243,239,.5);
  transition: max-height .4s ease, padding .4s;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 28px; }

/* RELATED SERVICES */
.related-services { padding: 0 60px 100px; }
.rs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 60px;
}
.rs-card {
  background: var(--dark-2);
  border: 1px solid rgba(201,169,110,.08);
  padding: 40px;
  text-decoration: none; color: var(--light);
  transition: border-color .3s, transform .3s;
  display: block;
}
.rs-card:hover { border-color: rgba(201,169,110,.25); transform: translateY(-4px); }
.rs-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 300;
  color: rgba(201,169,110,.12); line-height: 1; margin-bottom: 20px;
}
.rs-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; margin-bottom: 12px;
}
.rs-desc { font-size: 13px; line-height: 1.6; color: rgba(245,243,239,.4); }
.rs-arrow {
  display: inline-block; color: var(--gold);
  margin-top: 20px; font-size: 14px;
  transition: transform .3s;
}
.rs-card:hover .rs-arrow { transform: translateX(6px); }

/* SHARED UTILS */
.section-tag {
  font-size: 11px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 300; line-height: 1.1;
}
.section-title em { font-style: italic; color: var(--gold); position: relative; }
.section-title em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.06em;
  height: 1px; background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s cubic-bezier(.2,.7,.2,1) .25s;
}
.section-title.title-in em::after { transform: scaleX(1); }
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: none; }

.btn-primary {
  background: var(--gold); color: var(--dark);
  padding: 16px 44px; font-size: 12px;
  letter-spacing: 3px; text-transform: uppercase;
  text-decoration: none; display: inline-block;
  transition: background .3s, transform .3s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

/* BURGER + MOBILE MENU */
.burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 6px;
  width: 40px; height: 40px;
  cursor: pointer; background: none; border: none;
  padding: 4px; z-index: 201; position: relative;
}
.burger span {
  display: block; height: 1px; background: var(--gold);
  transition: transform .4s cubic-bezier(.77,0,.18,1), opacity .3s, width .4s cubic-bezier(.77,0,.18,1);
  transform-origin: center;
}
.burger span:nth-child(1) { width: 28px; }
.burger span:nth-child(2) { width: 20px; }
.burger span:nth-child(3) { width: 28px; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 28px; }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 28px; }

.mob-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--dark);
  display: flex; flex-direction: column;
  padding: 100px 40px 60px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  pointer-events: none; opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: opacity .5s cubic-bezier(.77,0,.18,1), clip-path .6s cubic-bezier(.77,0,.18,1);
}
.mob-menu.open { opacity: 1; pointer-events: all; clip-path: inset(0 0 0% 0); }
.mob-menu::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .4;
}
.mob-nav-items {
  list-style: none; flex: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.mob-nav-item { overflow: hidden; }
.mob-nav-link {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 9vw, 54px); font-weight: 300;
  color: rgba(245,243,239,.2); text-decoration: none;
  letter-spacing: 2px; line-height: 1.2; padding: 6px 0;
  transition: color .3s, transform .3s; transform: translateY(100%);
}
.mob-menu.open .mob-nav-link { transform: translateY(0); }
.mob-nav-item:nth-child(1) .mob-nav-link { transition-delay: .08s; }
.mob-nav-item:nth-child(2) .mob-nav-link { transition-delay: .13s; }
.mob-nav-item:nth-child(3) .mob-nav-link { transition-delay: .18s; }
.mob-nav-item:nth-child(4) .mob-nav-link { transition-delay: .23s; }
.mob-nav-link:hover, .mob-nav-link:focus { color: var(--gold); transform: translateX(10px); outline: none; }
.mob-sub {
  list-style: none; padding-left: 4px; max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.77,0,.18,1);
}
.mob-sub.open { max-height: 460px; }
.mob-sub a {
  display: block; font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(245,243,239,.3); text-decoration: none; padding: 8px 0;
  border-bottom: 1px solid rgba(201,169,110,.07);
  transition: color .25s, padding-left .25s;
}
.mob-sub a:hover { color: var(--gold); padding-left: 8px; }
.mob-sub-toggle {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
}
.mob-sub-toggle::after {
  content: ''; width: 8px; height: 8px;
  border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  transform: rotate(45deg); opacity: .5; transition: transform .3s;
  margin-right: 4px; flex-shrink: 0;
}
.mob-sub-toggle.open::after { transform: rotate(-135deg); }
.mob-footer {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-top: 1px solid rgba(201,169,110,.1); padding-top: 30px;
  opacity: 0; transform: translateY(20px);
  transition: opacity .4s .35s, transform .4s .35s;
}
.mob-menu.open .mob-footer { opacity: 1; transform: translateY(0); }
.mob-contact-link {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  border: 1px solid rgba(201,169,110,.3); padding: 12px 24px;
  transition: background .3s, color .3s;
}
.mob-contact-link:hover { background: var(--gold); color: var(--dark); }
.mob-socials { display: flex; gap: 16px; }
.mob-socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(201,169,110,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: rgba(245,243,239,.4); text-decoration: none;
  transition: border-color .3s, color .3s;
}
.mob-socials a:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 1024px) {
  nav { padding: 24px 30px; }
  nav.scrolled {
    padding: 16px 30px;
    background: rgba(13,13,13,.45);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
  }
  [data-theme="light"] nav.scrolled { background: rgba(247,243,236,.5); }
  .service-hero > .breadcrumb { left: 30px; }
  .project-hero-content, .service-hero-content { padding: 0 30px 60px; }
  .project-intro, .service-grid { grid-template-columns: 1fr; gap: 50px; }
  /* prevent grid-track blowout from long nested content on narrow screens */
  .intro-text, .intro-specs, .service-text, .service-sidebar { min-width: 0; }
  .spec-val, .intro-desc, .service-desc-text { overflow-wrap: anywhere; }
  .gallery-section, .materials-section, .related-services, .faq-section { padding: 0 30px 70px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gi-wide, .gi-tall, .gi-square { grid-column: span 1; }
  .materials-grid { grid-template-columns: repeat(3, 1fr); }
  .sp-steps { grid-template-columns: 1fr 1fr; }
  .rs-grid { grid-template-columns: 1fr; }
  .next-project-bar { padding: 40px 30px; flex-direction: column; gap: 20px; align-items: flex-start; }
  .project-intro { padding: 60px 30px; }
  .service-body { padding: 60px 30px; }
  .service-process { padding: 0 30px 60px; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .hero-meta { flex-wrap: wrap; row-gap: 24px; }
}
@media (max-width: 600px) {
  .service-hero > .breadcrumb { left: 20px; }
  .project-hero-content, .service-hero-content { padding: 0 20px 50px; }
  .gallery-section, .materials-section, .related-services, .faq-section { padding: 0 20px 50px; }
  .materials-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-steps { grid-template-columns: 1fr; }
  .project-footer { padding: 30px 20px; flex-direction: column; gap: 20px; }
  .next-project-bar { padding: 30px 20px; }
  .faq-q { font-size: 18px; }
  /* meta row → tidy 2×2 grid instead of overflowing */
  .hero-meta { row-gap: 22px; }
  .hero-meta-item {
    flex: 0 0 50%; padding: 0 24px 0 0; margin: 0;
    border-right: 1px solid rgba(201,169,110,.12);
  }
  .hero-meta-item:nth-child(2n) { padding-right: 0; border-right: none; }
}
@media (hover: none) and (pointer: coarse) {
  .cursor, .cursor-ring { display: none; }
}

/* GALLERY HOVER + LIGHTBOX */
.gallery-item::after {
  content: '';
  position: absolute; inset: 12px;
  border: 1px solid rgba(201,169,110,.4);
  opacity: 0; transform: scale(1.012);
  transition: opacity .4s ease, transform .5s cubic-bezier(.2,.7,.2,1);
  pointer-events: none; z-index: 2;
}
.gallery-item:hover::after { opacity: 1; transform: scale(1); }
.gi-zoom {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(201,169,110,.4);
  background: rgba(13,13,13,.5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  opacity: 0; transform: translateY(-6px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.gallery-item:hover .gi-zoom { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(8,8,8,.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 90px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .4s ease, visibility .4s;
}
.lightbox.open { opacity: 1; visibility: visible; pointer-events: all; }
.lightbox-stage {
  position: relative; max-width: 1120px; width: 100%;
  transform: scale(.96); transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.lightbox.open .lightbox-stage { transform: scale(1); }
.lightbox-frame {
  border: 1px solid rgba(201,169,110,.22);
  background: var(--dark-2); overflow: hidden;
}
.lightbox-frame svg { width: 100%; height: auto; display: block; }
.lightbox-caption {
  margin-top: 22px; text-align: center;
  font-family: 'Cormorant Garamond', serif; font-size: 24px; color: var(--light);
}
.lightbox-caption span {
  display: block; margin-top: 8px;
  font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(245,243,239,.35);
}
.lightbox-close {
  position: absolute; top: -52px; right: 0;
  width: 44px; height: 44px;
  border: 1px solid rgba(201,169,110,.3); background: none;
  color: var(--gold); cursor: pointer; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, color .3s;
}
.lightbox-close:hover { background: var(--gold); color: var(--dark); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px;
  border: 1px solid rgba(201,169,110,.3); background: rgba(13,13,13,.5);
  color: var(--gold); cursor: pointer; font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, color .3s; z-index: 2;
}
.lb-nav:hover { background: var(--gold); color: var(--dark); }
.lb-prev { left: -78px; }
.lb-next { right: -78px; }
@media (max-width: 900px) {
  .lightbox { padding: 20px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lightbox-close { top: -48px; }
  .lightbox-caption { font-size: 20px; }
}

/* Gallery lightbox */
.plightbox{position:fixed;inset:0;z-index:9999;background:rgba(8,7,6,.96);display:none;align-items:center;justify-content:center;}
.plightbox.open{display:flex;}
.plb-stage{position:relative;display:flex;align-items:center;justify-content:center;width:92vw;height:88vh;overflow:hidden;}
.plb-img{max-width:92vw;max-height:88vh;object-fit:contain;box-shadow:0 30px 90px rgba(0,0,0,.6);cursor:zoom-in;transform-origin:center center;touch-action:none;will-change:transform;}
.plb-img.zoomed{cursor:grab;}
.plb-hint{position:absolute;top:24px;left:34px;background:rgba(20,18,16,.7);color:#fff;font-size:12px;letter-spacing:.06em;padding:6px 13px;border-radius:20px;opacity:0;transition:.2s;pointer-events:none;}
.plb-hint.on{opacity:1;}
.plb-close,.plb-prev,.plb-next{position:absolute;background:none;border:none;color:rgba(245,243,239,.7);cursor:pointer;transition:color .3s;font-family:'Cormorant Garamond',serif;line-height:1;}
.plb-close:hover,.plb-prev:hover,.plb-next:hover{color:var(--gold);}
.plb-close{top:24px;right:34px;font-size:44px;}
.plb-prev,.plb-next{top:50%;transform:translateY(-50%);font-size:70px;padding:10px 24px;}
.plb-prev{left:12px;} .plb-next{right:12px;}
.plb-count{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);font-size:12px;letter-spacing:3px;color:rgba(245,243,239,.5);}
@media(max-width:600px){.plb-prev,.plb-next{font-size:44px;padding:6px 12px;}.plb-close{top:14px;right:18px;font-size:36px;}}

/* ── Страницы услуг (пересобранные) ─────────────────────────── */
.hero-service-lead{max-width:600px;margin-top:6px;font-size:17px;line-height:1.75;color:rgba(245,243,239,.72);}
.service-grid{align-items:start;}
.service-includes{margin-top:0;background:var(--dark-2);border:1px solid rgba(201,169,110,.12);border-radius:14px;padding:34px 32px;}
.service-includes h3{margin-bottom:20px;}
.rs-card{display:flex;align-items:center;justify-content:space-between;gap:20px;}
.rs-card .rs-name{font-family:'Cormorant Garamond',serif;font-size:24px;font-weight:400;}
.rs-card .rs-arrow{color:var(--gold);font-size:20px;transition:transform .3s;flex-shrink:0;}
.rs-card:hover .rs-arrow{transform:translateX(6px);}
@media(max-width:900px){.hero-service-lead{font-size:15px;}}
@media(max-width:560px){.nav-logo span{display:none}}

/* ── Светлая тема ──────────────────────────────────────────── */
.theme-toggle{background:none;border:1px solid rgba(201,169,110,.3);color:var(--gold);width:38px;height:38px;border-radius:50%;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:border-color .25s,background .25s;flex-shrink:0}
.theme-toggle:hover{border-color:var(--gold);background:rgba(201,169,110,.08)}
.theme-toggle svg{width:17px;height:17px;display:block;transition:transform .4s cubic-bezier(.34,1.56,.64,1)}
.theme-toggle:hover svg{transform:rotate(35deg)}
/* Бренд-маркер «Дизайн Метра²» — под логотип */
.bm{font-family:'Bad Script',cursive;font-weight:400;white-space:nowrap;font-size:1.5em;display:inline-block;transform:skewX(-9deg)}
.bm b{font-family:'Cormorant Garamond',serif;font-weight:600;color:#c33c4b;text-transform:uppercase;letter-spacing:.03em;font-size:.8em;display:inline-block;transform:skewX(9deg)}
:root[data-theme="light"] .bm b{color:#9e1f2d}
/* Плашка cookie */
.cookie-bar{position:fixed;left:16px;right:16px;bottom:16px;z-index:700;max-width:720px;margin:0 auto;display:none;align-items:center;gap:18px;flex-wrap:wrap;justify-content:space-between;background:rgba(20,19,17,.97);backdrop-filter:blur(10px);border:1px solid rgba(201,169,110,.25);border-radius:14px;padding:15px 20px;box-shadow:0 20px 50px rgba(0,0,0,.45)}
.cookie-bar.show{display:flex}
.cookie-bar p{font-size:13px;color:rgba(245,243,239,.72);margin:0;flex:1;min-width:220px;line-height:1.6}
.cookie-bar a{color:var(--gold)}
.cookie-bar button{background:var(--gold);color:#1a1408;border:none;padding:11px 26px;border-radius:9px;font-family:inherit;font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;cursor:pointer;white-space:nowrap;transition:background .2s}
.cookie-bar button:hover{background:var(--gold-light)}
/* ── Индикатор прокрутки + плёночное зерно (как на главной) ── */
.scroll-progress{position:fixed;top:0;left:0;height:2px;width:0;z-index:600;background:linear-gradient(90deg,rgba(201,169,110,.45),var(--gold));box-shadow:0 0 10px rgba(201,169,110,.5);transition:width .12s ease-out}
.project-hero .grain{position:absolute;inset:0;z-index:1;pointer-events:none;opacity:.06;mix-blend-mode:overlay;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-size:140px 140px}
.theme-toggle .ico-sun{display:none}
:root[data-theme="light"] .theme-toggle .ico-moon{display:none}
:root[data-theme="light"] .theme-toggle .ico-sun{display:block}

:root[data-theme="light"]{--dark:#f5f1e9;--dark-2:#ece5d8;--dark-3:#ffffff;--light:#28231b;--gray:#8a8175;--gold:#a9863f;--gold-light:#c9a96e}
[data-theme="light"] body{background:var(--dark);color:var(--light)}
/* фото-hero — текст остаётся светлым, с тенью для контраста поверх фото */
[data-theme="light"] .project-hero::before{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(10,9,7,.55),rgba(10,9,7,.15) 55%,rgba(10,9,7,.5));pointer-events:none;z-index:0}
[data-theme="light"] .project-hero-content{position:relative;z-index:1}
[data-theme="light"] .project-hero-title{color:#fbf8f3;text-shadow:0 2px 22px rgba(0,0,0,.5)}
[data-theme="light"] .hero-service-lead,[data-theme="light"] .project-eyebrow,[data-theme="light"] .breadcrumb,[data-theme="light"] .breadcrumb a{text-shadow:0 1px 12px rgba(0,0,0,.45)}
[data-theme="light"] .breadcrumb,[data-theme="light"] .breadcrumb a{color:rgba(245,243,239,.6)}
[data-theme="light"] .breadcrumb span{color:rgba(201,169,110,.5)}
[data-theme="light"] .hero-meta-item strong{color:#f5f3ef}
[data-theme="light"] .hero-meta-item span{color:rgba(245,243,239,.5)}
[data-theme="light"] .hero-service-lead{color:rgba(245,243,239,.82)}
[data-theme="light"] .hero-meta{border-top-color:rgba(245,243,239,.2)}
[data-theme="light"] .hero-meta-item{border-right-color:rgba(245,243,239,.15)}
/* nav */
[data-theme="light"] nav.scrolled{background:rgba(247,243,236,.93);border-bottom-color:rgba(169,134,63,.22)}
[data-theme="light"] nav.scrolled .nav-links a{color:rgba(40,35,27,.72)}
[data-theme="light"] .nav-links a:hover,[data-theme="light"] .nav-cta{color:var(--gold)}
[data-theme="light"] .nav-dropdown{background:#fff;border-color:rgba(169,134,63,.18);box-shadow:0 24px 60px rgba(80,60,20,.14)}
[data-theme="light"] .nav-dropdown a{color:rgba(40,35,27,.72)!important}
[data-theme="light"] .nav-dropdown a:hover{color:var(--gold)!important;background:rgba(169,134,63,.08)!important}
[data-theme="light"] .burger span{background:var(--gold)}
[data-theme="light"] .mob-menu{background:var(--dark)}
[data-theme="light"] .mob-nav-link,[data-theme="light"] .mob-sub-toggle{color:var(--light)}
[data-theme="light"] .mob-sub a{color:rgba(40,35,27,.65)}
/* контент — графит */
[data-theme="light"] .intro-desc,[data-theme="light"] .service-desc-text,[data-theme="light"] .sp-desc,[data-theme="light"] .includes-list li,[data-theme="light"] .rs-desc{color:rgba(40,35,27,.72)}
[data-theme="light"] .spec-label,[data-theme="light"] .sp-num{color:rgba(40,35,27,.5)}
[data-theme="light"] .spec-val,[data-theme="light"] .sp-name,[data-theme="light"] .rs-name,[data-theme="light"] .service-includes h3{color:var(--light)}
/* карточки / секции */
[data-theme="light"] .service-process{background:var(--dark-2)}
[data-theme="light"] .intro-specs{border-color:rgba(169,134,63,.16)}
[data-theme="light"] .spec-item{border-color:rgba(169,134,63,.1)}
[data-theme="light"] .service-includes{background:#fff;border-color:rgba(169,134,63,.14)}
[data-theme="light"] .rs-card{background:#fff;border-color:rgba(169,134,63,.14)}
[data-theme="light"] .rs-card:hover{border-color:rgba(169,134,63,.3)}
[data-theme="light"] .includes-list li{border-bottom-color:rgba(169,134,63,.12)}
[data-theme="light"] .next-project-bar{background:var(--dark-2);border-color:rgba(169,134,63,.12)}
[data-theme="light"] .np-label,[data-theme="light"] .np-tag{color:rgba(40,35,27,.5)}
[data-theme="light"] .project-footer{background:var(--dark-2);border-top:1px solid rgba(169,134,63,.12)}
[data-theme="light"] .project-footer p{color:rgba(40,35,27,.4)}
/* Монограмма в подвале: тёмная версия для светлой темы */
.footer-mark-lt{display:none!important}
[data-theme="light"] .footer-mark-dk{display:none!important}
[data-theme="light"] .footer-mark-lt{display:block!important}
/* Монограмма в шапке: тёмная, когда шапка светлая И прокручена */
.nav-mark-lt{display:none!important}
[data-theme="light"] nav.scrolled .nav-mark-dk{display:none!important}
[data-theme="light"] nav.scrolled .nav-mark-lt{display:block!important}
[data-theme="light"] .pgal-img{filter:none}
[data-theme="light"] .proj-tag{color:rgba(40,35,27,.72);border-color:rgba(169,134,63,.3)}
