/* ═══════════════════════════════════════════════════════════════
   GURFINKEL STUDIO — Design System
   • Modern Architectural Editorial
   • Палитра: Bone · Warm Dark · Travertine · Warm Grey
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&family=DM+Mono:wght@400;500&display=swap');

/* ── TOKENS ── */
:root {
  --bone:        #F4EFE8;
  --sand:        #EDE7DA;
  --sand-deep:   #E3DCCF;
  --dark:        #1C1A17;
  --near-black:  #0F0E0D;
  --travertine:  #C4956A;   /* яркий акцент — только на ТЁМНЫХ фонах */
  --accent:      #8A5E32;   /* читаемый акцент — на СВЕТЛЫХ фонах (WCAG AA) */
  --trav-dark:   #A8784F;
  --grey:        #6B645A;   /* AA-совместимый на bone и sand */
  --grey-light:  #B5AEA3;
  --divider:     #D8D0C4;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'DM Sans', system-ui, sans-serif;
  --mono:        'DM Mono', 'Courier New', monospace;
  --section-gap: 120px;
  --container:   1240px;
  --gutter:      64px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bone);
  color: var(--dark);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

::selection { background: var(--travertine); color: #fff; }

/* ── UTILITY ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
/* На тёмных секциях возвращаем яркий акцент */
.achievements-block .eyebrow,
.contact-block     .eyebrow,
.case-hero         .eyebrow { color: var(--travertine); }
.section-title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--dark);
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--accent); font-weight: 400; }
/* На тёмных секциях возвращаем яркий акцент */
.achievements-block .section-title em { color: var(--travertine); }
.section-sub {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--grey);
  max-width: 580px;
}

/* ── FADE-UP ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.in { opacity: 1; transform: none; }
.fade-up.delay-1 { transition-delay: .08s; }
.fade-up.delay-2 { transition-delay: .16s; }
.fade-up.delay-3 { transition-delay: .24s; }
.fade-up.delay-4 { transition-delay: .32s; }
.fade-up.delay-5 { transition-delay: .40s; }

/* ══════════════════════════════════════════════
   NAV
   • На главной поверх hero — прозрачная + светлый лого
   • После скролла — белая + тёмный лого
   • На страницах кейсов — поверх hero (тёмное фото)
   • На внутренних светлых страницах — сразу белая
══════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-nav.at-top  { background: transparent; }
.site-nav.scrolled,
.site-nav.solid {
  background: rgba(244, 239, 232, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--divider);
}
/* Когда на странице светлый hero — нав всегда «solid» с тёмным контентом */
.site-nav.solid { /* шапка для index, портфолио — светлый фон страницы */ }

/* logo swap */
.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  height: 44px;
}
.nav-logo img {
  height: 28px;
  width: auto;
  display: block;
  transition: opacity .3s;
}
.nav-logo .logo-light { display: block; }
.nav-logo .logo-dark  { display: none; }
.site-nav.scrolled .nav-logo .logo-light,
.site-nav.solid    .nav-logo .logo-light { display: none; }
.site-nav.scrolled .nav-logo .logo-dark,
.site-nav.solid    .nav-logo .logo-dark  { display: block; }

