/* shevkunova.com: the look of the Tilda site, built by hand. Motion only in answer to the visitor (animate skill), never on a loop.
   Layout widths are container queries on .page, so the page reflows when the side panel takes part of the screen. */
:root {
  --slate: #29353e;
  --slate-d: #1f2a32;
  --slate-l: #34424c;
  --olive: #bdb767;
  --cream: #e1ddb8;
  --cream-l: #efecd6;
  --white: #fff;
  --muted: #4f5962;      /* 5.2:1 on cream, 7.2:1 on white */
  --olive-ink: #6f6a2e;  /* olive for text on light surfaces: 5.6:1 on white */
  --line: rgba(189, 183, 103, .45);
  --display: 'ScienceGothic', 'Montserrat', Arial, sans-serif;
  --text: 'Montserrat', Arial, sans-serif;
  --wrap: 1200px;
  --gut: 24px;
  --r-l: 40px;
  --r-m: 30px;
  --r-s: 20px;
  --top-h: 64px;
  --side-w: 520px;
  /* motion tokens from the animate skill */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--top-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--slate); color: var(--white); font: 400 18px/1.55 var(--text); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; background: var(--olive); color: var(--slate); border-radius: 12px; }
.skip:focus { top: 12px; }

.page { container: page / inline-size; }
@media (min-width: 900px) { .side-open .page { margin-right: var(--side-w); } }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 30px; border: 0;
  border-radius: 999px; font: 600 16px/1.2 var(--text); text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-l { min-height: 56px; padding: 0 44px; font-size: 18px; }
.btn-olive { background: var(--olive); color: var(--slate); }
.btn-slate { background: var(--slate); color: var(--cream); }
.btn-line { border: 1px solid currentColor; background: transparent; color: var(--white); min-height: 42px; padding: 0 24px; font-size: 14px; }
@media (hover: hover) {
  .btn-olive:hover { background: var(--cream); }
  .btn-slate:hover { background: var(--slate-d); color: var(--white); }
  .btn-line:hover { background: var(--white); color: var(--slate); border-color: var(--white); }
}

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--slate); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.top-in { position: relative; display: flex; align-items: center; gap: 28px; height: var(--top-h); }
.top-logo { display: flex; padding: 6px; margin-left: -6px; }
.top-nav { display: flex; gap: 32px; margin-right: auto; }
.top-nav a { font: 500 16px/1 var(--text); text-decoration: none; padding: 8px 0; white-space: nowrap; }
@media (hover: hover) { .top-nav a:hover { color: var(--olive); } }
.top-menu { display: none; margin-left: auto; padding: 10px 4px; background: none; border: 0; font-weight: 600; font-size: 16px; cursor: pointer; }

