/* ── Сброс ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Переменные ── */
:root {
  --bg: #faf9f7;
  --bg-alt: #f2efe9;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --line: #e4e0d8;
  --accent: #1a1a1a;
}

/* ── База ── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.byn-icon {
  font-family: 'BYNSymbol' !important;
}

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

/* ── Шапка (прозрачная поверх hero) ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
header.header_scrolled {
  background: rgba(250, 249, 247, 0.88);
  backdrop-filter: blur(7px);
}
.header__nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.3s ease;
}
header.header_scrolled .logo { color: var(--text); }
.logo__accent {
  color: #c41212;
  font-weight: 600;
}
.header__menu {
  display: flex;
  gap: 36px;
  list-style: none;
}
.header__menu-link {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s ease;
  position: relative;
}
header.header_scrolled .header__menu-link { color: var(--text-muted); }
.header__menu-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0;
  height: 1px;
  background: #c41212;
  transition: width 0.25s ease;
}
.header__menu-link:hover { color: #c41212 !important; }
.header__menu-link:hover::after { width: 100%; }

/* Бургер для мобильных */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.header__burger span {
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: 0.3s;
}
header.header_scrolled .header__burger span { background: var(--text); }

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__photos {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 0;
}
.hero__photo {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Лёгкое смещение фото для динамики */
.hero__photo_left img {
  transform: scale(1.05);
  animation: heroPanLeft 20s ease-in-out infinite alternate;
}
.hero__photo_right img {
  transform: scale(1.05);
  animation: heroPanRight 20s ease-in-out infinite alternate;
}
@keyframes heroPanLeft {
  from { transform: scale(1.05) translateX(0); }
  to   { transform: scale(1.08) translateX(-15px); }
}
@keyframes heroPanRight {
  from { transform: scale(1.05) translateX(0); }
  to   { transform: scale(1.08) translateX(15px); }
}

/* Градиент-затемнение */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.15) 35%,
    rgba(0,0,0,0.35) 75%,
    rgba(0,0,0,0.55) 100%
  );
}

/* Текст поверх */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 32px;
}
.hero__title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 7rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.hero__tagline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  line-height: 1.5;
}
.hero__scroll {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.25s ease;
  display: inline-block;
  animation: heroScroll 1.5s ease-in-out infinite;
}

@keyframes heroScroll {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}
.hero__scroll:hover { color: #fff; }

/* ── Разделы ── */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 40px;
  display: block;
}

/* ── Обо мне ── */
.about__content {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}
.about__text { flex: 1; min-width: 280px; }
.about__text p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.about__quote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem) !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  font-style: italic;
  border-left: 3px solid #c41212;
  padding-left: 20px;
  margin: 28px 0 !important;
  line-height: 1.35;
}
.about__photo {
  flex: 0 0 auto;
  width: 340px;
  max-width: 100%;
}
.about__photo img {
  width: 100%;
  border-radius: 2px;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.15);
  transition: filter 0.4s ease;
}
.about__photo:hover img { filter: grayscale(0); }

