:root{
  --bg:#fbfaf9;
  --bg2:#f3f1ee;
  --text:#141414;
  --muted:#5f5f5f;
  --line:rgba(20,20,20,.08);
  --card:#ffffff;
  --accent:#caa58d;
  --accent2:#b48b72;
  --shadow:0 18px 50px rgba(20,20,20,.08);
  --radius:18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{width:min(1180px, 92vw); margin:0 auto}

.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(180%) blur(10px);
  background:rgba(251,250,249,.82);
  border-bottom:1px solid var(--line);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:16px;
}
.brand{display:flex; flex-direction:column; gap:2px}
.brand__name{font-family:"Playfair Display",serif; font-weight:600; letter-spacing:.2px; font-size:20px}
.brand__tagline{font-size:12px; color:var(--muted)}
.nav{display:flex; gap:18px; align-items:center}
.nav a{font-size:14px; color:var(--muted); padding:8px 10px; border-radius:12px}
.nav a:hover{color:var(--text); background:rgba(20,20,20,.04)}
.header__right{display:flex; align-items:center; gap:14px}
.social{display:flex; gap:10px}
.icon{
  width:34px; height:34px; border-radius:12px;
  display:grid; place-items:center;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:12px; font-weight:600;
}
.icon:hover{border-color:rgba(20,20,20,.18); color:var(--text)}
.lang{display:flex; gap:6px; padding:4px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.6)}
.lang__btn{font-size:12px; padding:6px 9px; border-radius:10px; color:var(--muted)}
.lang__btn.is-active{background:rgba(20,20,20,.06); color:var(--text)}
.lang__btn:hover{color:var(--text)}

.burger{
  display:none;
  width:42px; height:38px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.6);
  padding:10px;
}
.burger span{display:block; height:2px; background:var(--text); margin:4px 0; border-radius:2px}

.hero{
  position:relative;
  min-height:78vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background:#111;
}
.hero__overlay{
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(20,20,20,.64), rgba(20,20,20,.10));
  z-index:1;
}
.hero__content{position:relative; z-index:2; padding:72px 0}
.hero__title{
  margin:0 0 10px;
  font-family:"Playfair Display",serif;
  font-weight:600;
  font-size: clamp(36px, 5vw, 56px);
  color:#fff;
  letter-spacing:.2px;
}
.hero__subtitle{margin:0 0 22px; max-width:58ch; color:rgba(255,255,255,.86); font-size:16px; line-height:1.55}
.hero__dots{position:absolute; z-index:2; bottom:18px; left:50%; transform:translateX(-50%); display:flex; gap:8px}
.hero__dot{width:9px; height:9px; border-radius:99px; border:1px solid rgba(255,255,255,.55); background:transparent; cursor:pointer}
.hero__dot.is-active{background:#fff}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:16px;
  border:1px solid transparent;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active{transform:translateY(1px)}
.btn--primary{background:var(--accent); color:#fff}
.btn--primary:hover{background:var(--accent2)}
.btn--ghost{background:transparent; border-color:rgba(20,20,20,.18); color:var(--text)}
.btn--ghost:hover{background:rgba(20,20,20,.04)}

.section{padding:72px 0}
.section--alt{background:var(--bg2); border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
.section__head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:24px}
.h2{margin:0; font-family:"Playfair Display",serif; font-size:32px; font-weight:600}
.h3{margin:0; font-size:18px; font-weight:600}
.muted{color:var(--muted); font-size:14px; line-height:1.6}
.lead{font-size:16px; line-height:1.7; color:var(--text); max-width:68ch}

.grid{display:grid; gap:16px}
.grid--services{grid-template-columns:repeat(3, minmax(0,1fr))}
.grid--team{grid-template-columns:repeat(3, minmax(0,1fr))}
.grid--gallery{grid-template-columns:repeat(4, minmax(0,1fr))}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:0 1px 0 rgba(20,20,20,.02);
}
.service{display:flex; flex-direction:column; gap:10px; min-height:220px}
.service__icon{font-size:28px}
.service__more{
  margin-top:auto;
  border:none; background:transparent;
  color:var(--accent2); font-weight:600; padding:8px 0; text-align:left;
  cursor:pointer;
}
.service__more:hover{text-decoration:underline}

.split{display:grid; grid-template-columns: 1.25fr .75fr; gap:24px; align-items:start}
.stats{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px}
.stat{background:rgba(255,255,255,.6); border:1px solid var(--line); border-radius:18px; padding:16px}
.stat__value{    font-size: 50px;
    color: #c79aa0;
    font-family: var(--brand-font);
    display: flex;
    justify-content: center;}
.stat__label{color: var(--muted);
    font-size: 14px;
    /* font-size: 50px; */
    color: #0f0f0f;
    font-family: var(--brand-font);
    display: flex;
    justify-content: center;}

.person{padding:0; overflow:hidden}
.person__img{width:100%; height:240px; object-fit:cover; cursor:pointer}
.person__body{padding:16px}
.badge{display:inline-flex; padding:6px 10px; border-radius:999px; background:rgba(20,20,20,.05); color:var(--muted); font-size:12px; margin:10px 0}

.thumb{border-radius:18px; overflow:hidden; border:1px solid var(--line); background:#fff; cursor:pointer}
.thumb img{width:100%; height:170px; object-fit:cover; transition:transform .25s ease}
.thumb:hover img{transform:scale(1.03)}

.contact{display:grid; grid-template-columns: 1fr 1fr; gap:16px}
.contact__card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:18px; box-shadow:0 1px 0 rgba(20,20,20,.02)}
.contact__line{margin:10px 0; color:var(--muted); font-size:14px}
.contact__line strong{color:var(--text)}
.contact__form{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:18px}
.field{display:flex; flex-direction:column; gap:6px; margin-bottom:12px}
label{font-size:13px; color:var(--muted)}
input, textarea{
  border:1px solid rgba(20,20,20,.14);
  border-radius:14px;
  padding:12px 12px;
  font:inherit;
  background:#fff;
}
input:focus, textarea:focus{outline:2px solid rgba(202,165,141,.35); border-color:rgba(180,139,114,.55)}
.alert{padding:10px 12px; border-radius:14px; margin-bottom:12px; font-size:14px}
.alert--ok{background:rgba(46, 204, 113,.10); border:1px solid rgba(46, 204, 113,.22)}
.alert--bad{background:rgba(231, 76, 60,.10); border:1px solid rgba(231, 76, 60,.22)}
.admin-link{margin-top:12px}
.admin-link a{color:var(--muted); font-size:13px}
.admin-link a:hover{text-decoration:underline}

.footer{padding:26px 0; border-top:1px solid var(--line); background:rgba(255,255,255,.35)}
.footer__inner{display:flex; justify-content:space-between; align-items:center; gap:16px}
.footer__brand{color: #c79aa0;
  font-family: var(--brand-font);}

.modal, .lightbox{
  position:fixed; inset:0; display:none; z-index:100;
}
.modal[aria-hidden="false"], .lightbox[aria-hidden="false"]{display:block}
.modal__backdrop, .lightbox__backdrop{position:absolute; inset:0; background:rgba(20,20,20,.55)}
.modal__dialog{
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  width:min(720px, 92vw);
  max-height:82vh;
  overflow:auto;
  background:#fff;
  border-radius:22px;
  padding:18px;
  box-shadow:var(--shadow);
}
.modal__close{
  position:absolute; top:10px; right:12px;
  width:38px; height:38px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.8);
  cursor:pointer;
  font-size:22px;
}

