/* ============================================
   ТОКЕНЫ ДИЗАЙНА
   ============================================ */
:root {
  --cream: #F5EFE1;
  --cream-soft: #ECE3CD;
  --ink: #1D1A14;
  --ink-soft: #5C5847;
  --olive: #4B5A3D;
  --olive-dark: #2E3925;
  --mustard: #C89B3C;
  --line: rgba(29, 26, 20, 0.14);
  --line-light: rgba(245, 239, 225, 0.2);
  --white: #FFFDF7;

  --font-display: 'PT Serif', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-s: 8px;
  --radius-m: 20px;
  --radius-l: 32px;
  --container-w: 1220px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--mustard);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================
   КНОПКИ
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--olive-dark); }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--cream); }

.btn-outline {
  background: transparent;
  color: var(--olive-dark);
  border-color: var(--olive);
  padding: 13px 24px;
  font-size: 14.5px;
}
.btn-outline:hover { background: var(--olive); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 239, 225, 0.5);
  padding: 13px 24px;
  font-size: 14.5px;
}
.btn-ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.btn-light {
  background: var(--cream);
  color: var(--ink);
}
.btn-light:hover { background: var(--mustard); color: var(--ink); }

.link-inline {
  display: inline-block;
  margin-top: 20px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
}
.link-inline:hover { color: var(--olive-dark); border-color: var(--olive-dark); }

/* ============================================
   ШАПКА / НАВИГАЦИЯ
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 225, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
}

.nav-desktop ul { list-style: none; display: flex; gap: 36px; margin: 0; padding: 0; }

.nav-desktop a {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}
.nav-desktop a:hover { color: var(--ink); }
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--mustard);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-desktop a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile { display: none; border-top: 1px solid var(--line); background: var(--cream); }
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; margin: 0; padding: 8px 28px 20px; }
.nav-mobile li a { display: block; padding: 14px 0; font-weight: 700; font-size: 18px; border-bottom: 1px solid var(--line); }

/* ============================================
   HERO
   ============================================ */
.hero { padding-top: 56px; padding-bottom: 0; overflow: hidden; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: end;
}

.hero-kicker {
  position: absolute;
  top: -18px;
  left: 28px;
  z-index: 0;
  display: flex;
  flex-direction: column;
  line-height: 0.82;
  pointer-events: none;
  user-select: none;
}
.hero-kicker span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 8.4vw, 128px);
  color: var(--cream-soft);
  letter-spacing: -0.01em;
}

.hero-copy { position: relative; z-index: 1; padding-bottom: 56px; }

.eyebrow {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive-dark);
  margin: 0 0 18px;
}

.hero-title {
  font-size: clamp(44px, 6.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18.5px;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 0 16px;
}

.hero-tags {
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 700;
  margin: 0 0 34px;
}
.hero-tags span { color: var(--mustard); margin: 0 5px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-photo {
  position: relative;
  z-index: 1;
  align-self: end;
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 60px -24px rgba(29, 26, 20, 0.4);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-photo-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(29, 26, 20, 0.6);
  backdrop-filter: blur(6px);
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 13px 7px 10px;
  border-radius: 999px;
}
.hero-photo-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: #8FCB6E; display: inline-block; }

/* ============================================
   ЛЕНТА С ЦИФРАМИ (MARQUEE)
   ============================================ */
.proof-strip {
  background: var(--ink);
  color: var(--cream);
  padding: 18px 0;
  margin-top: 56px;
  overflow: hidden;
}

.marquee { width: 100%; overflow: hidden; }

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  animation: marquee 160s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  flex-shrink: 0;
}

.marquee-track span[aria-hidden] { color: var(--mustard); font-style: normal; }

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}

/* ============================================
   СЕКЦИИ: ОБЩЕЕ
   ============================================ */
section { padding: 88px 0; }

.section-index {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--mustard);
  margin-bottom: 6px;
}
.section-index--light { color: var(--mustard); }