/* center menu */
.nav-center {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-center a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: rgba(255,255,255,0.78);
  transition: color .2s;
  position: relative;
}
.nav-center a:hover { color: #fff; }
.nav-center a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-center a:hover::after { transform: scaleX(1); }
.site-nav.scrolled .nav-center a,
.site-nav.solid    .nav-center a { color: var(--dark); }
.site-nav.scrolled .nav-center a:hover,
.site-nav.solid    .nav-center a:hover { color: var(--accent); }

/* right side */
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 10px 22px;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.site-nav.scrolled .nav-cta,
.site-nav.solid    .nav-cta {
  color: var(--dark);
  border-color: var(--dark);
}
.site-nav.scrolled .nav-cta:hover,
.site-nav.solid    .nav-cta:hover {
  background: var(--dark);
  color: var(--bone);
  border-color: var(--dark);
}

/* burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: #fff;
  transition: background .2s, transform .25s, opacity .15s;
}
.site-nav.scrolled .nav-burger span,
.site-nav.solid    .nav-burger span { background: var(--dark); }
.nav-burger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--near-black);
  z-index: 199;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.nav-drawer.open { opacity: 1; pointer-events: all; }
.nav-drawer a {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: color .2s;
}
.nav-drawer a:hover { color: var(--travertine); }
.nav-drawer .drawer-cta {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  padding: 14px 32px;
  color: #fff;
}

/* ══════════════════════════════════════════════
   HERO — главная
══════════════════════════════════════════════ */
.home-hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  background: var(--bone);
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  /* мягкая текстура */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 30%, rgba(196,149,106,0.06), transparent 70%),
    radial-gradient(ellipse 60% 80% at 10% 90%, rgba(196,149,106,0.04), transparent 70%);
  pointer-events: none;
}
.home-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.home-hero-text { position: relative; z-index: 2; }
.home-hero-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.home-hero-name {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--dark);
  margin-bottom: 18px;
}
.home-hero-name .ln { display: block; }
.home-hero-role {
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 300;
  font-style: italic;
  color: var(--grey);
  margin-bottom: 40px;
}
.home-hero-quote {
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  color: var(--dark);
  max-width: 480px;
  padding-left: 20px;
  border-left: 1px solid var(--travertine);
  margin-bottom: 44px;
}
.home-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dark);
  border: 1px solid var(--dark);
  padding: 16px 32px;
  transition: background .25s, color .25s;
}
.home-hero-cta:hover { background: var(--dark); color: var(--bone); }
.home-hero-cta svg { transition: transform .3s; }
.home-hero-cta:hover svg { transform: translateX(4px); }

.home-hero-photo {
  position: relative;
  align-self: stretch;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
}
.home-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 720px;
  object-fit: contain;       /* ← без искажения пропорций */
  object-position: center;
}
.home-hero-photo-frame {
  position: absolute;
  top: 0; bottom: 0;
  right: -40px;
  width: 60%;
  background: var(--sand-deep);
  z-index: 0;
}
.home-hero-photo .photo-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.home-hero-photo-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  z-index: 2;
}
.home-hero-photo-sign {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--accent);
  z-index: 2;
}

/* ══════════════════════════════════════════════
   ABOUT (О СЕБЕ)
══════════════════════════════════════════════ */
.about-block {
  padding: var(--section-gap) 0;
  background: var(--bone);
  border-top: 1px solid var(--divider);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 96px;
  align-items: start;
}
.about-head .section-title { font-size: clamp(34px, 3.8vw, 56px); }
.about-text {
  font-size: 16px;
  line-height: 1.95;
  color: #3a342e;
  max-width: 640px;
}
.about-text p + p { margin-top: 22px; }
.about-text p strong, .about-text p em { font-weight: 400; color: var(--dark); }

/* ══════════════════════════════════════════════
   PRINCIPLES (ПРИНЦИПЫ РАБОТЫ)
══════════════════════════════════════════════ */
.principles-block {
  padding: var(--section-gap) 0;
  background: var(--sand);
  border-top: 1px solid var(--divider);
}
.principles-header { margin-bottom: 72px; max-width: 700px; }
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--divider);
}
.principle {
  padding: 56px 56px 56px 0;
  border-bottom: 1px solid var(--divider);
  position: relative;
}
.principle:nth-child(odd)  { padding-right: 56px; }
.principle:nth-child(even) {
  padding-left: 56px;
  border-left: 1px solid var(--divider);
}
.principle-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 24px;
}
.principle-name {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.15;
}
.principle-text {
  font-size: 14.5px;
  line-height: 1.85;
  color: #4a443d;
  max-width: 480px;
}

