/* ====================================================================
   ЛАНДШАФТНОЕ БЮРО ФЁДОРА БЕЛЕНЬКОГО
   Design system: cinematic photography · forest green · warm stone
   Type: Cormorant Garamond (display) + Jost (interface)
==================================================================== */

/* ----------------------------------------------------------------
   0. Tokens & reset
---------------------------------------------------------------- */
:root {
  --forest:   #152116;
  --forest-2: #1b2a1d;      /* slightly lifted green for layering   */
  --stone:    #F4EFE7;      /* light text on dark backgrounds        */
  --sand:     #DDD3C4;
  --ivory:    #F8F4EC;      /* light text on dark backgrounds        */
  --paper:    #E7E0D0;      /* unified page tone — all light scenes  */
  --paper-2:  #E2DAC8;      /* faintly deeper paper for quiet rhythm */
  --charcoal: #2A2A2A;
  --gold:     #C9A26B;      /* sunlight pulled from the photography */
  --gold-soft:#D8BC93;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui:      "Jost", "Segoe UI", sans-serif;

  --container: 1520px;
  --gutter: 64px;

  --ease-out: cubic-bezier(.22, .61, .21, 1);
  --dur-slow: 1.2s;
}

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

/* Screen-reader / SEO text: present for crawlers and assistive tech,
   invisible visually — does not affect the layout in any way */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--stone);
  background: var(--forest);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

::selection { background: var(--gold-soft); color: var(--forest); }

.container {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ----------------------------------------------------------------
   1. Shared atoms — buttons, links, eyebrows, frames
---------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  padding: 19px 46px;
  /* keep the fade short so the text never passes through a low-contrast
     mid-point while the background inverts light↔dark on hover */
  transition: background-color .22s var(--ease-out),
              color .22s var(--ease-out),
              border-color .22s var(--ease-out);
}

.btn-outline {
  border: 1px solid rgba(248, 244, 236, .65);
  color: var(--ivory);
  background: transparent;
}
.btn-outline:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--forest);
}

.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(42, 42, 42, .35);
  transition: color .45s var(--ease-out), border-color .45s var(--ease-out);
}
.text-link .text-link-arrow {
  font-family: var(--font-display);
  font-size: 19px;
  transition: transform .45s var(--ease-out);
}
.text-link:hover { color: var(--gold); border-color: var(--gold); }
.text-link:hover .text-link-arrow { transform: translateX(8px); }

.text-link-light { color: var(--ivory); border-color: rgba(248,244,236,.4); }
.text-link-light:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

/* numbered section labels — the connective tissue of the whole page */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 88px;
}
.eyebrow-index {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--gold);
  letter-spacing: .1em;
}
.eyebrow-rule {
  width: 72px;
  height: 1px;
  background: currentColor;
  opacity: .3;
}
.eyebrow-text {
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
  opacity: .75;
}
/* whole page is dark now — eyebrows read light by default */
.section-eyebrow { color: var(--stone); }
.section-eyebrow-light { color: var(--stone); }

/* photography frame with slow zoom on hover */
.img-frame {
  overflow: hidden;
  background: var(--forest);
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 2.2s var(--ease-out), opacity .6s ease;
  will-change: transform;
}
a:hover .img-frame img,
figure:hover .img-frame img { transform: scale(1.08); }

/* ----------------------------------------------------------------
   2. Reveal-on-scroll & parallax primitives
---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(46px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal[data-delay="1"] { transition-delay: .15s; }
.reveal[data-delay="2"] { transition-delay: .3s;  }
.reveal[data-delay="3"] { transition-delay: .45s; }
.reveal[data-delay="4"] { transition-delay: .6s;  }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

[data-parallax] { will-change: transform; }

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.kenburns      { animation: kenburns 18s var(--ease-out) forwards; }
.kenburns-slow { animation: kenburns 26s linear infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .kenburns, .kenburns-slow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ----------------------------------------------------------------
   3. Header — transparent, nearly invisible interface
---------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color .6s ease, backdrop-filter .6s ease;
}
.site-header.is-scrolled {
  background: rgba(21, 33, 22, .82);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1840px;
  margin: 0 auto;
  padding: 30px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  transition: padding .6s ease;
}
.site-header.is-scrolled .header-inner { padding-top: 16px; padding-bottom: 16px; }

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ivory);
}
.brand-mark { height: 46px; width: auto; flex: none; display: block; }
.brand-mark-letters {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .06em;
  fill: currentColor;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: .04em;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: .38em;
  text-transform: uppercase;
  opacity: .65;
}

.main-nav { display: flex; gap: 44px; }
.main-nav a {
  position: relative;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(248, 244, 236, .82);
  padding: 6px 0;
  transition: color .4s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.main-nav a:hover { color: var(--ivory); }
.main-nav a:hover::after { transform: scaleX(1); }

/* ---- services dropdown ------------------------------------------- */
.nav-item { position: relative; display: flex; align-items: center; gap: 7px; }

.nav-caret {
  width: 14px;
  height: 14px;
  padding: 0;
  border: none;
  background: none;
  pointer-events: none; /* desktop: purely a visual cue, hover opens the panel */
  position: relative;
}
.nav-caret::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 6px;
  height: 6px;
  border-right: 1px solid rgba(248, 244, 236, .6);
  border-bottom: 1px solid rgba(248, 244, 236, .6);
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .4s var(--ease-out), border-color .4s ease;
}
.nav-item.has-dropdown:hover .nav-caret::before,
.nav-item.open .nav-caret::before {
  transform: rotate(225deg) translate(-1px, -1px);
  border-color: var(--gold-soft);
}

