:root {
  --paper: #f7f5f0;
  --paper-warm: #f1eee7;
  --white: #fff;
  --ink: #171816;
  --muted: #5f615a;
  --olive: #667242;
  --olive-dark: #566236;
  --gold: #b69545;
  --line: #ddd9d0;
  --shadow: 0 20px 60px rgba(36, 34, 27, 0.12);
  --shadow-soft: 0 14px 36px rgba(30, 28, 22, .075);
  --radius-control: 4px;
  --radius-card: 6px;
  --container: 1200px;
  --serif: "Didot", "Bodoni 72", "Baskerville", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  background: var(--paper);
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.link-arrow svg,
.modal-close svg,
.work-gallery-nav svg,
.work-gallery-original svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(var(--container), calc(100% - 72px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  position: relative;
  z-index: 30;
  background: var(--paper);
}

.header-inner {
  min-height: 116px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: clamp(26px, 3.4vw, 58px);
  padding-block: 18px 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  position: relative;
  width: 40px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.13em;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 0;
  top: 5px;
  width: 1px;
  height: 37px;
  background: rgba(182, 149, 69, .72);
}

.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy strong { font: 26px/1 var(--serif); letter-spacing: .02em; }
.brand-copy small { color: var(--muted); font-size: 12px; }

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
  padding-top: 13px;
  font-size: 13px;
  white-space: nowrap;
}

.main-nav a, .footer-nav a {
  position: relative;
  padding-block: 4px;
}

.main-nav a::after, .footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--olive);
  transition: right .25s ease;
}

.main-nav a:hover::after, .main-nav a:focus-visible::after,
.footer-nav a:hover::after, .footer-nav a:focus-visible::after { right: 0; }

.header-contact {
  display: grid;
  justify-items: start;
  min-width: 220px;
}

