:root {
  --bg: #0e0f11;
  --bg-2: #14161a;
  --panel: #191c20;
  --panel-2: #20242a;
  --line: #2c313a;
  --line-strong: #3a4049;
  --text: #ecebe8;
  --muted: #b2b7bd;
  --muted-2: #82878f;
  --accent: #9c3a3a;
  --accent-hover: #b34848;
  --accent-ink: #ffffff;
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'PT Sans', system-ui, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
h1, h2, h3, h4 { font-family: 'PT Serif', Georgia, serif; font-weight: 700; line-height: 1.15; }
img { max-width: 100%; display: block; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'PT Sans', sans-serif; font-size: 15px; font-weight: 700;
  padding: 14px 28px; border-radius: 4px; border: 2px solid transparent;
  cursor: pointer; transition: all 0.2s var(--ease); background: none; color: var(--text);
  white-space: nowrap; text-align: center;
}
.btn-lg { padding: 17px 36px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-solid { background: var(--panel-2); color: var(--text); border-color: var(--line-strong); }
.btn-solid:hover { background: #2a2f36; border-color: var(--muted-2); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }

/* ===== Top bar ===== */
.topbar { background: #0a0b0c; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar-hours b { color: var(--text); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(14, 15, 17, 0.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow 0.25s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 24px -12px rgba(0,0,0,0.8); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 78px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: 'PT Serif', serif; font-size: 24px; font-weight: 700; letter-spacing: 0.3px; }
.brand-tag { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-2); margin-top: 2px; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { font-size: 15.5px; font-weight: 700; color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); border-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone { font-size: 18px; font-weight: 700; white-space: nowrap; }
.header-phone:hover { color: var(--accent-hover); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 2.5px; background: var(--text); transition: 0.3s var(--ease); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 70vh; display: flex; align-items: center; padding: 72px 0; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 40%;
  transform: scale(1.03); filter: grayscale(0.4) contrast(1.02) brightness(0.62);
}
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,11,13,0.92) 0%, rgba(10,11,13,0.72) 48%, rgba(10,11,13,0.34) 100%),
    linear-gradient(0deg, rgba(10,11,13,0.85) 0%, transparent 40%);
}
.hero-inner { width: 100%; }
.hero-panel {
  max-width: 660px; padding: 44px 46px; border-left: 4px solid var(--accent);
  background: linear-gradient(180deg, rgba(16,17,20,0.62), rgba(12,13,15,0.5));
  backdrop-filter: blur(3px); border-radius: 0 6px 6px 0;
}
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 0.6px; color: var(--accent-hover); text-transform: uppercase; margin-bottom: 18px; }
.hero-title { font-size: clamp(34px, 5vw, 56px); font-weight: 700; }
.hero-sub { font-size: clamp(16px, 2.1vw, 19px); color: #d7d9dc; max-width: 560px; margin: 20px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-phone { margin-top: 26px; font-size: 16px; color: var(--muted); }
.hero-phone a { font-size: 22px; font-weight: 700; color: var(--text); margin-left: 6px; }
.hero-phone a:hover { color: var(--accent-hover); }

/* ===== Stats ===== */
.stats { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: 'PT Serif', serif; font-size: 40px; font-weight: 700; color: var(--text); line-height: 1; }
.stat span { font-size: 14px; color: var(--muted); margin-top: 8px; display: block; }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-head { max-width: 680px; margin-bottom: 42px; }
.section-kicker { display: inline-block; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent-hover); border-left: 3px solid var(--accent); padding-left: 12px; margin-bottom: 14px; }
.section-title { font-size: clamp(28px, 4vw, 42px); }
.section-lead { color: var(--muted); margin-top: 16px; font-size: 16.5px; }

/* ===== Categories ===== */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; transition: 0.25s var(--ease); background: var(--panel);
}
.cat-media { position: relative; height: 210px; overflow: hidden; background: var(--panel-2); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.cat-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(0,0,0,0.9); }
.cat-card:hover .cat-media img { transform: scale(1.06); }
.cat-count { position: absolute; top: 14px; right: 14px; font-size: 13px; font-weight: 700; color: #fff; background: var(--accent); padding: 4px 12px; border-radius: 3px; }
.cat-body { padding: 22px 24px 26px; display: flex; flex-direction: column; }
.cat-card h3 { font-size: 24px; }
.cat-card p { color: var(--muted); font-size: 14.5px; margin-top: 5px; }
.cat-link { margin-top: 16px; font-size: 15px; font-weight: 700; color: var(--accent-hover); }
.cat-card:hover .cat-link { color: var(--text); }

/* ===== Filters ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { font-size: 15px; font-weight: 700; padding: 10px 20px; border-radius: 4px; border: 2px solid var(--line-strong); color: var(--muted); background: none; cursor: pointer; transition: 0.2s var(--ease); }
.chip:hover { color: var(--text); border-color: var(--muted-2); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== Product grid ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--panel); transition: 0.25s var(--ease); }
.product-card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(0,0,0,0.9); }
.pc-media { position: relative; aspect-ratio: 4 / 3; background: var(--panel-2); overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.product-card:hover .pc-media img { transform: scale(1.05); }
.pc-noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted-2); font-family: 'PT Serif', serif; font-size: 20px; text-align: center; padding: 20px; }
.pc-badge { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: #fff; background: var(--accent); padding: 5px 12px; border-radius: 3px; }
.pc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.pc-cat { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted-2); }
.pc-name { font-size: 23px; margin: 6px 0 8px; line-height: 1.2; }
.pc-desc { font-size: 15px; color: var(--muted); flex: 1; }
.pc-material { font-size: 14px; color: var(--muted-2); margin-top: 12px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.pc-price { font-family: 'PT Serif', serif; font-size: 22px; font-weight: 700; color: var(--text); }
.pc-foot .btn { padding: 10px 18px; font-size: 14px; }
.empty-note { color: var(--muted-2); font-size: 16px; padding: 40px 0; text-align: center; grid-column: 1 / -1; }

/* ===== Services (editorial list) ===== */
.services { background: var(--bg-2); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 60px; }
.service-card { display: flex; gap: 24px; align-items: flex-start; padding: 30px 0; border-top: 1px solid var(--line); transition: 0.25s var(--ease); }
.service-card:hover { padding-left: 10px; }
.svc-num { font-family: 'PT Serif', serif; font-size: 26px; font-weight: 700; color: var(--muted-2); line-height: 1.1; flex: 0 0 44px; transition: color 0.25s var(--ease); }
.service-card:hover .svc-num { color: var(--accent-hover); }
.svc-body h3 { font-size: 22px; margin-bottom: 8px; }
.svc-body p { color: var(--muted); font-size: 15px; }

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 12px; max-width: 1340px; margin: 0 auto; padding: 0 24px; }
.gal-item { position: relative; overflow: hidden; border-radius: 6px; cursor: pointer; border: 1px solid var(--line); transition-delay: var(--d, 0ms); }
.gal-item:nth-child(6n + 1) { grid-row: span 2; }
.gal-item:nth-child(6n + 4) { grid-column: span 2; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) brightness(0.85); transition: 0.5s var(--ease); }
.gal-item:hover img { filter: grayscale(0) brightness(1); transform: scale(1.05); }
.gal-zoom { position: absolute; bottom: 12px; right: 12px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(10,11,13,0.7); border-radius: 3px; opacity: 0; transition: 0.25s var(--ease); }
.gal-item:hover .gal-zoom { opacity: 1; }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6,7,8,0.94); display: grid; place-items: center; padding: 40px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 4px; }
.lightbox-close { position: absolute; top: 20px; right: 28px; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; line-height: 1; }

