/* ============================================================
   Открытый съёмочный день — Дарья Малышева
   Редакционная подача: тёплый светлый фон, антиква в дисплее,
   гротеск в теле, фотография во всю ширину и без скруглений.
   ============================================================ */

:root {
  --bg: #f2f0eb;
  --bg-alt: #e8e5dd;
  --ink: #0d0d0d;
  --ink-muted: #5c584f;
  --hairline: rgba(13, 13, 13, 0.16);
  --ph-bg: #e3e0d8;
  --dark-bg: #0d0d0d;
  --dark-ink: #f2f0eb;
  --dark-muted: #a09b93;

  /* Антиква — только дисплейные роли: заголовки, цитаты, цифры.
     Гротеск — тело, интерфейс и весь мелкий капс. */
  --display: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "Golos Text", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(20px, 5vw, 48px);

  /* медленное «дорогое» замедление вместо резкого ease */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.4s;
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.section--form :focus-visible {
  outline-color: var(--dark-ink);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.container--narrow { max-width: 860px; }

/* волосяных линий между всеми секциями больше нет — ритм держат отступы */
.section { padding: clamp(80px, 12vw, 152px) 0; }

/* ---------- надзаголовки ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: clamp(32px, 6vw, 64px);
}

/* ---------- фотографии: прямой угол, без скруглений ---------- */
.ph {
  background:
    linear-gradient(160deg, rgba(13,13,13,0.045), rgba(13,13,13,0) 55%),
    var(--ph-bg);
  border-radius: 0;
  overflow: hidden;
}

.ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- липкая мини-шапка (появляется после обложки) ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(242, 240, 235, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hairline);
  transform: translateY(-101%);
  transition: transform var(--dur) var(--ease);
}

.topbar--visible { transform: translateY(0); }

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.topbar__mark {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar__cta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.topbar__cta:hover { background: var(--ink); color: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  .topbar { transition: none; }
}

/* ---------- 1. Обложка: фотография во всю ширину, без врезки ---------- */
.hero { padding: 0; }

.hero__media {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  border-radius: 0;
  background: linear-gradient(160deg, #26231d, #17150f);
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* лицо правее центра кадра — марка уходит в левую треть */
  object-position: 62% 24%;
}

/* на телефоне кадр обрезается по ширине — держим лицо по центру экрана */
@media (max-width: 719px) {
  .hero__media img { object-position: 50% 22%; }
}

/* очень лёгкое затемнение по краям: фотография остаётся фотографией,
   а не подложкой под текст */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0) 46%),
    linear-gradient(to top, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0) 32%);
}

/* марка слева, поясняющая строка справа — композиция обложки-референса */
.hero__content {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: clamp(28px, 5vw, 48px);
  padding: clamp(28px, 5vw, 68px);
  color: #f5f3ee;
}

@media (min-width: 860px) {
  .hero__content {
    grid-template-columns: 2.2fr 1fr;
    align-items: center;
    column-gap: clamp(32px, 5vw, 72px);
  }
}

/* на узких экранах кадр обрезается по ширине, и лицо занимает середину:
   уводим марку вниз, на тёмный пиджак, чтобы текст не лёг на лицо */
@media (max-width: 859px) {
  .hero__content {
    align-content: end;
    gap: clamp(14px, 2.4vw, 22px);
    /* прижимаем блок ниже: выше он налезал на руку в кадре */
    padding-bottom: clamp(24px, 4vh, 36px);
  }
}

/* марка: две строки, вторая курсивом */
.hero__mark {
  display: inline-block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(46px, 6.4vw, 92px);
  /* строки марки идут плотно, как на референсе */
  line-height: 1.04;
  letter-spacing: -0.01em;
  justify-self: start;
}

.hero__mark-line { display: block; }

.hero__mark-line--italic { font-style: italic; }

.hero__lead {
  justify-self: start;
  max-width: 26ch;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.45;
}

/* ---------- кнопки ---------- */
.btn-line {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 18px 30px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

@media (min-width: 720px) {
  .btn-line { font-size: 13px; padding: 20px 38px; }
}

/* инверсия вместо полупрозрачности — самый дешёвый ховер убран */
.btn-line:hover { background: transparent; color: var(--ink); }

/* ---------- 2. О формате ---------- */
/* крупная фраза раздела — антиква, обычный регистр */
.statement {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 4.2vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  max-width: 34ch;
  margin-bottom: clamp(56px, 9vw, 116px);
}

/* курсивный акцент — тот же приём, что во второй строке марки на обложке */
.statement em { font-style: italic; }

/* втяжка первой строки — приём с референса: фраза «въезжает» вправо,
   остальные строки выравнены по левому краю колонки */
@media (min-width: 860px) {
  .statement { text-indent: clamp(80px, 16vw, 260px); }
}

/* ---------- Фото-врезка во всю ширину с параллаксом ----------
   Фото стоит на месте (position: fixed), а по нему едет «окно» —
   сама полоса. clip-path на родителе обязателен: он создаёт систему
   координат для fixed-потомка, иначе фото растянется на весь экран.
   Работает и в Safari на iPhone, в отличие от background-attachment: fixed. */
.break {
  position: relative;
  width: 100%;
  height: clamp(340px, 62svh, 760px);
  overflow: hidden;
  background: var(--ph-bg);
  clip-path: inset(0);
}

.break img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;
  object-fit: cover;
  object-position: 50% 38%;
}

