/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
  --emerald: #1E4C40;
  --emerald-light: #2F6B58;
  --gold: #C2A24E;
  --gold-soft: #d7be83;
  --graphite: #262521;
  --cream: #F0E9DE;
  --nude: #E0C9B8;
  --marble: #F7F4EE;

  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--graphite);
  background: var(--marble);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

a { text-decoration: none; color: inherit; }

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 13px 28px;
  border-radius: 40px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--lg { padding: 17px 38px; font-size: 15px; }

.btn--gold {
  background: var(--gold);
  color: var(--graphite);
  box-shadow: 0 6px 20px rgba(194, 162, 78, 0.3);
}
.btn--gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(194, 162, 78, 0.45);
  background: var(--gold-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(240, 233, 222, 0.4);
}
.btn--ghost:hover {
  background: rgba(240, 233, 222, 0.1);
  border-color: var(--cream);
  transform: translateY(-3px);
}

/* ===== ХЕДЕР ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.header--scrolled {
  padding: 10px 0;
  background: rgba(30, 76, 64, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__logo img {
  height: 52px;
  width: auto;
  border-radius: 8px;
  transition: height 0.4s var(--ease);
}
.header--scrolled .header__logo img { height: 42px; }

.nav {
  display: flex;
  gap: 30px;
}
.nav a {
  color: var(--cream);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  position: relative;
  padding: 4px 0;
  opacity: 0.9;
  transition: opacity 0.3s;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { width: 100%; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--emerald);
  overflow: hidden;
}

/* Триптих из 3 видео */
.hero__videos {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 0;
}
.hero__video-col {
  position: relative;
  overflow: hidden;
}
.hero__video-col:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background: rgba(194, 162, 78, 0.35);
  z-index: 3;
}
.hero__video-col video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Изумрудное затемнение поверх видео — слева плотнее под текст, справа видео проступает */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(24,60,50,0.92) 0%, rgba(26,64,54,0.72) 45%, rgba(30,76,64,0.5) 100%),
    linear-gradient(180deg, rgba(24,60,50,0.45) 0%, rgba(24,60,50,0.3) 45%, rgba(20,52,43,0.7) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 48px;
  padding: 140px 28px 110px;
}

.hero__text { text-align: left; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(38, 37, 33, 0.4);
  border: 1px solid rgba(194, 162, 78, 0.5);
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 40px;
  margin-bottom: 30px;
}
.hero__badge-icon { color: var(--gold); }

.hero__title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 1.05;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}
.hero__accent { color: var(--gold); font-style: italic; }

.hero__subtitle {
  font-size: 18px;
  font-weight: 300;
  color: rgba(240, 233, 222, 0.92);
  max-width: 500px;
  margin: 0 0 34px;
  line-height: 1.7;
  text-shadow: 0 1px 16px rgba(0,0,0,0.4);
}

.hero__rating {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 40px;
}
.stars {
  position: relative;
  width: 120px; height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff33' d='M12 .587l3.668 7.431 8.2 1.192-5.934 5.784 1.401 8.166L12 18.896l-7.335 3.864 1.401-8.166L.132 9.21l8.2-1.192z'/%3E%3C/svg%3E");
  background-size: 24px 20px;
}
.stars__fill {
  position: absolute;
  top: 0; left: 0; height: 100%;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23C2A24E' d='M12 .587l3.668 7.431 8.2 1.192-5.934 5.784 1.401 8.166L12 18.896l-7.335 3.864 1.401-8.166L.132 9.21l8.2-1.192z'/%3E%3C/svg%3E");
  background-size: 24px 20px;
  width: 0;
  transition: width 1.4s var(--ease) 0.6s;
}
.hero__rating-num {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 600;
  color: var(--gold);
}
.hero__rating-text {
  font-size: 14px;
  color: rgba(240, 233, 222, 0.7);
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-start; }