.phone-link { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.header-contact > span, .footer-contact > span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.header-cta { margin-top: 14px; width: 100%; min-height: 44px; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid var(--line);
  background: transparent;
}

.menu-toggle > span:not(.sr-only) { display: block; width: 100%; height: 1px; margin: 6px 0; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
.menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.2;
  transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.button-primary { background: var(--olive); color: var(--white); }
.button-primary:hover { background: var(--olive-dark); box-shadow: 0 10px 28px rgba(86, 98, 54, .2); }
.button-outline { border-color: var(--olive); background: rgba(255,255,255,.38); color: #424a2e; }
.button-outline:hover { background: var(--olive); color: var(--white); }

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #f7f5f0 0%, #f6f4ef 52%, #ece8df 100%);
  border-bottom: 1px solid rgba(221, 217, 208, .7);
}

.hero-stage {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(400px, .86fr) minmax(500px, 1.14fr);
  align-items: stretch;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
  align-self: start;
  padding: 82px 0 60px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--olive-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero-eyebrow { color: #34372f; font-size: clamp(12px, 1vw, 15px); letter-spacing: .31em; }

.hero h1 {
  margin: 0;
  font: 400 clamp(52px, 4.5vw, 68px)/.96 var(--serif);
  letter-spacing: .01em;
  text-transform: uppercase;
}

.hero-description {
  margin: 27px 0 0;
  color: #383936;
  font-size: 16px;
  line-height: 1.55;
}

.hero-actions { display: flex; gap: 18px; margin-top: 30px; }
.hero-actions .button { min-width: 196px; }

.reference-crop {
  display: block;
  background-repeat: no-repeat;
  background-color: #eae7df;
  background-origin: border-box;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  justify-self: stretch;
  background-image: url("newhero.webp");
  background-size: cover;
  background-position: 56% center;
  -webkit-mask-image: none;
  mask-image: none;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #f7f5f0 0%,
    rgba(247,245,240,.99) 27%,
    rgba(247,245,240,.94) 38%,
    rgba(247,245,240,.74) 48%,
    rgba(247,245,240,.38) 58%,
    rgba(247,245,240,.1) 68%,
    transparent 78%
  );
}

.benefits { background: #fbfaf7; border-bottom: 1px solid var(--line); }
.benefits-grid { min-height: 96px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; align-items: center; }
.benefit { display: flex; align-items: center; gap: 18px; }
.benefit-icon { width: 36px; height: 36px; flex: none; object-fit: contain; }
.benefit p { margin: 0; display: grid; gap: 5px; font-size: 13px; line-height: 1.25; }
.benefit p strong { font-weight: 600; }
.benefit p span { color: #3d3e3a; }

.section { padding-block: 64px; background: #fdfcf9; }
.section-heading { margin: 0 auto 40px; text-align: center; }
.section-heading.compact { margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2, .about-content h2, .project-form-section h2, .modal-heading h2, .service-modal-layout h2 {
  margin: 0;
  font: 400 clamp(36px, 3.5vw, 50px)/1.05 var(--serif);
  letter-spacing: -.025em;
}

.services { padding-top: 64px; padding-bottom: 28px; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.service-card { min-height: 340px; display: grid; grid-template-columns: 58% 42%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-soft); }
.service-photo { min-height: 100%; background-image: url("service-interiors.webp"); }
.apartment-photo { background-image: url("assets/projects/ui/project-03-neoclassical-living-room-02-surface.webp"); background-size: cover; background-position: 50% 56%; }
.commercial-photo { background-image: url("assets/projects/ui/project-03-neoclassical-kitchen-living-01-surface.webp"); background-size: cover; background-position: 50% 54%; }
.service-content { display: flex; flex-direction: column; padding: 34px 24px 26px; }
.service-content h3 { margin: 0; min-height: 80px; font: 400 clamp(26px, 2.2vw, 34px)/1.05 var(--serif); }
.service-content p { margin: 6px 0 24px; color: #383a37; font-size: 13px; line-height: 1.55; }
.text-link { display: inline-flex; align-items: center; gap: 13px; align-self: flex-start; margin-top: auto; padding: 5px 0; border: 0; background: transparent; color: var(--olive-dark); cursor: pointer; font-size: 14px; }
.text-link .link-arrow { width: 23px; height: 23px; display: grid; place-items: center; transition: transform .2s ease; }
.text-link .link-arrow svg { width: 21px; height: 21px; }

.portfolio { padding-top: 40px; padding-bottom: 42px; }
.portfolio-container { width: min(1200px, calc(100% - 56px)); }
.portfolio-intro { max-width: 620px; margin: 14px auto 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.project-card { min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; cursor: pointer; text-align: left; box-shadow: 0 8px 24px rgba(30,28,22,.045); transition: transform .25s ease, box-shadow .25s ease; }
.project-photo { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #e7e4dc; }
.project-photo img { width: 100%; height: 100%; object-fit: cover; transition: filter .25s ease, transform .45s ease; }
.project-card:nth-child(2) .project-photo img { object-position: 50% 62%; }
.project-card:nth-child(3) .project-photo img { object-position: 50% 48%; }
.project-card:nth-child(4) .project-photo img { object-position: 50% 42%; }
.project-card:nth-child(8) .project-photo img { object-position: 50% 55%; }
.project-name { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; background: #fff; font-size: 13px; line-height: 1.3; }
.project-name::after {
  content: "";
  width: 24px;
  height: 24px;
  flex: none;
  box-sizing: border-box;
  border: 1px solid #c7cbb8;
  border-radius: 50%;
  background: #f8f8f3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235c6543' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 11.5 11.5 4.5M6.5 4.5h5v5'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  box-shadow: 0 1px 2px rgba(31, 34, 24, .06);
}
.work-series { margin-top: 38px; padding-top: 34px; border-top: 1px solid var(--line); }
.work-series-heading { display: grid; grid-template-columns: 1fr minmax(280px, 440px); gap: 40px; align-items: end; margin-bottom: 20px; }
.work-series-heading .eyebrow { margin-bottom: 9px; }
.work-series-heading h3 { margin: 0; font: 400 clamp(30px, 3vw, 42px)/1.05 var(--serif); letter-spacing: -.02em; }
.work-series-heading > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.work-series-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.work-series-card { position: relative; min-height: 330px; padding: 0; overflow: hidden; border: 1px solid #d5d0c5; border-radius: var(--radius-card); background: #272922; color: #fff; cursor: pointer; text-align: left; box-shadow: var(--shadow-soft); }
.work-series-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .3s ease; }
.work-series-card:first-child img { object-position: 50% 48%; }
.work-series-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(21,22,18,.13) 48%, rgba(21,22,18,.86) 100%); }
.work-series-copy { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; display: grid; gap: 7px; padding: 26px 28px; }
.work-series-kicker { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.work-series-copy strong { max-width: 470px; font: 400 30px/1.05 var(--serif); }
.work-series-copy > span:last-child { color: rgba(255,255,255,.8); font-size: 12px; }
.work-video-teaser { width: 100%; height: 184px; min-height: 0; display: grid; grid-template-columns: 220px 1fr; margin-top: 18px; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-soft); cursor: pointer; text-align: left; transition: transform .25s ease, box-shadow .25s ease; }
.work-video-poster { position: relative; height: 184px; min-height: 0; display: block; overflow: hidden; background: #252720; }
.work-video-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,24,20,.05), rgba(23,24,20,.28)); }
.work-video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 76%; filter: saturate(.88) contrast(1.04); transition: transform .5s ease, filter .3s ease; }
.work-video-play { position: absolute; z-index: 2; top: 50%; left: 50%; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; background: rgba(248,247,242,.93); color: var(--olive-dark); box-shadow: 0 9px 28px rgba(20,21,17,.24); transform: translate(-50%, -50%); transition: transform .2s ease, background .2s ease; }
.work-video-play svg { width: 21px; height: 21px; fill: currentColor; stroke: none; transform: translateX(1px); }
.work-video-duration { position: absolute; z-index: 2; right: 12px; bottom: 12px; padding: 5px 8px; border-radius: 999px; background: rgba(21,22,18,.72); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.work-video-copy { min-width: 0; display: grid; align-content: center; justify-items: start; gap: 7px; padding: 24px 30px; }
.work-video-copy .eyebrow { margin: 0 0 2px; }
.work-video-copy strong { font: 400 clamp(25px, 2.4vw, 34px)/1.08 var(--serif); letter-spacing: -.015em; }
.work-video-copy > span:nth-child(3) { max-width: 680px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.work-video-cta { display: inline-flex; align-items: center; gap: 9px; margin-top: 4px; color: var(--olive-dark); font-size: 13px; font-weight: 600; }
.work-video-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.center-action { display: flex; justify-content: center; margin-top: 26px; }
.center-action .button { min-width: 210px; }

.before-after { padding: 58px 0 66px; background: var(--paper-warm); border-block: 1px solid var(--line); }
.before-after-heading { margin-bottom: 30px; }
.before-after-intro { max-width: 620px; margin: 14px auto 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.before-after-grid { width: min(100%, 960px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-inline: auto; }
.before-after-case { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-soft); }
.comparison-media { min-width: 0; min-height: 290px; display: grid; grid-template-columns: 1fr 1fr; }
.comparison-pane { position: relative; min-width: 0; display: grid; place-items: center; overflow: hidden; padding: 0; border: 0; background: #d9d6ce; cursor: pointer; }
.comparison-pane + .comparison-pane { border-left: 1px solid rgba(255,255,255,.76); }
.comparison-pane::after { content: ""; position: absolute; inset: 38% 0 0; background: linear-gradient(180deg, transparent, rgba(23,24,20,.72)); pointer-events: none; }
.comparison-label { position: absolute; z-index: 2; top: 16px; left: 16px; padding: 7px 13px; border: 1px solid rgba(86,98,54,.24); border-radius: 999px; background: rgba(247,245,240,.92); color: var(--olive-dark); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.comparison-state { position: absolute; z-index: 2; right: 12px; bottom: 15px; left: 12px; color: rgba(255,255,255,.92); font-size: 11px; line-height: 1.35; letter-spacing: .01em; }
.comparison-pane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .25s ease; }
.before-after-copy { position: relative; min-height: 165px; padding: 23px 24px 24px; }
.before-after-number { position: absolute; top: 22px; right: 22px; color: #a7aa9d; font: 400 16px/1 var(--serif); }
.before-after-copy h3 { max-width: calc(100% - 35px); margin: 0; font: 400 27px/1.08 var(--serif); letter-spacing: -.015em; }
.before-after-copy p { margin: 13px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.before-after-action { margin-top: 28px; }

.about { padding-top: 20px; padding-bottom: 20px; }
.about-grid { display: grid; grid-template-columns: 1.03fr .97fr; min-height: 360px; }
.about-photo { min-height: 360px; background-image: url("assets/projects/ui/project-03-neoclassical-entry-hall-02-surface.webp"); background-size: cover; background-position: 50% 38%; }
.about-content { display: flex; flex-direction: column; justify-content: center; padding: 20px 0 18px 46px; }
.about-content .eyebrow { margin-bottom: 14px; }
.about-content h2 { font-size: clamp(36px, 3.2vw, 46px); }
.about-content > p:not(.eyebrow) { max-width: 650px; margin: 16px 0 0; color: #383a37; font-size: 14px; line-height: 1.5; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0 0; }
.stats div { min-width: 0; }
.stats dt { color: #7a7337; font: 400 36px/1 var(--serif); white-space: nowrap; }
.stats dt small { font-size: 18px; }
.stats dd { margin: 10px 0 0; font-size: 12px; line-height: 1.35; }

.process { padding-top: 18px; padding-bottom: 18px; }
.process-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin: 18px 0 0; padding: 0; list-style: none; }
.process-step { position: relative; min-width: 0; padding: 2px 4px 0; }
.process-step:not(:last-child)::after { content: ""; position: absolute; top: 52px; right: -13px; width: 29px; height: 1px; background: #c5c4bc; }
.process-step:not(:last-child)::before { content: ""; position: absolute; top: 48.5px; right: -13px; width: 7px; height: 7px; border-top: 1px solid #c5c4bc; border-right: 1px solid #c5c4bc; transform: rotate(45deg); }
.step-number { position: absolute; z-index: 2; top: 0; left: 0; color: var(--olive-dark); font: 400 16px/1 var(--serif); }
.step-icon { width: 60px; height: 60px; display: grid; place-items: center; margin: 10px auto 15px; border-radius: 50%; background: #f4f2ed; }
.step-icon img { width: 36px; height: 36px; object-fit: contain; }
.process-step h3 { margin: 0 0 7px; font: 600 14px/1.2 var(--sans); }
.process-step p { margin: 0; color: #3e403d; font-size: 12px; line-height: 1.5; }

.trust-faq { padding-top: 18px; padding-bottom: 36px; }
.trust-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 20px; }
.info-panel { min-height: 350px; padding: 32px 36px; border: 1px solid var(--line); border-radius: var(--radius-card); background: rgba(255,255,255,.54); }
.panel-title { margin: 0 0 22px; color: var(--olive-dark); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.check-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.check-list li { display: flex; align-items: center; gap: 13px; }
.check-list li > span { width: 21px; height: 21px; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--olive); color: white; }
.check-list svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.trust-note { max-width: 430px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.55; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > button { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 2px; border: 0; background: transparent; cursor: pointer; text-align: left; font-size: 14px; }
.faq-item > button::before { content: ""; width: 7px; height: 7px; flex: none; border-top: 1.5px solid var(--olive-dark); border-right: 1.5px solid var(--olive-dark); transform: rotate(45deg); }
.faq-item > button > span:first-child { flex: 1; }
.faq-plus { font-size: 22px; font-weight: 300; transition: transform .25s ease; }
.faq-item button[aria-expanded="true"] .faq-plus { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-answer > p { min-height: 0; overflow: hidden; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.faq-item button[aria-expanded="true"] + .faq-answer { grid-template-rows: 1fr; }
.faq-item button[aria-expanded="true"] + .faq-answer > p { padding: 0 32px 19px; }

.project-form-section { padding-block: 28px; background: var(--paper-warm); border-top: 1px solid #e5e0d6; border-bottom: 1px solid #e2ddd3; }
.project-form-grid { display: grid; grid-template-columns: .95fr 1.65fr; gap: 24px; align-items: center; }
.project-form-section h2 { font-size: clamp(34px, 2.6vw, 38px); }
.project-form-section p { margin: 10px 0 0; color: #4b4c49; font-size: 12px; line-height: 1.55; }
.inline-form { position: relative; display: grid; grid-template-columns: .95fr .95fr 1.12fr 1.12fr; gap: 0; }
.inline-form label { display: block; }
.inline-form input { width: 100%; height: 56px; padding: 0 18px; border: 1px solid #d6d0c3; border-right: 0; background: rgba(255,255,255,.46); color: var(--ink); border-radius: 0; }
.inline-form .button { height: 56px; }
.inline-form .form-status { position: absolute; left: 0; top: calc(100% + 8px); margin: 0; color: var(--olive-dark); }

.direct-contact-panel { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(220px, 1fr); gap: 12px; align-items: center; }
.direct-contact-panel .button { min-height: 56px; }
.direct-contact-panel > p { grid-column: 1 / -1; margin: 2px 0 0; color: #666861; font-size: 11px; line-height: 1.5; }

.site-footer { background: #f8f6f1; }
.compact-footer { min-height: 90px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 26px; color: #6c6d69; font-size: 12px; }
.compact-footer > p { margin: 0; text-align: center; }
.compact-footer .socials { justify-self: end; }
.socials { display: flex; gap: 21px; }
.socials a { transition: color .2s ease, transform .2s ease; }
.socials a:hover { color: var(--olive); transform: translateY(-2px); }
.socials svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.legal-footer-grid { min-height: 170px; display: grid; grid-template-columns: 1.05fr 1.45fr 1.15fr auto; align-items: center; gap: clamp(24px, 3.2vw, 48px); padding-block: 34px; color: #666861; font-size: 12px; line-height: 1.55; }
.footer-brand-column { display: grid; gap: 18px; }
.footer-brand-column > p { margin: 0; }
.footer-operator { display: grid; gap: 3px; }
.footer-operator strong { margin-bottom: 4px; color: var(--ink); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.footer-legal { display: grid; gap: 7px; }
.footer-legal a, .privacy-inline-link { text-decoration: underline; text-decoration-color: rgba(102,114,66,.42); text-underline-offset: 4px; transition: color .2s ease, text-decoration-color .2s ease; }
.footer-legal a:hover, .privacy-inline-link:hover { color: var(--olive-dark); text-decoration-color: currentColor; }
.legal-footer-grid .socials { justify-self: end; }

.modal {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 28px;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}

.modal::backdrop { background: rgba(20, 21, 17, .68); backdrop-filter: blur(4px); }
.modal[open] { display: grid; place-items: center; }
.modal-card { position: relative; width: min(820px, calc(100vw - 56px)); max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; padding: 56px; background: #fbfaf7; box-shadow: var(--shadow); }
.gallery-card { width: min(1180px, calc(100vw - 56px)); }
.modal-close { position: sticky; z-index: 4; top: -38px; float: right; width: 44px; height: 44px; display: grid; place-items: center; margin: -38px -38px 0 0; border: 1px solid var(--line); border-radius: 50%; background: #fbfaf7; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
.modal-close svg { width: 20px; height: 20px; }
.modal-heading { margin-bottom: 32px; padding-right: 36px; }
.modal-heading .eyebrow { margin-bottom: 12px; }
.modal-heading h2, .service-modal-layout h2 { font-size: clamp(40px, 5vw, 58px); }
.modal-heading > p:last-child { max-width: 630px; margin: 16px 0 0; color: var(--muted); line-height: 1.55; }
.modal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.modal-form label { display: grid; gap: 8px; color: #4b4c48; font-size: 13px; }
.modal-form input:not([type="checkbox"]), .modal-form select, .modal-form textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #cec9be; border-radius: 0; background: #fff; color: var(--ink); }
.modal-form textarea { resize: vertical; }
.modal-form .wide-field { grid-column: 1 / -1; }
.modal-form .consent { display: flex; flex-direction: row; align-items: center; gap: 9px; }
.modal-form .consent input { width: 18px; height: 18px; accent-color: var(--olive); }
.form-status { min-height: 20px; margin: 0; color: var(--olive-dark); font-weight: 500; }

.modal-contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-contact-options .button { min-height: 56px; }
.modal-contact-options > p, .modal-contact-options .privacy-inline-link { grid-column: 1 / -1; }
.modal-contact-options > p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.privacy-inline-link { width: fit-content; color: var(--olive-dark); font-size: 12px; }

/* Отдельные юридические страницы */
.legal-page { min-height: 100vh; display: flex; flex-direction: column; background: #f5f3ee; }
.legal-header { border-bottom: 1px solid var(--line); background: rgba(248,246,241,.94); }
.legal-header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-back-link { padding: 10px 0; color: var(--olive-dark); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.legal-main { flex: 1; padding: clamp(54px, 7vw, 92px) 0 74px; }
.legal-document { width: min(880px, calc(100% - 72px)); }
.legal-document-heading { margin-bottom: 34px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.legal-document-heading h1 { max-width: 800px; margin: 12px 0 14px; font: 400 clamp(42px, 6.2vw, 68px)/.98 var(--serif); letter-spacing: -.025em; }
.legal-document-heading > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.legal-notice { margin: 0 0 38px; padding: 20px 22px; border-left: 3px solid var(--olive); background: #ece9df; color: #40423c; font-size: 14px; line-height: 1.65; }
.legal-document section { margin-top: 34px; }
.legal-document section h2 { margin: 0 0 14px; color: var(--olive-dark); font: 400 29px/1.15 var(--serif); }
.legal-document section p { margin: 0 0 13px; color: #3f413c; font-size: 15px; line-height: 1.72; }
.legal-document section ul { display: grid; gap: 9px; margin: 0; padding-left: 22px; color: #3f413c; font-size: 15px; line-height: 1.65; }
.legal-document section a, .legal-page-footer a { color: var(--olive-dark); text-decoration: underline; text-decoration-color: rgba(102,114,66,.45); text-underline-offset: 4px; }
.legal-document-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 48px; padding-top: 25px; border-top: 1px solid var(--line); }
.legal-document-links a { color: var(--olive-dark); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.legal-page-footer { border-top: 1px solid var(--line); background: #efebe2; }
.legal-page-footer .container { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 12px; }
.legal-page-footer p { margin: 0; }

/* Страница 404 */
.error-main { flex: 1; display: grid; align-items: center; padding: clamp(58px, 9vw, 118px) 0; background: radial-gradient(circle at 18% 40%, rgba(182,149,69,.1), transparent 30%), #f5f3ee; }
.error-layout { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(420px, 1fr); align-items: center; gap: clamp(48px, 8vw, 116px); }
.error-code { margin: 0; color: rgba(102,114,66,.14); font: 400 clamp(132px, 20vw, 286px)/.72 var(--serif); letter-spacing: -.08em; user-select: none; }
.error-copy { max-width: 620px; }
.error-copy .eyebrow { margin-bottom: 18px; }
.error-copy h1 { margin: 0; font: 400 clamp(48px, 6.5vw, 78px)/.96 var(--serif); letter-spacing: -.03em; }
.error-copy > p:last-of-type { max-width: 580px; margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.error-actions .button { min-width: 205px; }

@media (max-width: 720px) {
  .error-main { align-items: start; padding: 48px 0 60px; }
  .error-layout { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 32px; }
  .error-code { font-size: clamp(116px, 43vw, 170px); }
  .error-copy h1 { font-size: clamp(42px, 13vw, 58px); }
  .error-copy > p:last-of-type { font-size: 14px; }
  .error-actions { display: grid; grid-template-columns: 1fr; }
  .error-actions .button { width: 100%; min-width: 0; }
}

.gallery-section > h3 { margin: 0 0 18px; font: 400 30px/1.15 var(--serif); }
.gallery-section + .gallery-section { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.gallery-section > p { max-width: 720px; margin: -7px 0 22px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.modal-gallery { columns: 3 260px; column-gap: 16px; }
.modal-gallery figure { break-inside: avoid; margin: 0 0 16px; overflow: hidden; content-visibility: auto; contain-intrinsic-size: auto 390px; border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; transition: border-color .25s ease, box-shadow .25s ease; }
.gallery-image-link { display: block; overflow: hidden; background: #e8e5dd; }
.gallery-photo { width: 100%; height: auto; transition: transform .45s ease, filter .25s ease; }
.modal-gallery figcaption { min-height: 48px; display: flex; align-items: center; padding: 10px 13px; font-size: 13px; line-height: 1.35; }
.modal-gallery figure.is-highlighted { border-color: var(--olive); box-shadow: 0 0 0 2px rgba(102,114,66,.18); }
.engineering-gallery { columns: 3 240px; }
.gallery-request { display: flex; min-width: 260px; margin: 30px auto 0; }

.work-gallery-card { width: min(1240px, calc(100vw - 56px)); }
.work-gallery-heading { margin-bottom: 22px; }
.work-gallery-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.work-gallery-tab { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--radius-control); background: #f3f0e9; color: #4a4c45; cursor: pointer; font-size: 13px; text-align: left; transition: border-color .2s ease, background .2s ease, color .2s ease, transform .16s ease; }
.work-gallery-tab span { min-width: 32px; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.72); text-align: center; font-size: 11px; }
.work-gallery-tab[aria-selected="true"] { border-color: var(--olive); background: var(--olive); color: #fff; }
.work-gallery-loading { min-height: 200px; display: grid; place-items: center; margin: 0; color: var(--muted); font-size: 14px; }
.work-gallery-content { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(310px, .72fr); gap: 24px; align-items: start; }
.work-gallery-loading[hidden], .work-gallery-content[hidden] { display: none; }
.work-gallery-viewer { position: sticky; top: 0; overflow: hidden; touch-action: pan-y pinch-zoom; user-select: none; border: 1px solid #d4d0c7; border-radius: var(--radius-card); background: #e9e5dc; box-shadow: inset 0 0 0 1px rgba(255,255,255,.42); }
.work-gallery-main-link { width: 100%; min-height: 0; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.work-gallery-main-link img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; opacity: 1; transition: opacity .16s ease; }
.work-gallery-viewer.is-switching .work-gallery-main-link img { opacity: .56; }
.work-gallery-nav { position: absolute; z-index: 2; top: 50%; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(91,99,65,.2); border-radius: 50%; background: rgba(250,249,245,.94); color: var(--olive-dark); cursor: pointer; transform: translateY(-50%); box-shadow: 0 8px 22px rgba(29,30,24,.14); backdrop-filter: blur(7px); transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.work-gallery-nav svg { width: 23px; height: 23px; }
.work-gallery-prev { left: 16px; }
.work-gallery-next { right: 16px; }
.work-gallery-side { min-width: 0; }
.work-gallery-project-copy { padding: 4px 2px 18px; }
.work-gallery-project-copy .eyebrow { margin-bottom: 10px; }
.work-gallery-project-copy h3 { margin: 0; font: 400 32px/1.08 var(--serif); }
.work-gallery-project-copy > p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.work-gallery-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); color: #4c4f46; font-size: 12px; }
.work-gallery-meta strong { flex: none; color: var(--olive-dark); font-size: 13px; }
.work-gallery-meta-actions { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.work-gallery-original { display: inline-flex; align-items: center; gap: 5px; padding: 5px 0; color: var(--olive-dark); font-weight: 600; }
.work-gallery-original svg { width: 15px; height: 15px; }
.work-gallery-thumbs { max-height: min(470px, 52vh); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 5px 2px 2px; scrollbar-color: #aeb39b transparent; scrollbar-width: thin; }
.work-gallery-thumb { position: relative; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 1px solid transparent; border-radius: var(--radius-control); background: #ddd9d0; cursor: pointer; transition: transform .16s ease, border-color .2s ease, box-shadow .2s ease; }
.work-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.work-gallery-thumb[aria-current="true"] { border-color: var(--olive); box-shadow: 0 0 0 2px rgba(102,114,66,.19); }
.work-gallery-thumb span { position: absolute; right: 5px; bottom: 5px; min-width: 23px; padding: 3px 5px; border-radius: 999px; background: rgba(25,27,21,.72); color: #fff; font-size: 9px; text-align: center; }

.video-modal-card { width: min(880px, calc(100vw - 56px)); }
.video-modal-layout { display: grid; grid-template-columns: minmax(270px, 340px) minmax(0, 1fr); gap: 42px; align-items: center; }
.video-modal-media { display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-card); background: #171816; box-shadow: 0 16px 42px rgba(18,19,15,.24); }
.video-modal-media video { width: 100%; max-height: min(72vh, 680px); display: block; aspect-ratio: 464 / 848; background: #171816; object-fit: contain; }
.video-modal-copy .eyebrow { margin-bottom: 13px; }
.video-modal-copy h2 { margin: 0; font: 400 clamp(34px, 3.6vw, 48px)/1.04 var(--serif); letter-spacing: -.025em; }
.video-modal-copy > p:not(.eyebrow) { margin: 18px 0 28px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.video-modal-copy .button { min-width: 230px; }

.service-modal-card { width: min(980px, calc(100vw - 56px)); }
.service-modal-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; align-items: stretch; }
.service-modal-photo { min-height: 510px; }
.service-modal-layout > div:last-child { display: flex; flex-direction: column; justify-content: center; }
.service-modal-layout > div > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.service-modal-list { display: grid; gap: 11px; margin: 24px 0 32px; padding: 0; list-style: none; }
.service-modal-list li::before { content: "✓"; margin-right: 10px; color: var(--olive); }
.service-modal-layout .button { align-self: flex-start; }

.reviews-card { width: min(1050px, calc(100vw - 56px)); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.reviews-grid blockquote { margin: 0; padding: 28px; border: 1px solid var(--line); background: #fff; }
.reviews-grid blockquote p { margin: 0; font: 400 20px/1.45 var(--serif); }
.reviews-grid blockquote footer { margin-top: 26px; color: var(--olive-dark); font-size: 12px; line-height: 1.45; }

.toast { position: fixed; z-index: 1000; right: 24px; bottom: 24px; max-width: min(390px, calc(100vw - 48px)); padding: 16px 20px; background: #25291e; color: #fff; box-shadow: var(--shadow); opacity: 0; transform: translateY(15px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

.project-card:active,
.work-series-card:active,
.work-video-teaser:active,
.comparison-pane:active,
.work-gallery-thumb:active { transform: scale(.985); }
.work-gallery-tab:active { transform: scale(.99); }
.work-gallery-nav:active { transform: translateY(-50%) scale(.92); }
.modal-close:active { transform: scale(.92); }

@media (hover: hover) and (pointer: fine) {
  .text-link:hover .link-arrow { transform: translateX(5px); }
  .project-card:hover { transform: translateY(-5px); box-shadow: 0 16px 38px rgba(30,28,22,.1); }
  .project-card:hover .project-photo img { filter: saturate(1.04) contrast(1.02); transform: scale(1.035); }
  .work-series-card:hover img { filter: saturate(1.05) contrast(1.03); transform: scale(1.025); }
  .work-video-teaser:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(30,28,22,.1); }
  .work-video-teaser:hover .work-video-poster img { filter: saturate(.96) contrast(1.05); transform: scale(1.035); }
  .work-video-teaser:hover .work-video-play { background: #fff; transform: translate(-50%, -50%) scale(1.06); }
  .comparison-pane:hover img { filter: saturate(1.04) contrast(1.03); transform: scale(1.025); }
  .gallery-image-link:hover .gallery-photo { filter: saturate(1.04) contrast(1.02); transform: scale(1.018); }
  .work-gallery-thumb:hover img { transform: scale(1.035); }
  .work-gallery-nav:hover { border-color: rgba(91,99,65,.38); background: #fff; color: var(--olive); box-shadow: 0 11px 28px rgba(29,30,24,.2); }
  .work-gallery-prev:hover { transform: translateY(-50%) translateX(-2px); }
  .work-gallery-next:hover { transform: translateY(-50%) translateX(2px); }
  .modal-close:hover { border-color: #b9bea5; background: #fff; color: var(--olive-dark); }
}

@media (min-width: 1600px) {
  :root { --container: 1280px; }
  .hero-stage { min-height: 680px; grid-template-columns: .9fr 1.1fr; }
  .hero-photo { min-height: 0; width: 100%; }
  .portfolio-container { width: min(1280px, calc(100% - 72px)); }
}

@media (min-width: 2000px) {
  :root { --container: 1340px; }
  .hero-stage { min-height: 700px; }
  .hero-photo { min-height: 0; width: 100%; margin-right: 0; }
  .hero h1 { font-size: 72px; }
}

@media (max-width: 1220px) {
  .container { width: min(var(--container), calc(100% - 48px)); }
  .header-inner { grid-template-columns: auto 1fr auto; gap: 24px; }
  .main-nav { gap: 16px; font-size: 13px; }
  .header-contact { min-width: 202px; }
  .phone-link { font-size: 18px; }
  .hero-stage { min-height: 610px; grid-template-columns: minmax(360px, .88fr) minmax(440px, 1.12fr); }
  .hero-photo { min-height: 0; width: 100%; margin-left: 0; }
  .hero h1 { font-size: clamp(50px, 5.4vw, 64px); }
  .benefits-grid { gap: 16px; }
  .benefit { gap: 13px; }
  .benefit-icon { width: 36px; height: 36px; }
  .service-card { min-height: 330px; }
  .service-content { padding: 30px 22px 24px; }
  .portfolio-container { width: min(1100px, calc(100% - 40px)); }
  .project-name { font-size: 12px; }
  .about-content { padding-left: 42px; }
  .process-list { gap: 15px; }
  .process-step:not(:last-child)::after { right: -14px; }
}

@media (max-width: 1024px) {
  html { scroll-padding-top: 84px; }
  .container { width: min(100% - 40px, 960px); }
  .site-header { position: sticky; top: 0; box-shadow: 0 1px 0 rgba(80,80,70,.1); }
  .header-inner { min-height: 78px; grid-template-columns: auto 1fr auto; align-items: center; padding-block: 10px; }
  .brand-mark { width: 35px; font-size: 44px; }
  .brand-mark::after { height: 33px; }
  .brand-copy strong { font-size: 23px; }
  .brand-copy small { font-size: 11px; }
  .menu-toggle { display: block; grid-column: 3; }
  .header-contact { grid-column: 2; grid-row: 1; justify-self: end; min-width: auto; }
  .header-contact > span, .header-cta { display: none; }
  .main-nav { position: absolute; top: 100%; left: 0; width: 100%; display: grid; justify-items: center; gap: 0; max-height: 0; padding: 0 20px; overflow: hidden; background: #f8f6f1; border-bottom: 1px solid transparent; opacity: 0; transition: max-height .35s ease, padding .35s ease, opacity .25s ease, border-color .2s ease; }
  .main-nav.open { max-height: 460px; padding-block: 18px; border-color: var(--line); opacity: 1; }
  .main-nav a { width: min(420px, 100%); padding: 13px; text-align: center; }
  .hero-stage { min-height: 580px; grid-template-columns: .9fr 1.1fr; }
  .hero-copy { padding-block: 42px 54px; }
  .hero h1 { font-size: clamp(48px, 5.8vw, 58px); }
  .hero-description { font-size: 15px; }
  .hero-actions { gap: 12px; }
  .hero-actions .button { min-width: 170px; padding-inline: 16px; }
  .hero-photo { position: absolute; top: 0; right: 0; width: 100%; height: 100%; min-height: 0; margin: 0; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); min-height: auto; padding-block: 20px; gap: 18px 36px; }
  .section { padding-block: 56px; }
  .services { padding-top: 52px; padding-bottom: 26px; }
  .portfolio { padding-top: 38px; padding-bottom: 38px; }
  .about { padding-block: 20px; }
  .process { padding-block: 20px; }
  .trust-faq { padding-top: 18px; padding-bottom: 32px; }
  .project-form-section { padding-block: 32px; }
  .services-grid { gap: 24px; }
  .service-card { grid-template-columns: 1fr; grid-template-rows: 250px auto; }
  .service-content { min-height: 220px; }
  .service-content h3 { min-height: auto; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .project-photo { aspect-ratio: 4 / 3; }
  .project-name { font-size: 13px; }
  .work-series-card { min-height: 300px; }
  .comparison-media { min-height: 260px; }
  .before-after-copy { min-height: 178px; padding-inline: 20px; }
  .before-after-copy h3 { font-size: 24px; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-photo { min-height: 400px; }
  .about-content { padding-left: 34px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 20px 12px; margin-top: 24px; }
  .process-list { grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
  .process-step:not(:last-child)::after,
  .process-step:not(:last-child)::before { display: none; }
  .process-step { text-align: center; }
  .step-number { left: 20%; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .info-panel { padding: 28px 26px; }
  .project-form-grid { grid-template-columns: 1fr; gap: 22px; }
  .compact-footer { grid-template-columns: auto 1fr auto; }
  .legal-footer-grid { grid-template-columns: 1fr 1.45fr 1.1fr; }
  .legal-footer-grid .socials { grid-column: 3; justify-self: start; }
}

@media (max-width: 820px) {
  .modal::backdrop { background: rgba(20,21,17,.72); backdrop-filter: none; }
  .hero { padding-bottom: 0; }
  .hero-stage { min-height: 0; grid-template-columns: 1fr; width: 100%; }
  .hero-copy { width: min(100% - 40px, 720px); margin-inline: auto; padding: 50px 0 40px; }
  .hero h1 { font-size: clamp(46px, 8vw, 62px); }
  .hero-photo { position: relative; inset: auto; width: 100%; height: auto; min-height: 470px; margin: -55px 0 0; background-size: cover; background-position: 66% center; -webkit-mask-image: none; mask-image: none; }
  .hero-photo::after { background: linear-gradient(180deg, var(--paper) 0, rgba(247,245,240,.5) 12%, transparent 28%); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: 54% 46%; grid-template-rows: auto; min-height: 350px; }
  .service-content { min-height: 0; }
  .work-series-heading { grid-template-columns: 1fr; gap: 12px; }
  .work-series-grid { grid-template-columns: 1fr; }
  .work-series-card { min-height: 360px; }
  .work-video-teaser { grid-template-columns: 190px 1fr; }
  .video-modal-layout { grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: 26px; }
  .before-after-grid { grid-template-columns: 1fr; }
  .before-after-case { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr); }
  .comparison-media { min-height: 300px; }
  .before-after-copy { min-height: 0; display: flex; flex-direction: column; justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { min-height: 400px; }
  .about-content { padding: 36px 0 0; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .info-panel { min-height: auto; }
  .inline-form { grid-template-columns: 1fr 1fr; gap: 12px; }
  .inline-form input { border-right: 1px solid #d6d0c3; }
  .legal-footer-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .legal-footer-grid .socials { grid-column: auto; justify-self: start; }
  .modal-gallery, .engineering-gallery { columns: 2; }
  .work-gallery-content { grid-template-columns: 1fr; }
  .work-gallery-viewer { position: relative; }
  .work-gallery-thumbs { max-height: 360px; grid-template-columns: repeat(4, 1fr); }
  .service-modal-layout { grid-template-columns: 1fr; }
  .service-modal-photo { min-height: 360px; }
  .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 32px); }
  .header-inner { width: calc(100% - 28px); min-height: 72px; gap: 10px; padding-block: 8px; }
  .brand-mark { width: 32px; font-size: 40px; }
  .brand-mark::after { height: 30px; }
  .brand-copy strong { font-size: 20px; }
  .header-contact { display: none; }
  .menu-toggle { grid-column: 3; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .hero-copy { width: 100%; max-width: 100%; min-width: 0; padding-top: 42px; }
  .hero-eyebrow { max-width: 330px; font-size: 10px; line-height: 1.55; }
  .hero h1 { font-size: clamp(36px, 9.8vw, 40px); line-height: .98; }
  .hero-description { margin-top: 20px; font-size: 14px; line-height: 1.5; }
  .desktop-break { display: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; margin-top: 22px; }
  .hero-actions .button { width: 100%; }
  .hero-photo { width: 100%; max-width: 100%; min-width: 0; min-height: 350px; margin-top: -18px; background-size: cover; background-position: 68% center; }
  .benefits-grid { grid-template-columns: 1fr; padding-block: 22px; gap: 15px; }
  .benefit { padding-left: 8px; }
  .section { padding-block: 46px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading h2, .about-content h2, .project-form-section h2 { font-size: 34px; }
  .services { padding-top: 46px; padding-bottom: 24px; }
  .service-card { grid-template-columns: 1fr; grid-template-rows: 250px auto; }
  .service-content { padding: 24px 20px; }
  .service-content h3 { font-size: 30px; }
  .portfolio-container { width: calc(100% - 32px); }
  .portfolio { padding-top: 36px; padding-bottom: 36px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .project-photo { aspect-ratio: 4 / 3; }
  .project-name { min-height: 52px; gap: 8px; padding: 10px; font-size: 13px; line-height: 1.35; }
  .project-name::after { width: 22px; height: 22px; background-size: 12px 12px; }
  .work-series { margin-top: 30px; padding-top: 28px; }
  .work-series-heading { margin-bottom: 16px; }
  .work-series-heading h3 { font-size: 31px; }
  .work-series-heading > p { font-size: 13px; }
  .work-series-card { min-height: 310px; }
  .work-series-copy { padding: 22px 20px; }
  .work-series-copy strong { font-size: 27px; }
  .work-video-teaser { height: 154px; min-height: 0; grid-template-columns: 118px 1fr; }
  .work-video-poster { height: 154px; min-height: 0; }
  .work-video-copy { gap: 5px; padding: 17px 15px; }
  .work-video-copy strong { font-size: 22px; line-height: 1.05; }
  .work-video-copy > span:nth-child(3) { display: none; }
  .work-video-play { width: 46px; height: 46px; }
  .work-video-duration { right: 8px; bottom: 8px; }
  .center-action .button { width: 100%; }
  .before-after { padding: 44px 0 50px; }
  .before-after-heading { margin-bottom: 24px; }
  .before-after-intro { font-size: 13px; }
  .before-after-case { display: block; }
  .comparison-media { min-height: 240px; }
  .comparison-label { top: 11px; left: 11px; padding: 6px 10px; }
  .comparison-state { right: 10px; bottom: 12px; left: 10px; font-size: 10px; }
  .before-after-copy { min-height: 0; padding: 22px 20px 24px; }
  .before-after-copy h3 { font-size: 26px; }
  .about { padding-block: 18px; }
  .about-photo { min-height: 300px; }
  .about-content { padding-top: 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats dt { font-size: 32px; }
  .process { padding-block: 18px; }
  .process-list { grid-template-columns: 1fr; gap: 20px; }
  .process-step { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 16px; padding: 0; text-align: left; }
  .step-number { top: 2px; left: 0; }
  .step-icon { grid-row: 1 / 3; width: 58px; height: 58px; margin: 10px 0 0; }
  .process-step h3 { align-self: end; margin-top: 12px; }
  .process-step p { align-self: start; }
  .trust-faq { padding-top: 16px; padding-bottom: 28px; }
  .info-panel { padding: 26px 18px; }
  .check-list { font-size: 14px; }
  .faq-item > button { min-height: 56px; font-size: 13px; }
  .project-form-section { padding-block: 32px; }
  .project-form-section p br { display: none; }
  .inline-form { grid-template-columns: 1fr; }
  .inline-form .form-status { position: static; }
  .direct-contact-panel { grid-template-columns: 1fr; }
  .direct-contact-panel > p { grid-column: auto; }
  .compact-footer { min-height: 0; grid-template-columns: 1fr; justify-items: center; gap: 18px; padding-block: 24px; }
  .compact-footer .socials { grid-row: 2; justify-self: center; }
  .legal-footer-grid { min-height: 0; grid-template-columns: 1fr; justify-items: start; gap: 24px; padding-block: 34px; }
  .legal-footer-grid .socials { grid-column: auto; justify-self: start; }
  .modal-contact-options { grid-template-columns: 1fr; }
  .modal-contact-options > p, .modal-contact-options .privacy-inline-link { grid-column: auto; }
  .legal-header-inner { min-height: 76px; }
  .legal-header .brand-copy small { display: none; }
  .legal-back-link { font-size: 12px; }
  .legal-main { padding: 44px 0 54px; }
  .legal-document { width: calc(100% - 32px); }
  .legal-document-heading h1 { font-size: clamp(38px, 11vw, 48px); }
  .legal-document section h2 { font-size: 26px; }
  .legal-document section p, .legal-document section ul { font-size: 14px; }
  .legal-page-footer .container { min-height: 0; align-items: flex-start; flex-direction: column; gap: 8px; padding-block: 24px; }
  .modal { padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
  .modal-card, .gallery-card, .service-modal-card, .reviews-card { width: calc(100vw - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); padding: 48px 20px calc(26px + env(safe-area-inset-bottom)); }
  .video-modal-card { width: calc(100vw - 20px); }
  .modal-close { top: -38px; margin-right: -8px; }
  .modal-heading { padding-right: 0; }
  .modal-heading h2, .service-modal-layout h2 { font-size: 38px; }
  .modal-form { grid-template-columns: 1fr; }
  .modal-form .wide-field { grid-column: auto; }
  .modal-gallery, .engineering-gallery { columns: 1; }
  .work-gallery-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .work-gallery-tab { min-height: 50px; gap: 7px; padding-inline: 10px; font-size: 11.5px; line-height: 1.25; }
  .work-gallery-tab span { min-width: 27px; padding: 4px 6px; }
  .work-gallery-content { gap: 18px; }
  .work-gallery-main-link { aspect-ratio: 4 / 3; }
  .work-gallery-nav { width: 48px; height: 48px; background: rgba(250,249,245,.96); backdrop-filter: none; }
  .work-gallery-prev { left: 10px; }
  .work-gallery-next { right: 10px; }
  .work-gallery-project-copy h3 { font-size: 28px; }
  .work-gallery-meta { align-items: flex-start; flex-direction: column; gap: 9px; }
  .work-gallery-meta-actions { width: 100%; justify-content: space-between; }
  .work-gallery-thumbs { max-height: 330px; grid-template-columns: repeat(3, 1fr); }
  .service-modal-photo { min-height: 300px; }
  .gallery-request { width: 100%; min-width: 0; }
  .video-modal-layout { grid-template-columns: 1fr; gap: 20px; }
  .video-modal-media { width: min(100%, 286px); margin-inline: auto; }
  .video-modal-media video { max-height: 53dvh; }
  .video-modal-copy { text-align: center; }
  .video-modal-copy .eyebrow { justify-content: center; }
  .video-modal-copy h2 { font-size: 32px; }
  .video-modal-copy > p:not(.eyebrow) { margin: 13px 0 19px; font-size: 13px; }
  .video-modal-copy .button { width: 100%; min-width: 0; }
}

@media (max-width: 360px) {
  .brand-copy small { display: none; }
  .hero h1 { font-size: 34px; }
  .hero-photo { min-height: 330px; }
  .section-heading h2, .about-content h2, .project-form-section h2 { font-size: 32px; }
  .info-panel { padding-inline: 18px; }
}

/* На desktop фотография доходит до правого края окна без цветного зазора. */
@media (min-width: 821px) {
  .hero-stage { overflow: visible; }

  .hero-photo {
    right: calc((100vw - 100%) / -2);
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
