/* Layout: strict light grid, thin straight lines, square controls,
   grey bands alternating with white, one dark band for Remont */
:root {
  --bg: #ffffff;
  --bg-grey: #f3f3f2;
  --bar: #ececeb;
  --fg: #181818;
  --muted: #858583;
  --line: #d6d6d3;
  --line-strong: #bdbdba;
  --ph: #e4e4e1;
  --ph-label: #a2a29f;
  --dark: #1b1b1b;
  --dark-line: #383836;
  --on-dark: #ececeb;
  --on-dark-muted: #a3a3a0;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(16px, 2.4vw, 34px);
  --max: 1440px;
  --header-h: 72px;
  --nav-h: 0px;
  --bar-h: 40px;

  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--nav-h) + var(--bar-h)); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.band-grey { background: var(--bg-grey); }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* ---------- Buttons: square, thin, with an arrow ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--fg);
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn .i { width: 18px; height: 18px; flex: none; transition: transform .25s; }
.btn:hover .i { transform: translateX(3px); }

.btn-dark { background: var(--fg); color: var(--bg); }
.btn-dark:hover { background: transparent; color: var(--fg); }
.btn-line:hover { background: var(--fg); color: var(--bg); }
.btn-light { border-color: var(--on-dark); background: var(--on-dark); color: var(--dark); }
.btn-light:hover { background: transparent; color: var(--on-dark); }
.btn-block { width: 100%; justify-content: space-between; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Frame: a top rule with short square side ticks ----------
   --side controls how far the side lines run down. */

.frame { position: relative; --side: 22px; }

.frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--side);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  pointer-events: none;
}

/* ---------- Placeholders ---------- */

.ph {
  position: relative;
  display: block;
  background: var(--ph);
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  color: var(--ph-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
}
a.ph { transition: opacity .3s; }
a.ph:hover { opacity: .82; }

/* Photo loaded by main.js from data-img */
.ph.has-img { background-size: cover; background-position: center; }
.ph.has-img::after { display: none; }

/* Generated images carry an honest note: a concept, not finished work */
.ph.has-img[data-concept]::after {
  content: "Concept visualization\A Not a finished job \00B7  We can do this";
  display: block;
  inset: 12px auto auto 12px;
  max-width: calc(100% - 24px);
  padding: 6px 9px 7px;
  background: rgba(24, 24, 24, .3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, .88);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: .04em;
  text-align: left;
  text-transform: none;
  white-space: pre-line;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--bg);
}

.header-main {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  height: var(--header-h);
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.brand { display: flex; align-items: center; gap: 12px; justify-self: start; }

.brand-mark { width: 24px; height: 32px; color: var(--fg); flex: none; }

.brand-text { display: grid; line-height: 1.15; }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .02em; }

/* Menu in one row, as on the reference */
.header-nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }

.header-nav a,
.header-phone {
  align-self: center;
  font-size: 14px;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: border-color .25s;
}
.header-phone { justify-self: end; font-variant-numeric: tabular-nums; }
.header-nav a:hover,
.header-phone:hover { border-bottom-color: var(--fg); }

/* One grey strip under the header */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--bar-h);
  padding-inline: 16px;
  background: var(--bar);
  font-size: 13px;
  text-align: center;
  transition: background-color .25s;
}
.header-bar:hover { background: var(--bg-grey); }
.header-bar .i { width: 16px; height: 16px; flex: none; transition: transform .25s; }
.header-bar:hover .i { transform: translateX(3px); }

/* ---------- Hero: two large halves ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(560px, calc(100vh - var(--header-h) - var(--nav-h) - var(--bar-h)), 860px);
  background: var(--bg-grey);
}

/* The left half starts on the same line as .container content:
   100% here is half the hero, so 100% - max/2 is the container's side margin */
.hero-left {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 32px;
  padding-block: 28px 36px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px), calc(100% - var(--max) / 2 + var(--gutter)));
  padding-right: var(--gutter);
}

