/* =========================================================
   B2 Obras — Reformas e Construções
   Cores tiradas da identidade visual (vermelho + grafite)
   ========================================================= */
:root {
  --red: #C11F2F;
  --red-700: #A01624;
  --red-50: #FBEDEE;
  --ink: #2A2A2C;        /* títulos */
  --logo-ink: #414143;   /* cinza do logo */
  --text: #4A4A4F;       /* texto corrido */
  --muted: #76767B;
  --line: #E6E2DC;
  --paper: #F7F5F1;
  --white: #FFFFFF;
  --dark: #242426;
  --dark-2: #2E2E31;

  --radius: 10px;
  --header-h: 76px;
  --container: 1180px;
  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--ink); font-weight: 700; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.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;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }

/* ---------- Eyebrow (ecoa o "REFORMAS E CONSTRUÇÕES" do logo) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 13px; height: 13px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 .6 7 2.2V1.2h1.3v2.1l1.4 1.2V9.6H.3V4.5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 .6 7 2.2V1.2h1.3v2.1l1.4 1.2V9.6H.3V4.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.eyebrow-light { color: #F2B8BE; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 6px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-700); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
          backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .35);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: block; flex: none; }
.logo { width: 150px; height: 72px; }
.site-header .logo { width: 128px; height: 62px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav a:not(.btn):hover { color: var(--red); }
.nav-cta { margin-left: 10px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.menu-toggle .bars,
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  position: absolute;
  left: 50%;
  width: 20px; height: 2px;
  margin-left: -10px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.menu-toggle .bars { top: 50%; margin-top: -1px; }
.menu-toggle .bars::before,
.menu-toggle .bars::after { content: ""; left: 0; margin-left: 0; }
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 88px;
  overflow: hidden;
  background:
    linear-gradient(to right, rgba(42, 42, 44, .055) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(to bottom, rgba(42, 42, 44, .055) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--paper);
}
.hero::after {
  /* esmaece o quadriculado na borda inferior */
  content: "";
  position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(to bottom, rgba(247, 245, 241, 0), var(--paper));
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.02;
  margin-bottom: 22px;
}
.hero h1 span { color: var(--red); }
.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  max-width: 34em;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink);
  font-size: .98rem;
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before {
  content: "";
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  background: var(--red-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C11F2F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hero-drawing {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 30px 60px -40px rgba(42, 42, 44, .45);
}
.hero-drawing svg { width: 100%; height: auto; }

/* elementos do desenho técnico */
.d-house {
  fill: none;
  stroke: var(--red);
  stroke-width: 10;
  stroke-linejoin: miter;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.d-line { stroke: var(--ink); stroke-width: 1.2; fill: none; }
.d-strong { stroke-width: 2; }
.d-thin { fill: none; stroke: #6e6e73; stroke-width: 1.3; }
.d-dim { stroke: #8f8f94; stroke-width: 1; fill: none; }
.d-dash { stroke-dasharray: 4 4; }
.d-title { font: 700 13px var(--font); letter-spacing: .16em; fill: var(--ink); }
.d-small { font: 600 11px var(--font); letter-spacing: .14em; fill: var(--muted); }
.d-num { font: 600 13px var(--font); fill: #5d5d62; }
.d-red { fill: var(--red); }
.d-stamp { font: 600 8.5px var(--font); letter-spacing: .1em; fill: var(--muted); }
.d-stamp-b { font: 800 10px var(--font); letter-spacing: .12em; fill: var(--ink); }

/* animação de "desenhar" quando o desenho entra na tela
   (só com JS ativo e sem redução de movimento) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-drawing .d-house { stroke-dashoffset: 1; }
  .js .hero-drawing .d-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .hero-drawing .d-fade { opacity: 0; }
  .js .hero-drawing.is-in .d-house { animation: draw 1.8s .15s cubic-bezier(.65, 0, .35, 1) both; }
  .js .hero-drawing.is-in .d-line { animation: draw 1s var(--d, 0s) ease-out both; }
  .js .hero-drawing.is-in .d-fade { animation: fade .7s var(--d, 0s) ease-out both; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Seções ---------- */
.section { padding: 96px 0; }
.section-paper { background: var(--paper); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2,
.about-copy h2,
.contact-copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.section-head p { font-size: 1.12rem; }
.section-head-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-head-row h2 { margin-bottom: 0; }

/* ---------- Serviços ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  padding: 28px 24px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover {
  border-color: rgba(193, 31, 47, .45);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -28px rgba(42, 42, 44, .5);
}
.card-n {
  position: absolute;
  top: 22px; right: 22px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: #B4B0AA;
}
.card-ico {
  width: 48px; height: 48px;
  padding: 11px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: var(--red-50);
  fill: none;
  stroke: var(--red);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: .98rem; line-height: 1.55; }

/* ---------- Casa / negócio ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.split-col {
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 4px solid var(--red);
}
.split-ico {
  width: 40px; height: 40px;
  margin-bottom: 18px;
  fill: none; stroke: var(--ink); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.split-col h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 18px; }

/* marcador em forma de casinha, como no material da empresa */
.house-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}
.house-list li:first-child { border-top: 0; }
.house-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 14px; height: 14px;
  margin-top: -8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath fill='%23C11F2F' d='M5 .6 7 2.2V1.2h1.3v2.1l1.4 1.2V9.6H.3V4.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Sobre ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
}
.about-photo { margin: 0; }
.about-photo figcaption {
  margin-top: 12px;
  font-size: .92rem;
  color: var(--muted);
}
.about-copy > p { font-size: 1.08rem; }

.creds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0 0;
  border-top: 1px solid var(--line);
}
.creds div { padding: 18px 16px 0 0; }
.creds div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.creds dt {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.creds dd { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.35; }

/* ---------- Placeholders de foto (caixa com "X", como em desenho técnico) ---------- */
.ph {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(to top right, transparent calc(50% - .6px), #D9D4CC calc(50% - .6px), #D9D4CC calc(50% + .6px), transparent calc(50% + .6px)),
    linear-gradient(to bottom right, transparent calc(50% - .6px), #D9D4CC calc(50% - .6px), #D9D4CC calc(50% + .6px), transparent calc(50% + .6px)),
    var(--paper);
}
.ph span {
  position: relative;
  padding: 6px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.ph-portrait { aspect-ratio: 4 / 5; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Processo (linha de cota entre as etapas) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  position: relative;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 44px 28px 0 0;
}
.steps li::before {
  /* linha de cota */
  content: "";
  position: absolute;
  top: 12px; left: 0; right: 0;
  height: 1px;
  background: #BDB8B1;
}
.steps li::after {
  /* tique de cota no início de cada trecho */
  content: "";
  position: absolute;
  top: 5px; left: -1px;
  width: 1px; height: 15px;
  background: var(--ink);
  transform: rotate(45deg);
}
.steps li:last-child::before { right: 28px; }
.steps::after {
  /* tique que fecha a cota */
  content: "";
  position: absolute;
  top: 5px; right: 28px;
  width: 1px; height: 15px;
  background: var(--ink);
  transform: rotate(45deg);
}
.step-n {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--red);
  margin-bottom: 14px;
}
.steps h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.steps p { font-size: .98rem; }

/* ---------- Galeria ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.gallery p {
  margin: 12px 0 0;
  font-weight: 700;
  color: var(--ink);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Contato ---------- */
.section-dark {
  color: #C9C7C3;
  background:
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--dark);
}
.section-dark h2 { color: #fff; }
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 64px;
  align-items: start;
}
.contact-copy > p { font-size: 1.12rem; max-width: 30em; }
.contact-list {
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.contact-list li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 4px 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.cl-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8E8C88;
  padding-top: 4px;
}
.contact-list a,
.contact-list span:not(.cl-label) {
  color: #fff;
  font-weight: 600;
  font-size: 1.08rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-list a:hover { color: #F2B8BE; }

.quote {
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  padding: 32px;
  border-top: 5px solid var(--red);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.quote h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.quote-sub { font-size: .98rem; color: var(--muted); margin-bottom: 22px; }
.field { display: block; margin: 0 0 16px; padding: 0; border: 0; }
.field > span,
.field legend {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #D3CEC7;
  border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(193, 31, 47, .15);
}
.field [aria-invalid="true"] { border-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label span {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid #D3CEC7;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  transition: all .2s;
}
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.form-error {
  margin: -4px 0 14px;
  color: var(--red);
  font-weight: 600;
  font-size: .95rem;
}

/* ---------- Rodapé ---------- */
.site-footer {
  --logo-ink: #fff;
  background: #1B1B1D;
  color: #9C9A96;
  padding: 56px 0 40px;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px 48px;
}
.logo-footer { width: 170px; height: 82px; margin-bottom: 14px; }
.footer-brand p { max-width: 26em; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-content: start;
  justify-content: flex-end;
}
.footer-nav a { color: #E7E5E1; text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: #F2B8BE; }
.footer-legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  font-size: .88rem;
}
.footer-legal p { margin: 0; }

/* ---------- Botão flutuante do WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Aparecer ao rolar ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .6s ease-out; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a:not(.btn) { padding: 8px 9px; }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .site-header .logo { width: 112px; height: 54px; }

  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -24px rgba(0, 0, 0, .4);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { margin: 16px 0 0; }

  .hero { padding: 36px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-drawing { max-width: 560px; }

  .about { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 420px; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::after { display: none; }
  .steps li:nth-child(2)::before { right: 28px; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .contact { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head-row { flex-direction: column; align-items: flex-start; }

  .hero-actions .btn { width: 100%; }
  .trust { flex-direction: column; gap: 10px; }

  .services { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 22px 20px; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; }
  .card-ico { grid-row: span 2; margin: 0; }
  .card h3 { padding-right: 32px; align-self: center; }
  .card p { grid-column: 2; }

  .split { grid-template-columns: 1fr; }
  .split-col { padding: 26px 22px; }

  .creds { grid-template-columns: 1fr; }
  .creds div, .creds div + div { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }

  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { padding: 0 0 30px 34px; }
  .steps li::before { top: 6px; bottom: 0; left: 8px; right: auto; width: 1px; height: auto; }
  .steps li:last-child::before, .steps li:nth-child(2)::before { right: auto; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:last-child::before { display: none; }
  .steps li::after { top: 0; left: 8px; }
  .step-n { font-size: 2rem; margin-bottom: 8px; }

  .gallery { grid-template-columns: 1fr 1fr; gap: 14px; }
  .gallery p { font-size: .92rem; margin-top: 8px; }
  .ph span { font-size: .66rem; padding: 4px 8px; }

  .contact-list li { grid-template-columns: 1fr; }
  .quote { padding: 24px 20px; }

  .site-footer { padding-bottom: 92px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
  .wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}