/* Фото на переднем плане справа */
.hero__foreground {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__foreground::before {
  content: '';
  position: absolute;
  width: 78%;
  height: 88%;
  right: 4%;
  top: 6%;
  border: 1px solid rgba(194, 162, 78, 0.55);
  border-radius: 18px;
  z-index: 1;
}
.hero__photo {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 660px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
  border: 1px solid rgba(194, 162, 78, 0.3);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.hero__photo-badge {
  position: absolute;
  z-index: 3;
  left: 5%;
  bottom: 8%;
  background: rgba(24, 60, 50, 0.92);
  border: 1px solid rgba(194, 162, 78, 0.5);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__photo-badge-num {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.hero__photo-badge-stars {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 2px;
  margin-top: 2px;
}

.hero__scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid rgba(240, 233, 222, 0.4);
  border-radius: 20px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* ===== СЧЁТЧИКИ ===== */
.stats {
  background: var(--cream);
  padding: 70px 0 50px;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 600;
  color: var(--emerald);
  line-height: 1;
}
.stat__label {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--graphite);
  opacity: 0.7;
  letter-spacing: 0.02em;
}
.stats__note {
  margin-top: 28px;
  font-size: 12px;
  color: var(--graphite);
  opacity: 0.4;
  font-style: italic;
}

/* ===== REVEAL АНИМАЦИИ ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ОБЩИЕ СЕКЦИИ ===== */
.section { padding: 100px 0; }
.container--narrow { max-width: 820px; }
.section__head { max-width: 680px; margin: 0 0 54px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.eyebrow--gold { color: var(--gold); }
.section__title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.08;
  color: var(--emerald);
  letter-spacing: -0.01em;
}
.section__title .accent { color: var(--gold); font-style: italic; }
.section__lead {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 300;
  color: var(--graphite);
  opacity: 0.78;
  line-height: 1.7;
}

/* ПРЕИМУЩЕСТВА */
.about { background: var(--marble); }
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.feature {
  background: #fff;
  border: 1px solid rgba(30, 76, 64, 0.08);
  border-radius: 18px;
  padding: 34px 26px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(30,76,64,0.1); }
.feature i { font-size: 34px; color: var(--gold); }
.feature h3 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  color: var(--emerald);
  margin: 16px 0 10px;
}
.feature p { font-size: 15px; color: var(--graphite); opacity: 0.75; line-height: 1.6; }

/* УСЛУГИ */
.services { background: var(--emerald); }
.services .eyebrow { color: var(--gold-soft); }
.services .section__title { color: var(--cream); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(194, 162, 78, 0.25);
  border-radius: 18px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.service:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(194, 162, 78, 0.6);
}
.service i { font-size: 32px; color: var(--gold); }
.service h3 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  color: var(--cream);
  margin: 18px 0 10px;
}
.service p { font-size: 14px; color: rgba(240,233,222,0.7); line-height: 1.6; flex-grow: 1; }
.service__price {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 600;
  color: var(--gold);
  margin: 18px 0 14px;
}
.service__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  transition: gap 0.3s var(--ease);
}
.service__link:hover { gap: 14px; color: var(--gold); }

/* ГАЛЕРЕЯ */
.works { background: var(--marble); }
.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.work {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.work:hover img { transform: scale(1.07); }
.work--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(30,76,64,0.05);
  border: 1px dashed rgba(30,76,64,0.2);
  color: rgba(30,76,64,0.4);
}
.work--placeholder i { font-size: 30px; }
.work--placeholder span { font-size: 13px; }
.works__note, .contacts__note {
  margin-top: 26px;
  font-size: 13px;
  color: var(--graphite);
  opacity: 0.5;
  font-style: italic;
  text-align: center;
}

/* ПРАЙС */
.price { background: #fff; }
.price__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.price__col h3 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}
.price__col ul { list-style: none; }
.price__col li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(30,76,64,0.08);
}
.price__col li span { font-size: 15px; color: var(--graphite); opacity: 0.85; }
.price__col li b { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--emerald); white-space: nowrap; }
.price__cta { text-align: center; margin-top: 50px; }

/* БОНУС */
.bonus {
  background: var(--emerald);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.bonus__inner {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: center;
  gap: 50px;
}
.bonus__title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.1;
  color: var(--cream);
  margin: 14px 0 18px;
}
.bonus__title .accent { color: var(--gold); }
.bonus__text p { font-size: 16px; color: rgba(240,233,222,0.82); line-height: 1.7; max-width: 540px; margin-bottom: 28px; }
.bonus__badge {
  background: rgba(194,162,78,0.12);
  border: 1px solid rgba(194,162,78,0.4);
  border-radius: 22px;
  padding: 38px 24px;
  text-align: center;
}
.bonus__badge-num {
  display: block;
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.bonus__badge-label { display: block; margin-top: 10px; font-size: 14px; color: rgba(240,233,222,0.7); }

/* МАСТЕРА */
.masters { background: var(--marble); }
.masters__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.master { text-align: center; }
.master__photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
  background: rgba(30,76,64,0.06);
}
.master__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.master:hover .master__photo img { transform: scale(1.06); }
.master h3 { font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--emerald); }
.master p { font-size: 14px; color: var(--graphite); opacity: 0.7; margin-top: 4px; }