/* ══════════════════════════════════════════════
   ACHIEVEMENTS (КЛЮЧЕВЫЕ ДОСТИЖЕНИЯ)
══════════════════════════════════════════════ */
.achievements-block {
  padding: var(--section-gap) 0;
  background: var(--near-black);
  color: #f0e9de;
  position: relative;
  overflow: hidden;
}
.achievements-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 80% 0%, rgba(196,149,106,0.10), transparent 70%);
  pointer-events: none;
}
.achievements-header { margin-bottom: 80px; position: relative; max-width: 700px; }
.achievements-header .section-title { color: #fff; }
.achievements-header .section-sub { color: rgba(255,255,255,0.62); }
.achievements-list {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.achievement {
  padding: 44px 0;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 48px;
  align-items: start;
  border-top: 1px solid rgba(255,255,255,0.08);
  transition: padding-left .3s ease;
}
.achievement:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.achievement:hover { padding-left: 12px; }
.achievement-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--travertine);
  line-height: 1;
}
.achievement-body { max-width: 720px; }
.achievement-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
}
.achievement-text {
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
}
.achievement-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(196,149,106,0.85);
  white-space: nowrap;
  padding-top: 12px;
}

/* ══════════════════════════════════════════════
   PROJECTS GRID (на главной)
══════════════════════════════════════════════ */
.projects-block {
  padding: var(--section-gap) 0;
  background: var(--bone);
}
.projects-header {
  margin-bottom: 64px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

/* CARD (универсальный для index и related) */
.proj-card {
  display: block;
  text-decoration: none;
  color: var(--dark);
}
.proj-thumb {
  position: relative;
  overflow: hidden;
  background: var(--sand-deep);
  aspect-ratio: 4 / 3;
}
.proj-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s ease;
}
.proj-card:hover .proj-thumb img { transform: scale(1.04); }
.proj-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,14,13,0.72) 0%, rgba(15,14,13,0.1) 60%, transparent 100%);
  opacity: 0;
  transition: opacity .35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 28px;
}
.proj-card:hover .proj-hover { opacity: 1; }
.proj-hover-meta {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
}
.proj-hover-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
}
.proj-meta { padding: 20px 0 0; }
.proj-ref {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 6px;
}
.proj-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 4px;
}
.proj-sub {
  font-size: 12px;
  color: var(--grey);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════
   CONTACT (ГЛАВНАЯ + ПОВТОР НА КЕЙСАХ)
══════════════════════════════════════════════ */
.contact-block {
  padding: 160px 0;
  background: var(--near-black);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-block::before {
  content: 'AG';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: clamp(180px, 28vw, 380px);
  font-weight: 300;
  color: rgba(255,255,255,0.025);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
.contact-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}
.contact-inner .eyebrow { color: rgba(196,149,106,0.7); }
.contact-title {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 300;
  color: #fff;
  line-height: 1.06;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.contact-title em { font-style: italic; color: var(--travertine); }
.contact-text {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255,255,255,0.55);
  margin-bottom: 48px;
}
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 8px;
  transition: color .25s, border-color .25s;
}
.contact-email:hover {
  color: var(--travertine);
  border-bottom-color: var(--travertine);
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer {
  background: var(--near-black);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 56px 0 32px;
  color: rgba(255,255,255,0.5);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  margin-bottom: 32px;
}
.footer-logo img {
  height: 36px;
  width: auto;
}
.footer-email {
  text-align: center;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.footer-email:hover { color: var(--travertine); }
.footer-nav {
  display: flex;
  gap: 22px;
  list-style: none;
}
.footer-nav a {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: rgba(255,255,255,0.62);
  transition: color .2s;
}
.footer-nav a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ══════════════════════════════════════════════
   FLOAT MOBILE CTA
══════════════════════════════════════════════ */
.float-cta {
  position: fixed;
  bottom: 22px;
  right: 18px;
  z-index: 150;
  display: none;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 22px;
  box-shadow: 0 8px 28px rgba(138,94,50,0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s, transform .35s;
}
.float-cta.shown { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════
   PROJECT PAGE (общие куски для страниц кейсов)
══════════════════════════════════════════════ */
.case-hero {
  height: 88vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--near-black);
}
.case-hero-img {
  position: absolute;
  inset: 0;
}
.case-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,9,8,0.72) 0%, rgba(10,9,8,0.18) 55%, transparent 90%);
}
.case-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) 88px;
  max-width: 900px;
}
.case-hero-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(196,149,106,0.85);
  margin-bottom: 22px;
}
.case-hero-title {
  font-family: var(--serif);
  font-size: clamp(34px, 5.5vw, 72px);
  font-weight: 300;
  color: #fff;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.case-hero-sub {
  font-family: var(--serif);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.72);
  line-height: 1.45;
  max-width: 640px;
}

