/* Base */
:root {
  --ink: #17252e;
  --ink-soft: #2d3f48;
  --paper: #f6f5f1;
  --white: #ffffff;
  --muted: #6b777c;
  --line: #d9dddb;
  --orange: #f2762c;
  --orange-deep: #d95715;
  --blue: #2f568d;
  --shadow: 0 18px 50px rgba(23, 37, 46, .12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 99; transform: translateY(-140%); background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { transform: translateY(0); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.035em; }
h1 { max-width: 720px; margin-bottom: 22px; font-size: clamp(2.75rem, 6vw, 5.5rem); }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { margin-bottom: 10px; font-size: 1.25rem; }
p { margin-bottom: 0; }
.section { padding: 112px 0; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(242,118,44,.14); }
.eyebrow-light { color: #bdd1e9; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 53px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .96rem;
  font-weight: 760;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button svg { width: 20px; fill: currentColor; }
.button-primary { background: var(--orange); color: var(--white); box-shadow: 0 9px 25px rgba(217,87,21,.25); }
.button-primary:hover { background: var(--orange-deep); }
.button-ghost { background: transparent; border-color: rgba(23,37,46,.25); color: var(--ink); }
.button-ghost:hover { border-color: var(--ink); background: rgba(23,37,46,.04); }
.button-light { background: var(--white); color: var(--ink); }
.button-outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.button-outline-light:hover { background: rgba(255,255,255,.11); border-color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid rgba(23,37,46,.07);
  background: rgba(246,245,241,.93);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; min-width: 0; gap: 11px; }
.brand-mark { width: 108px; flex: 0 0 108px; overflow: hidden; border: 1px solid rgba(23,37,46,.12); border-radius: 9px; background: var(--white); }
.brand-mark img { width: 100%; height: 55px; object-fit: contain; }
.brand-copy { display: grid; gap: 1px; line-height: 1.1; }
.brand-copy strong { font-size: 1.05rem; letter-spacing: -.02em; }
.brand-copy small { max-width: 158px; color: var(--muted); font-size: .69rem; line-height: 1.2; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 21px; margin-left: auto; }
.main-nav a { position: relative; color: var(--ink-soft); font-size: .91rem; font-weight: 680; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; transform: scaleX(0); background: var(--orange); transition: transform .2s ease; transform-origin: right; }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-phone { flex: 0 0 auto; min-height: 42px; padding: 0 14px; border: 1px solid rgba(23,37,46,.2); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; font-size: .84rem; font-weight: 760; transition: border .2s ease, background .2s ease; }
.header-phone:hover { background: var(--white); border-color: var(--ink); }
.header-phone.is-revealed { border-color: var(--blue); color: var(--blue); }
.header-phone .phone-full { white-space: nowrap; }

/* Hero */
.hero { position: relative; padding: 72px 0 78px; overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 550px; height: 550px; top: -255px; left: -170px; border-radius: 50%; background: rgba(242,118,44,.11); filter: blur(2px); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 350px; height: 350px; right: -140px; bottom: 30px; border: 1px solid rgba(47,86,141,.15); border-radius: 50%; box-shadow: 0 0 0 38px rgba(47,86,141,.035), 0 0 0 76px rgba(47,86,141,.02); }
.hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(36px, 7vw, 92px); }
.hero-copy { padding: 32px 0; }
.hero-lead { max-width: 610px; color: var(--ink-soft); font-size: clamp(1.12rem, 2vw, 1.38rem); line-height: 1.45; }
.hero-note { max-width: 560px; margin-top: 18px; color: var(--muted); font-size: .95rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 31px; }
.hero-facts { display: flex; gap: 26px; margin-top: 44px; padding-top: 21px; border-top: 1px solid var(--line); }
.hero-facts div { display: grid; gap: 2px; }
.hero-facts strong { color: var(--ink); font-size: .92rem; }
.hero-facts span { color: var(--muted); font-size: .79rem; }
.hero-media { position: relative; margin: 0; }
.hero-image-wrap { overflow: hidden; min-height: 430px; border-radius: var(--radius-lg); background: #dce2e4; box-shadow: var(--shadow); }
.hero-image-wrap img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; object-position: 52% center; }
.hero-media figcaption { margin-top: 10px; color: var(--muted); font-size: .74rem; }
.hero-stamp { position: absolute; right: -18px; bottom: 42px; display: flex; align-items: center; gap: 9px; width: 138px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.6); border-radius: 13px; background: rgba(23,37,46,.92); color: var(--white); box-shadow: 0 10px 30px rgba(23,37,46,.26); }
.hero-stamp svg { width: 29px; fill: var(--orange); }
.hero-stamp span { font-size: .74rem; font-weight: 800; line-height: 1.15; text-transform: uppercase; letter-spacing: .06em; }

/* Services */
.services { background: var(--white); }
.section-heading { max-width: 720px; margin-bottom: 46px; }
.section-heading > p:last-child { max-width: 630px; color: var(--muted); font-size: 1.07rem; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.service-card { min-height: 265px; padding: 26px 23px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); transition: transform .25s ease, border .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-5px); border-color: rgba(47,86,141,.32); box-shadow: 0 14px 34px rgba(23,37,46,.08); }
.service-card p { color: var(--muted); font-size: .92rem; }
.icon-box { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 28px; border-radius: 13px; background: rgba(242,118,44,.13); color: var(--orange-deep); }
.icon-box svg { width: 31px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Process */
.process { background: #e9edeb; }
.process-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(38px, 8vw, 118px); align-items: start; }
.process-intro { position: sticky; top: 111px; }
.process-intro > p:not(.eyebrow) { max-width: 440px; color: var(--muted); font-size: 1.03rem; }
.text-link { display: inline-flex; gap: 11px; align-items: center; margin-top: 31px; color: var(--blue); font-weight: 800; }
.text-link span { display: inline-block; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }
.steps-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.steps-list li { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 21px 0 24px; border-top: 1px solid rgba(23,37,46,.15); }
.steps-list li:last-child { border-bottom: 1px solid rgba(23,37,46,.15); }
.steps-list > li > span { color: var(--orange-deep); font-size: .82rem; font-weight: 850; letter-spacing: .08em; }
.steps-list h3 { margin-bottom: 7px; font-size: 1.22rem; }
.steps-list p { color: var(--muted); font-size: .94rem; }

/* Approach */
.approach { padding-top: 95px; padding-bottom: 95px; }
.approach-card { display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); color: var(--white); box-shadow: var(--shadow); }
.approach-visual { position: relative; min-height: 360px; overflow: hidden; background: linear-gradient(135deg, #1b313c, #213f4e); }
.approach-visual::after { content: ""; position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 30px 30px; }
.line { position: absolute; z-index: 1; height: 17px; border-radius: 999px; transform: rotate(-23deg); transform-origin: left center; box-shadow: 0 7px 14px rgba(0,0,0,.22); }
.line-a { top: 85px; left: -55px; width: 410px; background: var(--orange); }
.line-b { top: 168px; left: 42px; width: 440px; background: #e6e5df; }
.line-c { top: 260px; left: -48px; width: 400px; background: var(--blue); }
.terminal { position: absolute; z-index: 2; width: 52px; height: 52px; border: 9px solid #e6e5df; border-radius: 50%; background: #d7d7d3; box-shadow: 0 7px 14px rgba(0,0,0,.25); }
.terminal-a { top: 51px; right: 31px; }
.terminal-b { bottom: 56px; right: 77px; border-color: var(--orange); background: #f5c59e; }
.approach-copy { padding: clamp(34px, 6vw, 71px); }
.approach-copy h2 { max-width: 640px; }
.approach-copy > p:not(.eyebrow):not(.small-print) { max-width: 620px; color: #d4dde1; font-size: 1.06rem; }
.small-print { margin-top: 21px; color: #9aabb2; font-size: .81rem; }

/* Work */
.work { background: var(--white); }
.work-photo { margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: #d6dce0; }
.work-photo img { width: 100%; aspect-ratio: 16 / 8.4; object-fit: cover; object-position: center 48%; transition: transform .5s ease; }
.work-photo:hover img { transform: scale(1.02); }
.work-photo figcaption { display: flex; justify-content: space-between; gap: 22px; padding: 17px 21px; background: var(--ink); color: var(--white); }
.work-photo figcaption span { font-weight: 760; }
.work-photo figcaption small { color: #b8c6cd; text-align: right; }

/* Contacts */
.contact-section { padding: 92px 0; background: var(--blue); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr .88fr; gap: clamp(40px, 9vw, 136px); align-items: center; }
.contact-copy h2 { max-width: 650px; }
.contact-copy > p:not(.eyebrow) { max-width: 570px; color: #d7e2eb; font-size: 1.06rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.contact-card { overflow: hidden; border-radius: var(--radius-md); background: var(--white); color: var(--ink); box-shadow: 0 18px 44px rgba(0,0,0,.17); }
.contact-item { display: grid; gap: 4px; padding: 23px 25px; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-label { color: var(--muted); font-size: .73rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-item a { width: fit-content; color: var(--ink); font-size: 1.08rem; font-weight: 760; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(47,86,141,.32); }
.contact-item a:hover { color: var(--blue); }
.phone-line { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.phone-mask { color: var(--ink); font-size: 1.08rem; font-weight: 760; }
.inline-reveal { padding: 7px 10px; border: 1px solid rgba(47,86,141,.35); border-radius: 999px; background: #f1f6fb; color: var(--blue); font-size: .78rem; font-weight: 800; cursor: pointer; }
.inline-reveal:hover { background: #e5f0fa; }
.contact-phone { font-size: 1.08rem !important; }
.phone-item.is-revealed .phone-mask, .phone-item.is-revealed .inline-reveal { display: none; }

/* Requisites/Footer */
.requisites { padding: 28px 0; background: #e9edeb; }
.requisites-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.requisites-grid p { display: grid; gap: 3px; }
.requisites-grid span { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.requisites-grid strong { font-size: .95rem; font-weight: 750; }
.site-footer { padding: 23px 0 90px; background: var(--ink); color: #c9d3d7; font-size: .82rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; }
.mobile-contact-bar { display: none; }

/* Motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: .09s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .23s; }

/* Adaptive */
@media (max-width: 960px) {
  .main-nav { gap: 14px; }
  .brand-copy { display: none; }
  .hero-grid, .process-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 10px 0 0; }
  .hero-media { max-width: 760px; }
  .process-intro { position: static; }
  .approach-card { grid-template-columns: 1fr; }
  .approach-visual { min-height: 260px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .container { width: min(100% - 28px, 1180px); }
  .site-header { position: relative; }
  .header-inner { min-height: 70px; gap: 12px; }
  .brand-mark { width: 89px; flex-basis: 89px; }
  .brand-mark img { height: 45px; }
  .main-nav { display: none; }
  .header-phone { margin-left: auto; font-size: .74rem; padding: 0 11px; }
  .hero { padding: 36px 0 50px; }
  h1 { font-size: clamp(2.45rem, 12vw, 4.15rem); }
  h2 { font-size: clamp(2rem, 9vw, 2.85rem); }
  .hero-note { font-size: .9rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { width: 100%; }
  .hero-facts { gap: 18px; margin-top: 31px; }
  .hero-facts strong { font-size: .85rem; }
  .hero-image-wrap, .hero-image-wrap img { min-height: 320px; }
  .hero-stamp { right: 12px; bottom: 37px; }
  .section { padding: 76px 0; }
  .section-heading { margin-bottom: 30px; }
  .section-heading > p:last-child, .process-intro > p:not(.eyebrow), .approach-copy > p:not(.eyebrow):not(.small-print), .contact-copy > p:not(.eyebrow) { font-size: .98rem; }
  .service-grid { grid-template-columns: 1fr; gap: 11px; }
  .service-card { min-height: auto; padding: 23px 20px; }
  .service-card .icon-box { margin-bottom: 21px; }
  .steps-list li { grid-template-columns: 51px 1fr; gap: 12px; }
  .approach { padding-top: 64px; padding-bottom: 64px; }
  .approach-visual { min-height: 200px; }
  .line-a { top: 47px; left: -58px; width: 320px; }
  .line-b { top: 94px; left: 25px; width: 330px; }
  .line-c { top: 147px; left: -60px; width: 300px; }
  .terminal { width: 39px; height: 39px; border-width: 7px; }
  .terminal-a { top: 31px; right: 22px; }
  .terminal-b { bottom: 27px; right: 52px; }
  .work-photo img { aspect-ratio: 4 / 3; }
  .work-photo figcaption { display: grid; gap: 5px; }
  .work-photo figcaption small { text-align: left; }
  .contact-section { padding: 72px 0; }
  .contact-actions .button { width: 100%; }
  .requisites-grid { grid-template-columns: 1fr; gap: 15px; }
  .site-footer { padding-bottom: 84px; }
  .footer-inner { display: grid; gap: 7px; }
  .mobile-contact-bar { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 1.3fr; gap: 1px; border-top: 1px solid rgba(255,255,255,.15); background: rgba(23,37,46,.92); backdrop-filter: blur(12px); }
  .mobile-contact-bar > * { display: grid; place-items: center; min-height: 57px; padding: 8px 12px; border: 0; background: transparent; color: var(--white); font-size: .82rem; font-weight: 800; text-align: center; cursor: pointer; }
  .mobile-contact-bar a { background: rgba(255,255,255,.07); }
  .mobile-contact-bar button { color: #ffd2b9; }
  .mobile-contact-bar button .phone-display { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
