/* Главная страница Parker */

/* ---------- Первый экран: портрет, освещённый курсором ---------- */
.hero { position: relative; min-height: max(720px, 100svh); overflow: hidden; overflow: clip; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -3; background: var(--bg); }
.hero-inner { position: relative; min-height: inherit; }
.hero-copy {
  position: relative; z-index: 2;
  padding: calc(var(--header-h) + clamp(48px, 14vh, 170px)) 0 clamp(72px, 12vh, 140px);
  max-width: min(820px, 62%);
}
.hero-copy .kicker { margin-bottom: 28px; display: block; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .ln > span { display: inline-block; }
.hero-copy .lead { margin-top: 30px; max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.hero-photo {
  position: absolute; z-index: 1; top: 0; right: 0; bottom: 0;
  width: min(56vw, 900px);
  overflow: hidden; overflow: clip; pointer-events: none;
}
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 46% 28%;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.06);
  will-change: transform;
  /* The left fade is a mask on the photo itself, transparent at the very edge: the scaled, composited image
     can leak one antialiased pixel past the clip, and on this photo that pixel is the white flip chart. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 5%, rgba(0, 0, 0, 0.3) 19%, #000 44%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 5%, rgba(0, 0, 0, 0.3) 19%, #000 44%);
}
/* the photo melts into the page under the header and at the bottom */
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 13, 17, 0.7) 0%, rgba(11, 13, 17, 0) 20%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 13, 17, 0.55) 18%, rgba(11, 13, 17, 0) 40%);
}
.hero-sign {
  position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(24px, 5vh, 48px);
  text-align: right; display: grid; gap: 4px; justify-items: end;
}
.hero-sign .sig { font-family: "Mr Dafoe", cursive; font-size: clamp(38px, 3.4vw, 54px); line-height: 1; color: var(--accent-2); transform: rotate(-4deg); margin-bottom: 4px; }
.hero-sign strong { font-weight: 500; font-size: 17px; }
.hero-sign span { font-size: 14px; color: var(--text-2); max-width: 30ch; }

