@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --ink: #1b211f;
  --dark: #1b2423;
  --warm: #f1a572;
  --muted: #535a53;
  --line: #d8d8cf;
  --radius: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 1.4rem; }
.skip-link { position: fixed; z-index: 20; top: .6rem; left: .6rem; transform: translateY(-170%); padding: .65rem .9rem; border-radius: 5px; background: var(--paper); color: var(--ink); }
.skip-link:focus { transform: translateY(0); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 1rem/1.65 Manrope, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #a55b37; outline-offset: 4px; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.04; letter-spacing: -.058em; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 5.5vw, 5rem); }
h3 { font-size: clamp(1.35rem, 2.75vw, 2.2rem); }
.wrap { width: min(1290px, calc(100% - clamp(28px, 8vw, 108px))); margin-inline: auto; }
.section { padding-block: clamp(3rem, 7vw, 7rem); }

.nav, .nav nav { display: flex; align-items: center; justify-content: space-between; gap: clamp(.65rem, 2vw, 1.9rem); }
.nav { min-height: 76px; }
.nav nav { font-size: .92rem; }
.nav nav a { display: inline-flex; align-items: center; min-height: 44px; }
.nav nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.brand { display: block; flex: none; width: clamp(154px, 17vw, 210px); max-width: 100%; aspect-ratio: 3.15; overflow: hidden; border-radius: 7px; background: #1f2428; }
.brand img { display: block; width: 100%; height: 100%; object-fit: cover; }
.button, .outline { display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; padding: .7rem 1.05rem; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: inherit; text-align: center; font: inherit; font-weight: 800; cursor: pointer; }
.nav .outline { min-height: 44px; }
.outline:hover { background: #e9e8df; }
.button { color: #211c18; background: var(--warm); border-color: var(--warm); padding: .85rem 1.12rem; }
.button:hover { background: #ffc098; }
.eyebrow { display: flex; align-items: center; gap: .55rem; font-size: .72rem; font-weight: 800; letter-spacing: .15em; margin-bottom: 1.2rem; }
.eyebrow span { width: 7px; height: 7px; background: #ab5d38; border-radius: 1px; }

.hero { background: var(--dark); color: var(--paper); padding-block: 22px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: stretch; gap: clamp(18px, 2vw, 28px); min-height: min(675px, 83svh); }
.hero-copy { container-type: inline-size; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: clamp(22px, 5svh, 50px); }
.hero h1 { max-width: 100%; font-size: clamp(2.5rem, 6.5vw, 7.3rem); font-size: clamp(2.5rem, 17cqi, 7.3rem); letter-spacing: -.08em; line-height: .96; overflow-wrap: anywhere; }
.hero h1 em { color: var(--warm); font-style: normal; }
.hero-slogan {
  max-width: 29ch;
  margin-top: 1.55rem;
  color: var(--paper);
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.18;
  text-wrap: balance;
}
.hero-slogan span { color: #ffd0ad; }
.hero-description { max-width: 43ch; margin: .8rem 0 1.45rem; color: #e1e3dc; font-size: clamp(1rem, 1.4vw, 1.12rem); }
.hero-platforms { display: flex; flex-wrap: wrap; gap: .45rem; max-width: 100%; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.platform-chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .55rem; border: 1px solid #52605b; border-radius: 6px; color: #e1e3dc; font-size: .875rem; font-weight: 700; white-space: nowrap; }
a.platform-chip { border-color: #87948d; color: var(--paper); }
a.platform-chip:hover { border-color: var(--warm); background: #ffffff0d; }
a.platform-chip:focus-visible { outline-color: var(--warm); }
.platform-icon { display: grid; place-items: center; position: relative; flex: none; width: 20px; height: 20px; }
.platform-icon--avito::before { content: ""; position: absolute; left: 2px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: #a078ff; }
.platform-icon--avito::after { content: ""; position: absolute; left: 5px; top: 3px; width: 5px; height: 5px; border-radius: 50%; background: #39db89; box-shadow: 7px 1px #47b3ff, 8px 8px 0 1px #ff8099; }
.platform-icon--vk { border-radius: 5px; background: #1877db; color: #fff; font: 800 .61rem/1 Arial, sans-serif; letter-spacing: -.045em; }
.platform-icon--telegram { border-radius: 50%; background: #2787ae; }
.platform-icon--telegram::before { content: ""; width: 14px; height: 13px; background: #fff; clip-path: polygon(3% 43%, 96% 6%, 78% 96%, 52% 74%, 39% 89%, 36% 62%, 78% 26%, 28% 53%); }
.platform-icon--max { background: center / contain no-repeat url("images/max-platform.png"); }
.hero-photo { position: relative; align-self: center; overflow: hidden; border-radius: 7px; background: #a3a69b; }
.hero-photo img { display: block; width: 100%; height: auto; }

.process { background: #1d2828; color: #f5f1e7; scroll-margin-top: calc(var(--story-top, 0px) - 1.4rem); }
.process-heading { position: relative; z-index: 1; padding-block: clamp(16px, 4svh, 42px) .65rem; }
.process-heading .eyebrow { margin-bottom: .45rem; }
.process-heading h2 { font-size: clamp(1.7rem, 4.6vw, 3.8rem); }
.process-heading .eyebrow span { background: var(--warm); }

.story.is-interactive { display: grid; grid-template-columns: minmax(0, 1fr); isolation: isolate; }
.story.is-interactive .story-visual { grid-area: 1 / 1; align-self: start; position: sticky; top: var(--story-top, 0px); z-index: 1; }
.diagram {
  position: relative;
  background-color: #1f2b2b;
  background-image: linear-gradient(#ffffff0b 1px, transparent 1px), linear-gradient(90deg, #ffffff0b 1px, transparent 1px), radial-gradient(ellipse at 25% 49%, #435756, transparent 68%);
  background-size: 27px 27px, 27px 27px, auto;
}
.story.is-interactive .diagram { display: grid; grid-template-rows: auto minmax(0, 1fr); height: calc(100vh - var(--story-top, 0px)); height: calc(100svh - var(--story-top, 0px)); }
.diagram-body { position: relative; display: grid; grid-template-columns: minmax(0, 57fr) minmax(0, 43fr); min-height: 0; }
.diagram::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 42%, #1d2828aa 69%, #1d2828);
  pointer-events: none;
}
.diagram-art { position: relative; min-height: 0; }
#facade-drawing { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.diagram-panel { position: relative; z-index: 1; align-self: center; justify-self: center; width: min(100%, 500px); padding: .6rem clamp(14px, 3vw, 42px); text-align: center; }
.diagram-count { margin-bottom: .85rem; color: #ffc29c; font-size: .76rem; font-weight: 800; letter-spacing: .13em; font-variant-numeric: tabular-nums; }
#stage-caption { display: grid; align-items: center; min-height: 2lh; font-size: clamp(1.55rem, 3.5vw, 4.1rem); line-height: 1.04; overflow-wrap: anywhere; }
#stage-description { min-height: 4lh; max-width: 34ch; margin: .65rem auto 0; color: #d8e0dc; font-size: clamp(1rem, 1.35vw, 1.13rem); line-height: 1.5; text-wrap: pretty; }
.stage-index { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(2px, 1vw, 8px); max-width: 360px; margin: .85rem auto 0; }
.stage-index a { display: grid; place-items: center; min-height: 44px; border-top: 2px solid #71817b; color: #c4cdc7; text-align: center; font-size: clamp(.75rem, 1vw, .88rem); font-variant-numeric: tabular-nums; }
.stage-index a:hover { color: #fff; border-color: #fff; }
.stage-index a:focus-visible { outline-color: var(--warm); }
.stage-index a[aria-current="step"] { border-color: var(--warm); color: #ffc29c; font-weight: 800; }
.story-steps { list-style: none; width: min(1290px, calc(100% - clamp(28px, 8vw, 108px))); margin: 0 auto; padding: 0; }
.story.is-interactive .story-steps { grid-area: 1 / 1; width: 100%; padding-bottom: 42svh; }
.story-step { position: relative; padding-block: 22px; }
.story.is-interactive .story-step { min-height: max(62svh, 245px); scroll-margin-top: 26svh; padding: 0; }
.story.is-interactive .story-step:first-child { min-height: max(72svh, 275px); scroll-margin-top: calc(var(--story-top, 0px) - 1.4rem); }
.story.is-interactive .story-step > div {
  position: absolute;
  width: 1px;
  height: 1px;
  white-space: nowrap;
  overflow: hidden;
  clip-path: inset(50%);
}
.story-step h3 { margin-bottom: .8rem; }
.story-step p { max-width: 38ch; color: #c6d0cc; }
.step-number { display: block; margin-bottom: .75rem; color: #ffc29c; font-weight: 800; font-size: .8rem; font-variant-numeric: tabular-nums; }
.process-note { color: #c6d0cc; font-size: .86rem; padding-block: 1.35rem clamp(2.5rem, 6vw, 5rem); }

.cards, .project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 27px; }
.cards article, .project { padding: clamp(16px, 2.5vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: #fcfbf6; }
.service-group { margin-top: 1.25rem; padding-top: 1.05rem; border-top: 1px solid var(--line); }
.service-group h4 { margin: 0 0 .45rem; font-size: 1.04rem; }
.service-group p, .service-group ul, .service-note { color: var(--muted); }
.service-group ul { margin: 0; padding-inline-start: 1.15rem; }
.service-group li + li { margin-top: .35rem; }
.service-group li::marker { color: #a55b37; }
.service-group .finish-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .35rem 1rem; }
.finish-list li + li { margin-top: 0; }
.service-note { margin-top: 1.2rem; font-size: .92rem; }
.service-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .4rem; color: #6c3824; font-weight: 800; text-decoration: underline; text-underline-offset: .24em; }
.service-link:hover { color: var(--ink); }
.projects { border-top: 1px solid var(--line); }
.portfolio-area { margin-top: .7rem; color: var(--muted); }
.project-grid > .project:last-child:nth-child(odd) { grid-column: 1 / -1; }
.project h3 { margin-bottom: 1.12rem; font-size: clamp(1.14rem, 2vw, 1.55rem); }
.project-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.project-photos:has(> figure:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-photos > figure:only-child { grid-column: 1 / -1; }
.project-photos a { display: block; position: relative; aspect-ratio: var(--photo-ratio, 16 / 10); overflow: hidden; border-radius: 5px; background: #d6dacf; cursor: zoom-in; }
.project-photos a, .stage-index a { touch-action: manipulation; }
.project-photos img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, center);
  transform: scale(var(--photo-zoom, 1));
  transform-origin: var(--photo-origin, center);
}
.project-photos figcaption { margin-top: .45rem; color: var(--muted); font-size: .83rem; }
#photo-viewer { max-width: min(1300px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overscroll-behavior: contain; padding: 10px; border: 0; border-radius: 10px; background: var(--dark); color: white; }
#photo-viewer::backdrop { background: #0d1713df; }
#photo-viewer form { position: sticky; top: 0; z-index: 1; display: flex; justify-content: end; padding: 0 0 8px; background: var(--dark); }
#photo-viewer button { min-height: 44px; padding: .3rem .7rem; }
#photo-viewer button:hover { color: var(--dark); }
#photo-viewer img { display: block; width: auto; height: auto; max-width: 100%; max-height: max(100px, calc(100dvh - 150px)); margin-inline: auto; object-fit: contain; }
#photo-viewer figcaption { padding: .4rem 0 0; text-align: center; }

.estimate { display: grid; grid-template-columns: minmax(0, 42rem); justify-content: center; gap: clamp(20px, 3vw, 32px); border-top: 1px solid var(--line); }
.estimate-heading { text-align: center; }
.estimate-heading .intro { max-width: 58ch; margin: 1rem auto 0; color: var(--muted); }
.estimate-contacts { display: grid; justify-items: center; gap: .35rem; text-align: center; font-style: normal; }
.estimate-contacts p { font-weight: 800; }
.estimate-contacts a { color: #6c3824; text-decoration: underline; text-underline-offset: .22em; overflow-wrap: anywhere; }
.estimate-contacts a:hover { color: var(--ink); }
#brief { padding: clamp(16px, 3vw, 28px); border-radius: var(--radius); background: #eeeee6; display: grid; gap: 14px; }
label { display: grid; gap: 4px; font-size: .93rem; font-weight: 700; }
input, select, textarea { width: 100%; min-width: 0; min-height: 44px; font: inherit; font-size: 1rem; color: inherit; border: 1px solid #a9afa2; border-radius: 5px; background: #fff; padding: .6rem; }
#brief .button { justify-self: center; }
.brief-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-hint { text-align: center; color: var(--muted); font-size: .85rem; }
#result { padding-top: 12px; border-top: 1px solid var(--line); }
#copy { margin-top: 8px; }
#status { margin-left: 8px; }
.reviews { border-top: 1px solid var(--line); }
.reviews-intro { max-width: 58ch; margin-top: .9rem; }
.reviews-empty { margin-top: 1rem; color: var(--muted); }
.reviews-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.review-card { min-width: 0; padding: clamp(16px, 3vw, 26px); border: 1px solid var(--line); border-radius: var(--radius); }
.review-card-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; }
.review-card h3, .review-text { overflow-wrap: anywhere; }
.review-stars { color: #854429; letter-spacing: .08em; white-space: nowrap; }
.review-text { margin-top: .7rem; white-space: pre-line; }
.review-compose, .review-email { margin-top: 1.4rem; }
.review-compose { padding: 0; border: 0; }
.review-compose summary { width: fit-content; min-height: 44px; list-style: none; }
.review-compose summary::-webkit-details-marker { display: none; }
.review-compose summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.review-form {
  display: grid;
  gap: 14px;
  max-width: 38rem;
  padding: clamp(14px, 3vw, 26px);
  margin-top: 1rem;
  border-radius: var(--radius);
  background: #eeeee6;
}
.review-form textarea { resize: vertical; }
.review-rating { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.review-rating legend { margin-bottom: .35rem; padding: 0; font-size: .93rem; font-weight: 700; }
.review-rating-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(3px, 1vw, 8px); max-width: 21rem; }
.review-rating-choice { position: relative; min-width: 0; cursor: pointer; }
.review-rating-choice input { position: absolute; inset: 0 auto auto 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; clip-path: inset(50%); }
.review-rating-choice span { display: grid; place-items: center; min-height: 44px; border: 1px solid #a9afa2; border-radius: 5px; background: #fff; white-space: nowrap; }
.review-rating-choice input:checked + span { border-color: #854429; background: #fff0e4; color: #6c3824; box-shadow: inset 0 0 0 1px #854429; }
.review-rating-choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.reviews .review-hint { margin: 0; font-size: .9rem; color: var(--muted); }
.review-email .review-hint { margin-top: .65rem; }
.review-form .button { justify-self: start; min-height: 44px; }
.review-form .button:disabled { opacity: .65; }
.reviews .review-status { margin: 0; color: var(--ink); font-weight: 700; }
.reviews .review-status[data-state="error"] { color: #812d21; }
.faq { border-top: 1px solid var(--line); }
.faq h2 { margin-bottom: 1.3rem; }
details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
summary { cursor: pointer; font-size: 1.07rem; font-weight: 800; }
details p { max-width: 78ch; color: var(--muted); margin-top: .65rem; }
footer { background: #1f2428; color: var(--paper); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(184px, .85fr); gap: clamp(24px, 5vw, 66px); padding-block: clamp(31px, 5vw, 62px) clamp(24px, 3vw, 38px); }
.footer-brand { width: min(100%, 216px); }
.footer-area { margin-top: .6rem; color: #c7d0cb; font-size: .94rem; }
.footer-label { margin-bottom: .45rem; color: #ffc39f; font-size: .875rem; font-weight: 800; }
.footer-contacts { display: grid; justify-items: start; font-style: normal; }
.footer-contacts a { display: flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.footer-contacts a[href^="tel:"] { font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 800; }
.footer-contacts a[href^="mailto:"] { color: #e1e3dc; text-decoration: underline; text-underline-offset: .22em; }
.footer-platforms { display: flex; gap: .125rem; margin: 0; padding: 0; list-style: none; }
.footer-platform { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.footer-platform .platform-icon { transform: scale(.85); }
a.footer-platform:hover { background: #ffffff14; text-decoration: none; }
#site-footer a:focus-visible { outline-color: var(--warm); }
span.footer-platform { opacity: .7; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1rem; padding-block: .65rem; border-top: 1px solid #ffffff26; color: #c7d0cb; font-size: .88rem; }
.footer-top-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; color: var(--paper); font-weight: 700; }
.footer-top-link span { color: var(--warm); }

.service-hero { padding-block: clamp(2.8rem, 7vw, 6rem); background: var(--dark); color: var(--paper); }
.service-hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(22px, 4vw, 64px); }
.service-hero h1 { max-width: 22ch; font-size: clamp(2.1rem, 5.5vw, 4.6rem); overflow-wrap: anywhere; }
.service-breadcrumb { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: .8rem; color: #e1e3dc; font-size: .9rem; }
.service-breadcrumb a { text-decoration: underline; text-underline-offset: .22em; }
.service-breadcrumb a:focus-visible { outline-color: var(--warm); }
.service-hero .intro { max-width: 54ch; margin: 1rem 0 1.35rem; color: #e1e3dc; }
.service-hero img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; border-radius: 7px; object-fit: cover; object-position: center 44%; }
.service-body { max-width: 74ch; }
.service-body h2 { margin: 1.7rem 0 .75rem; font-size: clamp(1.55rem, 3.5vw, 2.5rem); }
.service-body h2:first-child { margin-top: 0; }
.service-body p, .service-body li { color: var(--muted); }
.service-body ul { padding-inline-start: 1.25rem; }
.service-body .service-link { margin-right: 1rem; }

@media (min-width: 601px) {
  .admin-bar { --story-top: var(--wp-admin--admin-bar--height, 32px); }
}

@media (max-width: 820px) {
  header.nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .65rem; padding-top: .55rem; }
  header.nav nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; flex-wrap: wrap; gap: 0 .45rem; }
  header.nav .outline { padding: .5rem .62rem; gap: .45rem; font-size: .875rem; }
  .hero { padding-block: 15px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 720px; min-height: auto; }
  .hero-copy { padding-block: clamp(16px, 5vw, 40px) clamp(24px, 5vw, 42px); }
  .hero h1 { font-size: clamp(2.65rem, 11vw, 5.8rem); font-size: clamp(2.65rem, 13cqi, 5.8rem); }
  .hero-slogan { margin-top: 1.1rem; }
  .cards, .project-grid { grid-template-columns: minmax(0, 1fr); }
  .service-hero-inner { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
}

@media (max-width: 720px) {
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem 2rem; }
  .footer-identity { grid-column: 1 / -1; }
}

@media (max-width: 540px), (max-width: 820px) and (min-height: 541px) {
  .diagram::after { background: linear-gradient(180deg, transparent 40%, #1d282870 62%, #1d2828); }
  .diagram-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .diagram-panel { width: min(100%, 540px); padding-bottom: .75rem; }
  .diagram-count { margin-bottom: .4rem; }
  #stage-caption { font-size: clamp(1.55rem, 6vw, 2.8rem); }
  .stage-index { margin-top: .5rem; }
}

@media (max-width: 390px) {
  #stage-description { min-height: 5lh; }
}

@media (max-height: 540px) {
  .process-heading { padding-block: 10px .35rem; }
  .process-heading .eyebrow { margin-bottom: .25rem; }
  .process-heading h2 { font-size: clamp(1.45rem, 5svh, 2.15rem); }
  .diagram-count { margin-bottom: .32rem; }
  #stage-caption { font-size: clamp(1.35rem, 5.2svh, 2.8rem); }
  #stage-description { min-height: 3lh; margin-top: .4rem; font-size: .94rem; line-height: 1.4; }
  .stage-index { margin-top: .4rem; }
}

@media (min-width: 541px) and (max-width: 820px) and (max-height: 540px) {
  .diagram-body { grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); }
  .diagram-panel { padding-inline: 10px; }
  .stage-index { gap: 2px; }
}

@media (max-width: 560px) {
  .brief-contact { grid-template-columns: minmax(0, 1fr); }
  #brief .button { justify-self: stretch; gap: .55rem; }
  .review-form .button { justify-self: stretch; }
}

@media (max-width: 520px), (min-width: 821px) and (max-width: 1024px) {
  .project-photos:has(> figure:nth-child(3)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-photos > figure:nth-child(3) { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-main { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .footer-identity { grid-column: auto; }
  .footer-brand { margin-inline: auto; }
  .footer-contacts { justify-items: center; }
  .footer-platforms { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 19rem); }
  .hero-platforms .platform-chip { display: flex; }
}

@media (max-width: 350px) {
  header.nav nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-hero h1 { font-size: 2rem; }
  .project-photos, .project-photos:has(> figure:nth-child(3)) { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
