@font-face {
  font-family: Manrope;
  src: url("assets/manrope.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("assets/golostext.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --ink: #102338;
  --muted: #46586b;
  --paper: #f1f5fa;
  --accent: #0039c9;
  --navy: #061d31;
  --light: #e6efff;
  --gutter: clamp(18px,4.35vw,78px);
  --outline: #b8420b;
  --diagonal-slope: .324;
}
html { scroll-padding-block-start: 80px; }
body { font: 1rem/1.5 "Golos Text",Arial,sans-serif; }
h1,h2,h3 { font-family: Manrope,"Golos Text",sans-serif; }
:focus-visible { outline: 3px solid var(--outline); outline-offset: 4px; }
::selection { color: var(--navy); background: #b8d8ff; }
.button { border-radius: 8px; gap: 12px; }
.button:hover { background: #002d9e; }
.button.secondary:hover { color: white; }
.shell, .site-header .wrap, .site-footer .wrap {
  width: min(calc(100% - 2 * var(--gutter)), 1480px);
  margin-inline: auto;
}
.line-icon { display: block; width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.site-header, .site-footer { color: white; background: var(--navy); --outline: #9dc9ff; }
.site-header { --mast-height: 68px; position: sticky; inset-block-start: 0; z-index: 10; border-bottom-color: #35526e; }
.skip { position: fixed; z-index: 11; }
.site-header .mast { display: flex; align-items: center; gap: clamp(12px,1.35vw,26px); min-height: var(--mast-height); padding-block: 8px; }
.site-logo { display: block; width: 158px; height: auto; }
.mast-description { flex: none; padding-inline-start: 15px; border-left: 1px solid #6b8196; font-size: .78rem; line-height: 1.23; }
.site-header #main-nav { display: flex; flex-wrap: nowrap; align-items: center; gap: clamp(13px,1.55vw,28px); margin: 0 auto; }
.site-header #main-nav > a, .site-header .nav-group > summary { color: white; text-decoration: none; font-size: .91rem; font-weight: 600; white-space: nowrap; }
.site-header #main-nav > a:hover, .site-header .nav-group > summary:hover,
.site-header .nav-group[open] > summary { color: #a8cdff; }
.site-header .nav-group > summary { gap: 7px; }
.site-header .nav-group > summary::after {
  content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0;
  transform: translateY(-2px) rotate(45deg);
}
.site-header .nav-group[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.site-header .nav-menu { color: var(--ink); border-radius: 0 0 8px 8px; box-shadow: 0 8px 20px rgb(0 0 0 / 14%); }
.site-header .nav-menu a { color: var(--ink); text-decoration: none; }
.site-header .services-group { position: static; }
.services-group:not([open]) .services-menu { display: none; }
.services-menu {
  position: absolute; z-index: 4; top: 100%; inset-inline: var(--gutter);
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px;
  width: min(calc(100% - 2 * var(--gutter)), 1480px); max-height: min(66vh,520px);
  overflow: auto; margin-inline: auto; padding: 24px; border: 1px solid #b7c9dd;
  border-radius: 0 0 12px 12px; background: #fff; color: var(--ink); --outline: #a74612;
}
.services-menu h2 { margin: 0 0 6px; font-size: 1.02rem; line-height: 1.25; }
.services-menu .list { list-style: none; margin: 0; padding: 0; }
.services-menu a { display: flex; padding: 8px; min-height: 36px; border-radius: 8px; font-size: .9rem; line-height: 1.3; text-decoration: none; }
.services-menu h2 a { font-size: inherit; color: var(--accent); }
.services-menu a:is(:hover,:focus-visible) { background: #e9f0ff; color: var(--accent); }
:where(.services-menu, #full-menu) .list a { color: var(--ink); }
.menu-section-title { display: flex; align-items: center; gap: 8px; }
.menu-section-title .line-icon { flex: none; width: 21px; height: 21px; color: var(--accent); }
.mast-actions { position: relative; display: flex; align-items: center; gap: 9px; margin-inline-start: auto; }
.mast-phone { color: white; white-space: nowrap; font-size: clamp(1rem,1.2vw,1.15rem); font-weight: 650; }
.mast-phone:hover { color: #a8cdff; }
.mast-cta {
  min-height: 44px; padding: 0 12px; font-size: .88rem; white-space: nowrap;
  color: #fff; background: var(--accent); border-color: var(--accent);
}
.mast-cta:hover { background: #002d9e; }
.mast-actions .messenger-links, .site-footer .messenger-links { gap: 2px; }
.mast-actions .messenger-links.compact .messenger, .site-footer .messenger-links.compact .messenger {
  display: grid; place-items: center; width: 36px; height: 44px; padding: 8px 5px; border: 0; background: transparent; color: white;
}
.messenger svg {
  width: 26px; height: 26px; padding: 4px; border-radius: 50%;
  color: white; background: var(--messenger-color, var(--navy));
}
.messenger-telegram { --messenger-color: #148cc8; --messenger-hover: #0875ad; }
.messenger-max { --messenger-color: #743ce5; --messenger-hover: #6229cc; }
.messenger:is(:hover,:focus-visible) svg {
  background: var(--messenger-hover, var(--navy));
}
.mast-search { border: 0; margin: 0; padding: 0; }
.mast-search > summary, .mast-actions .menu-toggle, .mast-call {
  display: grid; place-items: center; min-width: 44px; min-height: 44px;
  padding: 0; color: white; border: 1px solid #6b8196; border-radius: 8px; background: transparent;
}
.mast-search > summary { list-style: none; }
.mast-call { display: none; }
.mast-call .line-icon { width: 22px; height: 22px; }
.mast-call:is(:hover,:focus-visible), .menu-toggle:is(:hover,[aria-expanded="true"]) { background: #153957; }
.mast-search > summary::-webkit-details-marker { display: none; }
.mast-search > summary { border-color: #6b8196; }
.mast-search > summary:hover { background: #153957; }
.mast-search .line-icon { width: 22px; height: 22px; }
.mast-search[open] > summary { background: #153d60; }
.mast-search .header-search {
  position: absolute; z-index: 3; inset: calc(100% + 14px) 0 auto auto;
  width: min(360px, calc(100vw - 2 * var(--gutter))); margin: 0; padding: 8px;
  border: 1px solid #a7bad0; border-radius: 10px; background: white; box-shadow: 0 10px 22px rgb(0 0 0 / 16%);
  --outline: var(--accent);
}
.mast-search input { width: 100%; margin: 0; }
.mast-search .header-search :is(input,button) { min-height: 40px; padding: 7px 10px; font-size: .92rem; line-height: 1.25; }
.mast-search .header-search button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
:is(.header-search, .catalog-search) input[type="search"],
form[data-return] .field > :is(input, textarea) {
  border-color: #808e9f;
}
:is(.header-search, .catalog-search) input[type="search"]:focus,
form[data-return] .field > :is(input, textarea):focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.mast-search:not([open]) .header-search { display: none; }
.menu-icon { display: grid; place-items: center; width: 20px; height: 20px; }
.menu-icon::before, .menu-icon::after, .menu-icon > span {
  grid-area: 1 / 1;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}
.menu-icon::before { transform: translateY(-6px); }
.menu-icon::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon > span { opacity: 0; transform: scaleX(.45); }
#content.home-design { width: 100%; margin: 0; padding: 0; background: var(--paper); }
.home-design section { margin-block: 0; }
.home-design h1, .home-design h2, .home-design h3 { margin: 0; }
.home-design h2 { font-size: clamp(29px,3.1vw,48px); line-height: 1.04; letter-spacing: -.045em; }
.home-design h3 { font-size: clamp(20px,1.68vw,28px); line-height: 1.09; letter-spacing: -.035em; }
.home-design h1 { max-width: none; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 10px;
  font-size: .76rem; line-height: 1.4; font-weight: 700; text-transform: uppercase; letter-spacing: .075em;
}
.eyebrow::before { content: ""; display: block; flex: 0 0 33px; height: 2px; background: var(--accent); }
.service-hero { display: grid; background: var(--navy); color: white; --outline: #9dc9ff; }
.hero-intro { min-width: 0; padding: 34px var(--gutter); background: linear-gradient(126deg,#061d31 12%,#092d4c 68%,#0b4779); }
.hero-intro .eyebrow { margin-bottom: 15px; }
.hero-intro .eyebrow::before, .inquiry .eyebrow::before { background: #75baff; }
.hero-intro h1 { width: fit-content; font-size: clamp(36px,4vw,62px); line-height: .99; letter-spacing: -.059em; text-wrap: initial; }
.hero-intro h1 .hero-title-tail { display: block; margin-top: 14px; font-size: .71em; line-height: 1.07; letter-spacing: -.048em; }
.hero-description { color: #edf4ff; max-width: 35ch; margin: 23px 0 0; }
.hero-panel { position: relative; z-index: 0; min-width: 0; display: flex; align-items: end; min-height: 320px; }
.hero-art, .hero-art img, .hero-art::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -1; overflow: hidden; }
.hero-art img { object-fit: cover; object-position: center 35%; }
.hero-project .hero-art img { object-position: center 27%; }
.hero-art::after { content: ""; background: linear-gradient(180deg,#061d3100 22%,#061d319e 46%,#061d31 78%); }
.hero-panel-copy { position: relative; padding: 22px 24px; }
.hero-panel-copy .line-icon { width: 39px; height: 39px; margin-bottom: 7px; }
.hero-panel-copy h2 { max-width: 15ch; font-size: clamp(24px,2.02vw,34px); line-height: 1.03; letter-spacing: -.045em; text-wrap: initial; }
.hero-panel-copy p { margin: 9px 0 11px; max-width: 30ch; font-size: .93rem; line-height: 1.43; color: #edf4ff; }
.ghost-link {
  display: inline-flex; align-items: center; justify-content: space-between;
  min-height: 44px; gap: 20px; padding: 9px 14px; border: 1px solid #e4efff; border-radius: 6px;
  color: #fff; font-size: .87rem; font-weight: 650; text-decoration: none;
}
.hero-panel:is(:hover,:focus-within) .ghost-link {
  color: #fff; background: var(--accent); border-color: #8abaff;
}
.hero-panel:is(:hover,:focus-within) .line-icon { color: #a8cdff; }
@media (min-width: 1280px) {
  .service-hero {
    --hero-height: clamp(450px,34vw,665px);
    --slant: calc(var(--hero-height) * var(--diagonal-slope));
    grid-template-columns: 26% 21.5% 22.7% minmax(0,1fr);
    min-height: var(--hero-height); overflow: clip;
  }
  .hero-intro {
    display: flex; flex-direction: column; justify-content: center;
    padding: 30px 0 76px var(--gutter); isolation: isolate; background: none;
  }
  .hero-intro::before { position: absolute; z-index: -1; inset: 0 calc(-1 * var(--slant)) 0 0; content: ""; background: linear-gradient(123deg,#061d31 14%,#0a3154 60%,#0b4c82); }
  .hero-intro { position: relative; }
  .hero-intro .eyebrow { width: calc(100% + 32px); }
  .hero-intro h1 { font-size: clamp(42px,3.42vw,64px); max-width: 100%; }
  .hero-intro h1 .hero-title-tail { font-size: .67em; }
  .hero-intro .hero-description { padding-inline-end: 20px; }
  .hero-panel { pointer-events: none; }
  .hero-panel :is(.hero-art,.hero-panel-copy) { pointer-events: auto; }
  .hero-panel .hero-art { width: calc(100% + var(--slant)); clip-path: polygon(var(--slant) 0,100% 0,calc(100% - var(--slant)) 100%,0 100%); }
  .hero-panel::before {
    content: ""; position: absolute; z-index: 1; inset: 0 auto 0 0; width: calc(var(--slant) + 2px);
    background: #73c1ff; clip-path: polygon(var(--slant) 0,100% 0,2px 100%,0 100%); pointer-events: none;
  }
  .hero-panel .hero-art img { object-position: 58% 30%; }
  .hero-panel .hero-art::after { background: linear-gradient(180deg,#061d3100 15%,#061d314d 40%,#061d31dc 64%,#061d31 82%); }
  .hero-panel-copy {
    width: 100%; display: grid; justify-items: start; gap: 8px;
    padding: 0 clamp(14px,1.2vw,24px) 26px calc(16px + var(--slant) * .52);
  }
  .hero-panel:not(:last-child) .hero-panel-copy { width: calc(100% + 22px); }
  .hero-panel-copy .line-icon { margin: 0; }
  .hero-panel-copy h2 { max-width: none; font-size: clamp(21px,1.61vw,31px); }
  .hero-panel-copy p { margin: 0 0 3px; }
}
.company-band {
  display: grid; grid-template-columns: 1.13fr 1.02fr .67fr; align-items: center;
  gap: 18px; padding-block: clamp(28px,4vw,64px);
}
.company-heading { grid-column: 1/-1; }
.company-lead > p { max-width: 52ch; margin: 0 0 15px; }
.company-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; }
.company-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 430px; margin: 19px 0 0; }
.company-stats > div {
  display: flex; flex-direction: column-reverse; justify-content: flex-end;
  gap: 5px; padding: 2px clamp(7px,1.35vw,20px);
}
.company-stats > div:first-child { padding-inline-start: 0; }
.company-stats > div:last-child { padding-inline-end: 0; }
.company-stats > div + div { border-inline-start: 1px solid #7999de; }
.company-stats dt { font-size: clamp(.78rem,1vw,.91rem); line-height: 1.27; }
.company-stats dd {
  margin: 0; color: var(--accent);
  font: 800 clamp(26px,2.4vw,37px)/1 Manrope,"Golos Text",sans-serif;
  font-variant-numeric: tabular-nums;
}
.company-photo {
  --photo-height: clamp(240px,22vw,340px);
  --photo-slant: calc(var(--photo-height) * var(--diagonal-slope));
  position: relative; margin: 0 calc(var(--photo-slant) / 2);
  overflow: hidden; border-radius: 15px; transform: skewX(-18deg);
}
.company-photo .helmet-photo {
  display: block; width: calc(100% + var(--photo-slant)); max-width: none;
  height: var(--photo-height); margin-inline-start: calc(var(--photo-slant) / -2);
  object-fit: cover; object-position: center 56%; transform: skewX(18deg);
}
.company-photo .helmet-logo {
  position: absolute; top: 48%; left: 56%; display: block; width: clamp(44px,5.1vw,80px); height: auto;
  translate: -50% -50%; transform: skewX(18deg) perspective(180px) rotateY(14deg) rotate(-3deg);
  mix-blend-mode: multiply; opacity: .94;
}
.company-points { display: grid; gap: 14px; list-style: none; padding: 6px 0 6px 18px; margin: 0; border-left: 1px solid #709cdf; }
.company-points li { display: flex; align-items: center; gap: 12px; font-size: .94rem; line-height: 1.3; }
.company-points .line-icon { flex: 0 0 34px; }
.inquiry { position: relative; isolation: isolate; display: flex; align-items: center; gap: 18px 34px; min-height: 225px; padding: 28px clamp(22px,4.15vw,68px); background: #084a83; color: white; border-radius: 14px; --outline: #9dc9ff; }
.inquiry::before, .inquiry > img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.inquiry > img { object-fit: cover; object-position: center 43%; z-index: -2; }
.inquiry::before { content: ""; background: linear-gradient(90deg,#05243d 6%,#084a83ee 47%,#0637580f); z-index: -1; }
.inquiry > div { max-width: 560px; }
.inquiry p:last-child { margin: 12px 0 0; max-width: 42ch; color: #f1f7ff; }
.inquiry .button { flex-shrink: 0; color: var(--accent); background: #fff; border-color: #fff; }
.inquiry .button:is(:hover,:focus-visible) { color: #002d9e; background: #e4efff; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (view-timeline-name: --inquiry-scroll) {
    .inquiry {
      --inquiry-drift: clamp(46px,6.5vw,96px);
      overflow: hidden;
      view-timeline-name: --inquiry-scroll;
    }
    .inquiry > img {
      inset-block-start: calc(-1 * var(--inquiry-drift));
      height: calc(100% + 2 * var(--inquiry-drift));
      border-radius: 0;
      animation: inquiry-parallax linear both;
      animation-timeline: --inquiry-scroll;
      animation-range: cover 12% cover 88%;
    }
    @keyframes inquiry-parallax {
      from { transform: translateY(calc(-1 * var(--inquiry-drift))); }
      to { transform: translateY(var(--inquiry-drift)); }
    }
  }
}
.directions, .portfolio { padding-block-start: clamp(30px,4vw,58px); }
.portfolio { padding-block-end: clamp(34px,4.5vw,70px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 23px; }
.section-link { min-height: 44px; display: inline-flex; align-items: center; gap: 14px; color: var(--accent); font-weight: 650; text-decoration: none; }
.section-link:hover { color: #0a367f; }
.portfolio .eyebrow { white-space: nowrap; }
.direction-grid, .project-grid { display: grid; gap: 15px; }
.direction-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(15px,2.5vw,36px); }
.direction-card, .project-card {
  position: relative; isolation: isolate; min-width: 0; display: flex; align-items: end;
  overflow: hidden;
  padding: 19px 20px 20px; border-radius: 13px; color: #fff; background: #10283f;
  text-decoration: none; --outline: var(--accent);
}
.direction-card {
  align-items: flex-start; min-height: 236px;
  padding: 24px clamp(16px,1.75vw,29px) 22px;
}
.direction-card > div { width: 100%; }
.direction-card .line-icon { margin-bottom: 13px; }
.direction-card > img, .direction-card::after, .project-card > img, .project-card::after {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit;
}
.direction-card > img, .project-card > img { z-index: -2; object-fit: cover; }
.direction-card::after { content: ""; z-index: -1; background: linear-gradient(90deg,#061d31f0 7%,#061d31a8 59%,#061d3155); }
.direction-card h3, .project-card h3 { text-wrap: initial; }
.direction-card p, .project-card p { font-size: .9rem; max-width: 30ch; line-height: 1.4; margin: 8px 0 0; }
.direction-card p { padding-inline-end: 34px; margin-top: 11px; }
.direction-feature { color: #10283f; background: #dceaff; }
.direction-feature > img { width: 100%; object-fit: cover; object-position: top right; }
.direction-feature .project-trace {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  pointer-events: none; fill: none; stroke: var(--accent); stroke-width: 1.65;
  stroke-linecap: round; stroke-linejoin: round;
  mask-image: linear-gradient(90deg,transparent 65%,#000 81%);
}
.project-trace path { vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.direction-feature::after { background: linear-gradient(22deg,#e8f1ff 21%,#e8f1ffd9 38%,#e8f1ff00 75%); }
.direction-badge {
  display: inline-block; margin-top: 8px; padding: 8px 10px;
  border-radius: 5px; color: #fff; background: var(--accent); font-size: .75rem; line-height: 1.2;
}
.round-arrow { display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--accent); position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; font-size: 1.18rem; }
:is(.direction-card,.project-card):is(:hover,:focus-visible) :is(h2,h3,.line-icon) { color: #a8cdff; }
.direction-feature:is(:hover,:focus-visible) :is(h3,.line-icon) { color: var(--accent); }
:is(.direction-card,.project-card):is(:hover,:focus-visible) .round-arrow { color: #fff; background: var(--accent); }
.project-card { min-height: clamp(215px,18vw,315px); padding: 22px; }
.project-card::after { content: ""; z-index: -1; background: linear-gradient(10deg,#061d31 8%,#061d31e0 41%,#061d3110 90%); }
.project-card > div { padding-inline-end: 37px; }
.project-tag { display: inline-block; margin-bottom: 10px; padding: 8px 12px; border-radius: 6px; background: #fff; color: var(--ink); font-size: .78rem; font-weight: 650; }
.site-footer { border-top-color: #294867; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1fr 1.2fr 1.15fr .9fr .67fr; gap: 24px; padding-block: 28px 22px; }
.site-footer :is(a,p,small) { color: #edf4ff; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #a8cdff; }
.site-footer h2 { font-size: 1rem; margin: 0 0 7px; }
.site-footer .footer-brand .site-logo { width: 155px; margin-bottom: 11px; }
.site-footer .footer-brand p, .footer-contacts p { font-size: .88rem; }
.site-footer .footer-contacts a { display: block; width: fit-content; }
.site-footer li a, .site-footer .footer-contacts a { min-height: 31px; font-size: .92rem; }
.site-footer .footer-contacts a[href^="tel:"] { font-size: 1rem; font-weight: 650; }
.site-footer .footer-end { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 20px; border-top: 1px solid #62798f; padding: 16px 0 14px; font-size: .84rem; }
.site-footer .footer-end small { margin-right: auto; }
#content:not(.home-design) { min-height: 55vh; }
#content:not(.home-design) h1 { max-width: 26ch; }
#content .button.secondary { color: var(--accent); }
#content .button.secondary:hover { color: #fff; }
#full-menu {
  position: absolute;
  inset: 100% 0 auto;
  height: calc(100dvh - var(--mast-height) - 1px);
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: white;
  border-top: 1px solid var(--line);
  --outline: var(--accent);
}
body:has(#full-menu:not([hidden])) { overflow: hidden; }
#full-menu nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
  margin: 0;
  padding: 20px var(--gutter) 24px;
}
#full-menu .list { margin: 0; padding: 0; list-style: none; }
#full-menu nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px;
  border-radius: 8px;
}
#full-menu nav a:is(:hover,:focus-visible,[aria-current="page"]) { background: #e9f0ff; color: var(--accent); }
.full-menu-contacts {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 4px;
  padding: 20px var(--gutter) max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.full-menu-contacts > a { display: inline-flex; align-items: center; min-height: 44px; }
.full-menu-contacts .full-menu-phone { color: var(--ink); font-size: 1.25rem; font-weight: 750; }
.full-menu-contacts .full-menu-email { color: var(--ink); }
.full-menu-contacts > a:not(.button):hover { color: var(--accent); }
.full-menu-contacts > .button { margin-block-start: 10px; }
@media (width < 1024px) {
  .site-header #main-nav { display: none; }
  .mast-call { display: grid; }
}
@media (width < 1280px) {
  .service-hero { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .hero-intro { grid-column: 1/-1; }
  .hero-intro h1 { max-width: 21ch; }
  .hero-panel + .hero-panel { border-left: 1px solid #497da9; }
}
@media (width < 1440px) {
  .mast-description { display: none; }
}
@media (1280px <= width < 1440px) {
  .hero-intro .eyebrow { font-size: .7rem; }
  .hero-panel-copy { padding-inline-start: calc(30px + var(--slant) * .52); }
  .hero-panel:not(:last-child) .hero-panel-copy { width: calc(100% + 36px); }
  .hero-panel-copy p { font-size: .9rem; }
}
@media (max-width: 1140px) {
  .site-header #main-nav { gap: 14px; }
  .mast-phone, #header-messengers { display: none; }
  .company-band { grid-template-columns: 1fr 1fr; }
  .company-points { grid-column: 1/-1; grid-template-columns: repeat(4,minmax(0,1fr)); border-left: 0; border-top: 1px solid #95b4db; padding: 16px 0 0; }
  .direction-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .site-footer .footer-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .brand .site-logo { width: 142px; }
  .hero-intro { padding-block: 28px; }
  .hero-panel-copy { padding-inline: 16px; }
  .hero-panel-copy h2 { overflow-wrap: anywhere; }
}
@media (max-width: 620px) {
  .site-header { --mast-height: 61px; }
  .site-header .mast { gap: 6px; }
  .mast-actions { gap: 6px; }
  .brand .site-logo { width: 128px; }
  .mast-cta { display: none; }
  .service-hero { grid-template-columns: minmax(0,1fr); }
  .hero-panel + .hero-panel { border-left: 0; border-top: 1px solid #497da9; }
  .hero-panel { min-height: 275px; }
  .hero-panel-copy { padding: 18px var(--gutter); }
  .hero-panel-copy .line-icon { width: 31px; height: 31px; }
  .hero-panel-copy h2 { max-width: 20ch; }
  .hero-intro h1 { font-size: clamp(34px,9vw,48px); }
  .hero-intro .eyebrow { letter-spacing: .05em; }
  .company-band, .project-grid { grid-template-columns: minmax(0,1fr); }
  .company-photo { --photo-height: min(67vw,275px); }
  .company-points { grid-template-columns: 1fr; gap: 11px; }
  .inquiry { flex-wrap: wrap; min-height: 218px; }
  .inquiry::before { background: linear-gradient(92deg,#05243d 12%,#084a83e0 77%,#06375890); }
  .section-head { align-items: start; flex-direction: column; margin-bottom: 13px; gap: 2px; }
  .direction-grid { gap: 10px; }
  .direction-card { padding: 15px 12px 49px; min-height: 205px; }
  .direction-card h3 { font-size: clamp(16px,4.55vw,23px); overflow-wrap: anywhere; }
  .direction-card p { padding-inline-end: 0; font-size: .82rem; }
  .direction-card .line-icon { width: 27px; height: 27px; margin-bottom: 10px; }
  .round-arrow { width: 32px; height: 32px; right: 9px; bottom: 9px; }
  .site-footer .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 14px; }
  .site-footer .footer-brand .site-logo { width: 128px; }
  .site-footer .footer-end { justify-content: start; }
  .site-footer .footer-end small { flex-basis: 100%; }
  #full-menu nav { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .menu-icon::before, .menu-icon::after, .menu-icon > span { transition: transform .22s ease, opacity .16s ease; }
  #full-menu:not([hidden]) { animation: mobile-menu-in .24s ease-out; }
  .mast-call .line-icon { animation: mast-call-ring .72s ease-in-out 1.1s 2; }
  @keyframes mobile-menu-in {
    from { transform: translateY(-7px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  @keyframes mast-call-ring {
    0%, 55%, 100% { transform: rotate(0); }
    12%, 36% { transform: rotate(-12deg); }
    24%, 45% { transform: rotate(12deg); }
  }
  html { scroll-behavior: smooth; }
  .scroll-reveal { transition: opacity .42s ease-out, transform .5s cubic-bezier(.2,.65,.35,1); }
  .scroll-reveal.is-pending { transition: none; }
  .scroll-reveal.is-pending:not(:focus-within) { opacity: 0; transform: translateY(16px); }
  .button, .ghost-link { transition: background-color .18s ease, color .18s ease; }
  .site-header .nav-group > summary::after { transition: transform .2s ease; }
  .site-header .nav-group[open] > :is(.nav-menu,.services-menu) {
    animation: nav-menu-in .22s cubic-bezier(.2,.65,.35,1);
  }
  @keyframes nav-menu-in {
    from { opacity: .25; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
  }
  .mast-search[open] .header-search button { animation: search-button-in .2s ease-out both; }
  @keyframes search-button-in {
    from { opacity: .5; transform: translateY(3px); }
    to { opacity: 1; transform: none; }
  }
  #request-dialog[open] { animation: request-dialog-in .25s cubic-bezier(.2,.65,.35,1); }
  #request-dialog[open]::backdrop { animation: request-backdrop-in .22s ease-out; }
  .brief-attachment:not([hidden]) { animation: brief-file-in .24s ease-out; }
  @keyframes request-dialog-in {
    from { opacity: .3; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: none; }
  }
  @keyframes request-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes brief-file-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: none; }
  }
  .hero-art img { transition: transform .4s cubic-bezier(.2,.65,.35,1); }
  .hero-panel-copy .line-icon { transition: color .18s ease; }
  .hero-panel:is(:hover,:focus-within) .hero-art img { transform: scale(1.055); }
  :is(.direction-card,.project-card) > :is(img,.project-trace) { transition: transform .36s cubic-bezier(.2,.65,.35,1); }
  .direction-feature > :is(img,.project-trace) { transform-origin: top right; }
  :is(.direction-card,.project-card) :is(h2,h3,.line-icon) { transition: color .18s ease; }
  :is(.direction-card,.project-card) .round-arrow { transition: color .18s ease, background-color .18s ease; }
  :is(.direction-card,.project-card):is(:hover,:focus-visible) > :is(img,.project-trace) { transform: scale(1.055); }
  .project-trace path { transition: stroke-dashoffset .22s ease; }
  .direction-feature:is(:hover,:focus-visible) .project-trace path {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset .56s cubic-bezier(.2,.65,.35,1);
  }
  .direction-feature:is(:hover,:focus-visible) .project-trace path:nth-child(2) { transition-delay: .11s; }
  .direction-feature:is(:hover,:focus-visible) .project-trace path:nth-child(3) { transition-delay: .22s; }
}
@media (min-width: 1440px) {
  .company-heading h2 { white-space: nowrap; text-wrap: initial; }
  .site-footer { position: relative; isolation: isolate; }
  .site-footer::before {
    content: ""; position: absolute; z-index: -1; inset: auto 0 0 auto;
    width: min(470px,29vw); height: min(215px,98%); pointer-events: none;
    background: url("assets/footer-drawing.webp") right bottom / contain no-repeat;
    opacity: .62;
  }
}
.direction-card:nth-child(3) > img { object-position: 74% 53%; }
.direction-card:nth-child(3)::after {
  background: linear-gradient(90deg,#061d31f5 14%,#061d31c9 50%,#061d316a);
}
@media (max-width: 620px) {
  .direction-card:nth-child(3)::after {
    background: linear-gradient(8deg,#061d31 20%,#061d31e8 52%,#061d3150);
  }
}
.hero-mobile-cta { display: none; }
@media (max-width: 620px) {
  .hero-mobile-cta { display: inline-flex; margin-top: 15px; }
  .hero-art::after {
    background: linear-gradient(180deg,#061d3108 10%,#061d31bd 40%,#061d31 77%);
  }
  .hero-intro h1 .hero-title-tail { font-size: .67em; }
}
.site-header .nav-menu { --outline: #a74612; }

#request-dialog {
  width: min(100% - 32px, 570px); max-height: calc(100% - 32px);
  padding: 24px; color: var(--ink); border-radius: 14px;
}
#request-dialog::backdrop { background: rgb(6 29 49 / 72%); }
#request-dialog.request-dialog-with-captcha {
  position: fixed;
  z-index: 21;
  inset: 0;
  height: fit-content;
  overflow: auto;
  margin: auto;
}
#request-backdrop { display: none; }
.request-dialog-with-captcha[open] + #request-backdrop {
  display: block;
  position: fixed;
  z-index: 20;
  inset: 0;
  background: rgb(6 29 49 / 72%);
}
.request-dialog-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; padding-bottom: 14px; margin-bottom: 16px;
}
.request-dialog-header h2 { margin: 3px 0 0; }
.request-dialog-header button { flex: none; padding: 8px 12px; }
#request-dialog button[type="submit"]:is(:hover,:focus-visible) { background: #002d9e; border-color: #002d9e; }
#close-request-dialog:is(:hover,:focus-visible) { background: #eef4ff; }
.request-result { margin: 0; }
.request-captcha { margin-block: 14px; }
.request-captcha [data-captcha-widget] { width: 100%; max-width: 420px; }
.captcha-status { margin: 0; }
.captcha-status:not(:empty) { margin-block-start: 8px; }
.request-captcha [hidden] { display: none; }
.request-captcha button { margin-block-start: 8px; }
.brief-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.brief-picker-action { position: relative; display: inline-flex; }
.brief-picker-action input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.brief-picker-label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 13px;
  border: 1px solid #a6baf0; border-radius: 8px; background: #fff;
  color: var(--accent); font-size: .91rem; font-weight: 650;
}
.brief-picker-action:is(:hover,:focus-within) .brief-picker-label { background: #eef4ff; }
.brief-picker-action input:focus-visible + .brief-picker-label { outline: 2px solid var(--accent); outline-offset: 2px; }
.brief-attachment:not([hidden]) {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px;
  margin-top: 10px; padding: 8px 10px 8px 12px; border: 1px solid #bbccee;
  border-radius: 8px; background: #eef4ff;
}
.brief-attachment .line-icon { width: 22px; height: 22px; color: var(--accent); }
.brief-name { min-width: 0; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.3; }
.brief-remove {
  min-height: 34px; padding: 5px 8px; border-color: transparent; border-radius: 6px;
  background: transparent; color: var(--accent); font-size: .84rem;
}
.brief-remove:is(:hover,:focus-visible) { background: #d8e6ff; }
body:has(#request-dialog[open]) { overflow: hidden; }

@media (min-width: 1024px) {
  .mast-actions .menu-toggle { display: none; }
}
@media (min-width: 1440px) {
  .company-band { gap: 13px 8px; }
  .company-points {
    position: relative; border: 0; padding: 8px 0 8px 1px; margin-inline-start: -34px;
    gap: 13px;
  }
  .company-points::before {
    content: ""; position: absolute; inset: 0 auto 0 3px; width: 1px;
    background: #709cdf; transform-origin: bottom; transform: skewX(-18deg);
  }
  .company-points li:nth-child(1) { padding-inline-start: 68px; }
  .company-points li:nth-child(2) { padding-inline-start: 52px; }
  .company-points li:nth-child(3) { padding-inline-start: 36px; }
  .company-points li:nth-child(4) { padding-inline-start: 20px; }
}
@supports (grid-template-rows: subgrid) {
  @media (min-width: 621px) {
    .service-hero { grid-template-rows: auto minmax(0,1fr) repeat(4,auto); }
    .hero-intro { grid-row: 1; }
    .hero-panel {
      display: grid; align-items: stretch;
      grid-row: 2/-1; grid-template-rows: subgrid;
    }
    .hero-panel-copy {
      grid-row: 2/-1; display: grid; grid-template-rows: subgrid;
      justify-items: start; align-items: start;
    }
  }
  @media (min-width: 1280px) {
    .service-hero { grid-template-rows: minmax(0,1fr) repeat(4,auto); }
    .hero-intro, .hero-panel { grid-row: 1/-1; }
  }
}
@media (max-width: 620px) {
  #request-dialog { padding: 16px; }
}
