.remonty-page #main-nav a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.remonty-hero {
  position: relative;
  display: grid;
  align-items: stretch;
  min-height: clamp(500px, 67vw, 720px);
  isolation: isolate;
  background: #28333c;
  color: var(--paper);
}

.remonty-hero-photo,
.remonty-hero-photo img,
.remonty-hero-photo::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.remonty-hero-photo { z-index: -1; }
.remonty-hero-photo img { object-fit: cover; object-position: 62% center; }
.remonty-hero-photo::after {
  content: '';
  background: linear-gradient(90deg, #111b23ed, #111b23bd 33%, #111b234d 64%, transparent 86%),
    linear-gradient(0deg, #111b2399, transparent 23%);
}

.remonty-hero-photo figcaption {
  position: absolute;
  z-index: 1;
  right: var(--gutter);
  bottom: 15px;
  padding: 3px 7px;
  background: #18212b;
  color: #fff;
  font-size: .75rem;
}

.remonty-hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 58px;
  padding-block: 22px clamp(72px, 10vw, 138px);
}

.remonty-breadcrumbs { display: flex; gap: 10px; font-size: .82rem; }
.remonty-breadcrumbs a { text-underline-offset: 3px; }
.remonty-hero-copy h1 {
  font-size: clamp(3.45rem, 7vw, 7rem);
  line-height: .94;
  letter-spacing: -.075em;
}

.remonty-hero-copy h1 span { color: var(--accent-light); }
.remonty-hero-copy p {
  max-width: 40ch;
  margin-top: 22px;
  color: #eef1f4;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.remonty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 24px;
}

.remonty-actions .text-link { align-self: center; }
.remonty-hero :is(.text-link:hover, :focus-visible),
.remonty-contact :is(.text-link:hover, :focus-visible) { color: var(--accent-light); outline-color: var(--accent-light); }
.remonty-hero .button:focus-visible,
.remonty-contact .button:focus-visible { color: var(--ink); }

.remonty-section { padding-block: clamp(58px, 7.8vw, 112px); }
.remonty-section-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 7vw, 112px); }
.remonty-section-grid h2 { text-wrap: pretty; }
.remonty-rows { border-top: 1px solid var(--rule); }
.remonty-rows :is(article, details) { padding-block: clamp(15px, 2.4vw, 27px); border-bottom: 1px solid var(--rule); }
.remonty-rows h3, .remonty-steps h3 { font-size: clamp(1.2rem, 2.25vw, 1.8rem); line-height: 1.16; letter-spacing: -.035em; }
.remonty-rows p, .remonty-steps p { margin-top: 8px; max-width: 60ch; color: var(--muted); }

.remonty-projects { background: var(--surface); }
.remonty-section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: clamp(24px, 4vw, 47px); }
.remonty-section-heading .text-link { align-self: end; }
.remonty-project-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.remonty-project-grid .project-card { max-width: none; }

.remonty-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(26px, 5vw, 57px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: remonty-step;
}

.remonty-steps li { counter-increment: remonty-step; padding: 21px 22px 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.remonty-steps li:first-child { padding-left: 0; border-left: 0; }
.remonty-steps li::before { content: counter(remonty-step, decimal-leading-zero); display: block; margin-bottom: 20px; color: var(--accent); font-size: .85rem; font-weight: 700; }
.remonty-questions { border-top: 1px solid var(--rule); }
.remonty-rows summary { cursor: pointer; font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 600; }
.remonty-rows summary::marker { color: var(--accent); }

.remonty-contact { padding-block: clamp(48px, 7vw, 92px); background: var(--accent-dark); color: var(--paper); }
.remonty-contact .remonty-section-grid { align-items: end; }
.remonty-contact p { max-width: 46ch; color: #e1e8ef; }

@media (max-width: 790px) {
  .remonty-section-grid { grid-template-columns: minmax(0, 1fr); }
  .remonty-hero { min-height: 530px; }
  .remonty-hero-photo::after { background: linear-gradient(90deg, #111b23db, #111b2366 68%), linear-gradient(0deg, #111b23a6, transparent 47%); }
}

@media (max-width: 580px) {
  .remonty-hero { min-height: 465px; }
  .remonty-hero-inner { gap: 44px; padding-bottom: 58px; }
  .remonty-hero-copy h1 { font-size: clamp(2.75rem, 9.25vw, 4rem); }
  .remonty-hero-copy p { margin-top: 16px; }
  .remonty-actions { gap: 12px 18px; margin-top: 20px; }
  .remonty-steps { grid-template-columns: minmax(0, 1fr); }
  .remonty-steps li { padding: 15px 0 18px; border-left: 0; }
  .remonty-steps li::before { margin-bottom: 6px; }
}