/* ОТЗЫВЫ */
.reviews { background: #fff; }
.reviews__top {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 44px;
}
.reviews__score {
  font-family: var(--font-head);
  font-size: 72px;
  font-weight: 600;
  color: var(--emerald);
  line-height: 1;
}
.reviews__stars { color: var(--gold); font-size: 20px; letter-spacing: 3px; }
.reviews__score-info > div:last-child { font-size: 15px; color: var(--graphite); opacity: 0.7; margin-top: 6px; }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review {
  background: var(--marble);
  border-radius: 18px;
  padding: 30px 28px;
}
.review__stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; margin-bottom: 14px; }
.review p { font-size: 15px; color: var(--graphite); line-height: 1.7; font-style: italic; opacity: 0.85; }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.review__author img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.review__author span { font-weight: 500; font-size: 14px; color: var(--emerald); }

/* FAQ */
.faq { background: var(--marble); }
.faq__item {
  border-bottom: 1px solid rgba(30,76,64,0.12);
}
.faq__q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--emerald);
  text-align: left;
}
.faq__q i { font-size: 22px; color: var(--gold); transition: transform 0.4s var(--ease); flex-shrink: 0; }
.faq__item.is-open .faq__q i { transform: rotate(180deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.faq__a p { padding: 0 0 24px; font-size: 16px; color: var(--graphite); opacity: 0.8; line-height: 1.7; max-width: 680px; }

/* КОНТАКТЫ */
.contacts { background: #fff; }
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}
.contacts__list { list-style: none; margin: 30px 0; }
.contacts__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(30,76,64,0.08);
  font-size: 16px;
  color: var(--graphite);
}
.contacts__list i { font-size: 22px; color: var(--gold); flex-shrink: 0; }
.contacts__list a { color: var(--emerald); font-weight: 500; }
.contacts__list small { color: var(--graphite); opacity: 0.6; }
.contacts__note { text-align: left; margin-top: 16px; }
.contacts__map {
  border-radius: 20px;
  overflow: hidden;
  min-height: 440px;
  border: 1px solid rgba(30,76,64,0.1);
}
.contacts__map iframe { width: 100%; height: 100%; display: block; border: 0; }

/* ФУТЕР */
.footer { background: var(--graphite); color: rgba(240,233,222,0.7); padding: 60px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer__brand img { height: 56px; border-radius: 10px; margin-bottom: 18px; }
.footer__brand p { font-size: 14px; line-height: 1.7; max-width: 320px; }
.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a { font-size: 15px; transition: color 0.3s; }
.footer__nav a:hover { color: var(--gold); }
.footer__contacts { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer__contacts a:first-child { font-family: var(--font-head); font-size: 22px; color: var(--gold); }
.footer__contacts span { font-size: 14px; }
.footer__contacts .btn { margin-top: 8px; }
.footer__bottom {
  border-top: 1px solid rgba(240,233,222,0.12);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(240,233,222,0.5);
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 860px) {
  .nav { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 120px 24px 90px;
  }
  .hero__foreground { order: 2; }
  .hero__photo { max-width: 320px; transform: none; }
  /* На мобиле — одно видео на весь фон вместо триптиха */
  .hero__videos { grid-template-columns: 1fr; }
  .hero__video-col:nth-child(2),
  .hero__video-col:nth-child(3) { display: none; }
}
@media (max-width: 980px) {
  .features, .services__grid, .masters__grid { grid-template-columns: repeat(2, 1fr); }
  .price__grid, .reviews__grid { grid-template-columns: 1fr; gap: 32px; }
  .bonus__inner { grid-template-columns: 1fr; }
  .contacts__inner { grid-template-columns: 1fr; }
  .contacts__map { min-height: 320px; order: 2; }
  .works__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .section { padding: 70px 0; }
  .section__head { margin-bottom: 40px; }
}
@media (max-width: 540px) {
  .header__cta { padding: 10px 18px; font-size: 13px; }
  .header__logo img { height: 42px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .features, .services__grid, .masters__grid, .works__grid { grid-template-columns: 1fr; }
  .reviews__top { flex-direction: column; text-align: center; gap: 10px; }
  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
