:root{
  --bg:#0f0f10;
  --fg:#111;
  --mut:#666;
  --line:#e9e9ec;
  --wrap:1100px;
  --r:14px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: "Jost", sans-serif;
  color:var(--fg);
  background:#fff;
  line-height:1.55;
}

.crumbs{
	display:none;
}

.section-head{
	font-style:italic;
}

.page-body p{
	font-size:18px;
}

.page-body strong{
	font-weight:500;
}

.page-body strong{
	font-weight:500;
}

.page-body h2{
	font-size:36px;
}

.section-head h2{
	color: #000;
}

a{color:inherit;text-decoration:none}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 18px}

/* Header */
.line{
	height:4px;
	width: 100%;
background: #924730;
background: -webkit-linear-gradient(to right, #93291E, #924730);
background: linear-gradient(to right, #93291E, #924730);

}
.hd{
  position:sticky; top:0; z-index:10;
  background:#fff; border-bottom:1px solid var(--line);
}
.hd-in{
  display:flex; align-items:center; gap:18px;
  min-height:72px;
  justify-content: center;
}
.hd-in .nav a{
	    font-family: "Playfair", serif;
    font-size: 30px;
    font-weight: 700;
    padding: .8rem 1.5rem;
    font-style: italic;
}
.logo img{display:block}
a.logo {
	line-height:0;
    padding: 1rem 2rem;
    display: block;
    text-decoration: none;
	position:relative;
}
a .label{
    position: absolute;
    right: -12px;
    left: -12px;
    bottom: -21px;
    padding: 0 .5rem .5rem .3rem;
    text-align: center;
    border-right: 1px solid #e9e9ec;
	border-left: 1px solid #e9e9ec;
	border-bottom: 1px solid #e9e9ec;
    background: #fff;
	border-radius: 0 0 12px 12px;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

a.logo h1 {
    color: #6b6b6b;
    font-size: 12px;
    font-family: "Jost", sans-serif;
    font-weight: 500;
    font-style: italic;
}
.nav{
  display:flex; gap:14px;
}
.nav a{
  padding:8px 10px;
  font-weight:600; font-size:15px;
}
.nav a:hover{box-shadow: rgba(0, 0, 0, 0.10) 0px 25px 20px -20px;}

.tel{display:flex; flex-direction:column; align-items:flex-end}
.num{font-weight:800; font-size:18px; letter-spacing:0.2px}
.sub{font-size:12px; color:var(--mut); margin-top:2px}

/* Fonts */
h1,h2,h3,.num{
	font-family: "Playfair", serif;
}

/* Hero */
.hero{
	border-bottom: 1px dashed var(--line);
}
.hero-in{padding:56px 18px 56px 18px;
}
.jog{
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	align-items: center;
	gap: 1rem;
	
}
img{
	width:100%;
	height:auto;
	display:block;
}

.jog img{
	
}
.hero h1{
	
  font-size:42px; line-height:1.15; margin:0 0 12px;
  max-width:900px;
}
.hero p{
  font-size:18px; color:#222; max-width:820px; margin:0 0 20px;
}
.cta{display:flex; gap:10px; flex-wrap:wrap}
.btn{
  display:inline-block; padding:12px 16px; 
  font-weight:800; border:1px solid #8A8E75;
	color:#fff;
      font-weight: 500;
    letter-spacing: .01rem;
	background: #8A8E75;
}
.btn:hover{transform:translateY(-1px)}
.btn.ghost{
  background:transparent; color:#5a5d47;
}

/* Services grid */
.svc{padding:28px 0 8px}
.grid{
  display:grid; gap:14px;
  grid-template-columns:repeat(2, minmax(0,1fr));
}
.card{
  display:block; padding:18px;

  border:1px solid var(--line);
  background:#fff;
  min-height:120px;
  transition:0.15s ease;
}

.card h2{
  font-size: 35px;
    margin: 1rem 0 .3rem;
    text-align: center;
}
.card p{margin:0 0 .5rem; text-align:center; color:var(--mut)}
.card:hover{
  border-color:#cfcfd6;
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
}

/* SEO text */
.seo{padding:26px 0 40px;
	max-width:920px;
	margin:0 auto}
.seo h2{
    font-size: 28px;
    margin: 4rem 0 2rem;
    text-align: center;
    font-style: italic;
    color: #555;
}
.seo p {
    margin: 0 0 .8rem;
    color: #222;
    text-align: center;
    font-style: italic;
}

/* Footer */
.ft{
border-top: 1px solid var(--line);
margin-top: 2rem;
}
.ft-in{
  display:grid; gap:18px;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  padding:2rem 1rem;
}
.ft-in strong {
    font-size: 19px;
    font-weight: 500;
    margin-bottom: .8rem;
    display: inline-block;
}
.ft-links{display:flex; flex-direction:column; gap:8px}
.ft a:hover{text-decoration:underline}
.ft .num {
    font-size: 28px;
    font-weight: 400;
    font-family: "Jost", sans-serif;
}
.ft .sub{
	color: #8A8E75;
    font-weight: 400;
    font-size: 14px;
}
.ft-bot{
  border-top:1px dashed var(--line);
  padding:12px 18px; font-size:13px; color:#666;
}

/* Responsive */
@media (max-width:900px){
  .hero h1{font-size:32px}
  .grid{grid-template-columns:1fr}
  .ft-in{grid-template-columns:1fr}
  .tel{align-items:flex-start}
}


@media (max-width:620px){
  .hd-in{flex-wrap:wrap;}
  
  .nav{width:100%; order:3}
  .tel{order:2; margin-left:auto}
}

.g-head{
	text-align: center;
	max-width:1100px;
	padding: 2rem;
	margin: 0 auto;
}

.g-head h2{
	    font-size: 48px;
    margin: 2rem 0 1rem;
}

/* ===== Masonry like Unsplash (CSS Grid + JS row span) ===== */
.masonry{
  --gap: 14px;
  --col-min: 240px;          /* минимальная ширина колонки */
  --row: 0px;               /* базовая высота "строки" для расчёта */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--col-min), 1fr));
  grid-auto-rows: var(--row);
  gap: var(--gap);
  align-items: start;
  max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

.masonry__item{
  display:block;
  overflow: hidden;
  background: #111;
  transform: translateZ(0); /* сглаживание */
  position: relative;
  cursor: zoom-in;
}

.masonry__item img{
  width: 100%;
  height: auto;
  display: block;
  /* Плавное появление */
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}

.masonry__item img.is-loaded{
  opacity: 1;
}

.masonry__item:hover img{
  transform: scale(1.02);
}

/* адаптив */
@media (max-width: 520px){
  .masonry{ --col-min: 160px; --gap: 10px; }
}

/* ===== Lightbox like zetterberg ===== */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.lightbox.is-open{
  display: block;
}

.lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
}

