/* ─────────────────────────────────────────────────────────────
   natalishi.com — v0.1 (по Figma "Структура сайта", node 74:14)
   Stack: vanilla HTML + CSS. Шрифты: Cormorant Garamond + Inter.
   Картинки — заглушки (.placeholder); меняем когда придут ассеты.
   ───────────────────────────────────────────────────────────── */

:root {
  /* Палитра (приблизительно к макету; финал — после ассетов от Ромика) */
  --bg:        #EDE6D6;
  --bg-soft:   #E4DCC8;
  --fg:        #1A1A1A;
  --muted:     #6A6258;
  --accent:    #2E2640;   /* тёмный фиолетовый — фон CTA-баннера */
  --accent-fg: #F4ECDA;
  --line:      rgba(26, 26, 26, 0.14);
  --shadow:    0 1px 0 rgba(0,0,0,0.04);

  /* Типографика */
  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  /* Сетка */
  --container: 1200px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.7; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.muted { color: var(--muted); }

/* ───── Placeholder (на месте будущих фото/коллажей) ───── */
.placeholder {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(26,26,26,0.04) 0 8px,
      rgba(26,26,26,0.06) 8px 16px
    ),
    var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  position: relative;
}
.placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

/* ───── Header ───── */
.site-header {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-family: var(--font-serif);
}
.logo-name {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.logo-role {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}
.contact {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.nav a { color: var(--fg); }

/* ───── Hero ───── */
.hero {
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: relative;
  text-align: center;
}
.hero-title {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(40px, 6.5vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 auto 40px;
  max-width: 980px;
  padding: 0 24px;
}
.hero-lead {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 17px;
}
.toggle { position: relative; z-index: 2; }

/* Хаотично разбросанные превью коллажей в hero — фон, не перекрывают текст */
.hero-img {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 4px;
}
.hero-img--tl {
  width: 110px; height: 140px;
  top: -20px; left: -10px;
  transform: rotate(-5deg);
}
.hero-img--bl {
  width: 140px; height: 140px;
  bottom: -10px; left: -20px;
  transform: rotate(4deg);
}
.hero-img--tr {
  width: 200px; height: 200px;
  top: 38%; right: -40px;
  transform: rotate(3deg);
}

/* Toggle Работы / Группы */
.toggle {
  display: inline-flex;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow);
}
.toggle-btn {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  padding: 10px 26px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.toggle-btn.is-active {
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* ───── Sections (общая отбивка) ───── */
.section {
  padding: 80px 0;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.01em;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.section-sub {
  max-width: 720px;
  margin: 0 0 56px;
  color: var(--muted);
  font-size: 17px;
}

.body-text {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 16px;
  max-width: 640px;
}
.body-text--lead {
  font-size: 20px;
  max-width: 880px;
  margin: 0 auto 64px;
  text-align: center;
}

/* ───── Two-column (text + image) ───── */
.two-col {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 72px;
  align-items: center;
}
.col-text {
  padding: 24px 0;
}
.col-text .body-text {
  font-size: 18px;
  max-width: 480px;
}
.col-image .img-block {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 5;
  margin-left: auto;
}
.placeholder--tall { aspect-ratio: 3 / 4; }

/* ───── Gallery ───── */
.gallery-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 640px) 80px;
  gap: 56px;
  align-items: start;
  justify-content: center;
}
.gallery-series ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gallery-series a {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.gallery-series a.is-active {
  color: var(--fg);
  border-bottom-color: var(--fg);
}
.gallery-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}
.img-block--square { aspect-ratio: 1 / 1; }
.gallery-caption {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
}
.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.thumb {
  width: 56px; height: 72px;
  border-radius: 4px;
  appearance: none;
  cursor: pointer;
  padding: 0;
}
.thumb.is-active {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* ───── CTA Banner ───── */
.cta-banner {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  background: var(--accent);
  color: var(--accent-fg);
}
.cta-bg {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  border-radius: 0;
  border: none;
}
.cta-inner {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 24px;
}
.cta-btn {
  font-family: var(--font-serif);
  font-size: 22px;
  padding: 18px 56px;
  border-radius: 4px;
  border: 1px solid var(--accent-fg);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.cta-btn--ghost {
  background: transparent;
  color: var(--accent-fg);
}
.cta-btn--ghost:hover { background: var(--accent-fg); color: var(--accent); opacity: 1; }
.cta-btn--solid {
  background: var(--accent-fg);
  color: var(--accent);
}
.cta-btn--solid:hover { opacity: 0.85; }

/* ───── Service cards ───── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  margin-bottom: 48px;
}
.card-service { }
.card-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 16px;
  line-height: 1.25;
}
.card-text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.btn-outline {
  display: inline-block;
  font-size: 14px;
  padding: 12px 32px;
  border: 1px solid var(--fg);
  border-radius: 4px;
  background: transparent;
  color: var(--fg);
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--fg); color: var(--bg); opacity: 1; }

/* ───── Video grid ───── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.video-thumb {
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
}
.video-thumb--tall { aspect-ratio: 3 / 4; }
.video-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 17px;
  margin: 0 0 8px;
  line-height: 1.3;
}
.video-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* ───── Contacts ───── */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.contacts-block p { margin: 0 0 12px; }

/* ───── Footer ───── */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
}

/* ───── Real-assets adjustments (overrides .placeholder rules) ───── */

/* Hero коллажи: <img>, не <div>; полный охват своих фиксированных размеров */
img.hero-img {
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Большие коллажи (секции, галерея) — <img> вместо .placeholder div */
img.img-block {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
img.img-block--tall {
  aspect-ratio: 3 / 4;
  max-width: 520px;
  margin-left: auto;
  border-radius: 6px;
}
img.img-block--square {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
}

/* CTA-banner background теперь <img> */
img.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(0.9);
}

/* Миниатюры галереи — <button> с вложенным <img> */
.thumb {
  overflow: hidden;
  border: 1px solid var(--line);
  background: transparent;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Видео в проектах */
video.video-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #1a1a1a;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}

/* ───── Адаптив ───── */
@media (max-width: 960px) {
  .header-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }
  .nav { justify-content: center; flex-wrap: wrap; }
  .contact { text-align: center; }
  .hero-img--tl, .hero-img--bl, .hero-img--tr { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .gallery-thumbs {
    flex-direction: row;
    justify-content: center;
  }
  .cards { grid-template-columns: 1fr; gap: 32px; }
  .video-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .video-thumb, .video-thumb--tall { aspect-ratio: 4 / 3; }
  .contacts-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-inner { flex-direction: column; align-items: center; }
}

@media (max-width: 520px) {
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 64px; }
  .video-grid { grid-template-columns: 1fr; }
  .cta-btn { font-size: 18px; padding: 14px 40px; width: 100%; text-align: center; }
}
