/* ============ TOKENS ============ */
:root {
  --bg:        #0A0A0A;
  --bg-2:      #101010;
  --card:      #151515;
  --line:      #262626;
  --text:      #F2F2F2;
  --text-2:    #C4C4C4;
  --muted:     #8f8f8f;
  --accent:    #F2E205;
  --accent-2:  #FFE500;
  --btn-border:#3a3a3a;
  --on-accent: #0A0A0A;
  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1200px;
  --pad:       clamp(20px, 5vw, 48px);
  --font:      'Manrope', system-ui, -apple-system, sans-serif;
}
.section--light {
  --bg:        #F4F3EF;
  --bg-2:      #ECEBE5;
  --card:      #FFFFFF;
  --line:      #E4E2DB;
  --text:      #14140F;
  --text-2:    #4C4B44;
  --muted:     #74736B;
  --btn-border:#CDCBC2;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  background: var(--bg); color: var(--text);
  line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 10vw, 128px); }

/* ============ ICONS ============ */
.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: middle;
}

/* ============ LOGO ============ */
.brand { display: inline-flex; align-items: center; color: var(--text); }
.brand-logo {
  display: block; width: 146px; height: 34px; background: currentColor;
  -webkit-mask: url("assets/logo-lockup.svg") left center / contain no-repeat;
          mask: url("assets/logo-lockup.svg") left center / contain no-repeat;
}

/* ============ PLACEHOLDERS ============ */
.ph {
  position: relative;
  background: repeating-linear-gradient(45deg, #161616 0 12px, #131313 12px 24px);
  border: 1px dashed #2c2c2c;
  display: grid; place-content: center; text-align: center;
  color: #6a6a6a; overflow: hidden;
}
.section--light .ph { background: repeating-linear-gradient(45deg, #e8e7e1 0 12px, #eeede8 12px 24px); border-color: #d5d3ca; color: #9a988f; }
.ph::before { content: attr(data-label); font-weight: 600; font-size: 14px; color: currentColor; }
.ph-frame { border-radius: var(--radius); }
.hero-bg.ph::before { display: none; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s, background .2s, color .2s, border-color .2s; white-space: nowrap;
}
.btn .icon { font-size: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--btn-border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-block { width: 100%; justify-content: center; }

.link-more {
  margin-top: 28px; background: none; border: 0; cursor: pointer; font-family: var(--font);
  color: var(--text); font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; gap: 9px;
  border-bottom: 1px solid var(--accent); padding-bottom: 4px; transition: gap .2s;
}
.link-more .icon { font-size: 18px; color: var(--accent); }
.link-more:hover { gap: 14px; }

/* ============ HEADER ============ */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(10,10,10,.85); backdrop-filter: blur(14px); border-bottom-color: #222; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.site-header .brand { color: #fff; }
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; color: #d3d3d3; transition: color .2s; }
.nav a:hover { color: var(--accent); }
.header-cta { margin-left: 12px; color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: .3s; }

/* ============ HERO (центр по высоте) ============ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 72px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; border: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,10,.5) 0%, rgba(10,10,10,.15) 45%, rgba(10,10,10,.88) 100%),
              linear-gradient(90deg, rgba(10,10,10,.55), rgba(10,10,10,.15));
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: center; width: 100%; padding-block: clamp(40px, 6vw, 80px); }
.hero-portrait { height: min(72vh, 640px); width: 100%; }
.hero-copy { min-width: 0; }
.regalia { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.regalia li { font-size: 12.5px; font-weight: 500; color: #eaeaea; padding: 7px 15px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.regalia li:first-child { border-color: rgba(242,226,5,.5); color: var(--accent); }
.hero-title { display: flex; flex-direction: column; gap: 12px; }
.hero-name { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.03; font-weight: 700; letter-spacing: -1.5px; color: #fff; }
.hero-role { font-size: clamp(17px, 2vw, 23px); line-height: 1.28; font-weight: 500; color: #c9c9c9; max-width: 24ch; }
.hero-role::before { content: "— "; color: var(--accent); }
.hero-sub { color: #b8b8b8; font-size: clamp(15px, 1.3vw, 18px); margin-top: 22px; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ============ SECTION TITLES ============ */
.section-title { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -1px; text-align: center; color: var(--text); }
.section-title.left { text-align: left; }
.section-intro { color: var(--muted); text-align: center; max-width: 64ch; margin: 18px auto 0; font-size: 17px; }
.section-intro.left { text-align: left; margin-inline: 0; }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(32px, 5vw, 68px); align-items: stretch; }
.about-media { display: flex; }
.about-media .ph-frame { width: 100%; min-height: 420px; box-shadow: 0 40px 80px -34px rgba(0,0,0,.35); }
.about-copy p { color: var(--text-2); margin-top: 18px; }
.about-copy .section-title { margin-bottom: 8px; }
.hl { color: var(--text); font-weight: 600; }

.expertise { margin-top: clamp(48px, 7vw, 92px); }
.expertise-title { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -.5px; margin-bottom: 30px; }
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.exp-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.exp-tile:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 24px 50px -30px rgba(0,0,0,.3); }
.exp-ico { display: inline-grid; place-content: center; width: 50px; height: 50px; border-radius: 14px; background: var(--accent); color: var(--on-accent); margin-bottom: 18px; }
.exp-ico .icon { font-size: 25px; }
.exp-tile h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.exp-tile p { color: var(--muted); font-size: 14.5px; }

/* ============ shared lists ============ */
.dot-list { list-style: none; display: grid; gap: 8px; }
.dot-list li { position: relative; padding-left: 20px; color: var(--text-2); }
.dot-list li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.lead { color: var(--text) !important; font-weight: 600; margin-top: 18px !important; }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; color: var(--text-2); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 50%; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='black'/%3E%3C/svg%3E") center/13px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='black'/%3E%3C/svg%3E") center/13px no-repeat;
}
.check-list.two-col { grid-template-columns: 1fr 1fr; gap: 16px 28px; }