.lightbox__img{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  max-width:min(92vw, 1040px);
  max-height:82vh;
  border-radius:18px;
  box-shadow:var(--shadow);
}
.lightbox__caption{
  position:absolute; bottom:18px; left:50%; transform:translateX(-50%);
  color:#fff; font-size:14px; padding:8px 12px; border-radius:12px;
  background:rgba(20,20,20,.35);
  max-width:min(92vw, 900px);
  text-align:center;
}
.lightbox__close{
  position:absolute; top:18px; right:18px;
  width:44px; height:44px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.28);
  color:#fff; background:rgba(20,20,20,.25);
  cursor:pointer; font-size:24px;
}
.lightbox__nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:54px; height:54px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.28);
  color:#fff; background:rgba(20,20,20,.25);
  cursor:pointer; font-size:32px; line-height:0;
}
.lightbox__prev{left:18px}
.lightbox__next{right:18px}

@media (max-width: 980px){
  .grid--services{grid-template-columns:repeat(2, minmax(0,1fr))}
  .grid--gallery{grid-template-columns:repeat(3, minmax(0,1fr))}
  .split{grid-template-columns:1fr}
  .contact{grid-template-columns:1fr}
}
@media (max-width: 720px){
  .nav{display:none; position:absolute; left:0; right:0; top:64px;
       background:rgba(251,250,249,.96); border-bottom:1px solid var(--line);
       padding:12px 4vw; flex-direction:column; align-items:flex-start}
  .nav.is-open{display:flex}
  .burger{display:block}
  .grid--services{grid-template-columns:1fr}
  .grid--team{grid-template-columns:1fr}
  .grid--gallery{grid-template-columns:repeat(2, minmax(0,1fr))}
  .hero__content{padding:60px 0}
  .section{padding:56px 0}
}

/* ===== Beautiq-like header layout (compatible with existing variables) ===== */
.header--beautiq{
  background:#f6f3f3;
}

.header--beautiq .header__top{
  padding:40px 0 18px;
  text-align:center;
}

.brand--center{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  text-decoration:none;
}

.brand__name--xl{
  font-size:56px;
  letter-spacing:8px;
  font-weight:300;
  color:#c79aa0;
  text-transform:uppercase;
  line-height:1.05;
}