.nav-item .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  min-width: 340px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 20px;
  background: rgba(14, 22, 15, .97);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(244, 239, 231, .1);
  border-radius: 4px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), visibility .4s;
  z-index: 60;
}
.nav-item .dropdown::before { /* invisible bridge so the hover doesn't drop */
  content: "";
  position: absolute;
  top: -18px; left: 0; right: 0; height: 18px;
}
/* desktop only: hover/focus opens the floating panel. Scoped to a media
   query so the tapped (focused) "Услуги" link on mobile can't re-apply
   the desktop translateX(-50%) to the inline accordion. */
@media (min-width: 1025px) {
  .nav-item.has-dropdown:hover .dropdown,
  .nav-item.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(10px);
  }
}
.nav-item .dropdown a {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: none;
  color: rgba(244, 239, 231, .72);
  padding: 10px 12px;
  border-radius: 3px;
  transition: color .35s ease, background-color .35s ease;
}
.nav-item .dropdown a::after { display: none; }
.nav-item .dropdown a:hover { color: var(--ivory); background: rgba(244, 239, 231, .05); }
.nav-item .dropdown .dropdown-all {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 15px 12px 4px;
  border-top: 1px solid rgba(244, 239, 231, .1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.nav-item .dropdown .dropdown-all:hover { background: transparent; color: var(--ivory); }

/* mobile-menu-only extras (injected into #mainNav by JS) */
.nav-mobile-logo,
.nav-mobile-social { display: none; }

.btn-header { padding: 13px 32px; font-size: 11.5px; }

/* hamburger — hidden on desktop, revealed on tablet/mobile */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform .45s var(--ease-out), opacity .3s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ----------------------------------------------------------------
   4. Hero — shared cinematic base
---------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  color: var(--ivory);
}

.hero-media, .featured-media, .cta-media {
  position: absolute;
  inset: -8% 0;
  z-index: 0;
}
.hero-media img, .featured-media img, .cta-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-veil { position: absolute; inset: 0; z-index: 1; }
.hero-veil-left {
  background:
    linear-gradient(90deg,
      rgba(13, 20, 14, .82) 0%,
      rgba(13, 20, 14, .55) 34%,
      rgba(13, 20, 14, .12) 62%,
      rgba(13, 20, 14, 0) 80%),
    linear-gradient(180deg,
      rgba(13, 20, 14, 0) 50%,
      rgba(13, 20, 14, .4) 74%,
      var(--forest) 100%);
}
.hero-veil-center {
  background:
    radial-gradient(ellipse at 50% 56%, rgba(13,20,14,.25) 0%, rgba(13,20,14,.62) 100%),
    linear-gradient(180deg,
      rgba(13,20,14,0) 54%,
      rgba(13,20,14,.5) 78%,
      var(--forest) 100%);
}

/* scroll hint */
.scroll-hint {
  position: absolute;
  left: 48px;
  bottom: 44px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(248,244,236,.75);
}
.scroll-hint-center { left: 50%; transform: translateX(-50%); }
.scroll-hint-label {
  font-size: 11px;
  letter-spacing: .4em;
  text-transform: uppercase;
}
.scroll-hint-line {
  position: relative;
  width: 1px;
  height: 64px;
  background: rgba(248,244,236,.28);
  overflow: hidden;
}
.scroll-hint-line::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--gold-soft);
  animation: scrollDrop 2.4s var(--ease-out) infinite;
}
@keyframes scrollDrop {
  0%   { top: -40%; }
  70%  { top: 110%; }
  100% { top: 110%; }
}

/* ------ HERO OPTION 1 : editorial composition ------------------ */
.hero-1-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1840px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-1-left { max-width: 860px; padding-top: 40px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 6.6vw, 122px);
  line-height: 1.04;
  letter-spacing: .01em;
}
.hero-line { display: block; overflow: hidden; }
.hero-line span {
  display: block;
  transform: translateY(110%);
  animation: heroRise 1.3s var(--ease-out) forwards;
}
.hero-line:nth-child(1) span { animation-delay: .35s; }
.hero-line:nth-child(2) span { animation-delay: .5s;  }
.hero-line:nth-child(3) span { animation-delay: .65s; }
@keyframes heroRise { to { transform: translateY(0); } }

.hero-divider {
  width: 96px;
  height: 1px;
  background: var(--gold-soft);
  margin: 44px 0 30px;
  transform-origin: left;
  animation: dividerGrow 1.1s var(--ease-out) .95s backwards;
}
@keyframes dividerGrow { from { transform: scaleX(0); } }

.hero-subtitle {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: .04em;
  line-height: 1.9;
  color: rgba(248, 244, 236, .8);
  margin-bottom: 46px;
  animation: heroFade 1.4s ease 1.1s backwards;
}
.hero-1-left .text-link {
  color: var(--ivory);
  border-color: rgba(248,244,236,.4);
  animation: heroFade 1.4s ease 1.25s backwards;
}
.hero-1-left .text-link:hover { color: var(--gold-soft); border-color: var(--gold-soft); }
@keyframes heroFade { from { opacity: 0; } }

/* large artistic emblem — part of the artwork */
.hero-1-right {
  flex: none;
  padding-right: 3vw;
  animation: heroFade 2.2s ease .8s backwards;
}
.hero-emblem {
  width: clamp(240px, 19vw, 360px);
  color: rgba(248, 244, 236, .92);
  filter: drop-shadow(0 2px 30px rgba(13, 20, 14, .35));
}
.hero-emblem-initials {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 400;
  letter-spacing: .04em;
  fill: currentColor;
}
.hero-emblem-initials-lg { font-size: 118px; }
.hero-emblem-word {
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: .5em;
  fill: currentColor;
  opacity: .8;
}
.hero-emblem-word-sm { font-size: 11px; opacity: .5; }