/* ===== About ===== */
.about-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.about-text p { color: var(--muted); margin-top: 18px; font-size: 17px; }
.about-list { list-style: none; margin: 26px 0 30px; display: grid; gap: 14px; }
.about-list li { position: relative; padding-left: 30px; font-size: 16px; }
.about-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 16px; height: 16px; background: var(--accent); border-radius: 3px; }
.about-figure { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.about-figure img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; filter: grayscale(0.55) brightness(0.92); }

/* ===== Contacts ===== */
.contacts { background: var(--bg-2); }
.contacts-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; margin-top: 26px; display: grid; gap: 4px; }
.contact-list li { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ci-label { flex: 0 0 130px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted-2); }
.ci-value { font-size: 17px; }
.ci-phone { font-size: 22px; font-weight: 700; }
.contact-list a:hover { color: var(--accent-hover); }

/* ===== Cards / forms ===== */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 34px; }
.lead-form h3 { font-size: 26px; }
.form-note { color: var(--muted); font-size: 15px; margin: 10px 0 22px; }
.lead-form input, .lead-form textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 4px; color: var(--text);
  font-family: 'PT Sans', sans-serif; font-size: 16px; padding: 14px 16px; margin-bottom: 12px; resize: vertical;
  transition: border-color 0.2s var(--ease);
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--muted-2); }
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--accent); }
.form-status { font-size: 15px; margin-top: 12px; min-height: 20px; font-weight: 700; }
.form-status.ok { color: #6fbf7f; }
.form-status.err { color: #d97a6a; }

/* ===== Footer ===== */
.site-footer { background: #0a0b0c; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 56px 24px 40px; }
.footer-brand .brand-name { font-size: 24px; }
.footer-brand .brand-tag { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted-2); margin-top: 2px; }
.footer-desc { color: var(--muted); font-size: 15px; margin-top: 16px; max-width: 360px; }
.footer-col h4 { font-size: 17px; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-phone { font-size: 20px !important; font-weight: 700; color: var(--text) !important; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 14px; flex-wrap: wrap; gap: 10px; }
.footer-admin:hover { color: var(--accent-hover); }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6,7,8,0.78); }
.modal-card { position: relative; width: 100%; max-width: 460px; z-index: 1; animation: pop 0.25s var(--ease); }
.modal-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: var(--muted); font-size: 30px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--text); }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }

/* ===== Reveal ===== */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .cat-grid, .product-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contacts-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-figure { order: -1; }
  .about-figure img { min-height: 300px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat { border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .nav, .header-actions { display: none; }
  .burger { display: flex; margin-left: auto; }
  .site-header.menu-open .nav { display: flex; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px 24px; gap: 0; }
  .site-header.menu-open .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); border-left: 0; }
  .topbar { display: none; }
  .hero { min-height: 0; padding: 60px 0; }
  .section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .cat-grid, .product-grid, .service-grid, .footer-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 8px; }
  .gal-item:nth-child(6n + 4) { grid-column: span 1; }
  .contact-list li { flex-direction: column; gap: 4px; }
  .ci-label { flex-basis: auto; }
}

/* ===== Каталог: карточки-фото на белом, зум, «показать ещё» ===== */
.pc-media { background: #f5f5f3; cursor: zoom-in; }
.pc-media img { object-fit: contain; }
.pc-zoom { position: absolute; bottom: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; font-size: 20px; font-weight: 700; color: #fff; background: rgba(10,11,13,0.72); border-radius: 50%; opacity: 0; transition: 0.25s var(--ease); pointer-events: none; }
.product-card:hover .pc-zoom { opacity: 1; }
.catalog-more { display: flex; justify-content: center; margin-top: 40px; }
.catalog-more .btn[hidden] { display: none; }