.brand__tagline--sm{
  margin-top:10px;
  font-size:14px;
  letter-spacing:3px;
  color:#333;
  text-transform:uppercase;
}

.header--beautiq .header__bar{
  background:#fff;
  border-top:1px solid #e5e5e5;
  border-bottom:1px solid #e5e5e5;
  position:sticky;
  top:0;
  z-index:1000;
}

.header--beautiq .header__barInner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
}

.nav--center a{
  font-size:14px;
  letter-spacing:2px;
  text-transform:uppercase;
}

@media (max-width: 992px){
  .brand__name--xl{ font-size:32px; letter-spacing:4px; }
  .header--beautiq .header__barInner{
    flex-direction:column;
    padding:12px 0;
  }
}

/* ===== Title font close to Beautiq ===== */
:root{
  --beautiq-font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.brand__name--xl{
  font-family: var(--beautiq-font);
  font-weight: 200;
  text-transform: uppercase;

  /* адаптивный размер как на референсе */
  font-size: clamp(34px, 5.2vw, 64px);

  /* широкий трекинг как у Beautiq */
  letter-spacing: clamp(4px, 0.55vw, 10px);

  color: #c79aa0;
  line-height: 1.05;
}

.brand__tagline--sm{
  font-family: var(--beautiq-font);
  font-weight: 300;
  text-transform: uppercase;

  /* СДЕЛАЛ МЕНЬШЕ + адаптивно уменьшается на узких экранах */
  font-size: clamp(10px, 1.1vw, 12px);

  letter-spacing: clamp(2px, 0.25vw, 4px);
  color: #333;
  margin-top: 10px;
}

/* ===== Animation (title appears smoothly) ===== */
.anim-title,
.anim-subtitle{
  opacity: 0;
  transform: translateY(10px);
  animation: titleIn 900ms ease forwards;
}

.anim-subtitle{
  animation-delay: 180ms;
  transform: translateY(8px);
}

@keyframes titleIn{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .anim-title,
  .anim-subtitle{
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ===== Collapsing header (big title -> compact fixed bar) ===== */

.header--beautiq .brand--compact{
  display:none;           /* показываем только при скролле */
  text-decoration:none;
  white-space:nowrap;
}

.brand__name--compact{
  font-family: var(--beautiq-font);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 18px;        /* примерно в 3 раза меньше */
  color: #c79aa0;
  line-height: 1;
}

/* плавные переходы */
.header--beautiq .header__top{
  transition: padding 260ms ease, max-height 260ms ease, opacity 200ms ease;
  max-height: 200px;
  overflow: hidden;
}

/* компактный режим */
.header--beautiq.is-compact .header__top{
  padding: 0;
  max-height: 0;
  opacity: 0;
}

/* фиксируем только "полоску" */
.header--beautiq .header__bar{
  transition: box-shadow 200ms ease;
}

.header--beautiq.is-compact .header__bar{
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* в компактном режиме: слева маленькое название, а меню остаётся */
.header--beautiq.is-compact .brand--compact{
  display:inline-flex;
  align-items:center;
}

/* немного пересоберём bar: бренд слева, меню по центру, справа кнопки */
.header--beautiq .header__barInner{
  gap: 18px;
}

.header--beautiq.is-compact .nav--center{
  flex: 1;
  display: flex;
  justify-content: center;
}

/* на очень узких экранах скрываем центральное меню (оно будет через бургер) */
@media (max-width: 820px){
  .header--beautiq.is-compact .nav--center{
    display:none;
  }
}

/* ============================= */
/* Global Heading Typography     */
/* ============================= */

:root{
  --brand-font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --brand-color: #c79aa0;
}

/* ВСЕ заголовки */
h1, h2, h3, h4, h5, h6{
  font-family: var(--brand-font);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: clamp(2px, 0.3vw, 6px);
  margin: 0 0 20px 0;
}

/* Главные секционные заголовки */
.section-title{
  font-size: clamp(22px, 2.2vw, 34px);
  text-align: center;
color: #c79aa0;
  font-family: var(--brand-font);
}

/* Hero заголовок (если есть отдельный) */
.hero h1{
  font-weight: 200;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: clamp(4px, 1vw, 10px);
  color: #111;
  font-family: var(--brand-font);
  color:#efefef;
}

/* Подзаголовки */
.section-subtitle{
  font-family: var(--brand-font);
  font-weight: 300;
  font-size: clamp(12px, 1vw, 14px);
  letter-spacing: clamp(2px, 0.25vw, 4px);
  text-transform: uppercase;
  color: #666;
}

/* ===== Social icons as images ===== */

.social a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:12px;
}

.social img{
  width:28px;
  height:28px;
  object-fit:contain;
  transition: all 0.25s ease;

  /* делаем в 2 раза темнее */
  filter: brightness(0.45);
  opacity:1;
}

.social a:hover img{
  filter: brightness(0.25);
  transform: translateY(-2px);
}