/* ------ HERO OPTION 2 : pure cinema ----------------------------- */
.hero-2-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 30px;
}
/* centred logo — the whole opening shot */
.hero-logo {
  width: clamp(280px, 34vw, 520px);
  height: auto;
  filter: drop-shadow(0 2px 40px rgba(13, 20, 14, .45));
  animation: heroFade 2.4s ease .3s backwards;
}

.hero-tagline {
  margin-top: 30px;
  max-width: 34ch;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(244, 239, 231, .85);
  text-shadow: 0 1px 26px rgba(13, 20, 14, .55);
  animation: heroFade 2.4s ease .9s backwards;
}

/* ----------------------------------------------------------------
   5. Manifesto — dark textured editorial spread
---------------------------------------------------------------- */
.manifesto {
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(201,162,107,.14) 0%, rgba(201,162,107,0) 46%),
    radial-gradient(90% 80% at 12% 100%, rgba(27,42,29,.9) 0%, rgba(21,33,22,0) 60%),
    var(--forest);
  padding: 220px 0 200px;
}
/* faint organic texture over the base */
.manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("https://images.unsplash.com/photo-1523712999610-f77fbcfc3843?auto=format&fit=crop&w=1400&q=55")
              center / cover no-repeat;
  opacity: .05;
  pointer-events: none;
}

.manifesto-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-rows: auto auto;
  column-gap: 120px;
  row-gap: 110px;
}

.manifesto-text { grid-column: 1; grid-row: 1; padding-top: 34px; }

.manifesto-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 3.6vw, 66px);
  line-height: 1.18;
  color: var(--ivory);
  margin-bottom: 54px;
}
.manifesto-title em {
  font-style: italic;
  color: var(--gold-soft);
}

.manifesto-copy {
  max-width: 480px;
  font-size: 17px;
  line-height: 2;
  color: rgba(244, 239, 231, .74);
  margin-bottom: 44px;
}

.manifesto-signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  color: var(--ivory);
}
.manifesto-signature::before {
  content: "";
  display: inline-block;
  width: 54px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 20px;
}

.manifesto-photo figcaption {
  margin-top: 18px;
  font-size: 11.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(244, 239, 231, .5);
}

.manifesto-photo-tall { grid-column: 2; grid-row: 1 / span 2; }
.manifesto-photo-tall .img-frame { height: 118vh; max-height: 1060px; }

.manifesto-photo-wide {
  grid-column: 1;
  grid-row: 2;
  width: 86%;
}
.manifesto-photo-wide .img-frame { aspect-ratio: 4 / 3; }

/* ----------------------------------------------------------------
   6. Services — deep forest, list controls the photography
---------------------------------------------------------------- */
.services {
  background: var(--forest);
  color: var(--stone);
  padding: 220px 0 200px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 96px;
  align-items: start;
}
.services-listcol { min-width: 0; }
.services-all { margin-top: 44px; }

.service-item { border-top: 1px solid rgba(244, 239, 231, .14); }
.service-item:last-child { border-bottom: 1px solid rgba(244, 239, 231, .14); }

.service-item a {
  display: grid;
  grid-template-columns: 58px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: baseline;
  padding: 26px 10px;
  transition: padding-left .6s var(--ease-out);
}
.service-item a:hover { padding-left: 24px; }

.service-index {
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--gold-soft);
  opacity: .55;
  transition: opacity .5s ease;
}

.service-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2vw, 36px);
  line-height: 1.2;
  color: rgba(244, 239, 231, .58);
  transition: color .55s ease;
}

.service-note {
  grid-column: 2;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(244, 239, 231, .34);
  margin-top: 10px;
  transition: color .55s ease;
}

.service-item.is-active .service-name,
.service-item a:hover .service-name { color: var(--ivory); }
.service-item.is-active .service-note,
.service-item a:hover .service-note { color: var(--gold-soft); }
.service-item.is-active .service-index { opacity: 1; }

/* crossfading photography column — stays in view as the list scrolls */
.services-visual { position: sticky; top: 116px; }
.services-visual-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 780px;
  overflow: hidden;
}
.services-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s var(--ease-out), transform 6s var(--ease-out);
}
.services-image.is-active { opacity: 1; transform: scale(1); }

.services-visual-caption {
  display: block;
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(244,239,231,.35);
}

/* ----------------------------------------------------------------
   7. Featured project — photography dominates
---------------------------------------------------------------- */
.featured {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--ivory);
}
.featured-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    var(--forest) 0%,
    rgba(21, 33, 22, 0) 24%,
    rgba(13, 20, 14, 0) 50%,
    rgba(13, 20, 14, .55) 78%,
    #111b13 100%);
}
.featured-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 110px;
}
.featured-content .section-eyebrow { margin-bottom: 46px; }

.featured-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 5.4vw, 100px);
  line-height: 1.05;
  margin-bottom: 26px;
}
.featured-meta {
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(248,244,236,.7);
  margin-bottom: 46px;
}

/* ----------------------------------------------------------------
   8. Portfolio — magazine spread, uneven rhythm
---------------------------------------------------------------- */
.portfolio {
  background: #111b13; /* a touch deeper than forest — the gallery recedes */
  padding: 200px 0 170px;
}
/* faint atmospheric photograph behind the grid */
.portfolio-bg { position: absolute; inset: 0; z-index: 0; }
.portfolio-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .13;
  filter: saturate(.8);
}
.portfolio::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #111b13 0%, rgba(17,27,19,0) 22%, rgba(17,27,19,0) 78%, #111b13 100%);
}

.portfolio-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 3.4vw, 62px);
  line-height: 1.2;
  color: var(--ivory);
  max-width: 760px;
  margin-bottom: 76px;
}
.portfolio-title em { font-style: italic; color: var(--gold-soft); }