.lightbox__content{
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  padding: 24px;
}

.lightbox__figure{
  margin: 0;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.lightbox__img{
  max-width: min(1200px, calc(100vw - 160px));
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  box-shadow: 0 20px 80px rgba(0,0,0,.55);
  cursor: zoom-out;
  background: #111;
}

.lightbox__caption{
  color: rgba(255,255,255,.85);
  font: 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-align: center;
}

/* кнопки */
.lightbox__btn{
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
}

.lightbox__btn:hover{
  background: rgba(0,0,0,.55);
}

.lightbox__close{
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 22px;
}

@media (max-width: 700px){
  .lightbox__content{
    grid-template-columns: 44px 1fr 44px;
    padding: 16px;
  }
  .lightbox__img{
    max-width: calc(100vw - 120px);
    max-height: calc(100vh - 140px);
  }
}


/* ===== Internal pages ===== */
.page-hero{
  border-bottom: 1px dashed var(--line);
  background: #fff;
}
.page-hero-in{
  padding: 48px 18px;
  display: grid;
  align-items: center;
}
.page-hero h1{
  margin: 0 0 10px;
  font-size: 44px;
  line-height: 1.15;
  text-align: left;
}
.page-hero .lead{
  margin: 0;
  font-size: 18px;
  color: #222;
  max-width: 58ch;
}
.page-body{ padding: 26px 0 44px; }
.section-head{ text-align:center; margin: 0 auto 18px; max-width: 820px; }
.section-head h2{ margin: 0 0 6px; font-size: 28px; font-style: italic; color:#555; }
.section-head p{ margin: 0; color: var(--mut); }

.check{ list-style: none; padding: 0; margin: 0 0 14px; }
.check li{ padding-left: 28px; position: relative; }
.check li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #8A8E75;
  font-weight: 800;
}

.callout{
  margin-top: 2rem;
  padding: 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  background: #fafafb;
}
.muted{ color: var(--mut); }
.small{ font-size: 13px; }

.contact-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.contact-card{
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  background: #fff;
}
.contact-card h2{
  font-size: 24px;
  margin: 0 0 10px;
}
.contact-card .num{
  font-family: "Jost", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.form{
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  background: #fff;
}
.form label{
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}
.form input, .form textarea{
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.numeric {
    font-size: 23px;
    font-weight: 400;
}

.crumbs{
  padding-top: 16px;
  color: var(--mut);
  font-size: 13px;
}
.crumbs a{ text-decoration: underline; }
footer a{text-decoration: underline;}

@media (max-width: 900px){
  .page-hero-in{ grid-template-columns: 1fr; }
  .page-hero h1{ font-size: 34px; }
  .contact-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
}


/* --- Internal pages: centered hero copy & breadcrumbs --- */
.page-hero-copy{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.page-hero-copy .eyebrow,
.page-hero-copy h1,
.page-hero-copy p{
  text-align: center;
}
.page-hero-copy h1{
	font-size: 52px;
}
.breadcrumbs{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  text-align: center;
}
.breadcrumbs a, .breadcrumbs span{
  display: inline-block;
}
.page-hero{
  display: block; /* no media column */
}
.page-hero-inner{
  display: block;
}



/* --- Mobile off-canvas menu --- */
.menu-btn{
  display:none;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  cursor:pointer;
  margin-left:auto;
}
.menu-btn:hover{ box-shadow: rgba(0, 0, 0, 0.10) 0px 25px 20px -20px; }
.menu-ic{ display:block; }

.mnav-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
  z-index:49;
}

.mnav{
  position:fixed;
  top:0; right:0;
  height:100svh;
  width:min(360px, 88vw);
  background:#fff;
  border-left:1px solid var(--line);
  z-index:50;
  transform: translateX(102%);
  transition: transform .22s ease;
  display:flex;
  flex-direction:column;
}
body.mnav-open .mnav{ transform: translateX(0); }

.mnav-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 16px 10px;
  border-bottom:1px solid var(--line);
}
.mnav-title{
  font-weight:700;
  letter-spacing:.02em;
}
.mnav-close{
  width:40px; height:40px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  cursor:pointer;
}
.mnav-links{
  display:flex;
  flex-direction:column;
  padding:12px 10px;
  gap:4px;
}
.mnav-links a{
  padding:12px 12px;
  border-radius:12px;
  font-weight:600;
  text-decoration:none;
}
.mnav-links a:hover{
  background: rgba(0,0,0,.04);
}

.mnav-footer{
  margin-top:auto;
  padding:16px;
  border-top:1px solid var(--line);
}

/* Breakpoint: hide desktop nav, show burger */
@media (max-width: 820px){
  .hd-in .nav{ display:none; }
  .menu-btn{ display:inline-flex; }
  .hd-in{ justify-content:space-between; }
  a.logo{ margin-left:0; margin-right:auto; }
  .jog .image{display:none}
  .jog{display:flex}
}