/* ============ PROJECTS (полноширинный sticky-стек) ============ */
.projects { background: var(--bg-2); }
.pstack { display: flex; flex-direction: column; gap: 30px; margin-top: 50px; }
.pcard {
  position: sticky; top: calc(88px + var(--i) * 12px);
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  overflow: hidden; box-shadow: 0 40px 90px -46px rgba(0,0,0,.85);
}
.pcard-media { position: relative; border: 0; min-height: 400px; }
.pcard-logo {
  position: absolute; left: 24px; bottom: 24px;
  background: #fff; border-radius: 14px; padding: 16px 22px;
  display: inline-grid; place-content: center;
  box-shadow: 0 16px 40px -14px rgba(0,0,0,.5); max-width: calc(100% - 48px);
}
.pcard-logo img { height: 40px; width: auto; max-width: 100%; object-fit: contain; }
.pcard-logo--text { font-weight: 700; font-size: 20px; color: #14140f; letter-spacing: -.3px; }
.pcard-body { padding: clamp(28px, 3.4vw, 46px); }
.pcard-name { font-size: clamp(23px, 2.8vw, 32px); font-weight: 700; letter-spacing: -.5px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.pcard-brand { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--on-accent); background: var(--accent); padding: 5px 11px; border-radius: 999px; }
.pcard-lead { color: var(--text-2); margin-top: 12px; font-size: clamp(15px, 1.3vw, 18px); }
.pcard-specs { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 24px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec { display: flex; gap: 12px; align-items: center; }
.spec > .icon { font-size: 22px; color: var(--accent); }
.spec span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 2px; }
.spec b { font-weight: 600; font-size: 14.5px; color: var(--text); }
.spec a { font-weight: 600; font-size: 14.5px; }
.spec a:hover { color: var(--accent); }
.pcard-detail { margin-top: 22px; }
.pcard-detail p { color: var(--text-2); margin-top: 12px; font-size: 15px; }
.pcard-detail .lead { margin-top: 18px !important; font-size: 15px; }

/* ============ APPROACH — sticky stack ============ */
.approach-head { margin-bottom: clamp(40px, 6vw, 72px); }
.stack { display: flex; flex-direction: column; gap: 26px; }
.stack-card {
  position: sticky; top: calc(96px + var(--i) * 16px);
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(28px, 4vw, 44px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.55);
}
.stack-num { font-size: clamp(38px, 6vw, 68px); font-weight: 600; line-height: 1; letter-spacing: -2px; color: #2a2a2a; }
.stack-ico { display: inline-grid; place-content: center; width: 62px; height: 62px; border-radius: 16px; background: rgba(242,226,5,.12); color: var(--accent); }
.stack-ico .icon { font-size: 30px; }
.stack-text h3 { font-size: clamp(20px, 2.5vw, 27px); font-weight: 700; margin-bottom: 8px; }
.stack-text p { color: var(--text-2); font-size: clamp(15px, 1.3vw, 17px); }
.stack-card--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.stack-card--accent .stack-num { color: rgba(10,10,10,.28); }
.stack-card--accent .stack-ico { background: rgba(10,10,10,.12); color: var(--on-accent); }
.stack-card--accent .stack-text p { color: rgba(10,10,10,.78); }

.interest-block { margin-top: clamp(48px, 7vw, 90px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 46px); }
.interest-block h3 { font-size: 22px; font-weight: 700; margin-bottom: 22px; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: start; }
.direct { margin-top: 42px; }
.direct-title { font-weight: 600; margin-bottom: 16px; }
.direct-list { list-style: none; display: grid; gap: 12px; }
.direct-list li { display: flex; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.direct-ico { display: inline-grid; place-content: center; width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--accent); color: var(--on-accent); }
.direct-ico .icon { font-size: 20px; }
.direct-label { width: 84px; flex: none; color: var(--muted); font-size: 14px; }
.direct-list li a { font-weight: 600; }
.direct-list li a:hover { color: #9a8a00; }
[data-fill] { color: var(--muted); font-style: italic; }

.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 10px; }
.field input, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--text); font-family: var(--font); font-size: 15px; resize: vertical; transition: border-color .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.form-note { margin-top: 16px; color: #9a8a00; font-size: 14px; font-weight: 600; }

/* ============ FOOTER ============ */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 80px); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer-brand .footer-logo { color: #fff; width: 210px; height: 48px; }
.footer-copy { color: var(--muted); font-size: 14px; margin-top: 16px; }
.footer-nav, .footer-social { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a, .footer-social a { color: #c0c0c0; font-size: 15px; transition: color .2s; display: inline-flex; align-items: center; gap: 9px; }
.footer-social a .icon { font-size: 18px; color: var(--muted); }
.footer-nav a:hover, .footer-social a:hover { color: var(--accent); }

/* ============ MODAL ============ */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(5px); animation: fade .25s ease; }
.modal-dialog { position: relative; width: min(720px, 100%); max-height: 88vh; background: #141414; border: 1px solid #2a2a2a; border-radius: 22px; overflow: hidden; box-shadow: 0 50px 120px -20px rgba(0,0,0,.85); animation: pop .28s cubic-bezier(.2,.8,.2,1); }
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98) } }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.08); color: #fff; display: grid; place-content: center; transition: background .2s; }
.modal-close .icon { font-size: 20px; }
.modal-close:hover { background: rgba(255,255,255,.16); }
.modal-scroll { padding: clamp(28px, 4vw, 48px); overflow-y: auto; max-height: 88vh; color: #f2f2f2; }
.modal-title { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.5px; }
.modal-block { margin-top: 30px; }
.sub-h { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; margin-bottom: 14px; color: #fff; }
.sub-ico { display: inline-grid; place-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: var(--on-accent); }
.sub-ico .icon { font-size: 20px; }
.timeline { display: grid; gap: 22px; margin-top: 8px; }
.tl-tag { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--on-accent); background: var(--accent); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
body.modal-open { overflow: hidden; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; align-items: start; }
  .hero-portrait { height: 46vh; order: -1; }
  .hero-sub { max-width: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media .ph-frame { min-height: 380px; max-width: 420px; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .pcard { grid-template-columns: 1fr; }
  .pcard-media { min-height: 260px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stack-card { grid-template-columns: auto 1fr; }
  .stack-card .stack-ico { display: none; }
}
@media (max-width: 720px) {
  .hero-name { font-size: clamp(30px, 8.5vw, 42px); letter-spacing: -.8px; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: rgba(10,10,10,.97); backdrop-filter: blur(14px); padding: 22px var(--pad); gap: 18px; border-bottom: 1px solid #222; }
  .expertise-grid { grid-template-columns: 1fr; }
  .check-list.two-col { grid-template-columns: 1fr; }
  .pcard { position: static; }
  .stack-card { position: static; grid-template-columns: 1fr; gap: 14px; }
  .stack-num { font-size: 40px; }
}