.portfolio-grid {
  column-count: 3;
  column-gap: 34px;
}
@media (max-width: 1024px) { .portfolio-grid { column-count: 2; } }

.work { display: block; break-inside: avoid; margin: 0 0 40px; }
.work-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 239, 231, .18);
}
.work-name {
  font-family: var(--font-display);
  font-size: 27px;
  color: var(--ivory);
  transition: color .45s ease;
}
.work:hover .work-name { color: var(--gold-soft); }
.work-meta {
  font-size: 11.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(244, 239, 231, .45);
  white-space: nowrap;
}

/* masonry rhythm — varied heights keep every column filled */
.work-a .img-frame { aspect-ratio: 4 / 5; }
.work-b .img-frame { aspect-ratio: 3 / 4; }
.work-c .img-frame { aspect-ratio: 4 / 3; }
.work-d .img-frame { aspect-ratio: 3 / 4; }
.work-e .img-frame { aspect-ratio: 4 / 5; }

.portfolio-more { margin-top: 92px; text-align: center; }

/* ----------------------------------------------------------------
   9. Process — dark timeline with connected nodes
---------------------------------------------------------------- */
.process {
  background:
    radial-gradient(88% 70% at 50% 0%, rgba(27, 42, 29, .75) 0%, rgba(21, 33, 22, 0) 62%),
    var(--forest);
  padding: 180px 0 200px;
}

.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
/* baseline that runs the whole width */
.process-track::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(244, 239, 231, .16);
  z-index: 1;
}
/* gold progress that draws across when the section scrolls in */
.process-track::after {
  content: "";
  position: absolute;
  top: 52px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  z-index: 1;
  transition: width 1.9s var(--ease-out), height 1.9s var(--ease-out);
}
.process-track.is-visible::after { width: 100%; }

.process-step {
  position: relative;
  padding: 82px 30px 0 0;
}
/* node marker sitting on the baseline */
.process-step::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--forest);
  border: 1px solid rgba(244, 239, 231, .4);
  transform: translateY(-50%);
  z-index: 2;
  transition: background .5s ease, border-color .5s ease, box-shadow .6s ease;
}
.process-step.is-visible::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 5px rgba(201, 162, 107, .12);
}
.process-step:nth-child(2)::before { transition-delay: .12s; }
.process-step:nth-child(3)::before { transition-delay: .24s; }
.process-step:nth-child(4)::before { transition-delay: .36s; }
.process-step:nth-child(5)::before { transition-delay: .48s; }

.process-num {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 23px;
  color: var(--gold);
}
.process-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 31px;
  color: var(--ivory);
  margin-bottom: 16px;
}
.process-text {
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(244, 239, 231, .6);
  max-width: 230px;
}

/* ----------------------------------------------------------------
   10. Testimonials — dark, two quiet voices
---------------------------------------------------------------- */
.testimonials {
  background: var(--forest);
  color: var(--stone);
  padding: 220px 0 200px;
}

.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 140px;
}

.quote { max-width: 560px; }
.quote-offset { margin-top: 170px; }

.quote-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2vw, 34px);
  font-style: italic;
  line-height: 1.5;
  color: var(--ivory);
  margin-bottom: 46px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 22px;
}
.quote-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(.85);
}
.quote-initial {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--forest);
  background: var(--gold-soft);
}
.quote-name {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 15px;
  letter-spacing: .06em;
}
.quote-role {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(244, 239, 231, .45);
}

/* ----------------------------------------------------------------
   11. Final CTA — one atmosphere, one button
---------------------------------------------------------------- */
.cta {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--ivory);
}
.cta-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(13,20,14,.22) 0%, rgba(13,20,14,.66) 100%),
    linear-gradient(180deg,
      var(--forest) 0%,
      rgba(21,33,22,0) 22%,
      rgba(13,20,14,0) 68%,
      #0e160f 100%);
}
.cta-content { position: relative; z-index: 2; padding: 0 40px; }

.cta-eyebrow {
  font-size: 12px;
  letter-spacing: .44em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 34px;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 4.6vw, 86px);
  line-height: 1.14;
  margin-bottom: 64px;
}
.cta-title em {
  font-style: italic;
  color: var(--gold-soft);
}
.btn-cta { padding: 22px 62px; }

/* ----------------------------------------------------------------
   12. Footer
---------------------------------------------------------------- */
.site-footer {
  background: #0e160f; /* one shade deeper than forest — the page settles */
  color: var(--stone);
  padding: 130px 0 54px;
}

/* menu (left) · big logo (centre) · contacts (right) */
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 90px;
  border-bottom: 1px solid rgba(244, 239, 231, .1);
}
.footer-nav      { order: 1; justify-self: start; }
.footer-brand    { order: 2; justify-self: center; }
.footer-contacts { order: 3; justify-self: end; }

/* logo slot — big centred mark (img/logo.png) */
.footer-logo-slot {
  width: min(480px, 38vw);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo-img { display: block; max-width: 100%; height: auto; }
.footer-logo-img--mini { display: none; } /* shown on mobile instead of the full mark */
.footer-logo-caption {
  display: none; /* desktop: the large logo carries the wordmark */
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.16;
  color: var(--ivory);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}
.footer-nav a {
  position: relative;
  padding-left: 0;
  font-size: 16px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(244, 239, 231, .66);
  transition: padding-left .5s var(--ease-out), color .45s ease;
}
.footer-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--gold-soft);
  transform: translateY(-50%);
  transition: width .5s var(--ease-out);
}
.footer-nav a:hover { padding-left: 34px; color: var(--gold-soft); }
.footer-nav a:hover::before { width: 24px; }

