/* ==========================================================
   Edil Drizza — Ristrutturazioni e Costruzioni
   Palette: #183A32 verde · #F6F3EC avorio · #C9C8C1 pietra · #B87956 rame
   ========================================================== */

:root {
  --green: #183a32;
  --green-2: #21493f;
  --green-3: #0f2a24;
  --ivory: #f6f3ec;
  --ivory-2: #efebe1;
  --stone: #c9c8c1;
  --copper: #b87956;
  --copper-2: #a0664a;
  --ink: #1f2522;
  --muted: #5d6662;
  --line: #e2ddd1;
  --white: #fff;

  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 4px;
  --shadow: 0 1px 2px rgba(24, 58, 50, .06), 0 8px 24px rgba(24, 58, 50, .07);
  --shadow-lg: 0 20px 50px rgba(15, 42, 36, .18);
  --container: 1200px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; color: var(--green); letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--copper); color: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  font-size: 15px; font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-2); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--green); }
.btn-outline { border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--copper); font-weight: 500; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; color: var(--green); line-height: 1; }
.logo img, .logo svg { width: 92px; height: 34px; margin-bottom: 6px; }
.logo-name { font-family: var(--sans); font-size: 19px; font-weight: 500; letter-spacing: .14em; }
.logo-sub { font-size: 8.5px; font-weight: 600; letter-spacing: .42em; margin-top: 5px; }
.logo--light { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 243, 236, .96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(24,58,50,.06); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.nav { display: flex; gap: 34px; }
.nav a { position: relative; font-size: 15px; color: var(--ink); padding: 6px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--copper); transform: scaleX(0); transition: transform .25s; }
.nav a:hover, .nav a.is-active { color: var(--green); }
.nav a.is-active::after, .nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--green); }
.header-phone svg { width: 17px; height: 17px; color: var(--copper); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--green); transition: transform .3s, opacity .2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--ivory);
  padding: 32px 24px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateX(100%); transition: transform .35s ease;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: none; }