/* Hero */
.hero { min-height: calc(100svh - var(--top-h)); display: flex; align-items: center;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, #2f3d47 0%, var(--slate) 70%); }
.hero-in { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 48px; padding-bottom: 72px; }
.hero h1 { width: min(1000px, 100%); line-height: 0; }
.hero-logo { width: 100%; }
.hero-lead { max-width: 640px; margin: 36px 0 40px; font: 500 clamp(17px, 1.6vw, 20px)/1.5 var(--text); color: rgba(255, 255, 255, .86); }

/* Bands and headings */
.band { padding: 104px 0; }
.band-slate { background: var(--slate); }
.band-white { background: var(--white); color: var(--slate); }
.h2 { font: 600 clamp(40px, 6vw, 80px)/1.05 var(--display); text-transform: uppercase; color: var(--cream); text-align: center; margin-bottom: 56px; }
.h2-ink { color: var(--slate); }

/* About: the photo already is a cut-out on a cream circle, shown whole, never cropped */
.about-band { padding-top: 40px; }
.about { display: grid; grid-template-columns: minmax(280px, 440px) 1fr; gap: 64px; align-items: center;
  padding: 56px 72px 56px 56px; background: var(--white); color: var(--slate); border-radius: var(--r-l); }
.about-photo { text-align: center; }
.about-photo img { display: block; width: 100%; height: auto; }
.about-photo figcaption { margin-top: 14px; display: grid; gap: 2px; }
.about-photo b { font: 600 20px/1.3 var(--text); }
.about-photo span { font-size: 16px; color: var(--muted); }
.about-text .h2 { text-align: left; margin-bottom: 24px; }
.about-text .lead { font-weight: 600; max-width: 56ch; margin-bottom: 28px; }
.career { display: grid; gap: 18px; }
.career li { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding-top: 18px; border-top: 1px solid #e6e3cf; font-size: 17px; }
.career b { font: 600 18px/1.4 var(--display); color: var(--slate); }

/* Services */
.svcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; padding: 30px 30px 28px; background: var(--olive); color: var(--slate); border-radius: var(--r-m); min-height: 290px; }
.svc-ic { width: 76px; height: 76px; }
.svc h3 { font: 600 clamp(20px, 1.85vw, 26px)/1.15 var(--display); text-transform: uppercase; }
.svc .btn { justify-self: end; }
.svc .btn::after { content: ''; position: absolute; inset: 0; border-radius: inherit; } /* the whole card opens the panel */
@media (hover: hover) { .svc:hover .btn { background: var(--slate-d); color: var(--white); } }

/* Projects */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.case { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 22px; background: var(--white); color: var(--slate); border-radius: var(--r-m); }
.case-img { display: block; width: 100%; aspect-ratio: 2 / 1.25; object-fit: cover; border-radius: calc(var(--r-m) - 10px); }
.case-fig { display: grid; gap: 2px; padding: 8px 10px 0; }
.case-fig b { font: 700 40px/1 var(--display); color: var(--olive-ink); }
.case-fig span { font-size: 14px; color: var(--muted); }
.case h3 { padding: 0 10px; font: 500 21px/1.2 var(--display); }
.facts { display: grid; gap: 4px; padding: 0 10px; font-size: 15px; line-height: 1.45; flex: 1; }
.facts li { padding-left: 16px; position: relative; }
.facts li::before { content: ''; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--olive); }
.case .btn { align-self: flex-start; margin: 6px 10px 0; }
.case .btn::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
@media (hover: hover) { .case:hover .btn { background: var(--cream); } }

/* How we work */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 40px; }
.steps li { display: grid; gap: 14px; align-content: start; padding: 26px 26px 30px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-m); }
.steps b { font: 600 18px/1 var(--display); color: var(--olive); }
.steps span { font: 400 clamp(20px, 1.9vw, 25px)/1.25 var(--display); }
.figs { display: grid; justify-items: center; gap: 32px; padding: 48px 40px; border-radius: var(--r-l); background: var(--slate-l); }
.figs-row { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; text-align: center; }
.fig { display: grid; gap: 8px; padding: 0 clamp(14px, 3.2cqw, 40px); }
.fig + .fig { border-left: 1px solid rgba(255, 255, 255, .18); }
/* the size follows the width of the page (not of the window): with the side panel open the figures do not run into each other */
.fig b { font: 700 clamp(30px, 5.2cqw, 76px)/1 var(--display); white-space: nowrap; color: var(--cream); }
.fig span { font: 500 18px/1.3 var(--text); }

/* Partners */
.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.partner { display: grid; justify-items: center; gap: 18px; width: min(520px, 100%); padding: 36px 40px; border: 1px solid #e4e1cc; border-radius: var(--r-m); text-align: center; }
.partner img { width: min(380px, 100%); }
.partner p { font-size: 18px; }

/* Documents: certificates and letters */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.doc { display: grid; width: 100%; padding: 0; border: 1px solid rgba(41, 53, 62, .14); border-radius: var(--r-s); overflow: hidden; background: var(--white); color: var(--slate); text-align: left; cursor: zoom-in; }
.doc img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f4f2e6; }
.doc span { padding: 12px 14px 14px; font-size: 14px; line-height: 1.35; }
@media (hover: hover) { .doc:hover { border-color: var(--olive); } }

/* Section tones and numbers (variant 2B): slate and deep slate alternate, partners on light; a number between two lines */
.tone-slate { background: var(--slate); }
.tone-deep { background: var(--slate-d); }
.tone-light { background: var(--cream-l); color: var(--slate); }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; font: 600 15px/1 var(--display); color: var(--olive); }
.eyebrow::before, .eyebrow::after { content: ''; width: 56px; height: 1px; background: currentColor; opacity: .6; }
.tone-light .eyebrow, .about .eyebrow { color: var(--olive-ink); }
.about .eyebrow { justify-content: flex-start; }
.about .eyebrow::before { display: none; }