/* ── Галерея ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.gallery__item {
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
  aspect-ratio: 3 / 4;
  background: var(--bg-alt);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.gallery__item:hover img {
  transform: scale(1.04);
}

/* ── Цены ── */
.prices { padding-top: 100px; padding-bottom: 110px; }
.prices__intro { display:flex; align-items:flex-end; justify-content:space-between; gap:48px; margin-bottom:42px; }
.prices__title { margin-bottom:0; }
.prices__description { max-width:420px; color:var(--text-muted); font-size:16px; line-height:1.65; margin-bottom:3px; }
.prices__grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.price-card { position:relative; min-height:390px; padding:28px 28px 30px; border:1px solid var(--line); background:rgba(255,255,255,.42); display:flex; flex-direction:column; transition:transform .35s ease,border-color .35s ease,background .35s ease; }
.price-card_featured { background:radial-gradient(circle at 90% 10%,rgba(245,177,139,.22),transparent 38%),rgba(255,255,255,.62); border-color:#d8cfc3; }
.price-card_featured::before { content:''; position:absolute; top:-1px; left:28px; right:28px; height:2px; background:#c41212; }
.price-card__top { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:52px; }
.price-card__number { font-family:'Syne',sans-serif; font-size:12px; font-weight:600; color:var(--text-muted); letter-spacing:.08em; }
.price-card__tag { font-size:11px; color:var(--text-muted); letter-spacing:.08em; text-transform:uppercase; text-align:right; }
.price-card__title { font-family:'Syne',sans-serif; font-size:clamp(1.5rem,2.5vw,2rem); font-weight:600; letter-spacing:-.025em; line-height:1.1; margin-bottom:18px; }
.price-card__value { font-family:'Syne',sans-serif; font-size:clamp(2rem,4vw,3rem); font-weight:600; letter-spacing:-.04em; line-height:1; }
.price-card__value span { font-family:'Inter',sans-serif; font-size:15px; font-weight:400; color:var(--text-muted); letter-spacing:0; }
.price-card__divider { width:100%; height:1px; background:var(--line); margin:28px 0 22px; }
.price-card__list { list-style:none; display:grid; gap:12px; margin-top:0; }
.price-card__item { position:relative; padding-left:18px; color:var(--text-muted); font-size:14px; }
.price-card__item::before { content:''; position:absolute; left:0; top:.7em; width:5px; height:5px; border-radius:50%; background:#c41212; }
.prices__note { display:flex; align-items:center; gap:18px; margin-top:14px; padding:22px 28px; border:1px solid var(--line); background:rgba(242,239,233,.58); }
.prices__note strong { display:block; margin-bottom:3px; font-family:'Syne',sans-serif; font-size:14px; font-weight:600; }
.prices__note p { color:var(--text-muted); font-size:13px; }

/* ── Футер ── */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 32px;
  text-align: center;
}
footer .logo {
  font-size: 18px;
  margin-bottom: 16px;
  display: inline-block;
  color: var(--text);
}
footer .logo__accent { color: #c41212; }
.footer__socials {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 16px;
}
.footer__socials a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.25s ease;
}
.footer__socials a:hover { color: var(--text); }
.footer__copy {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Лайтбокс ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 20, 20, 0.92);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}
.lightbox_active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
}
.lightbox__close {
  position: absolute;
  top: 24px; right: 32px;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 16px;
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav_prev { left: 16px; }
.lightbox__nav_next { right: 16px; }

/* ── Адаптив ── */
@media (max-width: 768px) {
  .header__menu {
    position: fixed;
    top: 61px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }


  .hero__photo_right {
    display: none;
  }
  .hero__photo_left {
    flex: 1;
  }
  .hero__photo_left img {
    animation: none;
  }
  @keyframes heroZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.1); }
  }



  .header__menu_open { max-height: 310px; }
  .header__menu-item { width: 100%; text-align: center; }
  .header__menu-link {
    display: block;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    color: var(--text-muted);
  }
  .header__menu-link::after { display: none; }
  header.header_scrolled .header__menu-link { color: var(--text-muted); }
  .header__burger { display: flex; }
  .header__burger span { background: #fff; }
  header.header_scrolled .header__burger span { background: var(--text); }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .about__content { gap: 32px; }
  .about__photo { width: 280px; }

  .prices__intro { align-items:flex-start; flex-direction:column; gap:14px; }
  .prices__grid { grid-template-columns:1fr; }
  .price-card { min-height:0; }
  .price-card__top { margin-bottom:38px; }
  .prices__note { align-items:flex-start; }
  section { padding: 60px 20px; }
  .header__nav { padding: 16px 20px; }

  .hero__photos { flex-direction: column; }
  .hero__title { font-size: clamp(2.2rem, 12vw, 4rem); }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__item { aspect-ratio: 2 / 3; }
  .about__photo { width: 100%; }
}

/* ── Контакты ── */
.contacts {
  padding-bottom: 110px;
}

.contacts__content {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 80px;
  align-items: start;
}

.contacts__intro .section-title {
  margin-bottom: 18px;
}

.contacts__intro p {
  max-width: 360px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 4px;
}

.contacts__block {
  min-width: 0;
}

.contacts__label {
  display: block;
  margin-bottom: 22px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contacts__socials,
.contacts__phones {
  display: grid;
  gap: 16px;
}

.contacts__social,
.contacts__phone {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-size: 16px;
  color: var(--text);
  transition: color .25s ease, transform .25s ease;
}

.contacts__social:hover,
.contacts__phone:hover {
  color: #c41212;
  transform: translateX(3px);
}

.contacts__social svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: currentColor;
}

.contacts__social:nth-child(2) svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.contacts__social:nth-child(2) svg circle:last-child {
  fill: currentColor;
  stroke: none;
}

.contacts__phone {
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.contacts__country {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 22px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: .05em;
  font-weight: 500;
}

/* Контакты идут после футера, поэтому визуально закрываем страницу */
footer + .contacts {
  margin-top: 0;
}

@media (max-width: 768px) {
  .contacts {
    padding-top: 60px;
    padding-bottom: 80px;
  }

  .contacts__content {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .contacts__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}