.section-head { margin-bottom: 48px; display: flex; align-items: baseline; gap: 18px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 44px); }

/* ============================================
   ОБО МНЕ
   ============================================ */
.about { border-top: 1px solid var(--line); padding-top: 64px; }

.about-grid { display: grid; grid-template-columns: 90px 1fr; gap: 24px; }

.about-lead {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.35;
  color: var(--olive-dark);
  margin: 0 0 28px;
  max-width: 24ch;
}

.about-facts p { margin: 0 0 16px; color: var(--ink-soft); font-size: 16.5px; max-width: 58ch; }
.about-facts p:last-child { margin-bottom: 0; }

/* ============================================
   ОВЕРСАЙЗ ТИПОГРАФИЧЕСКИЙ РАЗДЕЛИТЕЛЬ
   ============================================ */
.poster-divider { padding: 40px 0 60px; }

.poster-words {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 0.86;
}

.poster-word {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(56px, 12vw, 156px);
  letter-spacing: -0.02em;
  color: var(--ink);
  -webkit-text-stroke: 1.5px var(--ink);
}
.poster-word:nth-child(1) { color: var(--olive); -webkit-text-stroke: 0; align-self: flex-start; }
.poster-word:nth-child(3) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); align-self: flex-end; }

.poster-word--italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--mustard) !important;
  -webkit-text-stroke: 0 !important;
  align-self: center;
  font-size: clamp(48px, 10vw, 132px);
}

/* ============================================
   ПРОЕКТЫ
   ============================================ */
.projects { border-top: 1px solid var(--line); }

.case {
  border-radius: var(--radius-l);
  padding: 48px;
  margin-bottom: 28px;
  scroll-margin-top: 96px;
}
.case:last-child { margin-bottom: 0; }

.case-top { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 22px; }
.case-top--stack { flex-direction: row; gap: 16px; align-items: center; margin-bottom: 10px; }

.case-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 40px;
  line-height: 1;
  color: rgba(245, 239, 225, 0.4);
  flex-shrink: 0;
}
.case-number--dark { color: var(--mustard); }

.case-period {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(245, 239, 225, 0.65);
  margin: 0 0 8px;
}
.case-period--dark { color: var(--ink-soft); }

.case h3, .case-title-dark {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 6px;
}

.case-role {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: rgba(245, 239, 225, 0.85);
  margin: 0;
}
.case-role--dark { color: var(--olive-dark); }

.case-desc {
  color: rgba(245, 239, 225, 0.82);
  font-size: 16px;
  max-width: 68ch;
  margin: 0 0 30px;
}
.case-desc--dark { color: var(--ink-soft); }

/* --- ГК СТРОЙПРОЕКТ: тёмная карточка --- */
.case--dark {
  background: var(--ink);
  color: var(--cream);
}
.case--dark h3 { color: var(--cream); }

.workflow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 6px;
  padding: 26px 0;
  border-top: 1px solid rgba(245, 239, 225, 0.18);
  border-bottom: 1px solid rgba(245, 239, 225, 0.18);
  margin-bottom: 22px;
}
.workflow [role="listitem"] {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(13px, 1.6vw, 16px);
  letter-spacing: 0.02em;
  color: rgba(245, 239, 225, 0.7);
  white-space: nowrap;
}
.workflow-final {
  color: var(--mustard) !important;
  font-family: var(--font-display) !important;
  font-style: italic;
  font-weight: 700 !important;
  font-size: clamp(16px, 2vw, 20px) !important;
}
.workflow-arrow { color: var(--mustard); font-size: 15px; }

.workflow--light {
  border-color: var(--line);
}
.workflow--light [role="listitem"] { color: var(--ink-soft); }
.workflow-final--light { color: var(--olive-dark) !important; }

.case-note {
  font-size: 14.5px;
  color: rgba(245, 239, 225, 0.6);
  margin: 0 0 30px;
}

/* --- ЛИЧНЫЙ БЛОГ: светлая карточка + коллаж --- */
.case--light { background: var(--white); border: 1px solid var(--line); }

.collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}
.collage-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  transition: transform 0.25s ease;
}
.collage-item--tall { aspect-ratio: 4 / 6; }
.collage-item:hover { transform: translateY(-6px); }
.collage-item img { width: 100%; height: 100%; object-fit: cover; }
.collage-item figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(29, 26, 20, 0.55);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.collage-item figcaption strong {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--mustard);
}

/* --- TROPIC TALES: split screen --- */
.case--split {
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.split-media { aspect-ratio: auto; height: 100%; min-height: 420px; overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.split-media:hover img { transform: scale(1.04); }
.split-body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }

.platform-tags {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--olive-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 18px;
}
.platform-tags span { color: var(--mustard); margin: 0 4px; }

.case-result-inline {
  font-size: 15.5px;
  color: var(--ink-soft);
  background: var(--cream-soft);
  border-radius: var(--radius-s);
  padding: 14px 18px;
  margin: 0 0 26px;
}
.case-result-inline strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--olive-dark);
  margin-right: 6px;
}

/* --- AI VIDEO: минимализм --- */
.case--minimal { background: var(--cream-soft); }

.tool-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0 0 30px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}
.tool-list li {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
}

/* ============================================
   НАВЫКИ
   ============================================ */
.skills { border-top: 1px solid var(--line); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
}

.skill-block { background: var(--white); padding: 34px 32px; }

.skill-block h3 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mustard);
  font-family: var(--font-body);
  margin-bottom: 12px;
}

.skill-block p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
}

/* ============================================
   КОНТАКТЫ
   ============================================ */
.contact { background: var(--ink); color: var(--cream); border-top: 1px solid var(--line); }

.contact-inner { text-align: center; padding: 20px 0 10px; }

.contact-title {
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.98;
  margin: 8px 0 24px;
  color: var(--cream);
}

.contact-text {
  color: rgba(245, 239, 225, 0.72);
  font-size: 18px;
  max-width: 46ch;
  margin: 0 auto 40px;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 30px;
}

.contact-secondary {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 700;
  color: rgba(245, 239, 225, 0.65);
}
.contact-secondary a:hover { color: var(--mustard); }

/* ============================================
   ФУТЕР
   ============================================ */
.site-footer { padding: 32px 0 48px; background: var(--ink); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: rgba(245, 239, 225, 0.5);
}
.footer-inner a { font-weight: 700; color: var(--mustard); }

/* ============================================
   АДАПТИВ: ПЛАНШЕТ
   ============================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-kicker { position: static; margin-bottom: 12px; flex-direction: row; flex-wrap: wrap; gap: 0 14px; }
  .hero-kicker span { font-size: clamp(30px, 8vw, 44px); }
  .hero-copy { padding-bottom: 32px; order: 2; }
  .hero-photo { order: 1; margin: 0 auto; max-width: 420px; width: 100%; border-radius: var(--radius-l); }

  .about-grid { grid-template-columns: 1fr; }

  .case--split { grid-template-columns: 1fr; }
  .split-media { min-height: 320px; }

  .collage { grid-template-columns: repeat(2, 1fr); }

  .skills-grid { grid-template-columns: 1fr; }
}

/* ============================================
   АДАПТИВ: МОБИЛЬНЫЙ
   ============================================ */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }

  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }

  section { padding: 60px 0; }

  .case { padding: 30px 24px; border-radius: var(--radius-m); }
  .split-body { padding: 30px 24px; }

  .workflow { flex-direction: column; align-items: flex-start; }
  .workflow-arrow { transform: rotate(90deg); margin: 2px 0; }

  .contact-buttons { flex-direction: column; }
  .contact-buttons .btn { width: 100%; }

  .footer-inner { flex-direction: column; gap: 10px; text-align: center; }

  .poster-word { font-size: clamp(40px, 16vw, 70px); }
  .poster-word--italic { font-size: clamp(34px, 13vw, 56px); }
}
