/* ===========================================================
   Мастерская памятников — фирменные стили
   Палитра: чёрный фон, тёмно-серые блоки, приглушённый оранжевый акцент
   =========================================================== */

:root {
  --bg-black: #0a0a0a;
  --bg-panel: #1c1c1e;
  --bg-panel-2: #232325;
  --border-gray: #3a3a3d;
  --text-light: #e8e6e1;
  --text-muted: #9a9a9d;
  --text-menu: #a3a3a6;
  --accent: #c9793f;
  --accent-soft: #b06a35;
  --accent-dim: rgba(201, 121, 63, 0.18);
  --font-heading: 'Marcellus', serif;
  --font-body: 'Manrope', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-black);
  color: var(--text-light);
  font-family: var(--font-body);
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-text, .hero-title {
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

a { color: var(--accent); }
a:hover { color: var(--accent-soft); }

::selection { background: var(--accent-dim); color: var(--text-light); }

/* ===== Buttons ===== */
.btn-accent {
  background-color: var(--accent);
  border: 1px solid var(--accent);
  color: #171512;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: 2px;
  transition: background-color .25s ease, border-color .25s ease, transform .2s ease;
}
.btn-accent:hover, .btn-accent:focus {
  background-color: var(--accent-soft);
  border-color: var(--accent-soft);
  color: #171512;
  transform: translateY(-2px);
}

.btn-accent-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  border-radius: 2px;
  transition: all .25s ease;
}
.btn-accent-outline:hover {
  background: var(--accent);
  color: #171512;
}

/* ===========================================================
   HEADER / NAV
   =========================================================== */
.site-header { z-index: 1050; }

.custom-navbar {
  background-color: rgba(18, 18, 19, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-gray);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  transition: background-color .3s ease;
}

.navbar-brand { padding: 0; }
.brand-text { color: var(--text-light); font-size: 1.15rem; }

.main-menu { text-align: center; }

.main-menu .nav-link {
  color: var(--text-menu);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: color .2s ease;
  position: relative;
}
.main-menu .nav-link::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.15rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.main-menu .nav-link:hover,
.main-menu .nav-link:focus,
.main-menu .nav-link.active {
  color: var(--accent);
}
.main-menu .nav-link:hover::after { transform: scaleX(1); }

.navbar-toggler {
  border: none;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.navbar-toggler:focus { box-shadow: none; }
.toggler-line {
  width: 24px; height: 2px;
  background-color: var(--text-light);
  display: block;
  transition: background-color .2s ease;
}
.navbar-toggler:hover .toggler-line { background-color: var(--accent); }

/* Dropdown */
.dropdown-menu {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  padding: 0.4rem;
}
.dropdown-item {
  color: var(--text-menu);
  font-size: 0.92rem;
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
}
.dropdown-item:hover, .dropdown-item:focus {
  background-color: var(--accent-dim);
  color: var(--accent);
}
.dropdown-toggle::after { color: var(--text-muted); vertical-align: 0.15em; }

@media (min-width: 992px) {
  .dropdown-menu { top: calc(100% + 6px); }
}

/* Mobile menu */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #17171a;
    border-radius: 10px;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem 1rem;
    border: 1px solid var(--border-gray);
  }
  .main-menu { text-align: left; }
  .main-menu .nav-link::after { display: none; }
  .main-menu .nav-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .main-menu .nav-item:last-child { border-bottom: none; }
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    background: #131315;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    display: none;
  }
  .dropdown-menu.show { display: block; }
}

/* ===========================================================
   HERO SPLIT
   =========================================================== */
.hero-split { margin-top: 76px; }

.hero-logo-col {
  background: radial-gradient(circle at 50% 30%, #1a1a1c 0%, #060606 75%);
  min-height: 320px;
  padding: 3rem 1rem;
  border-bottom: 1px solid var(--border-gray);
}
@media (min-width: 992px) {
  .hero-logo-col { min-height: 480px; border-bottom: none; border-right: 1px solid var(--border-gray); }
}

.hero-logo { width: 110px; height: 110px; filter: drop-shadow(0 0 24px rgba(201,121,63,0.25)); }
.hero-title { font-size: 2rem; margin: 0.5rem 0 0.25rem; color: var(--text-light); }
.hero-sub { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

.hero-services-col { background-color: var(--bg-panel); min-height: 320px; }
@media (min-width: 992px) { .hero-services-col { min-height: 480px; display: flex; align-items: center; } }

.hero-services-wrap { width: 100%; }
.services-title { color: var(--text-light); font-size: 1.5rem; margin-bottom: 1.4rem; }

.services-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.services-list li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: var(--text-menu);
  font-size: 0.98rem;
  line-height: 1.4;
}
.services-list li:last-child { border-bottom: none; }
.services-list .num {
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ===========================================================
   SECTION TITLES
   =========================================================== */
.section-title {
  color: var(--text-light);
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}
.section-sub { color: var(--text-muted); font-size: 0.95rem; }

/* ===========================================================
   AUTHOR CARD
   =========================================================== */
.author-card {
  background-color: var(--bg-black);
  border: 1px solid var(--border-gray);
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.author-avatar-wrap {
  width: 84px; height: 84px;
  margin: -3.5rem auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
  background: var(--bg-panel);
}
.author-avatar { width: 100%; height: 100%; object-fit: cover; }
.author-heading { color: var(--accent); text-align: center; font-size: 1.4rem; margin-bottom: 1rem; }
.author-text p { color: var(--text-menu); line-height: 1.75; font-size: 0.98rem; }
.author-text strong { color: var(--text-light); font-weight: 600; }

@media (min-width: 768px) {
  .author-card { padding: 2.5rem 3.5rem 2.5rem 3.5rem; }
  .author-avatar-wrap {
    float: left;
    margin: -3.5rem 1.5rem 1rem 0;
  }
}

/* ===========================================================
   VIDEO CAROUSEL
   =========================================================== */
.video-carousel-wrap { max-width: 780px; }

.video-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-gray);
  aspect-ratio: 16 / 9;
}
.carousel-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.video-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.4rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  pointer-events: none;
}
.video-caption h3 { color: var(--text-light); font-size: 1.15rem; margin-bottom: 0.15rem; }
.video-caption p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