/* Project chips ribbon (under hero) */
.case-card {
  padding: 64px 0;
  background: var(--bone);
  border-bottom: 1px solid var(--divider);
}
.case-card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--divider);
  border-left: 1px solid var(--divider);
}
.case-chip {
  padding: 28px 32px;
  border-right: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.case-chip-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}
.case-chip-value {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.2;
}

/* RELATED PROJECTS (на странице кейса) */
.related-block {
  padding: var(--section-gap) 0;
  background: var(--bone);
}
.related-header {
  margin-bottom: 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}
.related-header h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  color: var(--dark);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.view-all-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: opacity .2s;
}
.view-all-link:hover { opacity: 0.65; }

/* placeholder ("в работе") секция — для заглушек до наполнения */
.coming-soon {
  padding: 120px 0;
  text-align: center;
  background: var(--sand);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.coming-soon-inner {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 32px;
}
.coming-soon h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 300;
  color: var(--dark);
  margin: 20px 0 16px;
  line-height: 1.15;
}
.coming-soon p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--grey);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  :root { --gutter: 48px; --section-gap: 96px; }
  .home-hero-grid { gap: 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .case-card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  :root { --gutter: 28px; --section-gap: 80px; }
  .site-nav { padding: 0 24px; height: 64px; }
  .site-nav .nav-center { display: none; }
  .site-nav .nav-cta    { display: none; }
  .site-nav .nav-burger { display: flex; }

  .home-hero { padding-top: 112px; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .home-hero-photo { min-height: 460px; }
  .home-hero-photo-frame { display: none; }

  .principles-grid { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(odd), .principle:nth-child(even) {
    padding: 40px 0;
    border-left: none;
    border-right: none;
  }
  .principle:last-child { border-bottom: none; }

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

  .achievement {
    grid-template-columns: 40px 1fr;
    gap: 24px;
  }
  .achievement-meta { display: none; }

  .case-hero-content { padding: 0 24px 56px; }
  .case-card-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .footer-nav { justify-content: center; flex-wrap: wrap; gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .float-cta { display: block; }
}

@media (max-width: 480px) {
  .case-card-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════
   CASE STUDY — компоненты страницы кейса (lede, concept, zones,
   gallery, details, docs, construction, conclusion)
═══════════════════════════════════════════════════════════════ */

/* LEDE — большой вводный абзац */
.case-lede {
  padding: 96px 0 80px;
  background: var(--bone);
}
.case-lede-inner {
  max-width: 760px;
  margin: 0 auto;
}
.case-lede-text {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--dark);
  letter-spacing: -0.005em;
}

/* Общая секция кейса */
.case-section {
  padding: var(--section-gap) 0;
}
.case-section-head {
  margin-bottom: 56px;
  max-width: 720px;
}
.case-section.sand {
  background: var(--sand);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.case-section.dark {
  background: var(--near-black);
  color: #fff;
}
.case-section.dark .case-section-head .section-title { color: #fff; }
.case-section.dark .case-section-head .section-sub { color: rgba(255,255,255,0.62); }
.case-section.dark .case-section-head .eyebrow { color: var(--travertine); }

/* CONCEPT — два больших блока side-by-side */
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.concept-block .concept-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.concept-block h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.18;
  margin-bottom: 22px;
  color: var(--dark);
  letter-spacing: -0.005em;
  max-width: 460px;
}
.concept-block p {
  font-size: 15px;
  line-height: 1.9;
  color: #3a342e;
  max-width: 480px;
}

/* FEATURE — full-bleed image (показывает в&nbsp;натуральных пропорциях) */
.case-feature {
  width: 100%;
  background: var(--bone);
}
.case-feature img {
  width: 100%;
  display: block;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  background: var(--sand-deep);
}

/* PLAN — 4 sub-blocks 2x2 grid */
.plan-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--divider);
}
.plan-block {
  padding: 44px 48px 44px 0;
  border-bottom: 1px solid var(--divider);
}
.plan-block:nth-child(even) {
  padding-left: 48px;
  padding-right: 0;
  border-left: 1px solid var(--divider);
}
.plan-block-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 16px;
}
.plan-block h4 {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  margin-bottom: 14px;
  color: var(--dark);
  line-height: 1.2;
}
.plan-block p {
  font-size: 14.5px;
  line-height: 1.85;
  color: #3a342e;
}

/* ZONE — text + image split */
.zone-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}
.zone-grid.image-left { grid-template-columns: 1fr 1.05fr; }
.zone-grid.image-left .zone-image { order: 0; }
.zone-grid.image-left .zone-text  { order: 1; }
.zone-image img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.zone-text { padding: 0 4px; }
.zone-text .eyebrow { margin-bottom: 18px; }
.zone-text h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
  color: var(--dark);
}
.zone-text p {
  font-size: 15px;
  line-height: 1.9;
  color: #3a342e;
  max-width: 480px;
}
.zone-text p + p { margin-top: 16px; }