.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 18px;
}
.footer-contacts a {
  font-family: var(--font-display);
  font-size: 23px;
  color: var(--ivory);
  transition: color .4s ease;
}
.footer-contacts a:hover { color: var(--gold-soft); }
.footer-contacts span {
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(244,239,231,.4);
}

/* messengers — compact pill links with small glyphs */
.footer-messengers {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.footer-messengers-label {
  display: block;
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(244, 239, 231, .38);
}
.msgr-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 340px;
}
.footer-messengers .msgr {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .1em;
  color: rgba(244, 239, 231, .72);
  border: 1px solid rgba(244, 239, 231, .16);
  border-radius: 100px;
  transition: color .22s ease, border-color .22s ease,
              background-color .22s ease, transform .4s var(--ease-out);
}
.footer-messengers .msgr-icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
}
/* the pill's label must follow the link colour on hover — otherwise the
   generic `.footer-contacts span` rule keeps it faint over the light hover fill */
.footer-messengers .msgr span { color: inherit; }
.footer-messengers .msgr:hover {
  color: var(--forest);
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 40px;
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(244,239,231,.35);
}
.footer-legal { transition: color .4s ease; }
.footer-legal:hover { color: var(--gold-soft); }

/* ----------------------------------------------------------------
   12b. One continuous dark canvas.
        Every content section is now a shade of forest, so there are no
        light/dark cuts left to bridge. Sections carry their own texture,
        photography or decorative corner assets instead of seam gradients.
        Photographic sections (hero, featured, cta) melt via their veils.
---------------------------------------------------------------- */
.manifesto, .services, .portfolio, .process, .testimonials {
  position: relative;
  overflow: hidden; /* contains the corner decor / background photography */
}

/* ---- reusable corner decor slots (top-right, bottom-left) ---------
   Drop an <img src="…"> (SVG or PNG) inside .deco to replace the
   default botanical mark. Purely decorative, sits behind content. */
.section-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.deco {
  position: absolute;
  width: clamp(240px, 26vw, 480px);
  aspect-ratio: 1 / 1;
  background:
    center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23F4EFE7' stroke-width='0.5'%3E%3Ccircle cx='100' cy='100' r='97'/%3E%3Ccircle cx='100' cy='100' r='68'/%3E%3Ccircle cx='100' cy='100' r='2.4' fill='%23F4EFE7' stroke='none'/%3E%3Cpath d='M100 3 V32 M100 168 V197 M3 100 H32 M168 100 H197'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .07;
}
.deco img, .deco svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.deco-tr { top: -6%; right: -4%; }
.deco-bl { bottom: -6%; left: -4%; transform: rotate(180deg); }

/* ----------------------------------------------------------------
   12c. Sub-pages (services index & single service) — same language
---------------------------------------------------------------- */
.subpage-hero {
  position: relative;
  min-height: 66vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--ivory);
}
.subpage-hero-media { position: absolute; inset: -8% 0; z-index: 0; }
.subpage-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.subpage-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(13, 20, 14, .68) 0%,
    rgba(13, 20, 14, .28) 42%,
    rgba(13, 20, 14, .6) 72%,
    var(--forest) 100%);
}
.subpage-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 92px;
}
.subpage-hero-inner .section-eyebrow { margin-bottom: 40px; }
.subpage-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(58px, 7vw, 118px);
  line-height: 1;
  margin-bottom: 24px;
}
.subpage-title em { font-style: italic; color: var(--gold-soft); }
.subpage-lead {
  max-width: 640px;
  font-size: 17px;
  line-height: 1.9;
  color: rgba(244, 239, 231, .78);
}

/* alternating editorial rows for the ten services */
.services-index { background: var(--forest); padding: 150px 0 60px; }
.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 84px;
  align-items: center;
  padding: 96px 0;
  border-top: 1px solid rgba(244, 239, 231, .1);
  scroll-margin-top: 120px;
}
.svc-row:first-child { border-top: none; padding-top: 20px; }
.svc-row:nth-child(even) .svc-media { order: 2; }
.svc-media .img-frame { aspect-ratio: 4 / 3; }
.svc-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
}
.svc-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 3vw, 52px);
  line-height: 1.08;
  color: var(--ivory);
  margin: 14px 0 22px;
}
.svc-desc {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(244, 239, 231, .72);
  margin-bottom: 28px;
}
.svc-points { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 34px; }
.svc-points li {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244, 239, 231, .62);
  border: 1px solid rgba(244, 239, 231, .16);
  border-radius: 100px;
  padding: 9px 16px;
}

/* ---- single service page --------------------------------------- */
.svc-lead-section { background: var(--forest); padding: 150px 0 24px; }
.svc-lead {
  max-width: 900px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 44px);
  line-height: 1.4;
  color: var(--ivory);
}
.svc-lead em { font-style: italic; color: var(--gold-soft); }

.svc-detail { background: var(--forest); padding: 90px 0; }
.svc-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 84px;
  align-items: center;
}
.svc-detail-media .img-frame { aspect-ratio: 4 / 5; }
.svc-detail-copy .section-eyebrow { margin-bottom: 40px; }
.svc-detail-copy p {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.95;
  color: rgba(244, 239, 231, .72);
  margin-bottom: 20px;
}

.svc-includes { background: #111b13; padding: 120px 0; }
.svc-includes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 70px;
  margin-top: 20px;
}
.svc-include {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 0;
  padding: 34px 0;
  border-top: 1px solid rgba(244, 239, 231, .12);
}
.svc-include-num {
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--gold-soft);
}
.svc-include h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  color: var(--ivory);
  margin-bottom: 10px;
}
.svc-include p { font-size: 14.5px; line-height: 1.75; color: rgba(244, 239, 231, .6); }