.video-indicators { bottom: -2.2rem; }
.video-indicators button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background-color: #4a4a4d;
  border: none;
  opacity: 1;
  margin: 0 5px;
  transition: background-color .2s ease, transform .2s ease;
}
.video-indicators button.active {
  background-color: var(--accent);
  transform: scale(1.2);
}

/* Carousel arrows: light, translucent circle, non-intrusive */
.carousel-control-prev, .carousel-control-next {
  width: 3.2rem;
  opacity: 1;
}
.ctrl-circle {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s ease;
}
.carousel-control-prev:hover .ctrl-circle,
.carousel-control-next:hover .ctrl-circle {
  background: rgba(201,121,63,0.35);
}
.ctrl-arrow {
  width: 10px; height: 10px;
  border-top: 2px solid #f2ede4;
  border-right: 2px solid #f2ede4;
}
.ctrl-arrow-prev { transform: rotate(-135deg); margin-left: 3px; }
.ctrl-arrow-next { transform: rotate(45deg); margin-right: 3px; }

/* ===========================================================
   WORKS CAROUSEL
   =========================================================== */
.works-carousel-wrap { padding-bottom: 1rem; }

.work-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-gray);
  background: var(--bg-panel);
  height: 100%;
}
.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.work-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(to top, rgba(10,10,10,0.92), rgba(10,10,10,0.05));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.work-caption h3 { color: var(--text-light); font-size: 1.05rem; margin: 0; }

/* ===========================================================
   GALLERY
   =========================================================== */
.gallery-item {
  margin: 0;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-gray);
  background: var(--bg-panel);
  transition: transform .25s ease, border-color .25s ease;
}
.gallery-item:hover { transform: translateY(-4px); border-color: var(--accent); }
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.gallery-item figcaption {
  padding: 0.7rem 0.9rem;
  color: var(--text-menu);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-gray);
}

/* Lightbox modal */
.lightbox-modal .modal-content {
  background: var(--bg-panel);
  border: 1px solid var(--border-gray);
  border-radius: 14px;
  overflow: hidden;
}
.lightbox-modal .btn-close {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  z-index: 5;
  background-color: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 0.5rem;
  opacity: 1;
}
.lightbox-modal .carousel-item img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  background: #000;
}
.lightbox-desc { padding: 1.2rem 1.5rem 1.5rem; }
.lightbox-desc h4 { color: var(--accent); margin-bottom: 0.5rem; }
.lightbox-desc p { color: var(--text-menu); margin: 0; line-height: 1.6; }

/* ===========================================================
   PRODUCT CARD
   =========================================================== */
.product-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-gray);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.product-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--accent);
  color: #171512;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-gray);
}
.product-body { padding: 1.75rem; }
.product-title { color: var(--text-light); font-size: 1.35rem; margin-bottom: 0.6rem; }
.product-desc { color: var(--text-menu); font-size: 0.95rem; line-height: 1.6; }
.product-features { list-style: none; padding: 0; margin: 1rem 0 0; }
.product-features li {
  color: var(--text-menu);
  font-size: 0.9rem;
  padding-left: 1.3rem;
  position: relative;
  margin-bottom: 0.45rem;
}
.product-features li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.product-price { color: var(--text-light); font-size: 1rem; }
.product-price span { color: var(--accent); font-size: 1.5rem; font-family: var(--font-heading); }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-gray);
  margin-top: 3rem;
}
.footer-text { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.footer-heading { color: var(--text-light); font-size: 1rem; margin-bottom: 1rem; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 0.6rem; color: var(--text-muted); font-size: 0.9rem; }
.footer-menu a { color: var(--text-muted); text-decoration: none; transition: color .2s ease; }
.footer-menu a:hover { color: var(--accent); }
.footer-divider { border-color: var(--border-gray); margin: 2rem 0 1.5rem; }
.footer-copy { color: var(--text-muted); font-size: 0.82rem; }
.footer-socials { display: flex; gap: 0.6rem; }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--border-gray);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-menu);
  font-size: 0.72rem;
  text-decoration: none;
  transition: all .2s ease;
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ===========================================================
   SCROLL REVEAL ANIMATION
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