.hero-title {
  font-size: clamp(48px, 5.4vw, 84px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  justify-self: center;
}

.hero-mark { width: clamp(150px, 15vw, 230px); height: auto; }
.hero-mark-fill { fill: var(--fg); }

.hero-places { font-size: 13px; line-height: 1.7; }

.hero-slider { position: relative; overflow: hidden; background: var(--ph); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.slide.is-active { opacity: 1; }
/* background-color only: the shorthand would reset the photo's cover sizing */
.slide:nth-child(1) { background-color: #d9d9d7; }
.slide:nth-child(2) { background-color: #d1d2cf; }
.slide:nth-child(3) { background-color: #dcdad6; }
.slide:nth-child(4) { background-color: #cfcfcd; }

/* Slide indicators: short straight bars */
.dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}
.dot {
  width: 30px; height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.dot::before {
  content: "";
  position: absolute;
  left: 3px; right: 3px; top: 11px;
  height: 2px;
  background: var(--bg);
  opacity: .5;
  transition: opacity .3s;
}
.dot.is-active::before,
.dot:hover::before { opacity: 1; }

/* ---------- Process ---------- */

.process { padding-block: 72px 110px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--line);
}

.step { display: grid; align-content: start; gap: 10px; padding: 24px 24px 32px; min-width: 0; }
.step + .step { border-left: 1px solid var(--line); }
.step-num { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 22px; font-weight: 400; }
.step p { font-size: 14px; color: var(--muted); max-width: 32ch; }

/* ---------- Services: rows with a photo on hover ---------- */

.directions .container { padding-block: 110px 120px; }
.directions .section-title { margin-bottom: 36px; }

.dir-list { display: grid; position: relative; }

/* The third column stays empty: the photo of the hovered row appears there */
.dir-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 60px;
  gap: 24px;
  padding: 24px 18px 30px;
  transition: background-color .3s;
}
.dir-row:hover { background: var(--bg); }

.dir-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dir-text { font-size: 14px; max-width: 360px; }
.dir-num { grid-column: 4; justify-self: end; font-size: 14px; font-variant-numeric: tabular-nums; }

/* Square photo over the third column, swapped by the hovered row */
.dir-preview { display: none; }

@media (hover: hover) and (pointer: fine) and (min-width: 1081px) {
  .dir-preview {
    display: block;
    position: absolute;
    top: 50%;
    right: 102px;                                  /* row padding + number column + gap */
    width: min(calc((100% - 168px) / 3), 340px);  /* one text column wide */
    aspect-ratio: 1;
    background: var(--ph);
    opacity: 0;
    transform: translateY(-50%) scale(.92);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
    z-index: 2;
  }
  .dir-shot { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; }

  .dir-list:has(> .dir-row:hover) .dir-preview { opacity: 1; transform: translateY(-50%) scale(1); }
  .dir-list:has(> .dir-row:nth-child(1):hover) .dir-shot:nth-child(1),
  .dir-list:has(> .dir-row:nth-child(2):hover) .dir-shot:nth-child(2),
  .dir-list:has(> .dir-row:nth-child(3):hover) .dir-shot:nth-child(3) { opacity: 1; }
}

/* ---------- Portfolio ---------- */

.portfolio {
  background: linear-gradient(to bottom, var(--bg-grey) 0, var(--bg-grey) 34%, var(--bg) 34%);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 90px;
  padding-block: 40px 140px;
  align-items: start;
}

.pf-head {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 16px;
  justify-items: start;
  position: sticky;
  top: calc(var(--header-h) + var(--bar-h) + 24px);
}
.pf-head .btn { min-width: 180px; justify-content: space-between; }
.pf-note { font-size: 13px; color: var(--muted); max-width: 34ch; }

.pf-card { display: grid; gap: 10px; min-width: 0; }
.pf-num { font-size: 13px; font-variant-numeric: tabular-nums; }
.pf-img { aspect-ratio: 3 / 4; max-width: 100%; }
.pf-name { font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }

.pf-1 { grid-column: 2; grid-row: 1; }
.pf-2 { grid-column: 3; grid-row: 1; }
.pf-3 { grid-column: 4; grid-row: 1; }
.pf-4 { grid-column: 3 / 5; grid-row: 2; }
.pf-4 .pf-img { aspect-ratio: 1; }
.pf-5 { grid-column: 2; grid-row: 2; align-self: end; }
.pf-6 { grid-column: 1; grid-row: 3; }
.pf-7 { grid-column: 3; grid-row: 3; margin-top: 120px; }
.pf-8 { grid-column: 4; grid-row: 3; margin-top: 120px; }

/* ---------- Remont ---------- */

.remont { background: var(--dark); color: var(--on-dark); }

.remont-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 48px;
  padding-block: 110px;
}

.remont-intro { grid-column: 1 / 6; display: grid; align-content: start; justify-items: start; gap: 28px; }

.remont-brand { display: flex; align-items: center; gap: 16px; }
.remont-mark { width: 40px; height: 54px; color: var(--on-dark); }
.remont-name { font-size: 17px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.remont-sub { font-size: 13px; color: var(--on-dark-muted); }
.remont-lead { font-size: 15px; color: var(--on-dark-muted); max-width: 46ch; }

.services {
  grid-column: 7 / 13;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--dark-line);
  border-left: 1px solid var(--dark-line);
  align-self: start;
}
.service {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 26px 24px 30px;
  border-right: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
  min-width: 0;
  transition: background-color .25s;
}
.service:hover { background: #242423; }
.service h3 { font-size: 17px; font-weight: 500; }
.service p { font-size: 14px; color: var(--on-dark-muted); }

/* ---------- Founder ---------- */

.founder {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 40px;
  align-items: center;
  padding-block: 120px;
}

.founder-photo { grid-column: 1 / 6; aspect-ratio: 4 / 5; max-width: 100%; }

.founder-body { grid-column: 7 / 13; display: grid; gap: 22px; min-width: 0; }

.founder-quote {
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.founder-name {
  padding-top: 18px;
  border-top: 1px solid var(--fg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.founder-text { display: grid; gap: 14px; font-size: 15px; color: var(--muted); max-width: 60ch; }

/* ---------- Discuss the project ---------- */

.contact { padding-block: 20px 120px; }

.contact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 120px;
  border: 1px solid var(--line-strong);
}

.contact-cell {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 20px 16px;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  overflow-wrap: anywhere;
  transition: background-color .3s;
}
.contact-cell + .contact-cell { border-left: 1px solid var(--line-strong); }
.contact-cell:hover { background: var(--bg-grey); }

.discuss-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline: auto;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1px solid var(--fg);
  background: none;
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  cursor: pointer;
}
.discuss-link .arrow {
  width: .62em; height: .62em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform .3s;
}
.discuss-link:hover .arrow { transform: translate(4px, -4px); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px));
  font-size: 13px;
}

.footer-brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; }
.footer-brand svg { width: 16px; height: 22px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a:hover,
.footer-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer-meta { justify-self: end; display: flex; gap: 28px; color: var(--muted); }

/* ---------- Floating buttons ---------- */

.fab {
  position: fixed;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: grid;
  gap: 16px;
}

.fab-btn {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  cursor: pointer;
  transition: opacity .3s, transform .3s, border-color .3s, background-color .25s;
}
.fab-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--fg); stroke-width: 1.3; }
.fab-btn:hover { border-color: var(--fg); }
.fab-chat { box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--line-strong); }