/* Сценарий загрузки: свет включается, строки поднимаются */
.js .hero .hero-title .ln > span { transform: translateY(105%); transition: transform 1.2s var(--ease-out); }
.js .hero.is-on .hero-title .ln > span { transform: none; }
.js .hero.is-on .hero-title .ln:nth-child(2) > span { transition-delay: 0.08s; }
.js .hero.is-on .hero-title .ln:nth-child(3) > span { transition-delay: 0.16s; }
.js .hero .kicker, .js .hero .lead, .js .hero .hero-cta, .js .hero .hero-sign { opacity: 0; transform: translateY(12px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .hero.is-on .kicker { opacity: 1; transform: none; }
.js .hero.is-on .lead { opacity: 1; transform: none; transition-delay: 0.35s; }
.js .hero.is-on .hero-cta { opacity: 1; transform: none; transition-delay: 0.45s; }
.js .hero.is-on .hero-sign { opacity: 1; transform: none; transition-delay: 1.1s; }
.js .hero .hero-photo { opacity: 0; transform: scale(1.04); transform-origin: 60% 40%; transition: opacity 1.6s ease 0.15s, transform 2.6s var(--ease-out) 0.15s; }
.js .hero.is-on .hero-photo { opacity: 1; transform: none; }

/* ---------- Доверие ---------- */
.proof { padding: clamp(56px, 7vw, 96px) 0 clamp(88px, 9vw, 136px); border-top: 1px solid var(--line); }
.clients { display: grid; gap: 22px; }
.clients-head { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; flex-wrap: wrap; }
.client-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.client-list li { display: flex; align-items: center; min-height: 92px; padding: 0 20px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 450; line-height: 1.3; color: var(--text); letter-spacing: -0.005em; }
.client-note { font-size: 14px; color: var(--text-3); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(56px, 7vw, 104px); }
.facts .metric { padding-top: 26px; border-top: 1px solid var(--line-2); }

/* ---------- Услуги ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.svc-list { display: grid; }
.svc-tab {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  width: 100%; padding: 22px 0; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left;
  font-weight: 380; font-size: clamp(24px, 2.6vw, 40px); letter-spacing: -0.03em; line-height: 1.1;
  color: var(--text-3); transition: color 0.25s ease;
}
.svc-tab:first-child { border-top: 1px solid var(--line); }
.svc-tab::after { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px rgba(242, 181, 74, 0.6); opacity: 0; transform: scale(0.6); transition: opacity 0.25s ease, transform 0.3s var(--ease-out); align-self: center; }
.svc-tab[aria-selected="true"] { color: var(--text); }
.svc-tab[aria-selected="true"]::after { opacity: 1; transform: none; }
@media (hover: hover) { .svc-tab:hover { color: var(--text); } }
.svc-panel { position: sticky; top: calc(var(--header-h) + 32px); padding: clamp(28px, 3.4vw, 48px); min-height: 420px; }
.svc-panel-body { display: grid; gap: 22px; transition: opacity 0.22s ease, filter 0.22s ease, transform 0.22s var(--ease-out); }
.svc-panel.is-swapping .svc-panel-body { opacity: 0; filter: blur(3px); transform: translateY(6px); }
.svc-panel h3 { font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -0.03em; line-height: 1.1; }
.svc-panel .svc-desc { color: var(--text-2); font-size: 18px; max-width: 44ch; }
.svc-result { padding: 20px 22px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.svc-result dt { font-size: 14px; color: var(--accent); font-weight: 500; }
.svc-result dd { margin-top: 6px; font-size: 20px; font-weight: 450; letter-spacing: -0.015em; line-height: 1.35; }
.svc-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-panel .link { justify-self: start; margin-top: 6px; }

/* ---------- Кейсы ---------- */
.case-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.case { grid-column: span 6; display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; transition: border-color 0.3s ease, transform 0.3s var(--ease-out); }
.case--wide { grid-column: 1 / -1; flex-direction: row; }
.case--wide .case-viz { flex: 1.35; aspect-ratio: auto; min-height: 460px; }
.case--wide .case-body { flex: 1; padding: clamp(28px, 3.6vw, 56px); }
@media (hover: hover) and (pointer: fine) { .case:hover { border-color: var(--line-2); } }
.case:active { transform: scale(0.995); }
.case-viz { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(120% 100% at 50% 0%, #161b23, #0e1116 70%); border-bottom: 1px solid var(--line); }
.case--wide .case-viz { border-bottom: 0; border-right: 1px solid var(--line); }
.case-viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.case-body { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 2.8vw, 40px); flex: 1; }
.case-client { font-size: 14px; color: var(--text-2); font-weight: 500; }
.case-title { font-weight: 400; font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
.case-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.case-metrics dt { font-weight: 350; font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.case-metrics dd { margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.case-more { font-size: 15px; font-weight: 500; color: var(--text); }
.cases-cta { margin-top: 40px; }

/* ---------- Стандарты ---------- */
.standards-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.std-intro { position: sticky; top: calc(var(--header-h) + 32px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.ben-note { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.ben-note img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 14%; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-2); }
.ben-note blockquote { font-size: 19px; line-height: 1.5; color: var(--text); }
.ben-note figcaption { margin-top: 8px; font-size: 14px; color: var(--text-3); }
.review { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.review-head { display: flex; justify-content: space-between; color: var(--text-3); font-size: 13px; margin-bottom: 14px; }
.review pre { margin: 0; font: 500 13.5px/1.75 var(--f-code); white-space: pre; overflow-x: auto; }
.review .del, .review .add { display: block; padding: 0 10px; border-radius: 6px; }
.review .del { background: rgba(255, 122, 107, 0.09); color: #ffb3a8; }
.review .add { background: rgba(95, 211, 154, 0.09); color: #b5f0cf; }
.review .mark { display: inline-block; width: 14px; opacity: 0.7; }
.review-comment { display: grid; grid-template-columns: 30px 1fr; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.review-comment img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 14%; }
.review-comment p { font-size: 14px; line-height: 1.45; }
.review-comment b { display: block; font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.js .review [data-rv] { opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); transition-delay: calc(var(--d) * 120ms); }
.js .review.is-in [data-rv] { opacity: 1; transform: none; }
.std-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 3vw, 48px); }
.std-list li { padding: 30px 0 36px; border-top: 1px solid var(--line); }
.std-list h3 { font-weight: 450; font-size: clamp(21px, 1.8vw, 26px); letter-spacing: -0.02em; line-height: 1.25; }
.std-list p { margin-top: 12px; color: var(--text-2); font-size: 17px; max-width: 34ch; }

/* ---------- Процесс ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); padding-top: 42px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; }
.steps::before { background: var(--line-2); }
.steps::after { background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform 1.6s var(--ease-out); }
.step { position: relative; display: grid; gap: 14px; align-content: start; }
.step::before { content: ""; position: absolute; top: -42px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); transition: border-color 0.4s ease, background-color 0.4s ease; transition-delay: calc(var(--i) * 0.25s); }
.steps.is-in .step::before { border-color: var(--accent); background: var(--accent); }
.step-num { font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.step h3 { font-weight: 450; font-size: clamp(21px, 1.7vw, 25px); letter-spacing: -0.02em; }
.step .dur { font-size: 14px; color: var(--accent); }
.step p { font-size: 16px; color: var(--text-2); }

/* ---------- Руководитель ---------- */
.leader { position: relative; padding-bottom: var(--section); border-top: 1px solid var(--line); }
.leader-media { position: relative; height: min(84vh, 820px); overflow: hidden; overflow: clip; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 4px; }
.leader-media img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.leader-media .lm-stage { object-position: 46% 20%; }
.leader-media .lm-mic { object-position: 44% 20%; }
.leader-media .lm-work { object-position: 50% 30%; }
.leader-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 13, 17, 0.35) 0%, rgba(11, 13, 17, 0) 30%, rgba(11, 13, 17, 0.2) 55%, var(--bg) 100%), linear-gradient(90deg, rgba(11, 13, 17, 0.75), rgba(11, 13, 17, 0) 55%); }
.leader-quote { position: relative; z-index: 2; margin-top: clamp(-260px, -22vh, -140px); }
.leader-quote blockquote { font-weight: 350; font-size: clamp(30px, 3.6vw, 56px); line-height: 1.12; letter-spacing: -0.03em; max-width: 22ch; text-wrap: balance; }
.leader-quote figcaption { margin-top: 24px; font-size: 16px; color: var(--text-2); }
.leader-quote figcaption strong { color: var(--text); font-weight: 500; }
.leader-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); margin-top: clamp(56px, 7vw, 96px); }
.leader-bio p { color: var(--text-2); font-size: 18px; max-width: 52ch; }
.leader-bio .link { display: inline-block; margin-top: 24px; }
.talks h3 { font-size: 15px; font-weight: 500; color: var(--text-3); margin-bottom: 12px; }
.talk { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.talk time { font-size: 15px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.talk strong { display: block; font-weight: 450; font-size: 18px; letter-spacing: -0.01em; }
.talk span { font-size: 14px; color: var(--text-3); }

/* ---------- Безопасность ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.sec-grid li { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.sec-grid h3 { font-weight: 450; font-size: 21px; letter-spacing: -0.015em; }
.sec-grid p { margin-top: 10px; font-size: 16px; color: var(--text-2); max-width: 32ch; }

/* ---------- Отрасли ---------- */
.industries { display: flex; flex-wrap: wrap; gap: 4px clamp(28px, 3.4vw, 56px); }
.industries li { font-weight: 330; font-size: clamp(34px, 4.6vw, 72px); letter-spacing: -0.04em; line-height: 1.12; color: var(--text-3); transition: color 0.3s ease; }
@media (hover: hover) { .industries li:hover { color: var(--text); } }

/* ---------- Форматы ---------- */
.models { width: 100%; border-collapse: collapse; }
.models th, .models td { text-align: left; vertical-align: top; padding: 24px 20px 24px 0; border-top: 1px solid var(--line); }
.models thead th { font-weight: 400; font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.025em; line-height: 1.15; padding-bottom: 28px; border-top: 0; }
.models thead th:first-child { width: 22%; }
.models tbody th { font-weight: 500; font-size: 15px; color: var(--text-3); }
.models td { font-size: 17px; color: var(--text); }
.models-note { margin-top: 36px; font-size: 18px; color: var(--text-2); max-width: 60ch; }
.models-note strong { color: var(--text); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); align-items: start; }

/* ---------- Заявка ---------- */
.brief-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.brief-intro { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 24px; }
.contact-lines { display: grid; gap: 10px; font-size: 18px; }
.contact-lines a { text-decoration: none; }
.brief-form { padding: clamp(24px, 3.4vw, 48px); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .hero-copy { max-width: 64%; }
  .hero-photo { width: 50vw; }
  .hero-photo img { object-position: 52% 28%; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 56px; }
  .steps::before, .steps::after { display: none; }
  .step::before { display: none; }
}
@media (min-width: 901px) {
  .hero-title .ln { white-space: nowrap; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-inner { order: 1; }
  .hero-photo { order: 2; }
  .hero-sign { order: 3; }
  .hero-copy { max-width: none; padding-bottom: 8px; padding-top: calc(var(--header-h) + 40px); }
  .hero-title .ln { white-space: normal; }
  .hero-photo { position: relative; top: auto; right: auto; bottom: auto; width: 100%; aspect-ratio: 4 / 5; max-height: 86svh; margin-top: 28px; }
  .hero-photo img {
    object-position: 44% 30%;
    /* on a phone the photo sits under the text: the top edge fades out on the photo itself, same reason as above */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 4%, rgba(0, 0, 0, 0.4) 12%, #000 28%);
    mask-image: linear-gradient(180deg, transparent 0%, transparent 4%, rgba(0, 0, 0, 0.4) 12%, #000 28%);
  }
  .hero-photo::after {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 13, 17, 0.6) 16%, rgba(11, 13, 17, 0) 36%);
  }
  .hero-sign { position: relative; z-index: 2; right: auto; bottom: auto; margin: -92px var(--gutter) 0; padding-bottom: 40px; justify-items: start; text-align: left; }
  .client-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .client-list li:nth-child(n+4) { border-top: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc-panel { position: static; min-height: 0; }
  .case, .case--wide { grid-column: 1 / -1; flex-direction: column; }
  .case--wide .case-viz { flex: none; min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--line); }
  .standards-grid, .leader-grid, .faq-grid, .brief-grid { grid-template-columns: minmax(0, 1fr); }
  .std-intro, .brief-intro { position: static; }
  .std-list, .sec-grid { grid-template-columns: 1fr 1fr; }
  .leader-media { height: 72svh; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; }
  .leader-media .lm-stage { grid-row: 1 / 3; }
  .leader-quote { margin-top: -120px; }
  .models thead { display: none; }
  .models, .models tbody, .models tr, .models th, .models td { display: block; width: 100%; }
  .models tr { padding: 8px 0 24px; }
  .models tbody th { padding: 20px 0 6px; border-top: 1px solid var(--line); }
  .models td { padding: 6px 0; border-top: 0; }
  .models td::before { content: attr(data-col); display: block; font-size: 13px; color: var(--accent); margin-bottom: 2px; }
}
@media (max-width: 600px) {
  .hero-cta { display: grid; grid-template-columns: 1fr; }
  .facts { gap: 24px 16px; }
  .std-list, .sec-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 32px; }
  .case-metrics { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .client-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-list li { min-height: 76px; padding: 0 14px; font-size: 15px; }
  .client-list li:nth-child(n+3) { border-top: 0; }
  .talk { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero .hero-title .ln > span, .js .hero .kicker, .js .hero .lead, .js .hero .hero-cta, .js .hero .hero-sign, .js .hero .hero-photo, .js .review [data-rv] { opacity: 1; transform: none; }
}