/* GALLERY ROWS — внутри case-section */
.case-gallery {
  padding: 0 0 var(--section-gap);
  background: var(--bone);
}
.case-gallery.compact { padding-bottom: 60px; }
.case-gallery-row {
  display: grid;
  gap: 16px;
}
.case-gallery-row + .case-gallery-row { margin-top: 16px; }
.case-gallery-row.cols-2 { grid-template-columns: 1fr 1fr; }
.case-gallery-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.case-gallery-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.case-gallery-row.uneven-3 { grid-template-columns: 1.4fr 1fr 1fr; }
.case-gallery-row img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.case-gallery-row.cols-4 img { aspect-ratio: 1/1; }

/* DETAILS — 3 sub-blocks on dark bg */
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.detail-block {
  padding: 44px 36px 44px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.detail-block:nth-child(2) { padding-left: 36px; padding-right: 36px; }
.detail-block:nth-child(3) { padding-left: 36px; padding-right: 0; border-right: none; }
.detail-block .detail-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--travertine);
  margin-bottom: 16px;
}
.detail-block h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.2;
}
.detail-block p {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255,255,255,0.7);
}

/* FEATURE WITH CAPTION — image + sidebar caption */
.case-feature-with-caption {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  background: var(--bone);
}
.case-feature-with-caption img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.feature-caption-box {
  background: var(--sand-deep);
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-caption-box .eyebrow { margin-bottom: 16px; }
.feature-caption-box h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.18;
  margin-bottom: 20px;
  color: var(--dark);
}
.feature-caption-box p {
  font-size: 14.5px;
  line-height: 1.85;
  color: #3a342e;
}

/* DOCS — для чертежей (object-fit: contain) */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.docs-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #fff;
  padding: 8px;
}