.svc-gallery { background: var(--forest); padding: 116px 0; }
.svc-gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.svc-gallery-grid a:nth-child(1) { grid-column: span 4; }
.svc-gallery-grid a:nth-child(1) .img-frame { aspect-ratio: 16 / 10; }
.svc-gallery-grid a:nth-child(2) { grid-column: span 2; }
.svc-gallery-grid a:nth-child(2) .img-frame { aspect-ratio: 3 / 4; }
.svc-gallery-grid a:nth-child(3) { grid-column: span 3; }
.svc-gallery-grid a:nth-child(4) { grid-column: span 3; }
.svc-gallery-grid a:nth-child(3) .img-frame,
.svc-gallery-grid a:nth-child(4) .img-frame { aspect-ratio: 16 / 11; }

/* Portrait gallery variant — for project pages with tall (phone) photos */
.svc-gallery-grid.is-portrait { grid-template-columns: repeat(3, 1fr); }
.svc-gallery-grid.is-portrait a:nth-child(n) { grid-column: span 1; }
.svc-gallery-grid.is-portrait a:nth-child(n) .img-frame { aspect-ratio: 3 / 4; }
@media (max-width: 640px) {
  .svc-gallery-grid.is-portrait { grid-template-columns: repeat(2, 1fr); }
  .svc-gallery-grid.is-portrait a:nth-child(n) .img-frame { aspect-ratio: 3 / 4; }
}

/* Landscape trio variant — three wide (phone) photos in one row */
.svc-gallery-grid.is-trio { grid-template-columns: repeat(3, 1fr); }
.svc-gallery-grid.is-trio a:nth-child(n) { grid-column: span 1; }
.svc-gallery-grid.is-trio a:nth-child(n) .img-frame { aspect-ratio: 4 / 3; }
@media (max-width: 640px) {
  .svc-gallery-grid.is-trio { grid-template-columns: 1fr; }
  .svc-gallery-grid.is-trio a:nth-child(n) .img-frame { aspect-ratio: 16 / 10; }
}

/* ----------------------------------------------------------------
   Learning band — «мы всё время учимся и растём» (homepage)
---------------------------------------------------------------- */
.learn { background: #16221a; padding: 130px 0 140px; color: var(--ivory); }
.learn-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 4vw, 66px);
  line-height: 1.12;
  color: var(--ivory);
  margin-top: 30px;
}
.learn-title em { font-style: italic; color: var(--gold-soft); }
.learn-intro {
  max-width: 620px;
  font-size: 17px;
  line-height: 1.95;
  color: rgba(244, 239, 231, .72);
  margin: 30px 0 66px;
}
.learn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.learn-card .img-frame { aspect-ratio: 3 / 4; margin-bottom: 20px; }
.learn-place {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  color: var(--ivory);
  margin-bottom: 10px;
}
.learn-place small {
  display: block;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 7px;
}
.learn-note { font-size: 14px; line-height: 1.75; color: rgba(244, 239, 231, .58); }

/* learn effects — index badges, hover zoom, gold underline, ghost number */
.learn { position: relative; overflow: hidden; }
.learn .container { position: relative; z-index: 1; }
.learn::before {
  content: "06";
  position: absolute; top: 24px; right: 3%;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(140px, 22vw, 360px); line-height: 1;
  color: rgba(216, 188, 147, .05);
  z-index: 0; pointer-events: none; user-select: none;
}
.learn-card { position: relative; }
.learn-card .img-frame { position: relative; overflow: hidden; }
.learn-card .img-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,20,14,0) 45%, rgba(13,20,14,.5) 100%);
  opacity: .55; transition: opacity .55s ease;
}
.learn-card:hover .img-frame::after { opacity: .15; }
.learn-card .img-frame img { transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.learn-card:hover .img-frame img { transform: scale(1.07); }
.learn-index {
  position: absolute; top: 14px; left: 16px; z-index: 2;
  font-family: var(--font-display); font-weight: 400; font-size: 22px;
  color: var(--ivory); letter-spacing: .02em; opacity: .9;
  text-shadow: 0 1px 12px rgba(13,20,14,.7);
}
.learn-place { position: relative; transition: color .4s ease; }
.learn-card:hover .learn-place { color: var(--gold-soft); }
.learn-place::after {
  content: ""; position: absolute; left: 0; bottom: -9px; height: 1px; width: 0;
  background: var(--gold-soft); transition: width .55s cubic-bezier(.2,.7,.2,1);
}
.learn-card:hover .learn-place::after { width: 40px; }

@media (max-width: 900px) { .learn-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 26px; } }
@media (max-width: 700px) { .learn::before { display: none; } }
@media (max-width: 560px) { .learn-grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------
   Prices — services page price table
---------------------------------------------------------------- */
.prices { background: var(--forest-2); padding: 120px 0 130px; color: var(--ivory); }
.prices-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 3.4vw, 52px); line-height: 1.12;
  color: var(--ivory); margin-top: 26px;
}
.prices-lead {
  max-width: 640px; margin: 24px 0 62px;
  font-size: 16px; line-height: 1.9; color: rgba(244, 239, 231, .7);
}
.prices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px 72px; }
.price-group h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 24px;
  color: var(--ivory); margin-bottom: 12px;
}
.price-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid rgba(244, 239, 231, .1);
}
.price-row > span:first-child { font-size: 15.5px; color: rgba(244, 239, 231, .82); }
.price-val { font-size: 13.5px; letter-spacing: .03em; color: var(--gold-soft); white-space: nowrap; }
.prices-note {
  margin-top: 58px; max-width: 780px; padding: 22px 28px;
  border: 1px solid rgba(216, 188, 147, .28); border-radius: 12px;
  font-size: 15.5px; line-height: 1.75; color: rgba(244, 239, 231, .8);
}
.prices-note b { color: var(--gold-soft); font-weight: 500; }
@media (max-width: 760px) { .prices-grid { grid-template-columns: 1fr; gap: 40px; } }

