/* =========================================================
   EDITORIAL — журнальный стиль
   крупная антиква, фото в строке текста, асимметрия,
   раскрытие фото на весь экран, sticky-истории, след из фото
   ========================================================= */
:root {
  --bg: #efebe4; --bg-2: #e6e0d6; --fg: #141210; --muted: #6f6860; --line: rgba(20, 18, 16, .16);
  --accent: #b4532a; --accent-2: #2f3a2c; --accent-3: #d8c7ae;
  --font-d: 'Playfair Display', Georgia, serif; --font-b: 'Inter Tight', system-ui, sans-serif;
  --radius: 0px; --ease: cubic-bezier(.76, 0, .24, 1); --curtain: #141210; --curtain-2: #b4532a; --cursor: #141210; --cursor-fg: #efebe4;
}
h1, h2, h3, .serif { font-family: var(--font-d); font-weight: 400; line-height: 1; letter-spacing: -.025em; }
em { font-style: italic; color: var(--accent); }
.h-xl { font-size: clamp(44px, min(7.4vw, 12vh), 140px); line-height: .95; }
.h-lg { font-size: clamp(38px, 5.6vw, 92px); }
.h-md { font-size: clamp(26px, 2.8vw, 40px); }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); max-width: 520px; line-height: 1.55; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.kicker--acc { color: var(--accent); }
.section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.rule { height: 1px; background: var(--fg); transform-origin: left; }

/* ---------- Кнопки: подчёркнутая ссылка и плашка ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px; height: 62px; padding: 0 32px; background: var(--fg); color: var(--bg);
  font-size: 15px; font-weight: 500; letter-spacing: .01em; border-radius: 99px; overflow: hidden; isolation: isolate;
}
.btn::before { content: ''; position: absolute; left: 50%; top: 50%; width: 0; height: 0; border-radius: 50%; background: var(--accent); z-index: -1; transform: translate(-50%, -50%); transition: width .7s var(--ease), height .7s var(--ease); }
.btn:hover::before { width: 150%; height: 400%; }
.btn .ico { transition: transform .5s var(--ease); }
.btn:hover .ico { transform: rotate(-45deg); }
.link { position: relative; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; padding: 6px 0; }
.link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.link:hover::after { transform: scaleX(0); }

/* ---------- Навигация ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; mix-blend-mode: difference; color: #fff; transition: transform .6s var(--ease); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__in { display: flex; justify-content: space-between; align-items: center; height: 84px; }
.nav__logo { font-family: var(--font-d); font-size: 28px; font-style: italic; }
.nav__links { display: flex; gap: 36px; font-size: 14px; }
.nav__links a { position: relative; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 900px) { .nav__links a:not(:last-child) { display: none; } }

/* ---------- Hero ---------- */
.ed-hero { min-height: 100svh; padding: 110px 0 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.ed-hero__meta { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--fg); padding-bottom: 14px; }
.ed-hero h1 { margin: 2vh 0; }
.ed-inline { display: inline-block; width: 1.9em; height: .78em; vertical-align: -.02em; border-radius: 99px; overflow: hidden; margin: 0 .06em; }
.ed-inline img { width: 100%; height: 100%; object-fit: cover; }
.ed-hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; align-items: end; }
.ed-hero__who { grid-column: 1 / span 4; display: grid; gap: 8px; }
.ed-hero__who li { display: flex; gap: 12px; font-size: 15px; padding: 10px 0; border-top: 1px solid var(--line); }
.ed-hero__who li b { font-family: var(--font-d); font-style: italic; font-weight: 400; color: var(--accent); min-width: 22px; }
.ed-hero__facts { grid-column: 6 / span 3; display: grid; gap: 14px; }
.ed-fact { display: flex; align-items: baseline; gap: 12px; }
.ed-fact b { font-family: var(--font-d); font-size: clamp(34px, 3.4vw, 52px); font-weight: 400; line-height: 1; }
.ed-fact span { font-size: 13px; color: var(--muted); line-height: 1.3; }
.ed-hero__cta { grid-column: 10 / span 3; display: grid; gap: 14px; justify-items: start; }
.ed-hero__cta p { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .ed-hero__grid { grid-template-columns: 1fr; }
  .ed-hero__who, .ed-hero__facts, .ed-hero__cta { grid-column: auto; }
  .ed-hero__facts { grid-template-columns: repeat(3, 1fr); }
  .ed-fact { flex-direction: column; gap: 4px; }
}