/* Partners and letters (variant 4A): logos in one colour in a row, letters below the line */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px 80px; }
.logos img { display: block; height: 54px; width: auto; opacity: .78; }
/* Letters (variant 2): the key phrase on the left, the scan on the right; the quote carries no quotation marks */
.letters { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; margin-top: 44px; padding-top: 8px; }
.letters li { display: grid; grid-template-columns: 1fr 176px; gap: 32px; align-items: start; padding-top: 22px; border-top: 1px solid #d8d4b8; }
.letter-logo { display: block; height: 30px; width: auto; margin-bottom: 16px; opacity: .8; }
.letter-who { display: block; margin-bottom: 16px; font: 600 20px/1.2 var(--display); }
.letter-q { font: 600 22px/1.3 var(--display); }
.letter-cite { margin-top: 14px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.letter { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.letter img { display: block; width: 100%; aspect-ratio: 1 / 1.2; object-fit: cover; object-position: top; border-radius: 3px; background: #fff;
  box-shadow: 0 1px 2px rgba(41, 53, 62, .2), 0 8px 18px -8px rgba(41, 53, 62, .4); transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .letter:hover img { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(41, 53, 62, .2), 0 16px 26px -10px rgba(41, 53, 62, .45); } }
/* a single letter stands alone in the middle instead of leaving the right half empty */
.letters:has(li:only-child) { grid-template-columns: minmax(0, 760px); justify-content: center; }
@container page (max-width: 900px) { .letters { grid-template-columns: 1fr; } }
@container page (max-width: 640px) { .letters li { grid-template-columns: 1fr 96px; gap: 18px; } .letter-q { font-size: 19px; } }

/* Footer: dark, short, one or two lines */
.foot { background: var(--slate-d); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 26px; padding-bottom: 26px; }
.foot-c { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .6); }
.foot-links, .foot-docs { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links { margin-right: auto; }
.foot a, .foot button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: none; color: rgba(255, 255, 255, .86); font: 500 14px/1.2 var(--text); text-decoration: none; cursor: pointer; }
.foot-docs a, .foot-docs button { color: rgba(255, 255, 255, .6); }
@media (hover: hover) { .foot a:hover, .foot button:hover { color: var(--olive); } }

/* Brand icons (Simple Icons) in the current colour */
.ic { display: inline-block; width: 1.1em; height: 1.1em; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ic-tg { --i: url(icons/telegram.svg); width: 1.3em; }  /* the plane alone, no circle (Igor, 17.11.2026) */
.ic-wa { --i: url(icons/whatsapp.svg); }
.btn .ic { margin-right: 10px; }
.btn-cream { background: var(--cream); color: var(--slate); }
@media (hover: hover) { .btn-cream:hover { background: var(--white); } }

/* Pinned contact (variant 5C): a tab at the right edge on a computer, two buttons at the bottom on a phone */
.edge-tab { position: fixed; z-index: 30; right: 0; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; padding: 20px 11px; border: 0; border-radius: 14px 0 0 14px;
  background: var(--olive); color: var(--slate); font: 600 15px/1 var(--text); letter-spacing: .03em; cursor: pointer; box-shadow: -4px 6px 20px rgba(0, 0, 0, .25); }
@media (hover: hover) { .edge-tab:hover { background: var(--cream); } }
.side-open .edge-tab { display: none; }
.call-bar { display: none; }
@media (max-width: 899.98px) {
  .edge-tab { display: none; }
  .call-bar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(31, 42, 50, .97); border-top: 1px solid rgba(255, 255, 255, .1); }
  .call-bar .btn { min-height: 48px; padding: 0 12px; font-size: 15px; }
  .side-open .call-bar { display: none; }
  .page { padding-bottom: 70px; }
}

/* Contact panel and the call-back form */
.side-tg { width: 100%; }
.side-or { margin: 18px 0 14px; font-size: 15px; color: var(--muted); text-align: center; }
.call { display: grid; gap: 14px; }
.call-topic { font-size: 15px; }
.call-topic b { font-weight: 600; }
.fld { display: grid; gap: 6px; }
.fld span { font: 600 14px/1.2 var(--text); }
.fld input { width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid rgba(41, 53, 62, .28); border-radius: 14px; background: var(--white); color: var(--slate); font: 400 17px/1.3 var(--text); }
.fld input:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(189, 183, 103, .55); }
.fld input[aria-invalid="true"] { border-color: #b3452f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.call .btn { width: 100%; }
.call .btn[disabled] { opacity: .6; cursor: progress; }
.call-err { color: #a33d28; font-size: 15px; }
.call-note { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.call-note a { color: inherit; }
.call-done { outline: none; }

/* Project gallery in the panel (variant 3B): a big photo, arrows, four thumbnails */
.gal { margin-bottom: 22px; }
.gal-main { position: relative; }
.gal-main img { display: block; width: 100%; aspect-ratio: 1000 / 550; object-fit: cover; border-radius: var(--r-s); background: #d8d4b2; }
.gal-arr { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--slate); cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.gal-prev { left: 10px; } .gal-next { right: 10px; }
@media (hover: hover) { .gal-arr:hover { background: var(--white); } }
.gal-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.gal-t { padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; overflow: hidden; }
.gal-t img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; opacity: .55; transition: opacity .15s; }
.gal-t[aria-current="true"] { outline: 2px solid var(--slate); outline-offset: 2px; }
.gal-t[aria-current="true"] img, .gal-t:hover img { opacity: 1; }
.side-body > .btn { margin-top: 8px; }

/* Side panel: shares the screen with the page */
.side { position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: var(--side-w); display: flex; flex-direction: column;
  background: var(--cream); color: var(--slate); border-left: 1px solid rgba(41, 53, 62, .18); }
.side[hidden] { display: none; }
.side.will-close { opacity: .55; }
.side-rz { position: absolute; z-index: 2; top: 0; bottom: 0; left: -6px; width: 12px; cursor: col-resize; touch-action: none; outline: none; }
.side-rz::after { content: ''; position: absolute; top: 0; bottom: 0; left: 5px; width: 2px; border-radius: 2px; background: var(--slate); opacity: 0; transition: opacity .15s; }
@media (hover: hover) and (pointer: fine) { .side-rz:hover::after { opacity: .45; transition-delay: .12s; } }
.side-rz:focus-visible::after, .side-rz.is-active::after { opacity: 1; }
.is-resizing, .is-resizing * { cursor: col-resize !important; user-select: none !important; }
.side-head { flex: none; display: flex; align-items: center; gap: 4px; height: 60px; padding: 0 12px 0 16px; border-bottom: 1px solid rgba(41, 53, 62, .14); }
.side-ic { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--slate); cursor: pointer; }
.side-ic:disabled { opacity: .3; cursor: default; }
@media (hover: hover) { .side-ic:not(:disabled):hover { background: rgba(41, 53, 62, .08); } }
.side-crumb { flex: 1; min-width: 0; padding: 0 8px; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 28px 32px 48px; outline: none; }
.side-h { font: 600 clamp(24px, 2.4vw, 32px)/1.15 var(--display); text-transform: uppercase; margin-bottom: 22px; }
.side-dl { display: grid; gap: 6px; margin-bottom: 32px; }
.side-dl dt { margin-top: 18px; font: 600 15px/1.2 var(--display); text-transform: uppercase; color: var(--muted); }
.side-dl dd { font-size: 17px; }
.side-fig { margin-bottom: 14px; font-size: 16px; color: var(--muted); }
.side-fig b { font: 700 34px/1 var(--display); color: var(--slate); margin-right: 6px; }
.side-text { font-size: 17px; margin-bottom: 18px; }
.side-body .facts { padding: 0; margin-bottom: 24px; font-size: 16px; }
.side .docs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 899.98px) {
  .side { left: 0; width: auto; border-left: 0; }
  .side-rz { display: none; }
  html.side-open { overflow: hidden; }
}

/* Viewer for documents */
/* Document viewer. The controls sit on the dialog itself (absolute, not fixed), so they never jump while the dialog grows in:
   arrows beside the document, the cross above its corner, the caption below; bare monochrome icons, nothing laid over the scan. */
.viewer { max-width: none; max-height: none; overflow: visible; padding: 0; border: 0; background: transparent; }
.viewer::backdrop { background: rgba(20, 28, 34, .92); }
.viewer img { display: block; width: auto; height: auto; max-width: calc(100vw - 136px); max-height: calc(100dvh - 128px); border-radius: 6px; touch-action: pan-y pinch-zoom; }
html:has(.viewer[open]) { overflow: hidden; }
.viewer-x, .viewer-arr { position: absolute; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; display: grid; place-items: center;
  background: none; color: rgba(255, 255, 255, .78); cursor: pointer; transition: color 150ms ease, transform 160ms var(--ease-out); }
.viewer-x { top: -52px; right: -6px; }
.viewer-arr { top: 50%; margin-top: -22px; }
.viewer-prev { left: -52px; } .viewer-next { right: -52px; }
.viewer-arr:active, .viewer-x:active { transform: scale(0.92); }
@media (hover: hover) { .viewer-arr:hover, .viewer-x:hover { color: var(--olive); } }
.viewer-cap { position: absolute; left: 0; right: 0; top: calc(100% + 12px); margin: 0; text-align: center; color: rgba(255, 255, 255, .78); font: 500 14px/1.35 var(--text); pointer-events: none; }
.viewer[data-single] .viewer-arr { display: none; }
/* narrow screens: no room beside the document, so the arrows go under it, left and right of the caption */
@media (max-width: 700px) {
  .viewer img { max-width: calc(100vw - 24px); max-height: calc(100dvh - 150px); }
  .viewer-arr { top: calc(100% + 4px); margin-top: 0; }
  .viewer-prev { left: 0; } .viewer-next { right: 0; }
  .viewer-x { right: 0; }
  .viewer-cap { left: 52px; right: 52px; top: calc(100% + 8px); font-size: 13px; }
}

/* Widths of the page column (not of the window) */
@container page (max-width: 1180px) {
  .cases { grid-template-columns: repeat(2, 1fr); }
  .about { padding: 48px; gap: 40px; }
}
@container page (max-width: 960px) {
  .top-nav { position: absolute; top: var(--top-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gut) 20px; background: var(--slate); border-bottom: 1px solid var(--line); }
  .top-nav a { padding: 14px 0; font-size: 18px; }
  .top-menu { display: block; }
  .svcs, .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about-photo { width: min(400px, 100%); margin: 0 auto; }
  .about-text .h2 { text-align: center; }
}
@container page (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .foot-in { flex-direction: column; align-items: flex-start; gap: 10px; }
  .logos { gap: 28px 40px; }
  .logos img { height: 40px; }
  .band { padding: 72px 0; }
  .h2 { margin-bottom: 36px; }
  .top-in { gap: 16px; }
  .top-cta { padding: 0 16px; }
  .about-band { padding-top: 24px; }
  .about { padding: 28px 20px 32px; border-radius: 28px; }
  .career li { grid-template-columns: 1fr; gap: 4px; font-size: 16px; }
  .svcs, .cases, .steps { grid-template-columns: 1fr; }
  .svc { min-height: 0; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; gap: 14px 16px; padding: 20px 20px 18px; align-items: center; }
  .svc-ic { width: 52px; height: 52px; }
  .svc h3 { font-size: 19px; }
  .svc .btn { grid-column: 1 / -1; min-height: 42px; padding: 0 22px; font-size: 15px; }
  .steps li { padding: 20px; }
  .figs { padding: 32px 18px; border-radius: 28px; }
  .figs-row { grid-template-columns: 1fr; gap: 28px; }
  .fig { padding: 0; }
  .fig + .fig { border-left: 0; }
  .fig b { font-size: 52px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .side-body { padding: 22px 18px 40px; }
}

/* ——— Motion (animate skill) ——— */

/* Moving to a section from the menu or a button: the page scrolls there instead of jumping */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Sections come in once, the first time they reach the screen (marketing page); a short wave inside a group */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(18px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

/* Cards: a small lift under the mouse, a press when clicked (the whole card is the button) */
.svc, .case { transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .svc:hover, .case:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .22); }
}
.svc:has(.btn:active), .case:has(.btn:active) { transform: scale(0.985); }
.svc .btn:active, .case .btn:active { transform: none; }

/* Small controls: press feedback */
.side-ic, .gal-t, .letter, .foot a, .foot button { transition: transform 160ms var(--ease-out), background-color 150ms ease, color 150ms ease; }
.side-ic:active, .gal-t:active, .letter:active { transform: scale(0.94); }
.gal-arr { transition: transform 160ms var(--ease-out), background-color 150ms ease; }
.gal-arr:active { transform: translateY(-50%) scale(0.92); }
.edge-tab { transition: background-color 150ms ease, transform 160ms var(--ease-out), opacity 200ms var(--ease-out); }
.edge-tab:active { transform: translateY(-50%) scale(0.96); }
@starting-style { .edge-tab { opacity: 0; } }
.gal-main img { will-change: auto; }

/* Phone menu: drops from the header, from its top edge */
@container page (max-width: 960px) {
  .top-nav { display: flex; visibility: hidden; opacity: 0; transform: translateY(-8px); transform-origin: top center; pointer-events: none;
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms; }
  .top-nav.is-open { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
}

/* Document viewer: a modal, so it grows from the centre; the dim backdrop fades with it */
.viewer { opacity: 0; transform: scale(0.96);
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), overlay 250ms allow-discrete, display 250ms allow-discrete; }
.viewer[open] { opacity: 1; transform: none; }
@starting-style { .viewer[open] { opacity: 0; transform: scale(0.96); } }
.viewer::backdrop { opacity: 0; transition: opacity 250ms var(--ease-out), overlay 250ms allow-discrete, display 250ms allow-discrete; }
.viewer[open]::backdrop { opacity: 1; }
@starting-style { .viewer[open]::backdrop { opacity: 0; } }

/* Form: the error border changes softly; the success check draws itself once */
.fld input { transition: border-color 150ms ease, box-shadow 150ms ease; }
.call-done .check { display: block; margin-bottom: 10px; color: var(--olive-ink); }
.check path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 250ms var(--ease-out), opacity 80ms var(--ease-out); }
@starting-style { .check path { stroke-dashoffset: 1; opacity: 0; } }
.call-done:not([hidden]) { animation: done-in 250ms var(--ease-out); }
@keyframes done-in { from { opacity: 0; transform: translateY(6px); } }

/* Reduce motion: fewer and gentler, not zero. Fades stay, movement goes */
@media (prefers-reduced-motion: reduce) {
  .reveal-on [data-reveal] { transform: none; transition: opacity 200ms ease; transition-delay: 0s; }
  .svc:hover, .case:hover { transform: none; }
  .btn:active, .svc:has(.btn:active), .case:has(.btn:active), .side-ic:active, .gal-t:active, .letter:active { transform: none; }
  .gal-arr:active, .edge-tab:active { transform: translateY(-50%); }
  .viewer, .viewer[open] { transform: none; }
  @starting-style { .viewer[open] { transform: none; } }
  .check path { transition: opacity 150ms ease; }
  @starting-style { .check path { stroke-dashoffset: 0; opacity: 0; } }
  .call-done:not([hidden]) { animation: none; }
  @container page (max-width: 960px) { .top-nav { transform: none; } }
}
/* While the panel edge is dragged nothing else animates */
.is-resizing .svc, .is-resizing .case { transition: none; }

/* ——— Browser surfaces and touch (impeccable audit) ——— */
::selection { background: var(--olive); color: var(--slate); }
html { accent-color: var(--olive); caret-color: var(--olive); scrollbar-color: #4a5862 var(--slate-d); }
.side-body { scrollbar-color: rgba(41, 53, 62, .35) transparent; scrollbar-width: thin; }
.fld input { caret-color: var(--slate); }
a { text-underline-offset: 3px; }
/* focus ring: olive on dark, slate on light surfaces where olive would be too faint */
.tone-light :focus-visible, .about :focus-visible, .case :focus-visible, .side :focus-visible, .svc :focus-visible { outline-color: var(--slate); }
.fig b, .case-fig b { font-variant-numeric: tabular-nums; }
/* touch targets at least 44 px */
.side-ic { width: 44px; height: 44px; }
.top-menu { min-height: 44px; padding: 10px 8px; }
@media (pointer: coarse) {
  .foot a, .foot button { min-height: 44px; }
  .gal-arr { width: 44px; height: 44px; }
}

/* Certificates as a running line in section 5 (Igor, 16.11.2026). Constant motion, so linear (animate skill);
   transform only; it runs only while on screen, stops under the mouse or keyboard focus,
   and with «reduce motion» it is a still row you scroll by hand. */
.mq { margin-top: 56px; padding-top: 40px; border-top: 1px solid #e1ddc6; }
.mq-h { margin-bottom: 22px; font: 600 15px/1.2 var(--display); text-transform: uppercase; color: var(--muted); text-align: center; }
.mq-view { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mq-track { display: flex; gap: 20px; width: max-content; padding: 4px 0; animation: mq var(--mq-dur, 60s) linear infinite; animation-play-state: paused; }
.mq.is-running .mq-track { animation-play-state: running; }
.mq-view:hover .mq-track, .mq-view:focus-within .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(calc(-50% - 10px)); } }
.mq-item { display: block; padding: 0; border: 1px solid #ddd9c2; border-radius: 10px; overflow: hidden; background: var(--white); cursor: zoom-in;
  transition: border-color 150ms ease, transform 160ms var(--ease-out); }
.mq-item img { display: block; height: 150px; width: auto; }
.mq-item:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .mq-item:hover { border-color: var(--slate); } }
@container page (max-width: 640px) { .mq-item img { height: 110px; } .mq-track { gap: 14px; } @keyframes mq { to { transform: translateX(calc(-50% - 7px)); } } }
@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; }
  .mq-track li[aria-hidden="true"] { display: none; }
  .mq-view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x proximity; }
  .mq-track li { scroll-snap-align: start; }
  .mq-item:active { transform: none; }
}