.mobile-menu a:not(.btn) { font-family: var(--serif); font-size: 28px; color: var(--green); padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 24px; }
.mobile-menu .mm-contact { margin-top: 24px; font-size: 15px; color: var(--muted); display: grid; gap: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,25,20,.82) 0%, rgba(15,25,20,.6) 38%, rgba(15,25,20,.15) 70%, rgba(15,25,20,.05) 100%),
              linear-gradient(0deg, rgba(15,25,20,.45), transparent 40%);
}
.hero .container { position: relative; padding-top: 80px; padding-bottom: 80px; }
.hero .eyebrow { color: #fff; opacity: .9; }
.hero h1 { color: #fff; font-size: clamp(38px, 5.4vw, 66px); max-width: 720px; }
.hero-lead { margin-top: 20px; font-size: clamp(16px, 1.4vw, 19px); max-width: 520px; color: rgba(255,255,255,.88); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 56px; }
.hero-badge { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.35; color: rgba(255,255,255,.92); }
.hero-badge svg { width: 30px; height: 30px; flex: none; color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--tight { padding: 80px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 44px); }
.section-head p { color: var(--muted); max-width: 520px; margin-top: 12px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-img { aspect-ratio: 16/10; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service:hover .service-img img { transform: scale(1.05); }
.service-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.service-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.service h3 { font-size: 23px; }
.circle-arrow { flex: none; width: 34px; height: 34px; border: 1px solid var(--copper); border-radius: 50%; display: grid; place-items: center; color: var(--copper); transition: background .2s, color .2s; }
.circle-arrow svg { width: 15px; height: 15px; }
.service:hover .circle-arrow { background: var(--copper); color: #fff; }
.service p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.service ul { margin-top: 16px; display: grid; gap: 6px; font-size: 14px; color: var(--ink); }
.service li { position: relative; padding-left: 18px; }
.service li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 1.5px; background: var(--copper); }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { border: 1px solid var(--line); background: #fff; padding: 8px 18px; border-radius: 100px; font-size: 14px; cursor: pointer; transition: all .2s; }
.filter:hover { border-color: var(--green); }
.filter.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: zoom-in; background: var(--stone); border: 0; padding: 0; text-align: left; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,25,20,.7), transparent 50%); opacity: .85; transition: opacity .3s; }
.project:hover img { transform: scale(1.05); }
.project-tag { position: absolute; left: 0; bottom: 0; z-index: 1; background: var(--green); color: #fff; font-size: 13px; padding: 7px 14px; }
.project-caption { position: absolute; left: 18px; right: 18px; bottom: 44px; z-index: 1; color: #fff; font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.portfolio-intro { max-width: 760px; color: var(--muted); margin: 0 0 30px; font-size: 16px; line-height: 1.65; }
.project.is-hidden { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10,20,16,.94); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 16px; font-family: var(--serif); font-size: 20px; }
.lb-btn { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: var(--copper); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Band ---------- */
.band { background: var(--green); color: #fff; padding: 64px 0; }
.band .container { display: grid; grid-template-columns: 1.15fr 2fr; gap: 48px; align-items: center; }
.band h2 { color: #fff; font-size: clamp(28px, 2.8vw, 38px); }
.band-intro p { margin-top: 14px; color: rgba(255,255,255,.78); font-size: 15px; }
.band-items { display: grid; grid-template-columns: repeat(3, 1fr); }
.band-item { display: flex; gap: 16px; padding: 4px 26px; border-left: 1px solid rgba(255,255,255,.2); }
.band-item svg { width: 36px; height: 36px; flex: none; color: var(--copper); }
.band-item h3 { color: #fff; font-family: var(--sans); font-size: 16px; font-weight: 600; }
.band-item p { margin-top: 6px; color: rgba(255,255,255,.72); font-size: 14px; }

/* ---------- Payments ---------- */
.pay-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.pay h2 { font-size: clamp(30px, 3.4vw, 44px); }
.pay-lead { margin-top: 18px; color: var(--muted); max-width: 560px; }
.pay-steps { display: grid; gap: 16px; margin-top: 32px; }
.pay-step { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.pay-step strong { font-family: var(--serif); font-weight: 400; font-size: 40px; color: var(--copper); line-height: 1; }
.pay-step h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; }
.pay-step p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.pay-list { margin-top: 26px; display: grid; gap: 10px; font-size: 15px; }
.pay-list li { display: flex; gap: 10px; align-items: center; }
.pay-list svg { width: 18px; height: 18px; color: var(--copper); flex: none; }

.calc { background: var(--green); color: #fff; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-lg); }
.calc h3 { color: #fff; font-size: 28px; }
.calc > p { color: rgba(255,255,255,.72); margin-top: 6px; font-size: 15px; }
.calc-label { display: block; font-size: 13px; color: rgba(255,255,255,.8); margin: 24px 0 8px; }
.calc-input { width: 100%; padding: 14px 16px; font-size: 22px; font-family: var(--serif); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); background: rgba(255,255,255,.08); color: #fff; }
.calc-input:focus { outline: none; border-color: var(--copper); }
.calc-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calc-months button { padding: 11px 8px; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); background: transparent; color: #fff; cursor: pointer; font-size: 14px; transition: all .2s; }
.calc-months button:hover { border-color: #fff; }
.calc-months button.is-active { background: var(--copper); border-color: var(--copper); }
.calc-label b { color: #fff; font-weight: 600; }
.calc-range { width: 100%; accent-color: var(--copper); height: 28px; cursor: pointer; }
.calc-scale { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.6); }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0; }
.calc-out > div { background: rgba(255,255,255,.07); border-radius: var(--radius); padding: 16px 18px; }
.calc-out span { display: block; font-size: 13px; color: rgba(255,255,255,.72); }
.calc-out strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; margin-top: 6px; line-height: 1.1; }
.calc-out small { display: block; font-size: 13px; color: rgba(255,255,255,.72); margin-top: 4px; }
.calc-main { background: rgba(184,121,86,.22) !important; }
.calc .btn { width: 100%; }
.calc-note { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 14px; text-align: center; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about-media .about-small { position: absolute; right: -32px; bottom: -32px; width: 46%; aspect-ratio: 1; border: 8px solid var(--ivory); box-shadow: var(--shadow); }
.about h2 { font-size: clamp(30px, 3.4vw, 44px); }
.about-text p { margin-top: 18px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--serif); font-size: 40px; color: var(--copper); font-weight: 400; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.about-text .btn { margin-top: 36px; }

/* ---------- Process + Form ---------- */
.process-wrap { background: var(--ivory-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.steps { display: grid; gap: 0; margin-top: 32px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 22px 0; position: relative; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 70px; bottom: -6px; width: 1px; background: var(--stone); }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--copper); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 20px; }
.step h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; color: var(--green); }
.step p { margin-top: 6px; color: var(--muted); font-size: 15px; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(28px, 2.8vw, 36px); }
.form-card > p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--green); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ivory); font-size: 15px; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--copper); background: #fff; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3412d; }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--copper); width: 16px; height: 16px; flex: none; }
.consent a { text-decoration: underline; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn-wa { background: #fff; color: var(--green); border-color: var(--line); }
.btn-wa:hover { border-color: var(--green); }
.btn-wa svg { color: #25d366; width: 18px; height: 18px; }
.btn-wa:hover svg { transform: none; }
.form-note { grid-column: 1 / -1; font-size: 14px; padding: 12px 14px; border-radius: var(--radius); display: none; }
.form-note.is-ok { display: block; background: #e8f0ec; color: var(--green); }
.form-note.is-err { display: block; background: #f7e7e2; color: #8a3524; }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, transform .2s; }
a.contact-card:hover { border-color: var(--copper); transform: translateY(-3px); }
.contact-card svg { width: 28px; height: 28px; color: var(--copper); }
.contact-card span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.contact-card strong { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--green); word-break: break-word; }

/* ---------- Footer ---------- */
.footer { background: var(--green); color: rgba(255,255,255,.78); padding: 72px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer p { margin-top: 18px; max-width: 320px; }
.footer h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #fff; font-weight: 600; margin-bottom: 18px; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 22px 0 22px; font-size: 13px; }
@media (max-width: 900px) { .footer-bottom { padding-bottom: 96px; } }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Privacy dialog ---------- */
dialog.privacy { max-width: 640px; width: calc(100% - 32px); border: 0; border-radius: var(--radius); padding: 36px; color: var(--ink); background: #fff; }
dialog.privacy::backdrop { background: rgba(10,20,16,.6); }
dialog.privacy h2 { font-size: 28px; margin-bottom: 12px; }
dialog.privacy h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin-top: 18px; }
dialog.privacy p { font-size: 14px; color: var(--muted); margin-top: 6px; }
dialog.privacy .btn { margin-top: 24px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img { animation: none; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .header-phone { display: none; }
  .band .container { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nav, .header-actions .btn { display: none; }
  .burger { display: block; }
  .logo img, .logo svg { width: 74px; height: 27px; }
  .logo-name { font-size: 16px; }
  .logo-sub { font-size: 7px; }
  .services, .projects { grid-template-columns: repeat(2, 1fr); }
  .about, .split, .pay-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-media { max-width: 520px; }
  .about-media .about-small { right: -12px; bottom: -24px; }
  .section { padding: 76px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { min-height: 640px; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(15,25,20,.55), rgba(15,25,20,.78)); }
  .hero-ctas .btn { width: 100%; }
  .hero-badges { gap: 18px 24px; margin-top: 40px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .services { grid-template-columns: 1fr; }
  .filters { gap: 6px; }
  .filter { padding: 8px 12px; font-size: 12px; }
  .projects { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .project-caption { font-size: 15px; left: 10px; right: 8px; bottom: 38px; }
  .project-tag { font-size: 10px; padding: 6px 9px; }
  .portfolio-intro { font-size: 14px; }
  .band-items { grid-template-columns: 1fr; gap: 24px; }
  .band-item { border-left: 0; padding: 0; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat strong { font-size: 32px; }
  .form-card, .calc { padding: 28px 20px; }
  .calc-out { grid-template-columns: 1fr; }
  .pay-step { grid-template-columns: 72px 1fr; padding: 18px; }
  .pay-step strong { font-size: 32px; }
  .form { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .contacts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
}
@media (max-width: 380px) { .projects { grid-template-columns: 1fr; } }