.fab-up { opacity: 0; transform: translateY(10px); pointer-events: none; }
.fab-up.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Modal ---------- */

.modal {
  width: min(540px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid var(--fg);
  background: var(--bg);
  color: var(--fg);
}
.modal::backdrop { background: rgb(24 24 24 / .55); }

.modal-form {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 48px 36px 36px;
}

.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.modal-close svg { width: 20px; height: 20px; fill: none; stroke: var(--fg); stroke-width: 1.3; }

.modal-title { font-size: 30px; font-weight: 400; line-height: 1.1; }
.modal-lead { font-size: 14px; color: var(--muted); }

.topic { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; border: 0; min-width: 0; }
.topic legend { margin-bottom: 10px; padding: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.topic label { position: relative; cursor: pointer; }
.topic label:nth-of-type(even) { margin-left: -1px; }
.topic label:nth-of-type(n + 3) { margin-top: -1px; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic span {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  font-size: 14px;
  text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.topic input:checked + span { position: relative; background: var(--fg); border-color: var(--fg); color: var(--bg); }
.topic input:focus-visible + span { outline: 1px solid var(--fg); outline-offset: 3px; }

.field { display: grid; gap: 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: 400 16px/1.4 var(--font);
  letter-spacing: 0;
  text-transform: none;
  resize: vertical;
  transition: border-color .2s;
}
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--fg); }

.form-error { font-size: 13px; color: #a33a2a; }
.form-done { font-size: 14px; }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Tablet ---------- */

@media (max-width: 1080px) {
  :root { --nav-h: 44px; }

  /* The menu moves to its own row under the logo and the phone */
  .header-main { grid-template-columns: 1fr auto; grid-template-rows: var(--header-h) var(--nav-h); height: auto; }
  .header-phone { grid-column: 2; grid-row: 1; }
  .header-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 16px;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    scrollbar-width: none;
  }
  .header-nav::-webkit-scrollbar { display: none; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { border-left: 0; }
  .step:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .dir-row { grid-template-columns: 1fr 1fr 60px; }
  .dir-num { grid-column: 3; }

  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .pf-head { grid-column: 1 / -1; position: static; grid-template-columns: 1fr auto; align-items: end; }
  .pf-card,
  .pf-4 { grid-column: auto; grid-row: auto; margin-top: 0; align-self: start; }
  .pf-card:nth-of-type(even) { margin-top: 80px; }
  .pf-4 .pf-img { aspect-ratio: 3 / 4; }

  .remont-intro,
  .services { grid-column: 1 / -1; }

  .founder-photo { grid-column: 1 / 6; }
  .founder-body { grid-column: 6 / 13; }
}

/* ---------- Phone ---------- */

@media (max-width: 720px) {
  /* No grey strip on phones: the menu row keeps the sticky header short */
  :root { --header-h: 62px; --nav-h: 42px; --bar-h: 0px; }

  .site-header { border-bottom: 1px solid var(--line); }
  .brand { gap: 10px; }
  .brand-mark { width: 19px; height: 26px; }
  .brand-name { font-size: 13px; letter-spacing: .12em; }
  .brand-sub { display: none; }
  .header-phone,
  .header-nav a { font-size: 13px; }

  .header-bar { display: none; }

  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-left { gap: 28px; padding-block: 24px 28px; padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
  .hero-center { padding-block: 8px; }
  .hero-slider { aspect-ratio: 4 / 3; max-width: 100%; }

  .process { padding-block: 48px 72px; }
  .step { padding: 20px 16px 24px; }
  .step h3 { font-size: 19px; }

  .directions .container { padding-block: 72px 80px; }
  .dir-row { grid-template-columns: 1fr auto; gap: 10px 16px; padding-inline: 16px; }
  .dir-name { grid-column: 1; grid-row: 1; }
  .dir-num { grid-column: 2; grid-row: 1; }
  .dir-text { grid-column: 1 / -1; }

  .portfolio { background: linear-gradient(to bottom, var(--bg-grey) 0, var(--bg-grey) 12%, var(--bg) 12%); }
  .portfolio-grid { grid-template-columns: minmax(0, 1fr); row-gap: 44px; padding-block: 24px 88px; }
  .pf-head { grid-template-columns: 1fr; }
  .pf-card:nth-of-type(even) { margin-top: 0; }
  .pf-card .pf-img,
  .pf-4 .pf-img { aspect-ratio: 4 / 3; }
  .pf-card:nth-of-type(3n + 1) .pf-img { aspect-ratio: 4 / 5; }

  .remont-inner { padding-block: 72px; row-gap: 36px; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service { padding: 20px 18px 22px; }

  .founder { padding-block: 72px; row-gap: 28px; }
  .founder-photo,
  .founder-body { grid-column: 1 / -1; }

  .contact { padding-block: 8px 80px; }
  .contact-row { grid-template-columns: minmax(0, 1fr); margin-bottom: 72px; }
  .contact-cell { min-height: 60px; padding-block: 18px; }
  .contact-cell + .contact-cell { border-left: 0; border-top: 1px solid var(--line-strong); }
  .discuss-link { font-size: clamp(26px, 8vw, 34px); }

  .footer-inner { grid-template-columns: minmax(0, 1fr); padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .footer-meta { justify-self: start; }

  .fab { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); gap: 12px; }
  .fab-btn { width: 44px; height: 44px; }

  .modal-form { padding: 44px 20px 24px; }
  .topic { grid-template-columns: minmax(0, 1fr); }
  .topic label + label { margin-left: 0; margin-top: -1px; }
}