/* при отключённой анимации — обычное неподвижное фото без параллакса */
@media (prefers-reduced-motion: reduce) {
  .break { clip-path: none; }

  .break img {
    position: absolute;
    width: 100%;
    height: 100%;
  }
}

/* ---------- Что входит (в том же разделе, что и крупная фраза) ---------- */
.kicker--included { margin-bottom: clamp(20px, 3vw, 28px); }

.included { list-style: none; }

/* мобильный: номер слева, название и описание — одной колонкой справа */
.included li {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 12px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
}

.included li:first-child { border-top: 1px solid var(--hairline); }

.included__num {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
  padding-top: 0.5em;
}

/* заголовки пунктов — антиква, обычный регистр вместо капса 800 */
.included h3, .team h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.003em;
}

.included p { color: var(--ink-muted); font-size: 16px; max-width: 46ch; }

/* на мобильном описание уходит на вторую строку, но остаётся
   в колонке названия — иначе схлопывается в 44px под номером */
.included li > p { grid-column: 2; margin-top: 10px; }

/* десктоп: три колонки — номер · название · описание, как на референсе */
@media (min-width: 860px) {
  .included li {
    grid-template-columns: 56px minmax(0, 1.7fr) minmax(0, 1fr);
    column-gap: clamp(24px, 4vw, 64px);
    /* все три колонки садятся на одну базовую линию первой строки */
    align-items: baseline;
    padding: clamp(30px, 3.4vw, 40px) 0;
  }

  .included__num { padding-top: 0; }

  .included li > p { grid-column: auto; margin-top: 0; }
}

/* ---------- 4. Команда ---------- */
.team { display: grid; gap: clamp(40px, 6vw, 56px); }

.team__card { display: flex; gap: clamp(20px, 3vw, 28px); align-items: flex-start; }

/* портреты команды крупнее — было max 128px */
.ph--team { flex: 0 0 auto; width: clamp(130px, 26vw, 240px); aspect-ratio: 3 / 4; }

.team__info h3 { font-size: clamp(22px, 3.2vw, 30px); }

.team__card p { color: var(--ink-muted); font-size: 16px; margin-top: 12px; max-width: 44ch; }

.team__link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  transition: opacity var(--dur) var(--ease);
}

.team__link:hover { opacity: 0.55; }

/* ---------- 5. Галерея (тёплый светлый тон, без чёрной подложки) ---------- */
.section--tint { background: var(--bg-alt); }

.gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(24px, 4vw, 36px);
}

.gallery-head .kicker { margin-bottom: 0; }

.gallery-nav { display: flex; gap: 10px; flex: 0 0 auto; }

.gallery__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.gallery__arrow:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* лента начинается и заканчивается по границам контейнера — раньше она
   уходила под край экрана и выбивалась из общей сетки страницы */
.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.gallery::-webkit-scrollbar { display: none; }

/* кадры — кнопки: доступны с клавиатуры, открывают лайтбокс */
.gallery .ph {
  flex: 0 0 auto;
  width: min(76vw, 400px);
  aspect-ratio: 3 / 4;
  border: none;
  border-radius: 0;
  padding: 0;
  scroll-snap-align: start;
  cursor: zoom-in;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .gallery { scroll-behavior: auto; }
}

