:root{
  --bg:#f5f2ec;
  --surface:#fffdf9;
  --surface-2:#ece7df;
  --text:#252522;
  --muted:#6d6b64;
  --line:#d9d3c9;
  --accent:#61685c;
  --accent-dark:#454b42;
  --radius:18px;
  --wrap:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);line-height:1.5}
a{color:inherit}
button,input{font:inherit}
.wrap{width:min(var(--wrap),calc(100% - 36px));margin:0 auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(245,242,236,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.header-inner{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:800;letter-spacing:.12em}
.brand-mark{display:inline-block;width:22px;height:36px;border-radius:10px 10px 3px 3px;background:linear-gradient(180deg,#4c4d49,#232421);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.main-nav{display:flex;gap:24px}
.main-nav a{text-decoration:none;color:var(--muted);font-size:15px}
.main-nav a:hover{color:var(--text)}
.menu-btn{display:none;border:1px solid var(--line);background:var(--surface);padding:9px 12px;border-radius:12px}
.hero{padding:76px 0 62px}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:70px}
.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:800;color:var(--accent);margin:0 0 13px}
h1,h2,h3{margin-top:0;line-height:1.08}
h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(32px,4.5vw,52px);font-weight:500;letter-spacing:-.045em;margin-bottom:24px}
h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(34px,4vw,52px);font-weight:500;letter-spacing:-.035em;margin-bottom:22px}
.hero-copy{font-size:19px;color:var(--muted);max-width:650px;margin:0 0 30px}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;padding:13px 20px;border-radius:999px;font-weight:700}
.btn.primary{background:var(--accent-dark);color:#fff}
.btn.secondary{background:var(--surface);border:1px solid var(--line)}
.hero-stone{min-height:430px;display:flex;align-items:flex-end;justify-content:center;position:relative}
.stone-shape{width:230px;height:330px;background:linear-gradient(135deg,#3d3f3c,#181917);border-radius:110px 110px 16px 16px;box-shadow:0 26px 60px rgba(25,25,22,.22), inset 0 0 0 1px rgba(255,255,255,.1)}
.stone-base{position:absolute;bottom:0;width:320px;height:46px;background:#2d2e2b;border-radius:8px 8px 4px 4px;box-shadow:0 18px 34px rgba(25,25,22,.18)}
.section{padding:78px 0}
.section.alt{background:var(--surface-2)}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;margin-bottom:26px}
.search-box{width:min(390px,100%)}
.search-box label{display:block;font-size:13px;color:var(--muted);margin-bottom:7px}
.search-box input{width:100%;border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:13px 14px;color:var(--text);outline:none}
.search-box input:focus{border-color:var(--accent)}
.category-tabs{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:18px}
.tab{border:1px solid var(--line);background:var(--surface);padding:9px 13px;border-radius:999px;cursor:pointer;color:var(--muted)}
.tab.active{background:var(--accent-dark);border-color:var(--accent-dark);color:#fff}
.catalog-meta{display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:13px;margin:14px 0 20px}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.product-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
.product-visual{height:230px;background:#fff;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.product-visual img{width:100%;height:100%;object-fit:contain;background:#fff;transform:scale(1.0)}
.placeholder-stone{width:86px;height:145px;background:linear-gradient(135deg,#4c4d49,#20211f);border-radius:44px 44px 8px 8px;box-shadow:0 16px 30px rgba(25,25,22,.2)}
.placeholder-cross{width:90px;height:150px;position:relative}
.placeholder-cross:before,.placeholder-cross:after{content:"";position:absolute;background:#30312f;border-radius:4px}
.placeholder-cross:before{width:28px;height:150px;left:31px;top:0}
.placeholder-cross:after{width:90px;height:28px;left:0;top:38px}
.placeholder-flat{width:145px;height:80px;background:#30312f;border-radius:10px;box-shadow:0 16px 30px rgba(25,25,22,.18)}
.product-body{padding:17px;display:flex;flex-direction:column;gap:9px;flex:1}
.product-code{font-size:12px;color:var(--accent);font-weight:800;letter-spacing:.08em}
.product-name{font-weight:750;font-size:17px;line-height:1.28}
.product-specs{font-size:13px;color:var(--muted)}
.product-price{margin-top:auto;font-size:22px;font-weight:800;padding-top:6px}
.product-note{font-size:12px;color:var(--muted)}
.granite-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.granite-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px}
.granite-swatch{aspect-ratio:1.45;border-radius:14px;margin-bottom:14px;border:1px solid rgba(0,0,0,.08);background-size:cover}
.granite-card h3{font-size:19px;margin-bottom:4px}
.granite-card p{font-size:13px;color:var(--muted);margin:0}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.step{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px}
.step-num{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:50%;background:var(--accent-dark);color:#fff;font-weight:800;margin-bottom:18px}
.step h3{font-size:18px;margin-bottom:8px}
.step p{font-size:14px;color:var(--muted);margin:0}
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.info-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px}
.info-card h3{font-size:18px;margin-bottom:9px}
.info-card p{margin:0;color:var(--muted);font-size:14px}
.contacts{padding-bottom:100px}
.contact-card{background:var(--accent-dark);color:#fff;border-radius:28px;padding:34px;display:grid;grid-template-columns:1fr 1fr;gap:24px}
.contact-card a{color:#fff}
.contact-label{font-size:12px;text-transform:uppercase;letter-spacing:.1em;opacity:.7}
.contact-value{font-size:22px;font-weight:750;margin:6px 0 18px}
.footer{border-top:1px solid var(--line);padding:26px 0}
.footer-inner{display:flex;justify-content:space-between;color:var(--muted);font-size:14px}
.empty{grid-column:1/-1;border:1px dashed var(--line);border-radius:var(--radius);padding:34px;text-align:center;color:var(--muted)}

@media (max-width:960px){
  .product-grid,.granite-grid{grid-template-columns:repeat(3,1fr)}
  .steps{grid-template-columns:repeat(2,1fr)}
  .hero-grid{gap:30px}
}
@media (max-width:760px){
  .wrap{width:min(100% - 24px,var(--wrap))}
  .header-inner{min-height:64px}
  .menu-btn{display:block}
  .main-nav{display:none;position:absolute;left:12px;right:12px;top:70px;flex-direction:column;gap:0;justify-content:flex-start;align-items:stretch;height:auto;max-height:calc(100vh - 90px);overflow-y:auto;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:8px;box-shadow:0 18px 45px rgba(0,0,0,.12)}
  .main-nav.open{display:flex}
  .main-nav a{display:block;padding:12px;border-radius:10px;margin:0}
  .hero{padding:140px 0 48px}
  .hero-grid{grid-template-columns:1fr}
  .hero-stone{min-height:300px}
  .stone-shape{width:175px;height:245px}
  .stone-base{width:250px;height:38px}
  .section{padding:56px 0}
  .section-head{align-items:stretch;flex-direction:column}
  .product-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .granite-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .product-visual{height:190px}
  .info-grid{grid-template-columns:1fr}
  .contact-card{grid-template-columns:1fr;padding:24px}
  .footer-inner{flex-direction:column;gap:5px}
}
@media (max-width:430px){
  .product-grid{grid-template-columns:1fr}
  .granite-grid{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
  .product-visual{height:245px}
  .catalog-meta{flex-direction:column;gap:4px}
  .hero-copy{font-size:17px}
}


/* ===== STELORA v2 ===== */
.header-inner{min-height:92px}
.brand-text{font-size:21px}
.main-nav{gap:26px;flex-wrap:wrap;justify-content:flex-end}
.main-nav a{font-size:23px;font-weight:650;color:var(--text)}
.hero-title{font-family:Georgia,"Times New Roman",serif;font-size:clamp(42px,6vw,72px);line-height:1.06;letter-spacing:-.035em;color:var(--text);font-weight:500;margin:0 0 22px;max-width:760px}
.hero-copy{font-size:21px}
.hero-side{display:flex;flex-direction:column;align-items:center}
.hero-slogan{font-family:Georgia,"Times New Roman",serif;font-size:30px;line-height:1.15;text-align:center;margin-bottom:18px;color:var(--accent-dark)}
.tab{padding:14px 20px;font-size:21px;font-weight:700;color:var(--text)}
.search-box label{font-size:15px}
.search-box input{font-size:18px}
.product-name{font-size:18px}
.product-price{font-size:24px}
.engraving-grid{display:grid;grid-template-columns:1.45fr .55fr;gap:24px;align-items:start}
.engraving-flow{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.engraving-step,.engraving-note{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px}
.engraving-num{display:inline-flex;width:38px;height:38px;align-items:center;justify-content:center;border-radius:50%;background:var(--accent-dark);color:#fff;font-weight:800;margin-bottom:16px}
.engraving-step h3,.engraving-note h3{font-size:20px;margin-bottom:9px}
.engraving-step p,.engraving-note p{margin:0;color:var(--muted);font-size:15px}
.engraving-note strong{display:block;margin-top:18px;font-size:16px}
.engraving-tip{margin-top:18px;padding-top:18px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}
.portfolio-copy{max-width:520px;color:var(--muted);font-size:16px;margin:0}
.portfolio-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.portfolio-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.portfolio-image{aspect-ratio:4/5;background:linear-gradient(160deg,#ded8ce,#c7c0b4);display:flex;align-items:center;justify-content:center}
.portfolio-image img{width:100%;height:100%;object-fit:cover}
.portfolio-placeholder{width:88px;height:150px;background:linear-gradient(135deg,#4c4d49,#20211f);border-radius:44px 44px 8px 8px}
.portfolio-body{padding:15px}
.portfolio-body h3{font-size:17px;margin-bottom:4px}
.portfolio-body p{font-size:13px;color:var(--muted);margin:0}
@media (max-width:1100px){.main-nav{gap:18px}.main-nav a{font-size:19px}}
@media (max-width:960px){.portfolio-grid{grid-template-columns:repeat(3,1fr)}.engraving-grid{grid-template-columns:1fr}}
@media (max-width:760px){.main-nav a{font-size:24px;padding:16px}.tab{font-size:20px;padding:13px 18px}.engraving-flow{grid-template-columns:1fr}.portfolio-grid{grid-template-columns:repeat(2,1fr);gap:12px}.hero-slogan{font-size:27px}}
@media (max-width:430px){.portfolio-grid{grid-template-columns:1fr}.hero-copy{font-size:18px}}
/* Увеличенный просмотр фотографии */
.image-viewer{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.82);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:30px;
}

.image-viewer.open{
  display:flex;
}

.image-viewer img{
  max-width:90vw;
  max-height:90vh;
  object-fit:contain;
  background:#fff;
  border-radius:12px;
  box-shadow:0 20px 60px rgba(0,0,0,.45);
}

.image-viewer-close{
  position:absolute;
  top:20px;
  right:28px;
  width:52px;
  height:52px;
  border:0;
  border-radius:50%;
  background:#fff;
  color:#222;
  font-size:38px;
  line-height:1;
  cursor:pointer;
}

.product-visual img{
  cursor:zoom-in;
}
/* Плашка скидки перед каталогом */
.discount-strip {
  max-width: 820px;
  margin: 0 auto 32px;
  padding: 20px 28px;
  background: #343830;
  color: #fff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 20px;
  text-align: center;
  line-height: 1.35;
}

.discount-strip strong {
  font-size: 24px;
  font-weight: 700;
}
/* Красивое изображение памятника на главном экране */
.hero-monument-photo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 18px;
}

.hero-monument-photo img {
  display: block;
  width: 100%;
  max-width: 520px;
  max-height: 520px;
  object-fit: contain;
  object-position: center bottom;
}
.brand-name{
    display:flex;
    flex-direction:column;
    align-items:center;
    line-height:1;
}

.brand-title{
    font-family:Georgia, "Times New Roman", serif;
    font-size:32px;
    font-weight:400;
    letter-spacing:5px;
    color:#25261f;
}

.brand-subtitle{
    margin-top:8px;
    font-family:Arial, sans-serif;
    font-size:10px;
    font-weight:500;
    letter-spacing:5px;
    color:#55574d;
    white-space:nowrap;
}
.brand-mark{
    width:34px;
    height:44px;
    border:3px solid #41473d;
    border-bottom:0;
    border-radius:18px 18px 0 0;
    background:transparent;
    position:relative;
    box-sizing:border-box;
    flex-shrink:0;
}

.brand-mark::after{
    content:"";
    position:absolute;
    left:6px;
    right:6px;
    bottom:0;
    height:3px;
    background:#41473d;
}
.brand-leaf{
    position:absolute;
    left:50%;
    top:5px;
    width:18px;
    height:30px;
    transform:translateX(-50%);
    fill:none;
    stroke:#41473d;
    stroke-width:1.4;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.hero-grid > div:first-child{
  transform:translateY(-80px);
}
/* Совместимость со старыми браузерами */

@media (min-width:761px){
  .main-nav{
    display:flex;
  }

  .main-nav a + a{
    margin-left:24px;
  }
}