/* per-service price block (on each services/*.html page) */
.svc-prices { background: var(--forest-2); padding: 110px 0 118px; color: var(--ivory); }
.svc-prices-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(30px, 3vw, 46px); line-height: 1.12;
  color: var(--ivory); margin: 22px 0 30px;
}
.svc-prices-list { max-width: 620px; }
.svc-prices-note {
  margin-top: 30px; max-width: 620px;
  font-size: 14.5px; line-height: 1.7; color: rgba(244, 239, 231, .58);
}
.svc-prices-note a { color: var(--gold-soft); border-bottom: 1px solid rgba(216, 188, 147, .4); white-space: nowrap; }

.svc-related { background: #111b13; padding: 110px 0 120px; }
.svc-related-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 2.6vw, 44px);
  color: var(--ivory);
  margin-bottom: 46px;
}
.svc-related-list { display: flex; flex-wrap: wrap; gap: 14px; }
.svc-related-list a {
  font-family: var(--font-display);
  font-size: 21px;
  color: rgba(244, 239, 231, .72);
  padding: 13px 26px;
  border: 1px solid rgba(244, 239, 231, .16);
  border-radius: 100px;
  transition: color .4s ease, border-color .4s ease, background-color .4s ease;
}
.svc-related-list a:hover {
  color: var(--forest);
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

/* ----------------------------------------------------------------
   13. Responsive — desktop first, graceful degradation
---------------------------------------------------------------- */
@media (max-width: 1440px) {
  :root { --gutter: 48px; }
  .quotes { column-gap: 90px; }
}

@media (max-width: 1200px) {
  .main-nav { gap: 30px; }
  .manifesto-grid { column-gap: 70px; }
  .services-grid { gap: 70px; }
}

@media (max-width: 1024px) {
  .btn-header { display: none; }
  .nav-toggle { display: flex; }

  /* the scrolled header's backdrop-filter would become the containing block
     for the fixed overlay, trapping it inside the shrunken bar. Drop it here
     so the fullscreen menu works at any scroll position, not only on the hero. */
  .site-header, .site-header.is-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header.is-scrolled { background: rgba(16, 24, 16, .95); }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 26px;
    padding: 108px 24px 56px;
    overflow-y: auto;
    background: rgba(18, 28, 19, .98);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .55s var(--ease-out), visibility .55s;
  }
  .main-nav a {
    font-size: 15px;
    letter-spacing: .32em;
    color: rgba(248, 244, 236, .9);
    transform: translateY(14px);
    opacity: 0;
    transition: transform .6s var(--ease-out), opacity .6s var(--ease-out), color .4s ease;
  }
  body.nav-open .main-nav { opacity: 1; visibility: visible; }
  body.nav-open .main-nav a { transform: translateY(0); opacity: 1; }
  body.nav-open .main-nav a:nth-child(1) { transition-delay: .12s; }
  body.nav-open .main-nav a:nth-child(2) { transition-delay: .18s; }
  body.nav-open .main-nav a:nth-child(3) { transition-delay: .24s; }
  body.nav-open .main-nav a:nth-child(4) { transition-delay: .30s; }
  body.nav-open .main-nav a:nth-child(5) { transition-delay: .36s; }
  body.nav-open { overflow: hidden; }

  /* services turn into a tap-to-open accordion inside the overlay */
  /* the whole services item becomes a centred block; no flex-wrap tricks */
  .nav-item.has-dropdown {
    display: block;
    width: 100%;
    text-align: center;
  }
  .nav-link-parent { display: inline; vertical-align: middle; }
  .nav-caret {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    pointer-events: auto;
    width: 22px;
    height: 22px;
  }
  .nav-item .dropdown {
    position: static;
    transform: none;
    display: block;
    width: 100%;
    min-width: 0;         /* cancel the desktop panel's min-width: 340px */
    max-width: 280px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    opacity: 1;              /* override desktop base — visibility controlled by max-height */
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .55s var(--ease-out);
  }
  .nav-item .dropdown::before { display: none; }
  .nav-item.open .dropdown {
    visibility: visible;
    pointer-events: auto;
    max-height: 640px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(244, 239, 231, .12);
  }
  .nav-item .dropdown a {
    display: block;
    width: auto;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 12.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(244, 239, 231, .58);
    padding: 12px 0;
  }
  .nav-item .dropdown a::after { display: none; }
  .nav-item .dropdown a:hover { background: transparent; color: var(--gold-soft); }
  .nav-item .dropdown .dropdown-all {
    display: block;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(244, 239, 231, .1);
    color: var(--gold-soft);
  }

  /* big logo at the top of the overlay, messengers at the bottom */
  .nav-mobile-logo {
    display: block;
    width: clamp(150px, 46vw, 208px);
    height: auto;
    margin: 0 auto 6px;
  }
  .nav-mobile-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
  }
  .nav-msgr {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(244, 239, 231, .2);
    border-radius: 50%;
    color: rgba(244, 239, 231, .82);
    transition: color .4s ease, background-color .4s ease, border-color .4s ease;
  }
  .nav-msgr::after { display: none; }
  .nav-msgr svg { width: 19px; height: 19px; fill: currentColor; }
  .nav-msgr:hover { color: var(--forest); background: var(--gold-soft); border-color: var(--gold-soft); }

  .manifesto-grid { grid-template-columns: 1fr; row-gap: 80px; }
  .manifesto-photo-tall { grid-column: 1; grid-row: auto; }
  .manifesto-photo-tall .img-frame { height: auto; aspect-ratio: 3 / 4; }
  .manifesto-photo-wide { width: 100%; grid-row: auto; }

  .services-grid { grid-template-columns: 1fr; }
  .services-visual { display: none; }

  .subpage-hero { min-height: 54vh; }
  .svc-row { grid-template-columns: 1fr; gap: 38px; padding: 60px 0; }
  .svc-row:nth-child(even) .svc-media { order: 0; }
  .svc-media .img-frame { aspect-ratio: 16 / 10; }

  .svc-detail-grid { grid-template-columns: 1fr; gap: 44px; }
  .svc-detail-media { order: -1; }
  .svc-detail-media .img-frame { aspect-ratio: 16 / 10; }
  .svc-includes-grid { grid-template-columns: 1fr; gap: 0; }
  .svc-gallery-grid { grid-template-columns: 1fr; }
  .svc-gallery-grid a:nth-child(1),
  .svc-gallery-grid a:nth-child(2),
  .svc-gallery-grid a:nth-child(3),
  .svc-gallery-grid a:nth-child(4) { grid-column: 1 / -1; }
  .svc-gallery-grid a:nth-child(1) .img-frame,
  .svc-gallery-grid a:nth-child(2) .img-frame,
  .svc-gallery-grid a:nth-child(3) .img-frame,
  .svc-gallery-grid a:nth-child(4) .img-frame { aspect-ratio: 16 / 10; }

  .portfolio-grid { column-count: 1; }
  .work-a .img-frame, .work-b .img-frame, .work-c .img-frame,
  .work-d .img-frame, .work-e .img-frame { aspect-ratio: 16 / 10; }

  .quotes { grid-template-columns: 1fr; row-gap: 90px; }
  .quote-offset { margin-top: 0; }

  .deco { width: clamp(180px, 34vw, 320px); }

  /* timeline turns vertical — a line runs down the left, nodes beside it */
  .process-track { display: block; }
  .process-track::before,
  .process-track::after {
    top: 0;
    bottom: 0;
    left: 6px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .process-track::after { bottom: auto; height: 0; }
  .process-track.is-visible::after { width: 1px; height: 100%; }
  .process-step {
    padding: 0 0 52px 40px;
  }
  .process-step:last-child { padding-bottom: 0; }
  .process-step::before { top: 7px; left: 0; }
  .process-num { position: static; display: block; margin-bottom: 8px; }
  .process-name { margin-bottom: 12px; }
  .process-text { max-width: 460px; }

  /* footer stacks: logo first, then menu, then contacts — all centred */
  .footer-top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 52px;
  }
  .footer-nav      { order: 2; justify-self: center; align-items: center; }
  .footer-brand    { order: 1; justify-self: center; }
  .footer-contacts { order: 3; justify-self: center; align-items: center; text-align: center; }
  .footer-messengers { align-items: center; }
  .msgr-row { justify-content: center; }
}

