@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@300;400;500&display=swap');

:root{
  --bg:#ffffff;
  --text:#1d1d1d;
  --muted:#6f6a66;
  --brown:#5b3f35;
  --brown2:#6b4c41;
  --border:rgba(255,255,255,.25);
  --shadow:0 18px 60px rgba(0,0,0,.18);
  /* Для блока контактов/футера как в общих проектах */
  --card:#f7f7f7;
  --line:#e0e0e0;
  --radius:10px;
}

*{box-sizing:border-box}
html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.intro-locked{overflow:hidden}

/* Вступительное видео до показа сайта (как на artgreen) */
.introVideo{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#1a1816;
  transition:opacity .45s ease, visibility .45s ease;
  touch-action:none;
  cursor:grab;
}
.introVideo:active{
  cursor:grabbing;
}
.introVideo.is-done{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.introVideo__media{
  width:100%;
  height:100%;
  min-height:100vh;
  min-height:100dvh;
  min-height:-webkit-fill-available;
  object-fit:cover;
  object-position:center center;
  display:block;
}
@media (max-width: 768px){
  .introVideo{
    display:block;
    overflow:hidden;
    min-height:100vh;
    min-height:100dvh;
    min-height:-webkit-fill-available;
  }
  .introVideo__media{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    min-height:100%;
    object-fit:cover;
    object-position:center center;
  }
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

/* По макету фоновой фотографии за страницей нет */
.page-bg{display:none;}

.container{width:min(1200px, calc(100% - 120px)); margin:0 auto;}

/* Кнопки контактов (в разметке есть .btn, базовых стилей не было) */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 24px;
  border-radius:8px;
  font-size:15px;
  font-weight:500;
  text-decoration:none;
  border:1px solid transparent;
  transition: background .2s ease, transform .15s ease;
  touch-action:manipulation;
}
.btn--primary{
  background:var(--brown);
  color:#fff;
}
.btn--primary:hover{background:var(--brown2)}
.contacts__btn{
  width:100%;
  max-width:420px;
  box-sizing:border-box;
  box-shadow:var(--shadow);
  border-radius:8px;
}

.hero{padding:0;}
.hero__card{
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:22px 48px 0;
}
.brand{
  display:inline-flex;
  align-items:center;
}
.brand__logo{
  height:32px;
  max-width:160px;
  object-fit:contain;
  display:block;
}

.nav{display:flex; gap:44px; align-items:center;}
.nav a{
  font-family:'Cormorant Garamond', Georgia, 'Times New Roman', serif;font-size:16px; color:#2b2b2b;}
.nav a:hover{opacity:.75}

.burger{display:none; background:transparent; border:0; padding:10px; border-radius:14px;}
.burger span{display:block; width:26px; height:2px; background:#2b2b2b; margin:6px 0; border-radius:2px;}

.nav--mobile{
  display:none;
  padding:18px 48px 10px;
  border-top:1px solid rgba(0,0,0,.06);
  gap:18px;
}

.hero__content{padding:28px 0 46px;}
.hero__title{ text-align:center; padding-top:42px;}
/* Типографика под макет */
.hero__title h1{
  margin:0;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight:500;
  letter-spacing:.08em;
  font-size:64px;
  line-height:1.05;
  color:var(--text);
}
.hero__title p{
  margin:16px auto 0;
  max-width:420px;
  color:#7d6f67;
  font-size:15px;
  line-height:1.55;
}

.hero__grid{
  margin-top:30px;
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  /* чтобы круг не касался правой картинки */
  gap:120px;
  align-items:end;
  position:relative;
}

.hero__imgwrap{position:relative;}
.hero__imgwrap--left{position:relative;}
.hero__imgwrap img{display:block; width:100%;}

.circle-btn--hero{position:absolute;width:240px;height:240px;border-radius:50%;background:var(--brown);color:#fff;display:flex;align-items:center;justify-content:center;text-align:center;font-size:16px;line-height:1.15;letter-spacing:.02em;box-shadow:0 14px 26px rgba(0,0,0,.16);z-index:3;}
/*
  Десктоп: кнопка должна сидеть на верхнем правом углу ЛЕВОЙ картинки
  и чуть перекрывать правую.
  Важно: привязываем к обёртке, а не к <img>, иначе позиционирование «плывёт».
*/
/* Реальная кнопка должна перекрывать "фантом" на изображении слева */
/* Кнопка перекрывает правый верхний угол левой картинки и выходит в белое поле справа */
.hero__imgwrap--left .circle-btn--hero{
  /* центр круга на углу картинки (как в макете) */
  top:-70px;
  right:-70px;
  left:auto;
  transform:none;
}


.circle-btn--hero:hover{
  filter: none;
}

.hero__left h2{
  margin:0 0 16px;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight:500;
  letter-spacing:.04em;
  font-size:60px;
}
.hero__left img{border-radius:0px;}

.hero__right{position:relative;}
.hero__right img{border-radius:0px;}

.circle-btn{
  width:140px;
  height:140px;
  border-radius:50%;
  background:#6d5a51;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:14px;
  line-height:1.05;
  box-shadow:0 12px 30px rgba(0,0,0,.18);
}
.circle-btn:hover{transform:translateY(-1px)}

/* По макету — круг поверх стыка двух картинок в первом экране */

/* Круг в блоке скидки — поверх картинки справа */
.circle-btn--small{position:absolute; width:132px;height:132px; left:auto; right:38px; top:26px;}

.benefits{background:var(--brown); padding:68px 0 86px; color:#fff;}
.benefits__title{
  margin:0 0 40px;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight:500;
  letter-spacing:.12em;
  font-size:34px;
}

.benefits__circles{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:42px;
  align-items:center;
}
.circle{
  border:2px solid var(--border);
  border-radius:50%;
  aspect-ratio:1/1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:26px;
}
.circle p{
  margin:0;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size:28px;
  line-height:1.15;
  text-align:center;
}
.circle--accent p{letter-spacing:.08em}

.benefits__controls{display:flex; gap:14px; margin-top:34px;}
.arrow{width:46px;height:46px;border-radius:50%; border:2px solid rgba(255,255,255,.35); background:transparent; color:#fff; font-size:18px;}
.arrow--filled{background:#fff; color:var(--brown); border-color:#fff;}

.projects{background:#fff; padding:72px 0 84px;}
.projects__head{display:flex; align-items:flex-start; justify-content:space-between; gap:18px;}
.projects__head h2{
  margin:0;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight:500;
  letter-spacing:.12em;
  font-size:32px;
}
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 26px;
  border-radius:999px;
  background:#7b665f;
  color:#fff;
  font-size:16px;
}

.projects__grid{
  margin-top:34px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:44px 56px;
}
/* Все карточки по одной линии без смещений */
.projects__grid .project:nth-child(even),
.project--offset{
  margin-top:0;
}
.project img{
  border-radius:6px;
  width:100%;
  height:360px;
  object-fit:cover;
  display:block;
  cursor: zoom-in;
}
.project__meta{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  width:100%;
  margin-top:18px;
}
.project__meta p{
  margin:0;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size:18px;
  color:#6b5f59;
  line-height:1.3;
}
.project__meta--right{justify-content:space-between;}
/* В макете правая колонка чуть ниже */
.project--offset{margin-top:64px;}
.outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 32px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.7);
  color:#fff;
  font-size:18px;
  background:#6d5a51;
  box-shadow:0 18px 40px rgba(0,0,0,.28);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.outline:hover{
  background:#5b493f;
}

/* ===== LIGHTBOX (ported from arthome) ===== */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(0,0,0,.88);
}
.lightbox[hidden]{ display:none; }
.lightbox__backdrop{
  position:absolute;
  inset:0;
}
.lightbox__content{
  position:relative;
  z-index:1;
  width:min(1080px, 100%);
  max-height: calc(100vh - 40px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 12px;
}
.lightbox__img{
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0,0,0,.65);
  background: rgba(255,255,255,.02);
}
.lightbox__caption{
  color: rgba(255,255,255,.9);
  font-size: 14px;
  text-align:center;
}
.lightbox__counter{
  color: rgba(255,255,255,.7);
  font-size: 12px;
  letter-spacing:.06em;
}
.lightbox__close{
  position:absolute;
  right: 18px;
  top: 14px;
  z-index:2;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color:#fff;
  cursor:pointer;
}
.lightbox__prev,
.lightbox__next{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index:2;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color:#fff;
  cursor:pointer;
}
.lightbox__prev{ left: 18px; }
.lightbox__next{ right: 18px; }

.discount{background:var(--brown); color:#fff; padding:86px 0 110px; text-align:center;}
.discount h2{margin:0; font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; font-weight:500; letter-spacing:.12em; font-size:34px;}
.discount h3{margin:20px 0 46px; font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; font-weight:500; letter-spacing:.12em; font-size:34px;}
.discount__media{position:relative; width:min(1040px, 100%); margin:0 auto;}
.discount__media img{border-radius:6px; width:100%; height:480px; object-fit:cover;}

.calc{background:#fff; padding:74px 0 48px;}

/* Заголовок/подзаголовок контактов — как в arthome/artgreen/artstroy */
.head{margin-bottom:26px}
.head--center{text-align:center}
.head h2{
  margin:0 0 10px;
  font-size:34px;
  font-weight:500;
  letter-spacing:-0.01em;
}
.lead{
  margin:0;
  color:var(--muted);
  line-height:1.6;
  font-size:14px;
}

/* Contacts (общие, как в arthome/artgreen/artstroy) */
.contacts__body{margin-top:22px; max-width:760px; margin-left:auto; margin-right:auto}
.contacts__cta{text-align:center; margin-bottom:32px}
.contacts__req{
  position:relative;
  padding:24px 88px 24px 22px;
  background:var(--card);
  border-radius:var(--radius);
  border:1px solid var(--line);
  font-size:13px;
  line-height:1.5;
  color:var(--text);
}
.contacts__req p{margin:0 0 8px}
.contacts__req p:last-child{margin-bottom:0}
.contacts__name{font-weight:600; margin-bottom:10px!important}
.contacts__salon{font-weight:500}
.contacts__region{
  font-weight:600;
  font-size:clamp(17px,2.2vw,20px);
  text-transform:none;
  letter-spacing:.04em;
  line-height:1.25;
  color:var(--text);
  margin:0 0 12px!important;
}
.contacts__phones{margin:0 0 8px}
.contacts__req a{color:var(--text); text-decoration:underline; text-underline-offset:2px}
.contacts__req a:hover{opacity:.8}
.contacts__privacy{
  margin-top:14px!important;
  padding-top:10px;
  border-top:1px solid var(--line);
  font-size:12px;
  color:var(--muted)!important;
}
.contacts__socials{
  position:absolute;
  top:20px;
  right:20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.contacts__socials-label{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:var(--muted);
}
.contacts__social{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  display:grid;
  place-items:center;
  color:var(--text);
  text-decoration:none;
  font-size:11px;
}
.contacts__social-ic svg{
  width:18px;
  height:18px;
  display:block;
}
.contacts__social-ic svg[stroke]{fill:none; stroke:currentColor}
.contacts__social:hover{background:#f5f5f5}

.footer{
  margin-top:64px;
  padding:26px 0 0;
  border-top:1px solid rgba(0,0,0,.08);
}
.footer__nav{display:flex; gap:44px;}
.footer__nav a{color:#2b2b2b;}

/* Footer directions (как в arthome / artgreen / artstroy) */
.footer__in{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  font-size:13px;
  color:var(--muted);
  width:100%;
}
.footer__directions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 14px;
}
.footer__directions-label{color:var(--muted); margin-right:4px}
.footer__dir{
  text-decoration:none;
  border-bottom:1px solid transparent;
  color:var(--text);
}
.footer__dir:hover{border-bottom-color:var(--text)}
.footer__current{color:var(--muted)}
.to-top{
  text-decoration:none;
  border-bottom:1px solid rgba(0,0,0,.16);
  padding-bottom:2px;
  color:var(--text);
  font-size:12px;
}
.to-top__arrow{font-weight:600}

.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;}

@media (max-width: 1100px){
  .container{width:min(1200px, calc(100% - 56px));}
  .topbar{padding-left:26px; padding-right:26px;}
    .projects__grid{gap:34px;}
  .project img{height:auto; aspect-ratio:4/3;}
}

/* Планшет (между «мобилкой» 900px и десктопом): hero ещё в две колонки с большим gap и кругом с отрицательными координатами — даёт горизонтальный скролл */
@media (max-width: 1100px) and (min-width: 901px){
  html,body{max-width:100%;overflow-x:hidden}
  .hero__grid{
    gap:min(56px, 5vw);
    column-gap:min(40px, 4vw);
  }
  .hero__imgwrap--left .circle-btn--hero{
    top:clamp(-48px, -5vw, -28px);
    right:clamp(-48px, -5vw, -20px);
    width:min(220px, 22vw);
    height:min(220px, 22vw);
    font-size:clamp(13px, 1.5vw, 16px);
  }
  /* контакты: absolute-соцсети до 900px только на широком экране */
  .contacts__req{
    padding:22px 20px;
    display:flex;
    flex-direction:column;
    gap:16px;
  }
  .contacts__socials{
    position:static;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    justify-content:flex-start;
    gap:10px 12px;
    padding-bottom:16px;
    border-bottom:1px solid var(--line);
  }
  .contacts__socials-label{width:100%; margin:0 0 2px;}
  .contacts__social{width:40px; height:40px;}
}

@media (max-width: 900px){
  body{overflow-x:hidden;}
  /* Моб.макет: показываем одну (левую) картинку, а круговая кнопка лежит на ней справа сверху */
  .hero__right{display:none;}
  .hero__left{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    width:100%;
  }
  .hero__left .hero__imgwrap{display:block;}
  /* Заголовок и лид — компактнее и ровнее по центру */
  .hero__title{
    padding-top:clamp(20px, 6vw, 36px);
  }
  .hero__title h1{
    font-size:clamp(26px, 7.2vw, 34px);
    letter-spacing:.06em;
    line-height:1.08;
    padding:0 8px;
    max-width:22ch;
    margin-left:auto;
    margin-right:auto;
  }
  .hero__title p{
    margin-top:12px;
    padding:0 12px;
    max-width:34em;
    font-size:clamp(13px, 3.5vw, 15px);
    line-height:1.5;
    color:#6e625c;
  }
  .hero__left h2{
    margin:0 0 16px;
    padding:0 10px;
    font-size:clamp(22px, 5.5vw, 34px);
    letter-spacing:.06em;
    line-height:1.12;
    max-width:20ch;
    margin-left:auto;
    margin-right:auto;
  }
  /* Круг CTA: читаемый текст и зона нажатия (единые правила для 900px и ниже) */
  /* Фото по центру экрана, не «прилипшее» к левому краю */
  .hero__imgwrap--left{
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 14px 36px rgba(0,0,0,.1);
    /* Как .discount__media: та же ширина и выравнивание по краям контейнера */
    width:min(1040px, 100%);
    margin-left:auto;
    margin-right:auto;
  }
  .hero__imgwrap--left .hero__img{
    width:100%;
    aspect-ratio:16/9;
    height:auto;
    max-height:min(52vh, 440px);
    object-fit:cover;
    object-position:center center;
    display:block;
  }
  .hero__imgwrap--left .circle-btn--hero{
    left:auto;
    right:clamp(10px, 3vw, 16px);
    top:clamp(10px, 3vw, 16px);
    transform:none;
    width:min(104px, 26vw);
    height:min(104px, 26vw);
    min-width:88px;
    min-height:88px;
    font-size:clamp(11px, 2.9vw, 13px);
    line-height:1.15;
    box-shadow:0 10px 18px rgba(0,0,0,.16);
  }

  .nav--desktop{display:none}
  .burger{display:block}
  .nav--mobile{display:none; flex-direction:column}
  .hero__grid{grid-template-columns:1fr; gap:clamp(18px, 4vw, 22px); margin-top:clamp(18px, 4vw, 28px);}

  .benefits__circles{grid-template-columns:repeat(2, minmax(0, 1fr)); gap:18px 14px;}
  .circle{max-width:none; margin:0; padding:clamp(12px, 3vw, 20px);}
  .circle p{font-size:clamp(15px, 3.6vw, 22px);}
  .projects__head{flex-direction:column; align-items:flex-start;}
  /* Проекты — 2 колонки до узких экранов (как на макете) */
  .projects__grid{grid-template-columns:repeat(2,1fr); gap:28px 40px;}
  .project img{height:auto}
  .calc__grid{grid-template-columns:1fr; gap:34px;}
  .calc__right img{height:360px}
  .footer{flex-direction:column; gap:16px; align-items:flex-start;}

  .contacts__req{
    padding:22px 20px 22px 20px;
    display:flex;
    flex-direction:column;
    gap:16px;
  }
  .contacts__socials{
    position:static;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    justify-content:flex-start;
    gap:10px 12px;
    padding-bottom:16px;
    border-bottom:1px solid var(--line);
  }
  .contacts__socials-label{width:100%; margin:0 0 2px;}
  .contacts__social{
    width:40px;
    height:40px;
  }

}

@media (max-width: 640px){
  .projects__grid{grid-template-columns:1fr;}
  .benefits__circles{grid-template-columns:1fr; gap:22px;}
  .circle{max-width:420px; margin:0 auto;}
}

@media (max-width: 520px){
  .container{width:min(1200px, calc(100% - 32px));}
  .topbar{
    padding-top:max(14px, env(safe-area-inset-top));
    padding-right:max(16px, env(safe-area-inset-right));
    padding-bottom:0;
    padding-left:max(16px, env(safe-area-inset-left));
  }
  .hero__content{padding:18px max(16px, env(safe-area-inset-left)) 24px max(16px, env(safe-area-inset-right));}
  .hero__title p{font-size:14px}
  .benefits__title{font-size:26px}
  .circle p{font-size:16px}
  .projects__head h2{font-size:26px}
  .project__meta{flex-direction:column; align-items:flex-start;}
  .project__meta p{font-size:18px}
  .discount{padding:56px max(16px, env(safe-area-inset-left)) 72px max(16px, env(safe-area-inset-right));}
  .discount h2,.discount h3{font-size:clamp(20px, 5.2vw, 28px)}
  .discount h3{margin:16px 0 32px;}
  .discount__media img{height:min(52vw, 360px)}
  .calc__left h2{font-size:34px}
  .burger{padding:12px; min-width:44px; min-height:44px;}
  .footer{padding-bottom:max(8px, env(safe-area-inset-bottom));}
}

/* Discount: circle overlaps the top-right corner of the discount image */
.discount__media{position:relative;}
.discount__media .circle-btn--small{
  top:-66px;
  right:-66px;
  left:auto;
  transform:none !important;
}

/* Узкие экраны: кнопка скидки не уезжает за край */
@media (max-width:768px){
  .hero__right{margin-left:0;}
  .discount__media .circle-btn--small{
    top:12px;
    right:12px;
    width:min(108px, 28vw);
    height:min(108px, 28vw);
    min-width:88px;
    min-height:88px;
    font-size:clamp(11px, 2.6vw, 13px);
    line-height:1.1;
  }
  .lightbox__content{
    max-height:calc(100dvh - 24px);
    padding:0 max(12px, env(safe-area-inset-left)) 0 max(12px, env(safe-area-inset-right));
  }
  .lightbox__img{
    max-height:calc(100dvh - 140px);
  }
  .lightbox__prev{left:max(8px, env(safe-area-inset-left));}
  .lightbox__next{right:max(8px, env(safe-area-inset-right));}
  .lightbox__close{
    right:max(12px, env(safe-area-inset-right));
    top:max(12px, env(safe-area-inset-top));
  }
}