/* ——— Standalone pages of services and projects (SEO, 18.11.2026): the same text as the side panel, on its own address ——— */
.top-nav-sub { margin-right: auto; }
@container page (max-width: 640px) { .top-nav-sub { display: none; } .top-cta { margin-left: auto; } }
.sub { min-height: 70vh; padding: 56px 0 96px; }
.sub-in { max-width: 920px; }
.crumbs { margin-bottom: 28px; font-size: 14px; color: var(--muted); }
.crumbs a { color: inherit; text-underline-offset: 3px; }
.sub-h { font: 600 clamp(34px, 5.2vw, 64px)/1.08 var(--display); text-transform: uppercase; margin-bottom: 20px; }
.sub-lead { max-width: 40em; margin-bottom: 36px; font-size: 20px; line-height: 1.5; }
.sub-fig { margin-bottom: 22px; font-size: 18px; color: var(--muted); }
.sub-fig b { font: 700 40px/1 var(--display); color: var(--olive-ink); margin-right: 10px; }
.sub-dl dd { font-size: 18px; max-width: 44em; }
.sub-text { max-width: 44em; margin: 28px 0 18px; font-size: 18px; }
.sub-facts { padding: 0; margin-bottom: 36px; font-size: 17px; }
.sub-gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sub-gal img { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 620; object-fit: cover; border-radius: var(--r-s); background: #d8d4b2; }
.sub-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin: 36px 0 12px; }
.sub-tel { width: 100%; margin-top: 4px; font-size: 16px; color: var(--muted); }
.sub-sec { margin-top: 64px; }
.sub-h2 { margin-bottom: 22px; font: 600 clamp(24px, 3vw, 34px)/1.15 var(--display); text-transform: uppercase; }
.rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.rel-card { display: grid; gap: 6px; text-decoration: none; }
.rel-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-s); background: #d8d4b2; transition: transform 200ms var(--ease-out); }
.rel-fig { font-size: 14px; color: var(--muted); }
.rel-fig b { font: 700 18px/1 var(--display); color: var(--olive-ink); }
.rel-name { font: 600 18px/1.25 var(--display); }
@media (hover: hover) and (pointer: fine) { .rel-card:hover .rel-name { text-decoration: underline; text-underline-offset: 3px; } }
.rel-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 17px; }
.rel-links a { text-underline-offset: 3px; }
.sub-about { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: center; }
.sub-photo { display: block; width: 140px; height: 140px; object-fit: cover; object-position: top; border-radius: 50%; background: #d8d4b2; }
.sub-about p + p { margin-top: 8px; }
.sub-steps { display: grid; gap: 12px; padding: 0; }
.sub-steps li { display: grid; grid-template-columns: 52px 1fr; align-items: baseline; gap: 12px; font-size: 17px; }
.sub-steps b { font: 700 22px/1 var(--display); color: var(--olive-ink); }
@container page (max-width: 640px) {
  .sub { padding-top: 32px; }
  .sub-lead { font-size: 18px; }
  .sub-gal { grid-template-columns: 1fr; }
  .sub-about { grid-template-columns: 88px 1fr; gap: 16px; }
  .sub-photo { width: 88px; height: 88px; }
  .sub-cta .btn { width: 100%; }
}