/* ---------- Раскрытие фото на весь экран ---------- */
.ed-expand { height: 100svh; position: relative; overflow: hidden; display: grid; place-items: center; }
.ed-expand__media { position: relative; width: 34vw; height: 48vh; overflow: hidden; will-change: width, height; }
.ed-expand__media img, .ed-expand__media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); }
.ed-expand__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .55)); }
.ed-expand__cap { position: absolute; inset: auto 0 8vh; z-index: 2; color: #fff; text-align: center; opacity: 0; }
.ed-expand__cap h2 { color: #fff; }
.ed-expand__side { position: absolute; top: 50%; transform: translateY(-50%); font-family: var(--font-d); font-size: clamp(40px, 7vw, 120px); z-index: 1; white-space: nowrap; }
.ed-expand__side--l { right: calc(50% + 17vw + 3vw); }
.ed-expand__side--r { left: calc(50% + 17vw + 3vw); font-style: italic; color: var(--accent); }
@media (max-width: 900px) { .ed-expand__side { display: none; } .ed-expand__media { width: 70vw; } }

/* ---------- Sticky-история ---------- */
.ed-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); }
.ed-story__media { position: sticky; top: 12vh; height: 76vh; overflow: hidden; }
.ed-story__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); }
.ed-story__media img:first-child { clip-path: inset(0 0 0 0); }
.ed-story__num { position: absolute; left: 20px; bottom: 16px; z-index: 5; font-family: var(--font-d); font-size: 90px; line-height: 1; color: #fff; mix-blend-mode: difference; }
.ed-story__steps { display: grid; }
.ed-step { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; border-top: 1px solid var(--line); opacity: .3; transition: opacity .6s; }
.ed-step.is-on { opacity: 1; }
.ed-step h3 { font-size: clamp(32px, 3.6vw, 58px); }
.ed-step p { color: var(--muted); max-width: 440px; }
@media (max-width: 900px) {
  .ed-story { grid-template-columns: 1fr; }
  .ed-story__media { top: 70px; height: 42vh; z-index: 2; }
  .ed-step { min-height: 60vh; background: var(--bg); }
}

/* ---------- След из фото ---------- */
.ed-trail { position: relative; min-height: 80vh; display: grid; place-items: center; overflow: hidden; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--fg); }
.ed-trail__txt { position: relative; z-index: 2; text-align: center; pointer-events: none; mix-blend-mode: difference; color: #fff; }
.ed-trail__img { position: absolute; left: 0; top: 0; width: 220px; height: 280px; object-fit: cover; pointer-events: none; z-index: 1; }

/* ---------- Стопка проектов ---------- */
.ed-stack { --stack-top: 11vh; display: grid; gap: 4vh; }
.ed-card { height: 78vh; position: relative; overflow: hidden; background: var(--fg); color: #fff; display: grid; grid-template-columns: 1.3fr .7fr; }
.ed-card__img { position: relative; overflow: hidden; }
.ed-card__img img { width: 100%; height: 100%; object-fit: cover; }
.ed-card__txt { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.ed-card__txt h3 { font-size: clamp(32px, 3.4vw, 56px); color: #fff; }
.ed-card__txt p { color: rgba(255, 255, 255, .7); font-size: 15px; }
.ed-card__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 13px; color: rgba(255, 255, 255, .6); border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 16px; }
.ed-card__meta b { display: block; color: #fff; font-family: var(--font-d); font-size: 26px; font-weight: 400; }
@media (max-width: 900px) { .ed-card { grid-template-columns: 1fr; grid-template-rows: 1fr auto; height: 82vh; } }

/* ---------- Цитата-строка ---------- */
.ed-line { white-space: nowrap; font-family: var(--font-d); font-size: clamp(60px, 11vw, 200px); line-height: 1; }

/* ---------- CTA ---------- */
.ed-cta { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(30px, 6vw, 90px); align-items: end; }
.ed-form { display: grid; gap: 0; }
.ed-form input { height: 64px; border-bottom: 1px solid var(--fg); font-size: 18px; padding: 0; }
.ed-form input:focus { outline: none; border-color: var(--accent); }
.ed-form .btn { margin-top: 26px; justify-self: start; }
.form-ok { font-family: var(--font-d); font-size: 34px; font-style: italic; color: var(--accent); }
@media (max-width: 900px) { .ed-cta { grid-template-columns: 1fr; } }

.footer { padding: 60px 0 30px; overflow: hidden; }
.footer__big { font-family: var(--font-d); font-size: clamp(70px, 17vw, 300px); line-height: .85; letter-spacing: -.04em; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 30px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
