/* Графическое оформление двух интерактивных изданий. При печати действует базовый макет. */
@media screen {
  :root {
    --drawing-ink: #154e79;
    --drawing-blue: #135ca2;
    --drawing-line: #9ebed2;
    --drawing-copper: #bb7041;
  }

  /* Главная. Свет на бумаге и диагональное поле под фотопанелью. */
  .home-hero.studio-hero {
    background:
      linear-gradient(115deg, transparent 0 62%, #a0c8e047 62% 62.12%, transparent 62.12% 63%, #a0c8e038 63% 63.12%, transparent 63.12%),
      radial-gradient(ellipse at 84% 27%, #cae6fa 0, transparent 49%),
      linear-gradient(110deg, #ffffff, #edf7ff 66%, #dceefc);
  }
  .studio-grid { position: relative; isolation: isolate; }
  .studio-grid::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    inset: 6% -5% 5% 44%;
    background: radial-gradient(#38759c62 .95px, transparent 1.1px) 0 0 / .85rem .85rem;
    mask-image: linear-gradient(110deg, transparent, #000 48%, #000 85%, transparent);
  }
  .studio-grid .location::before {
    width: 2.15rem; height: .6rem;
    background: repeating-linear-gradient(120deg, var(--drawing-blue) 0 2px, transparent 2px 6px);
  }
  .studio-grid h1 .title-lead { color: inherit; }
  .studio-grid h1 .title-accent { color: #125a9c; }
  #home-title::after {
    content: ""; display: block; width: clamp(5.8rem, 9vw, 8rem); height: .46rem;
    margin-top: .26em; transform-origin: left center;
    background:
      linear-gradient(115deg, transparent 38%, #ad6337 40% 61%, transparent 64%) left / .45rem 100% no-repeat,
      linear-gradient(115deg, transparent 38%, #ad6337 40% 61%, transparent 64%) right / .45rem 100% no-repeat,
      linear-gradient(#6994b1, #6994b1) center / calc(100% - .45rem) 1px no-repeat;
  }
  .photo-deck {
    padding: clamp(.35rem,.7vw,.65rem);
    border: 1px solid #9fbccc;
    background: linear-gradient(128deg, #fff 48%, #e6f3fc);
    box-shadow: .75rem .75rem 0 -.1rem #b8d6e9, .75rem .75rem 0 -1px #709cba, 0 1.2rem 2.3rem -1.55rem #17426380;
  }
  .deck-screen { background: #244762; }
  .deck-screen::after {
    inset: .7rem; opacity: .88;
    background-size: 1.7rem 1px, 1px 1.7rem, 1.7rem 1px, 1px 1.7rem;
  }
  .deck-caption {
    padding: 3rem 1.45rem 1.15rem;
    background: linear-gradient(transparent, #082740e8);
  }
  /* Контактный лист собирается из тех же фотографий, что открываются в галерее. */
  .deck-controls {
    position: relative; isolation: isolate;
    display: grid; grid-template-columns: repeat(var(--frame-count, 3), minmax(0, 1fr));
    padding-block: .65rem .68rem; gap: 0;
    border: 0; background: #143953;
  }
  .deck-controls::before {
    content: ""; position: absolute; inset: .18rem .38rem auto; height: .22rem;
    background: repeating-linear-gradient(90deg, #9ab6c6 0 .34rem, transparent .34rem .85rem);
    opacity: .68; pointer-events: none;
  }
  .deck-controls::after {
    content: ""; pointer-events: none; position: absolute;
    left: 0; bottom: .28rem; width: calc(100% / var(--frame-count, 3)); height: .15rem;
    background: linear-gradient(#efb279, #efb279) center / calc(100% - .9rem) 100% no-repeat;
    transform: translateX(calc(var(--frame-index, 0) * 100%));
  }
  .deck-controls button {
    --frame-tint: grayscale(.84) saturate(.7) brightness(.86);
    display: grid; grid-template-rows: auto 1fr;
    gap: .4rem; min-width: 0; padding: .12rem .45rem .05rem;
    border: 0; border-radius: 0; text-align: start;
    background: transparent; color: #d6eaf7; box-shadow: none;
    font-size: .94rem; line-height: 1.3;
  }
  .deck-controls button::before {
    content: ""; display: block; box-sizing: border-box;
    width: 100%; height: clamp(2.6rem, 3.8vw, 3.6rem);
    border: 1px solid #91b3c5;
    background: var(--preview-wide) center / cover no-repeat, #36576b;
    filter: var(--frame-tint);
  }
  .deck-controls button[aria-pressed="true"] {
    --frame-tint: none;
    background: transparent; color: #fff; box-shadow: none;
  }
  .deck-controls button[aria-pressed="true"]::before { border-color: #f1bb84; }
  .deck-controls button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
  @media (max-width: 50rem) {
    .deck-controls button::before { background-image: var(--preview-small, var(--preview-wide)); }
  }
  @media (max-width: 32rem) {
    .deck-controls button { padding-inline: .32rem; font-size: .88rem; }
    .deck-controls button::before { height: clamp(2.1rem, 9vw, 2.65rem); }
  }
  @media (hover: hover) {
    .deck-controls button:not([aria-pressed="true"]):hover {
      --frame-tint: grayscale(.18) brightness(1.04);
      background: #214860; color: #fff;
    }
  }


  .hero-actions .primary-action, .draft-open {
    background: linear-gradient(120deg, #185e99, #124972);
    box-shadow: 0 .24rem 0 #d0e4f1;
  }
  .hero-facts {
    position: relative;
    background-image: linear-gradient(90deg, #f2f9ff, #fff 45%, #eff8ff);
  }
  .hero-facts::before, .site-footer::before {
    content: ""; position: absolute; inset: 0 0 auto; height: .32rem;
    background: repeating-linear-gradient(90deg, #6996b2a3 0 1px, transparent 1px .8rem);
    pointer-events: none;
  }
  .hero-facts strong { color: var(--drawing-ink); font-variant-numeric: lining-nums tabular-nums; }

  /* Шапка главы: цветная полоса до края окна, светлое поле и собственный чертёж. */
  .intro-about     { --plate: url("images/plates/about.webp");     --chapter-ink: #193f61; --chapter-edge: #346583; }
  .intro-services  { --plate: url("images/plates/services.webp");  --chapter-ink: #124b76; --chapter-edge: #286995; }
  .intro-project   { --plate: url("images/plates/projects.webp");  --chapter-ink: #233e76; --chapter-edge: #3d6497; }
  .intro-documents { --plate: url("images/plates/documents.webp"); --chapter-ink: #294c5e; --chapter-edge: #467281; }
  .intro-contacts  { --plate: url("images/plates/contacts.webp");  --chapter-ink: #15505b; --chapter-edge: #2e707d; }

  .page-intro {
    padding-block: clamp(2.35rem, 4.8vw, 4.75rem);
    border-block-start: .25rem solid var(--chapter-ink);
    border-block-end: 1px solid #aac4d5;
    background:
      linear-gradient(105deg, #f0f7fc 22%, transparent 77%),
      linear-gradient(90deg, #729cb61a 1px, transparent 1px) center / 2rem 2rem,
      linear-gradient(#729cb61a 1px, transparent 1px) center / 2rem 2rem,
      #d6e9f5;
  }
  .page-intro::after { display: none; }
  .page-intro .wrap {
    display: grid; isolation: isolate;
    grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: clamp(2rem,5vw,5rem);
  }
  /* Полоса занимает ту же ячейку сетки, что и h2, включая заголовки в две строки. */
  .page-intro .wrap::before {
    grid-area: 1 / 1; align-self: stretch; z-index: -1; pointer-events: none;
    width: auto; height: auto; margin: 0;
    margin-inline-start: calc(0px - max(var(--gutter), (100vw - 77rem) / 2));
    background:
      repeating-linear-gradient(110deg, transparent 0 5px, #e9b780 5px 8px, transparent 8px 13px) right center / 1.5rem 100% no-repeat,
      linear-gradient(102deg, var(--chapter-ink) 42%, var(--chapter-edge));
    clip-path: polygon(0 0, 100% 0, calc(100% - 1rem) 100%, 0 100%);
  }
  .page-intro .chapter-heading {
    grid-area: 1 / 1; align-self: center;
    margin: 0; padding: .23em 1.8rem .28em 0;
    color: #fff; font-size: clamp(2.65rem, 5.1vw, 4.75rem); line-height: 1.07;
    text-wrap: balance;
  }
  .page-intro .wrap > p {
    grid-area: 2 / 1; align-self: start;
    margin-top: clamp(1rem, 1.8vw, 1.6rem); color: #25465c;
  }
  .drawing-board {
    --sheet-light: #18669b;
    --sheet-dark: #103b66;
    --sheet-halo: #4698bb66;
    position: relative; isolation: isolate; align-self: center; grid-area: 1 / 2 / 3 / 3;
    width: 100%; aspect-ratio: 1.92;
    border: 1px solid #306c94;
    background:
      linear-gradient(90deg, #c1e9ff19 1px, transparent 1px) center / 1.05rem 1.05rem,
      linear-gradient(#c1e9ff19 1px, transparent 1px) center / 1.05rem 1.05rem,
      radial-gradient(ellipse at 55% 62%, var(--sheet-halo), transparent 64%),
      linear-gradient(138deg, var(--sheet-light), var(--sheet-dark) 70%);
    box-shadow: .38rem .38rem 0 #edf6ff, .44rem .44rem 0 #a1c0d5, .7rem 1rem 1.8rem -.9rem #254c6b55;
  }
  .intro-project .drawing-board { --sheet-light: #215e9b; --sheet-dark: #193d69; }
  .intro-contacts .drawing-board { --sheet-light: #1b6a8b; --sheet-dark: #123e5e; }
  .drawing-board::before {
    content: ""; position: absolute; inset: .6rem; opacity: .85; pointer-events: none;
    background:
      linear-gradient(#f3b880,#f3b880) left top / 1.45rem 2px,
      linear-gradient(#f3b880,#f3b880) left top / 2px .8rem,
      linear-gradient(#c2e9fe,#c2e9fe) right bottom / 1.2rem 1px,
      linear-gradient(#c2e9fe,#c2e9fe) right bottom / 1px .9rem,
      repeating-linear-gradient(90deg, #cee9fb8a 0 1px, transparent 1px .45rem) right top / 22% .27rem,
      repeating-linear-gradient(0deg, #cee9fb8a 0 1px, transparent 1px .45rem) left bottom / .26rem 24%;
    background-repeat: no-repeat;
  }
  .drawing-art {
    position: absolute; inset: 5% 6%;
    background: var(--plate) center / contain no-repeat;
    filter: grayscale(1) invert(1) brightness(1.85);
    mix-blend-mode: screen;
    pointer-events: none;
  }
  .drawing-board::after {
    content: ""; position: absolute; top: 7%; bottom: 7%; left: 6%; width: 8%;
    opacity: 0; border-right: 1px solid #b9f0ff;
    background: linear-gradient(90deg, transparent, #a1e8ff24);
    pointer-events: none;
  }


  .drawing-lens { display: none; }
  @media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .drawing-lens {
      display: block; pointer-events: none; position: absolute; inset: 5% 6%; opacity: 0;
      --lens-x: 50%; --lens-y: 50%; --radius: clamp(2.6rem,4.9vw,4.4rem);
      background: #e6f5fd;
      clip-path: circle(var(--radius) at var(--lens-x) var(--lens-y));
      transition: opacity .18s ease;
    }
    .drawing-lens::before, .drawing-lens::after { content: ""; position: absolute; inset: 0; }
    .drawing-lens::before {
      background: var(--plate) center / contain no-repeat;
      transform: scale(1.5); transform-origin: var(--lens-x) var(--lens-y);
    }
    .drawing-lens::after {
      background: radial-gradient(circle at var(--lens-x) var(--lens-y), transparent calc(var(--radius) - 2px), #da9758 calc(var(--radius) - 1px));
    }
    .lens-visible .drawing-lens { opacity: 1; }
  }


  /* Фотографии как отпечатки с подписью. Реальные пропорции материалов сохраняются. */
  .photo-grid figure, .fleet-gallery figure {
    margin: 0; padding: .48rem .48rem .78rem;
    background: linear-gradient(132deg, white 64%, #edf6fd);
    border: 1px solid #b5ccdb; box-shadow: .24rem .3rem 0 #e3eef5;
  }
  .photo-grid figcaption, .fleet-gallery figcaption { padding-inline: .3rem; }
  .services-crew, .about-photo {
    padding: .5rem; border: 1px solid #b0cadb; background: #fff;
    box-shadow: .5rem .5rem 0 #d5e7f3;
  }
  .services-crew img { border-radius: 0; }
  .about-photo figcaption { padding-inline: .25rem; padding-bottom: .2rem; }

  /* Документы как листы с отогнутым уголком. Ссылки сохраняют собственную область нажатия. */
  .document-list article {
    --fold-size: 1.25rem;
    position: relative;
    border: 1px solid #b5cddb; border-top: 2px solid #5484a8;
    background: linear-gradient(125deg, #fff 38%, #f1f8fd);
    box-shadow: .21rem .24rem 0 #e0edf6;
    padding-inline-end: max(1.4rem, var(--fold-size));
  }
  .document-list article::before {
    content: ""; position: absolute; inset: -2px -1px auto auto;
    width: var(--fold-size); height: var(--fold-size); pointer-events: none;
    background: linear-gradient(45deg, #e1effa 0%, #bad4e8 45%, #85a7bf 49%, white 51%);
  }
  .document-list .file-size {
    color: #365571; background: #eaf3f9; padding: .14rem .42rem;
    border-radius: .15rem; font-size: .84rem; font-variant-numeric: tabular-nums;
  }
  .year-view > div:not([hidden]), .company-details {
    border: 1px solid #a7c5da; border-inline-start: .25rem solid var(--drawing-blue);
    background:
      repeating-linear-gradient(125deg, transparent 0 5px,#639fbd2e 5px 6px) right top / 2.6rem .6rem no-repeat,
      linear-gradient(120deg, #e5f2fb, #f8fcff);
  }
  .year-view dt { color: var(--drawing-blue); }
  .site-footer { position: relative; background: linear-gradient(105deg, #f2f9fe, #dbeefa); }

  @media (hover: hover) {
    .document-list article:is(:hover,:focus-within), .fleet-gallery figure:focus-within {
      border-color: #729db9; box-shadow: .27rem .35rem 0 #c8dfed;
    }
  }
  @media (prefers-reduced-motion: no-preference) and (hover: hover) {
    .document-list article, .photo-deck { transition: box-shadow .24s ease, border-color .24s ease; }
    .deck-screen img { transition: transform .65s cubic-bezier(.2,.7,.1,1); }
    .deck-screen:hover img { transform: scale(1.025); }
  }
  /* Галереи, показатели и выбранный год сохраняют размеры во время переходов. */
  .studio-grid::after {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    top: 7%; bottom: 7%; right: -3%; width: 36%;
    background: linear-gradient(157deg, #c8e5f7, #9ac5e4);
    clip-path: polygon(22% 0,100% 0,100% 85%,86% 100%,0 100%,0 15%);
  }
  .photo-deck { isolation: isolate; }
  .deck-screen::after { z-index: 2; pointer-events: none; }
  .deck-screen .outgoing-frame {
    position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%;
    object-fit: cover; pointer-events: none;
  }
  .deck-caption { z-index: 2; }
  .readiness-facts {
    gap: .8rem; align-items: stretch;
  }
  .readiness-facts li {
    position: relative; isolation: isolate; padding: clamp(1rem,2vw,1.55rem);
    border: 1px solid #b9d5e6; border-radius: .1rem;
    background:
      repeating-linear-gradient(125deg,transparent 0 4px,#5b96b536 4px 5px) right .7rem top .7rem / 2.3rem .45rem no-repeat,
      linear-gradient(125deg,#f9fcff,#eaf4fb);
  }
  .readiness-facts li::after {
    content: ""; position: absolute; left: -1px; top: -2px; width: 2.7rem; height: 3px;
    background: #1e6698; transform-origin: left;
  }
  .readiness-facts strong { color: #184c76; font-weight: 730; }
  .year-view > div:not([hidden]) {
    border-inline-start-width: .4rem;
    background: linear-gradient(110deg,#e0f2ff,#f8fcff 82%);
  }
  .year-view dt { font-weight: 760; letter-spacing: -.045em; }
  .fleet-viewer { border: 1px solid #bcd6e4; }
  .fleet-viewer::backdrop { background: rgb(15 41 61 / 74%); }

  @media (min-width: 68.01rem) {
    .navigation > * { position: relative; border-color: transparent; }
    .navigation > *::after {
      content: ""; position: absolute; left: 0; right: 0; bottom: -.12rem;
      height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0);
    }
    .navigation :is([aria-current],a:hover,a:focus-visible)::after { transform: scaleX(1); }
    .navigation [aria-current], .navigation a:hover { border-color: transparent; }
  }
  @media (max-width: 54rem) {
    .studio-grid::before { display: none; }
    .studio-grid::after { inset: auto -.8rem 3% auto; width: 57%; height: 27%; }
    .page-intro .wrap { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); column-gap: 1.5rem; }
  }
  @media (max-width: 40rem) {
    .page-intro { padding-block: 1.25rem 1.75rem; }
    .page-intro .wrap { grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto auto; }
    .page-intro .chapter-heading { font-size: clamp(2.15rem, 8.8vw, 3.25rem); }
    .page-intro .wrap > p { margin-top: 1rem; }
    .drawing-board { grid-area: 3 / 1; aspect-ratio: 2.9; margin-top: 1.25rem; }
    .drawing-art, .drawing-lens { inset: 2% 6%; }
    .readiness-facts li { padding: .9rem; }
    .photo-deck { box-shadow: .35rem .35rem 0 #c4dcec; }
  }
  @media (max-width: 35rem) {
    .readiness-facts { grid-template-columns: minmax(0,1fr); }
    .readiness-facts li { min-width: 0; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); overflow-wrap: anywhere; }
  }
  @media (max-width: 22rem) {
    .site-header .wrap.header-inner { width: calc(100% - 1rem); }
  }
  @media (max-width: 24rem) {
    .readiness-facts li { display: block; }
  }
}

/* Только однократные появления или движения в ответ на действия посетителя. */
@media screen and (prefers-reduced-motion: no-preference) {
  /* Текст остаётся в обычном потоке. Движение затрагивает только отрисовку. */
  .hero-content.entered-view, .page-intro .wrap.entered-view { animation: none; }
  .hero-content.entered-view #home-title > span,
  .page-intro .wrap.entered-view > :is(h1,.chapter-heading) {
    animation: set-headline .55s cubic-bezier(.16,.74,.23,1) backwards;
  }
  .hero-content.entered-view #home-title > .title-accent { animation-delay: .10s; }
  .hero-content.entered-view #home-title::after {
    transform-origin: left;
    animation: ink-rule .44s ease-out .14s backwards;
  }
  .copy-waiting { clip-path: inset(0 0 100% 0); }
  .copy-revealed {
    animation: reveal-paragraph .72s cubic-bezier(.18,.68,.24,1) backwards;
  }
  .copy-revealed + .copy-revealed { animation-delay: 65ms; }
  .copy-revealed:focus-within, .copy-waiting:focus-within {
    animation: none; clip-path: none;
  }
  .type-heading.entered-view { animation: set-subhead .46s cubic-bezier(.2,.7,.3,1); }
  @keyframes set-headline {
    from { opacity: .66; transform: translateY(.16em); clip-path: inset(-.18em -.08em 20% -.08em); }
    to { opacity: 1; transform: none; clip-path: inset(-.18em -.08em -.22em -.08em); }
  }
  @keyframes reveal-paragraph {
    from { opacity: .35; transform: translateY(.9em); clip-path: inset(-.15em -.16em 100% -.16em); }
    to { opacity: 1; transform: none; clip-path: inset(-.15em -.16em -.22em -.16em); }
  }
  @keyframes set-subhead {
    from { opacity: .7; transform: translateX(-.12em); }
    to { opacity: 1; transform: none; }
  }
  .deck-controls::after { transition: transform .32s cubic-bezier(.2,.75,.2,1); }
  .deck-controls button::before { transition: filter .2s ease, border-color .2s ease; }


  .drawing-board.entered-view { animation: board-arrives .58s cubic-bezier(.16,.7,.24,1) both; }
  .drawing-board.entered-view .drawing-art { animation: trace-drawing .85s cubic-bezier(.3,.1,.22,1) both; }
  .drawing-board.entered-view::after { animation: sweep-drawing .85s cubic-bezier(.3,.1,.22,1) both; }
  .photo-deck.entered-view { animation: mount-photo .62s cubic-bezier(.16,.72,.22,1) both; }
  .readiness-facts.entered-view { animation: none; }
  .readiness-facts.entered-view li::after { animation: ink-rule .48s ease-out both; }
  .readiness-facts li:nth-child(2)::after { animation-delay: 65ms; }
  .readiness-facts li:nth-child(3)::after { animation-delay: 130ms; }
  .navigation > *::after { transition: transform .24s ease-out; }
  .year-view > div:not([hidden]) > dd { animation: settle-content .32s ease-out; }
  .service-group[open] > .service-rows { animation: settle-content .28s ease-out; }
  .fleet-viewer[open] { animation: open-photo .24s ease-out; }
  .fleet-viewer[open]::backdrop { animation: tint-backdrop .24s ease-out; }
  @keyframes board-arrives {
    from { transform: translateY(8px) rotate(-.65deg); }
    to { transform: none; }
  }
  @keyframes trace-drawing {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
  }
  @keyframes sweep-drawing {
    0% { opacity: 0; transform: translateX(-100%); }
    18% { opacity: .85; }
    82% { opacity: .65; }
    100% { opacity: 0; transform: translateX(1000%); }
  }
  @keyframes mount-photo {
    from { opacity: .85; transform: translateY(9px) rotate(.6deg); }
    to { opacity: 1; transform: none; }
  }
  @keyframes ink-rule { from { transform: scaleX(.1); } to { transform: scaleX(1); } }
  @keyframes settle-content {
    from { opacity: .74; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes open-photo {
    from { opacity: .72; transform: translateY(8px) scale(.985); }
    to { opacity: 1; transform: none; }
  }
  @keyframes tint-backdrop { from { opacity: 0; } to { opacity: 1; } }

  /* Указатель прокрутки использует нативную шкалу браузера, без обработчика scroll. */
  @supports (animation-timeline: scroll(root block)) {
    .site-header::after {
      content: ""; position: absolute; inset: auto 0 -1px; height: 2px;
      pointer-events: none; background: linear-gradient(90deg,#2573a4,#59aac3);
      transform-origin: left; animation: read-progress auto linear both;
      animation-timeline: scroll(root block);
    }
    @keyframes read-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* Уголки фотоотпечатков и медный штрих на кнопках связи. */
@media screen and (forced-colors: none) {
  ::selection { background: #f0c9a6; color: #162f42; }

  .photo-grid figure, .fleet-gallery figure { position: relative; }
  :is(.photo-grid, .fleet-gallery) figure::before {
    content: "";
    position: absolute; z-index: 1; pointer-events: none;
    inset: -1px -1px auto auto;
    width: 1.35rem; height: 1.35rem;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    background: linear-gradient(45deg, transparent 43%, #935b3a 45%, #f1cda3 50%, #a16a48 55%, #e0b88f 60%, #f6e1c5 82%);
  }

  :is(.primary-action, .inquiry-email, .draft-open) { position: relative; }
  :is(.primary-action, .inquiry-email, .draft-open)::after {
    content: "";
    position: absolute; pointer-events: none;
    inset: auto auto 2px .8rem;
    width: 2.5rem; height: 2px;
    background: linear-gradient(90deg, #ca8b61, #ffe1ba);
    transform-origin: left; transform: scaleX(.28);
  }
  :is(.primary-action, .inquiry-email, .draft-open):is(:focus-visible, :active)::after {
    transform: scaleX(1);
  }
  @media (hover: hover) and (pointer: fine) {
    :is(.primary-action, .inquiry-email, .draft-open):hover::after { transform: scaleX(1); }
  }
  @media (prefers-reduced-motion: no-preference) {
    :is(.primary-action, .inquiry-email, .draft-open)::after {
      transition: transform .24s cubic-bezier(.2,.7,.25,1);
    }
  }
}

/* Услуги. Название остаётся текстом, пиктограмма занимает отдельную колонку. */
@media screen and (forced-colors: none) {
  .service-group > summary {
    padding-inline-start: .65rem;
  }
  .service-group[open] > summary {
    background: linear-gradient(90deg, #eaf4fa, transparent 85%);
    box-shadow: inset 2px 0 #ae7149;
  }
  .service-group summary [id$="-title"] {
    display: grid;
    grid-template-columns: 1.45rem minmax(0, 1fr);
    column-gap: .55rem;
    align-items: baseline;
  }
  .service-group summary [id$="-title"]::before {
    content: "";
    width: 1.35rem; height: 1.35rem;
    align-self: start; margin-block-start: .1em;
    pointer-events: none;
  }
  /* Подшипник, двутавр, отвод и щит обозначают четыре существующих направления. */
  #equipment-title::before {
    background: radial-gradient(circle, transparent 19%, #33637e 21% 33%, #ecf4f8 35% 44%, #a96f49 46% 53%, #315a71 55% 68%, transparent 70%);
  }
  #fabrication-title::before {
    clip-path: polygon(4% 6%, 96% 6%, 96% 27%, 62% 27%, 62% 73%, 96% 73%, 96% 94%, 4% 94%, 4% 73%, 38% 73%, 38% 27%, 4% 27%);
    background: linear-gradient(0deg, #29526c 72%, #69899a 73% 82%, #b97a50 83%);
  }
  #networks-title::before {
    clip-path: polygon(5% 4%, 48% 4%, 48% 18%, 42% 18%, 42% 44%, 56% 58%, 82% 58%, 82% 52%, 97% 52%, 97% 95%, 82% 95%, 82% 88%, 45% 88%, 13% 56%, 13% 18%, 5% 18%);
    background: linear-gradient(0deg, #345e74 80%, #b67a54 81%);
  }
  #safety-title::before {
    clip-path: polygon(50% 2%, 91% 16%, 89% 53%, 78% 73%, 50% 97%, 22% 73%, 11% 53%, 9% 16%);
    background: linear-gradient(90deg, #2b536a 46%, #ddac81 47% 54%, #477289 55%);
  }
}

/* Проекты. Календарная метка у периода и закладка на выбранном году. */
@media screen and (forced-colors: none) {
  .project-table .project-period {
    display: flex; align-items: center; gap: .38rem;
    width: fit-content; max-width: 100%; margin: .32rem 0 0;
    color: #245675; line-height: 1.4; font-variant-numeric: tabular-nums;
  }
  .project-table .project-period::before {
    content: ""; box-sizing: border-box; flex: none;
    width: .95rem; height: .87rem;
    border: 1px solid #54748a; border-top: 3px solid #a36840; border-radius: 2px;
    background:
      repeating-linear-gradient(90deg, #648498 0 2px, transparent 2px 4px) center / 62% 2px no-repeat,
      #edf5f9;
  }
  .year-picker button[aria-pressed="true"] {
    position: relative;
  }
  .year-picker button[aria-pressed="true"]::after {
    content: ""; position: absolute; pointer-events: none;
    inset: -1px .22rem auto auto; width: .35rem; height: .52rem;
    background: #efb77f;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 70%, 0 100%);
  }
}

/* Вводная фраза и опыт компании. Роли и объекты подписаны текстом на всех языках. */
.studio-grid .hero-content .company-motto {
  color: #205677;
  font-size: clamp(1.12rem, 1.8vw, 1.55rem);
  font-weight: 650;
  margin: 1.1rem 0 .45rem;
}
.cooperation-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 3rem); margin-top: 1.65rem;
}
.cooperation-grid > section { border-top: 3px solid #4d7994; padding-top: .8rem; }
.cooperation-grid h3 { font-size: 1rem; color: #375c71; }
.cooperation-grid dt { margin-top: 1rem; font-weight: 700; font-size: 1.15rem; }
.cooperation-grid dd { margin: .3rem 0 0; color: #365369; }
@media (max-width: 48rem) { .cooperation-grid { grid-template-columns: 1fr; } }
@media screen and (max-width: 75rem) {
  .language-switch .language-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .language-switch .language-short { display: inline; }
}
@media screen and (max-width: 26rem) {
  .menu-ready .header-inner { column-gap: .25rem; }
  .language-switch > * { min-width: 2.15rem; padding-inline: .22rem; }
  .brand-mark { width: 1.85rem; }
  .brand { font-size: .97rem; }
}

.cooperation-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem 1.4rem; }
.cooperation-grid > section:first-child { grid-column: 1/-1; }
.cooperation-grid > section:nth-child(2) { grid-column: span 2; }
.cooperation-grid dl { display: grid; gap: .85rem; margin: .85rem 0 0; }
.cooperation-grid > section:first-child dl { grid-template-columns: repeat(3,minmax(0,1fr)); }
.cooperation-grid > section:nth-child(2) dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cooperation-grid dl > div { min-width: 0; padding: 1rem; border: 1px solid #b7cfdd; background: white; }
.cooperation-grid dt { margin-top: 0; }
.cooperation-grid dt img { display: block; width: 9rem; max-width: 100%; height: 3.4rem; object-fit: contain; object-position: left center; margin-bottom: .75rem; }
@media (max-width: 48rem) {
  .cooperation-grid { grid-template-columns: 1fr; }
  .cooperation-grid > section:nth-child(2) { grid-column: auto; }
  .cooperation-grid > section:first-child dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 30rem) {
  .cooperation-grid > section dl { grid-template-columns: 1fr !important; }
  .cooperation-grid dt { display: flex; gap: .85rem; align-items: center; }
  .cooperation-grid dt img { flex: none; width: 4.4rem; height: 2.7rem; margin: 0; }
}

.cooperation-grid > section, .cooperation-grid dt span { min-width: 0; overflow-wrap: anywhere; }