/* CONSTRUCTION CHRONICLE */
.construction-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.construction-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
/* Вариант с&nbsp;contain — для папок со&nbsp;смешанной ориентацией */
.construction-grid.contain img {
  object-fit: contain;
  background: var(--sand-deep);
  aspect-ratio: 3/4;
}
.construction-note {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ─── PORTRAIT FEATURE — изображение в&nbsp;натуральных пропорциях ─── */
/* Используется когда фото портретное / нестандартное соотношение, и */
/* обрезать его — потеря смысла (длинный коридор, винтовая лестница). */
.case-feature-portrait {
  padding: var(--section-gap) 0;
  background: var(--bone);
}
.case-feature-portrait.sand {
  background: var(--sand);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.feature-portrait-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 56px;
  align-items: stretch;
}
.feature-portrait-grid.image-right {
  grid-template-columns: 1fr 0.85fr;
}
.feature-portrait-grid.image-right .portrait-image-wrap { order: 1; }
.feature-portrait-grid.image-right .portrait-text       { order: 0; }
.portrait-image-wrap {
  background: var(--sand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  min-height: 520px;
}
.portrait-image-wrap img {
  max-width: 100%;
  max-height: 760px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}
.portrait-text {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.portrait-text .eyebrow { margin-bottom: 18px; }
.portrait-text h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 24px;
  color: var(--dark);
  letter-spacing: -0.005em;
}
.portrait-text h3 em { color: var(--accent); font-style: italic; font-weight: 400; }
.portrait-text p {
  font-size: 15px;
  line-height: 1.9;
  color: #3a342e;
  max-width: 480px;
}
.portrait-text p + p { margin-top: 16px; }

/* ─── Галерея без обрезки (для смешанной ориентации) ─── */
.case-gallery-row.contain img {
  object-fit: contain;
  background: var(--sand-deep);
  aspect-ratio: 1/1;     /* квадратный «холст» — портретные и landscape вместе */
}
.case-gallery-row.contain.tall img {
  aspect-ratio: 3/4;     /* высокий формат — лучше для портретных */
}

/* ─── Zone-image без обрезки (на случай портретного фото в&nbsp;split-зоне) ─── */
.zone-image.contain {
  background: var(--sand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  min-height: 520px;
}
.zone-image.contain img {
  aspect-ratio: auto;
  max-height: 600px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .feature-portrait-grid,
  .feature-portrait-grid.image-right {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature-portrait-grid.image-right .portrait-image-wrap { order: 0; }
  .feature-portrait-grid.image-right .portrait-text       { order: 1; }
  .portrait-image-wrap { min-height: 420px; padding: 24px; }
}

/* CONCLUSION — финальный текст */
.case-conclusion {
  padding: var(--section-gap) 0;
  background: var(--bone);
  text-align: center;
  border-top: 1px solid var(--divider);
}
.case-conclusion-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}
.case-conclusion h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 300;
  margin-bottom: 28px;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -0.01em;
}
.case-conclusion h2 em { color: var(--accent); font-style: italic; font-weight: 400; }
.case-conclusion p {
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: #3a342e;
}

/* RESPONSIVE для case study */
@media (max-width: 1100px) {
  .concept-grid { grid-template-columns: 1fr; gap: 48px; }
  .plan-blocks { grid-template-columns: 1fr; }
  .plan-block, .plan-block:nth-child(even) {
    padding: 36px 0;
    border-left: none;
  }
  .zone-grid, .zone-grid.image-left {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .zone-grid.image-left .zone-image { order: 0; }
  .zone-grid.image-left .zone-text  { order: 1; }
  .case-feature-with-caption { grid-template-columns: 1fr; }
  .case-feature-with-caption img { aspect-ratio: 16/9; }
  .details-grid { grid-template-columns: 1fr; }
  .detail-block, .detail-block:nth-child(2), .detail-block:nth-child(3) {
    padding: 32px 0;
    border-right: none;
  }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .case-gallery-row.cols-3,
  .case-gallery-row.cols-4,
  .case-gallery-row.uneven-3 { grid-template-columns: 1fr 1fr; }
  .construction-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .case-gallery-row.cols-2,
  .case-gallery-row.cols-3,
  .case-gallery-row.cols-4,
  .case-gallery-row.uneven-3 { grid-template-columns: 1fr; }
  .docs-grid, .construction-grid { grid-template-columns: 1fr 1fr; }
}
