/*
  Frontend Design direction: «Закрытый кабинет решений».
  This layer intentionally overrides the earlier exploratory system.
*/

:root {
  --fd-paper: #f5f6f4;
  --fd-surface: #ffffff;
  --fd-ink: #142b3a;
  --fd-muted: #66747b;
  --fd-accent: #2b6378;
  --fd-accent-deep: #173f56;
  --fd-steel: #c5ced0;
  --fd-line: rgba(20, 43, 58, .17);
  --ink: var(--fd-ink);
  --muted: var(--fd-muted);
  --paper: var(--fd-paper);
  --blue: var(--fd-accent);
  --green: var(--fd-accent-deep);
  --green-2: var(--fd-accent);
  --amber: var(--fd-accent);
  --line: var(--fd-line);
}

body { background: var(--fd-paper); color: var(--fd-ink); }
.page-shell { overflow: clip; }
.draft-notice { min-height: 34px; padding: 6px 24px; background: #ecefed; color: #52656d; border-color: var(--fd-line); }
.draft-notice span { border-radius: 0; font-size: .62rem; }
.site-header { max-width: 1240px; height: 88px; padding: 0; }
.wordmark-mark { width: 40px; height: 40px; background: var(--fd-surface); border-color: var(--fd-steel); color: var(--fd-accent-deep); }
.wordmark b { color: var(--fd-ink); font-size: .78rem; letter-spacing: .09em; }
.wordmark small { margin-top: 4px; color: var(--fd-muted); }
.site-header .button-small { min-height: 46px; padding: 11px 21px; background: transparent; border-color: var(--fd-steel); color: var(--fd-ink); }
.site-header .button-small:hover { background: var(--fd-surface); border-color: var(--fd-accent-deep); }

.button { border-radius: 2px; font-size: .8rem; font-weight: 600; }
.button-primary { background: var(--fd-accent-deep); }
.button-primary:hover { background: var(--fd-accent); }
.button-ghost { border-color: var(--fd-steel); color: var(--fd-ink); }
.text-link { color: var(--fd-ink); text-decoration-color: var(--fd-steel); }
.eyebrow { color: var(--fd-accent); font-size: .61rem; font-weight: 700; letter-spacing: .22em; }

.hero { min-height: 790px; max-width: 1240px; grid-template-columns: minmax(0, 1.08fr) minmax(350px, .68fr); gap: clamp(54px, 6vw, 90px); padding: 84px 0 118px; align-items: center; }
.hero-copy { max-width: 700px; }
.hero h1,
.hero-owner h1 { max-width: 700px; margin-bottom: 30px; font-size: clamp(3.45rem, 5.25vw, 4.85rem); line-height: 1.01; letter-spacing: -.052em; }
.hero-subtitle { max-width: 625px; margin-bottom: 30px; color: var(--fd-muted); font-size: clamp(1rem, 1.24vw, 1.16rem); line-height: 1.7; }
.hero-actions { min-width: 0; margin-top: 34px; gap: 26px; }
.hero-actions .button { width: auto; min-width: 250px; padding-right: 28px; padding-left: 28px; }
.hero-actions .text-link { width: auto; flex: none; white-space: nowrap; }
.signature { margin-top: 30px; color: var(--fd-ink); }
.signature::before { width: 52px; border-color: var(--fd-accent); }
.signature span { color: var(--fd-muted); }
.hero-proof-list { max-width: 680px; margin-top: 30px; border-color: var(--fd-accent-deep); }
.hero-proof-list li { min-height: 76px; padding: 17px 18px 12px 0; color: var(--fd-ink); font-size: .7rem; line-height: 1.55; }
.hero-proof-list li + li { padding-left: 18px; border-color: var(--fd-line); }
.hero-note { margin-top: 18px; }
.approval-note { border: 0; border-left: 2px solid var(--fd-steel); border-radius: 0; background: rgba(255,255,255,.38); }
.hero-visual { width: 100%; max-width: 430px; align-self: center; }
.portrait-frame { height: 600px; background: #d7dcdd; clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%); }
.portrait-picture img { object-position: center 32%; }
.portrait-caption { position: relative; right: auto; bottom: auto; width: calc(100% - 44px); margin: -30px 0 0 44px; padding: 21px 24px; border-top: 2px solid var(--fd-accent); background: var(--fd-surface); box-shadow: 0 18px 42px rgba(9,45,73,.09); }
.portrait-caption span { color: var(--fd-muted); }
.portrait-caption strong { color: var(--fd-ink); font-size: 1rem; line-height: 1.45; }
.hero-copy > *, .hero-visual { animation: none; }

.section { max-width: 1240px; padding: clamp(100px, 9vw, 138px) 0; }
.section-heading { max-width: 820px; margin-bottom: 68px; }
.section-heading h2,
.profile-mission h2 { font-size: clamp(2.75rem, 4.4vw, 4.25rem); line-height: 1.08; letter-spacing: -.047em; }
.situation-grid { border-color: var(--fd-line); }
.situation-card { min-height: 290px; padding: 31px 27px 34px; border-color: var(--fd-line); }
.situation-card > span { margin-bottom: 58px; color: var(--fd-accent); font-family: var(--sans); }
.situation-card h3 { color: var(--fd-ink); font-size: 1.3rem; }

.question-section,
.profile-materials-section { max-width: none; padding-right: max(32px, calc((100vw - 1240px) / 2)); padding-left: max(32px, calc((100vw - 1240px) / 2)); background: #eef1ef; }
.question-intro h2 { font-size: clamp(2.7rem, 4vw, 3.9rem); }
.question-list li { color: var(--fd-ink); font-size: clamp(1.2rem, 1.65vw, 1.58rem); }
.principle { padding-right: max(32px, calc((100vw - 1240px) / 2)); padding-left: max(32px, calc((100vw - 1240px) / 2)); background: var(--fd-surface); border-top: 1px solid var(--fd-line); border-bottom: 1px solid var(--fd-line); }
.principle-mark { width: 82px; height: 82px; background: var(--fd-paper); border-color: var(--fd-steel); }
.principle h2 { max-width: 930px; font-size: clamp(2.75rem, 4.2vw, 4.2rem); }

.result-section { padding-right: max(32px, calc((100vw - 1240px) / 2)); padding-left: max(32px, calc((100vw - 1240px) / 2)); background: var(--fd-ink); color: var(--fd-surface); }
.result-title .eyebrow,
.result-list li > span,
.result-list li > svg { color: #9cbfc8; }
.result-title > p:last-child,
.result-list p { color: rgba(255,255,255,.68); }
.result-list li { border-color: rgba(255,255,255,.18); }
.result-list h3 { color: var(--fd-surface); font-size: 1.52rem; }

.process-section,
.career-proof-section,
.cases-section,
.faq-section { max-width: none; padding-right: max(32px, calc((100vw - 1240px) / 2)); padding-left: max(32px, calc((100vw - 1240px) / 2)); background: var(--fd-surface); }
.process-line article { min-height: 260px; }
.boundaries { max-width: 1240px; border-color: var(--fd-line); }
.boundary-card { min-height: 390px; }
.boundary-card.fits { background: #f4f8fa; border-top: 3px solid #2b6378; }
.boundary-card.not-fits { background: var(--fd-surface); border-top: 3px solid #c6d0d5; }
.fits li svg { color: #2b6378; }
.not-fits li svg { color: #788891; }
.about-section { max-width: none; padding-right: max(32px, calc((100vw - 1240px) / 2)); padding-left: max(32px, calc((100vw - 1240px) / 2)); background: var(--fd-paper); }
.about-photo { height: 670px; clip-path: none; }
.about-lead { color: var(--fd-accent-deep); }
.career-grid { border-color: var(--fd-line); }
.career-card { min-height: 420px; }
.company-logo-grid { border-color: var(--fd-line); }
.company-logo-grid figure { background: var(--fd-surface); border-color: var(--fd-line); }
.company-logo-grid figure:hover { background: #f0f3f2; }
.value-grid article { min-height: 205px; }
.profile-history details { background: rgba(255,255,255,.35); }
.media-note { background: rgba(255,255,255,.6); }
.media-note.media-project { display: grid; grid-template-columns: minmax(280px, .74fr) minmax(440px, 1.26fr); gap: 0; margin-top: 62px; padding: 0; border: 1px solid var(--fd-line); border-left: 1px solid var(--fd-line); background: var(--fd-surface); }
.media-project-copy { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(34px, 4vw, 58px); border-right: 1px solid var(--fd-line); }
.media-project-copy h3 { margin: 8px 0 20px; color: var(--fd-ink); font-family: var(--serif); font-size: clamp(2.25rem, 3.5vw, 3.7rem); font-weight: 400; line-height: 1.04; letter-spacing: -.04em; }
.media-project-copy > p:not(.eyebrow) { max-width: 470px; margin: 0; color: var(--fd-muted); font-size: 1.03rem; line-height: 1.65; }
.media-project-link { min-height: 48px; margin-top: auto; padding-top: 32px; color: var(--fd-accent-deep); font-weight: 700; }
.media-project-link svg { width: 20px; height: 20px; margin-left: 9px; }
.media-project-video { position: relative; align-self: center; width: 100%; background: #102733; }
.media-project-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.media-video-poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 0; background: #102733; color: #fff; cursor: pointer; text-decoration: none; }
.media-video-poster img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .2s, transform .35s; }
.media-video-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6,27,39,.7)); }
.media-video-poster:hover img { opacity: .92; transform: scale(1.012); }
.media-video-play { position: absolute; z-index: 1; top: 50%; left: 50%; width: 74px; height: 74px; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; background: rgba(11,43,58,.84); transform: translate(-50%,-50%); }
.media-video-play::after { content: ""; position: absolute; top: 50%; left: 52%; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid #fff; transform: translate(-40%,-50%); }
.media-video-action { position: absolute; z-index: 1; right: 22px; bottom: 18px; left: 22px; font-family: var(--sans); font-size: .84rem; font-weight: 700; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.media-project-video > a { display: block; min-height: 48px; padding: 14px 18px; color: rgba(255,255,255,.82); font-size: .86rem; line-height: 1.45; text-decoration: none; }
.media-project-video > a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.offer-section { max-width: none; padding-right: max(32px, calc((100vw - 1240px) / 2)); padding-left: max(32px, calc((100vw - 1240px) / 2)); background: var(--fd-surface); }
.offer-panel { border-color: var(--fd-accent-deep); }
.application-section { padding-right: max(32px, calc((100vw - 1240px) / 2)); padding-left: max(32px, calc((100vw - 1240px) / 2)); background: #edf0ee; }
.application-intro h2 { font-size: clamp(2.7rem, 3.8vw, 3.8rem); }
.application-usp { background: rgba(255,255,255,.5); }
.lead-form { border: 1px solid var(--fd-line); background: var(--fd-surface); }
.lead-form input:not([type=checkbox]),
.lead-form select,
.lead-form textarea { border-color: var(--fd-steel); background: #fbfdfe; }
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus { border-color: var(--fd-accent); box-shadow: 0 0 0 3px rgba(23,103,170,.12); }
.direct-contact { background: var(--fd-accent-deep); }
.site-footer { background: #102733; }

@media (max-width: 1300px) {
  .site-header,
  .hero,
  .section,
  .boundaries { max-width: calc(100% - 64px); }
}

@media (max-width: 1050px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(320px, .62fr); gap: 38px; }
  .hero h1,
  .hero-owner h1 { font-size: clamp(3rem, 6vw, 4.25rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .portrait-frame { height: 540px; }
}

@media (min-width: 761px) and (max-width: 900px) {
  .hero h1,
  .hero-owner h1 { font-size: 2.82rem; }
}

@media (max-width: 760px) {
  .draft-notice { min-height: 0; padding: 8px 16px; }
  .site-header { max-width: none; padding: 0 20px; }
  .hero { max-width: none; padding: 58px 20px 96px; gap: 62px; }
  .hero h1,
  .hero-owner h1 { max-width: 100%; font-size: clamp(2.48rem, 10.8vw, 3.12rem); line-height: 1.04; letter-spacing: -.046em; overflow-wrap: normal; }
  .hero-subtitle { font-size: .98rem; line-height: 1.62; }
  .hero-actions { width: 100%; }
  .hero-actions .button,
  .hero-actions .text-link { width: 100%; min-width: 0; white-space: normal; }
  .hero-actions .text-link { justify-content: flex-start; text-align: left; }
  .hero-proof-list { border-top-color: var(--fd-accent-deep); }
  .hero-visual { max-width: 100%; }
  .portrait-frame { height: min(126vw, 560px); }
  .portrait-caption { width: calc(100% - 24px); margin-left: 24px; }
  .section,
  .boundaries { max-width: none; padding-right: 20px; padding-left: 20px; }
  .question-section,
  .profile-materials-section,
  .process-section,
  .career-proof-section,
  .cases-section,
  .faq-section,
  .about-section,
  .offer-section { padding-right: 20px; padding-left: 20px; }
  .section-heading h2,
  .profile-mission h2,
  .question-intro h2,
  .principle h2 { font-size: clamp(2.35rem, 10vw, 3.15rem); }
  .principle,
  .result-section,
  .application-section { padding-right: 20px; padding-left: 20px; }
  .about-photo { height: 118vw; }
  .media-note.media-project { grid-template-columns: 1fr; margin-top: 40px; }
  .media-project-copy { min-height: 330px; padding: 30px 24px; border-right: 0; border-bottom: 1px solid var(--fd-line); }
  .media-project-link { margin-top: 18px; padding-top: 12px; }
  .application-section { padding-bottom: 20px; }
}

@media (max-width: 360px) {
  .hero h1,
  .hero-owner h1 { font-size: 2.38rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