/* ---------- Отзывы: цитаты вместо карточек ---------- */
.reviews {
  display: flex;
  gap: clamp(28px, 4vw, 48px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.reviews::-webkit-scrollbar { display: none; }

.review {
  flex: 0 0 auto;
  width: min(84vw, 380px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* цитата гротеском: антиква с высоким контрастом плохо читается
   на длинном тексте — отзывы это сплошные абзацы, а не одна фраза */
.review p {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
}

/* абзацы идут просто с новой строки, без пустой строки между ними */
.review p + p { margin-top: 0; }

.review__author {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.review__photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.review__author-text { display: flex; flex-direction: column; }

.review__author cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.review__role {
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ---------- 6. Вопросы и ответы ---------- */
.faq__item { border-bottom: 1px solid var(--hairline); }

.faq__item:first-child { border-top: 1px solid var(--hairline); }

.faq__item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(19px, 3vw, 24px);
  line-height: 1.26;
  -webkit-user-select: none;
  user-select: none;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__icon {
  flex: 0 0 auto;
  position: relative;
  top: -2px;
  width: 14px;
  height: 14px;
  align-self: center;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform var(--dur) var(--ease);
}

.faq__icon::before { left: 0; right: 0; top: 6px; height: 1px; }

.faq__icon::after { top: 0; bottom: 0; left: 6px; width: 1px; }

.faq__item[open] .faq__icon::after { transform: scaleY(0); }

.faq__item p {
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 62ch;
  padding-bottom: 28px;
}

.faq__item p a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: opacity var(--dur) var(--ease);
}

.faq__item p a:hover { opacity: 0.6; }

.faq__hidden { display: none; }

.faq--expanded .faq__hidden { display: block; }

.faq__toggle {
  display: inline-block;
  margin-top: 32px;
  background: transparent;
  border: none;
  box-shadow: inset 0 0 0 1px var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.faq__toggle:hover { background: var(--ink); color: var(--bg); }

/* ---------- Стоимость: слева, теми же волосяными строками ---------- */
/* тон уже занят галереей выше — цена остаётся на основном фоне,
   иначе два тонированных блока подряд сливаются в один */
.section--price {
  padding: clamp(72px, 10vw, 120px) 0;
}

/* цена одна — собираем блок по центру: это единственная точка на странице,
   где симметрия уместна, и она делает число фокусом раздела */
.price { text-align: center; }

.price .kicker { margin-bottom: clamp(24px, 4vw, 36px); }

.price__value {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 10vw, 128px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.price__currency { font-weight: 400; }

.price__note {
  max-width: 42ch;
  margin: clamp(20px, 3vw, 28px) auto 0;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.6;
}

.price__cta { margin-top: clamp(36px, 5vw, 48px); }

/* ---------- 7. Контакты (инвертированный блок) ---------- */
.section--form {
  background: var(--dark-bg);
  color: var(--dark-ink);
}

.form-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 7.5vw, 82px);
  line-height: 1.06;
  letter-spacing: -0.005em;
  max-width: 16ch;
  margin-bottom: clamp(24px, 3vw, 32px);
}

.contact-lead {
  color: var(--dark-muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 44ch;
  margin-bottom: clamp(36px, 5vw, 52px);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--dark-ink);
  color: var(--dark-bg);
  box-shadow: inset 0 0 0 1px var(--dark-ink);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 18px 32px;
  border-radius: 999px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.contact-btn:hover { background: transparent; color: var(--dark-ink); }

/* второй канал — тот же размер, но контурный: приоритет у Telegram */
.contact-btn--ghost {
  background: transparent;
  color: var(--dark-ink);
  box-shadow: inset 0 0 0 1px rgba(242, 240, 235, 0.45);
}

.contact-btn--ghost:hover {
  background: var(--dark-ink);
  color: var(--dark-bg);
  box-shadow: inset 0 0 0 1px var(--dark-ink);
}

/* строка про канал — не кнопка: другое намерение, другой вес */
.contact-note {
  margin-top: clamp(28px, 4vw, 40px);
  max-width: 52ch;
  color: var(--dark-muted);
  font-size: 16px;
  line-height: 1.6;
}

.contact-note a {
  color: var(--dark-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: opacity var(--dur) var(--ease);
}

.contact-note a:hover { opacity: 0.6; }

/* ---------- Лайтбокс галереи ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  /* светлая подложка вместо чёрной — кадры смотрятся как в галерее, а не в кино */
  background: rgba(242, 240, 235, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: calc(100vw - 32px);
  max-height: calc(100svh - 120px);
  border-radius: 0;
  -webkit-user-select: none;
  user-select: none;
}

.lightbox__btn {
  position: fixed;
  z-index: 101;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(242, 240, 235, 0.7);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.lightbox__btn:hover { background: var(--ink); color: var(--bg); }

.lightbox__close { top: 16px; right: 16px; }

.lightbox__prev { left: 12px; bottom: 24px; }

.lightbox__next { right: 12px; bottom: 24px; }

@media (min-width: 720px) {
  .lightbox__prev { left: 24px; top: 50%; bottom: auto; transform: translateY(-50%); }

  .lightbox__next { right: 24px; top: 50%; bottom: auto; transform: translateY(-50%); }

  .lightbox__close { top: 24px; right: 24px; }
}

/* ---------- 8. Футер ---------- */
.footer { padding: 56px 0 64px; border-top: 1px solid var(--hairline); }

.footer__inner { display: flex; align-items: center; gap: 18px; }

.footer p {
  color: var(--ink-muted);
  font-size: 15px;
}

/* ============================================================
   Планшет и десктоп
   ============================================================ */
@media (min-width: 720px) {
  .team { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 80px); }


  .gallery { gap: 20px; }

  .gallery .ph { width: min(34vw, 400px); }

  .review { width: min(30vw, 380px); }
}

/* на десктопе отзывов ровно три — показываем сеткой, без скрытой прокрутки вбок */
@media (min-width: 900px) {
  .reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }

  .review { width: auto; }
}

/* ============================================================
   Уважение к prefers-reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