@media (max-width: 720px) {
  :root { --gutter: 24px; }
  .header-inner { padding: 18px 24px; }
  .brand-text { display: none; }

  .manifesto, .services, .portfolio, .testimonials { padding: 130px 0 120px; }
  .process { padding: 120px 0 130px; }
  .section-eyebrow { margin-bottom: 56px; }

  /* hero — calmer, nothing spilling past the edges */
  .hero-2-content { padding: 0 24px; }
  .hero-logo { width: clamp(220px, 66vw, 360px); }

  /* keep large display type inside the viewport */
  .manifesto-title { font-size: clamp(32px, 8.4vw, 46px); }
  .featured-title { font-size: clamp(40px, 11vw, 60px); }
  .portfolio-title { font-size: clamp(32px, 8.4vw, 46px); }
  .cta-title { font-size: clamp(34px, 9vw, 54px); }
  .quote-text { font-size: clamp(22px, 6vw, 30px); }
  .service-name { font-size: clamp(26px, 7.5vw, 34px); }

  .process-text { max-width: none; }

  .scroll-hint { left: 24px; }

  /* footer logo becomes a small mark with the studio name beside it */
  .footer-brand-lockup { display: flex; align-items: center; gap: 16px; }
  .footer-logo-slot { width: 66px; flex: none; }
  .footer-logo-img--full { display: none; }
  .footer-logo-img--mini { display: block; width: 66px; height: auto; }
  .footer-logo-caption { display: block; font-size: 22px; }

  .footer-contacts a { font-size: 20px; }
  .msgr-row { max-width: none; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ----------------------------------------------------------------
   13. Cookie consent bar — injected by main.js on every page
---------------------------------------------------------------- */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 18px clamp(20px, 4vw, 48px);
  background: rgba(14, 22, 15, .96);
  border-top: 1px solid rgba(216, 188, 147, .25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: translateY(110%);
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .6s ease;
}
.cookie-bar.is-shown { transform: none; opacity: 1; }
.cookie-bar-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(244, 239, 231, .85);
  max-width: 760px;
  margin: 0;
}
.cookie-bar-text a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-bar-actions { display: flex; gap: 12px; flex: none; }
.cookie-bar-btn {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 12px 26px;
  background: none;
  color: var(--gold-soft);
  border: 1px solid rgba(216, 188, 147, .55);
  cursor: pointer;
  transition: background .4s ease, color .4s ease, border-color .4s ease;
}
.cookie-bar-btn:hover {
  background: var(--gold-soft);
  color: var(--forest);
}
.cookie-bar-btn--ghost {
  border-color: rgba(244, 239, 231, .22);
  color: rgba(244, 239, 231, .7);
}
.cookie-bar-btn--ghost:hover {
  background: rgba(244, 239, 231, .12);
  color: var(--ivory);
  border-color: rgba(244, 239, 231, .35);
}
@media (max-width: 640px) {
  .cookie-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
}
