:root {
  --ink: #1f2937;
  --muted: #52606d;
  --line: #e6ddd4;
  --brand: #c2410c;
  --brand-dark: #9a3412;
  --paper: #fcfaf7;
  --surface: #ffffff;
  --soft: #fff1e6;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--brand-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--brand); }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -52px;
  z-index: 20;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 750;
}
.skip-link:focus { top: 16px; }
.skip-link:hover { color: #fff; background: #111827; }

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { color: var(--ink); font-size: 1.04rem; font-weight: 850; letter-spacing: -.03em; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: .94rem; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:last-child { padding: 8px 14px; color: var(--brand-dark); border: 1px solid var(--line); border-radius: 999px; font-weight: 700; }
.nav-links a:focus-visible, .logo:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #0e7490; outline-offset: 3px; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 590px;
  overflow: hidden;
  padding: 108px 0 100px;
  background: linear-gradient(90deg, rgba(255, 247, 237, .98) 0%, rgba(255, 247, 237, .9) 42%, rgba(255, 247, 237, .22) 100%), url('provami-hero.png') center / cover;
  border-bottom: 1px solid #f1d4bd;
}
.hero::after { content: ""; position: absolute; inset: auto 8% 0; height: 1px; background: var(--brand); opacity: .35; }
.hero .wrap { width: min(1160px, calc(100% - 48px)); }
.hero h1 { max-width: 820px; margin: 0 0 26px; font-size: clamp(3rem, 7vw, 6rem); line-height: .99; letter-spacing: -.035em; }
.hero p { max-width: 680px; margin: 0 0 22px; color: #435363; font-size: 1.16rem; line-height: 1.58; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  color: #fff;
  background: var(--brand-dark);
  border: 1px solid var(--brand-dark);
  border-radius: 999px;
  font: 700 1rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { color: #fff; background: #7c2d12; transform: translateY(-2px); }
.btn-secondary { color: var(--ink); background: rgba(255, 255, 255, .72); border-color: #b9aa9c; }
.btn-secondary:hover { color: var(--ink); background: #fff; }
.btn:disabled { cursor: wait; opacity: .65; transform: none; }

.section { padding: 88px 0; }
.section:nth-of-type(even) { background: #fffaf5; }
.section h2 { max-width: 780px; margin: 0 0 16px; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.08; letter-spacing: -.03em; }
.lead { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.65; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 38px 0 0; padding: 0; list-style: none; counter-reset: method; }
.step { min-height: 118px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); counter-increment: method; }
.step::before { content: counter(method, decimal-leading-zero); margin-bottom: auto; color: var(--brand); font-size: .83rem; font-weight: 800; letter-spacing: .08em; }
.step strong { font-size: 1.02rem; }
.step small { display: block; margin-top: 7px; color: var(--muted); font-size: .88rem; line-height: 1.45; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; margin-top: 38px; }
.card { grid-column: span 4; display: flex; flex-direction: column; gap: 10px; min-height: 184px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.grid > .card:nth-child(4) { grid-column: span 6; }
.card h3 { margin: 0; font-size: 1.2rem; line-height: 1.2; letter-spacing: -.015em; }
.card h3 { display: flex; align-items: center; gap: 9px; }
.card-icon { width: 24px; height: 24px; flex: 0 0 24px; color: var(--brand); }
.card p { margin: 0; color: var(--muted); line-height: 1.6; }
.card p + p { margin-top: auto; padding-top: 12px; font-size: .94rem; }
.card strong { color: var(--ink); }

.contact { max-width: 920px; margin-top: 34px; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .93rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 13px; color: var(--ink); background: #fff; border: 1px solid #cdbfb2; border-radius: 9px; font: inherit; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-dark); box-shadow: 0 0 0 4px rgba(154, 52, 18, .12); outline: 0; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 15px 0; color: var(--muted); font-size: .92rem; }
.check input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 4px; accent-color: var(--brand-dark); }
.form-status { min-height: 1.5em; margin-top: 12px; color: var(--muted); }
.btn-icon { width: 18px; height: 18px; flex: 0 0 18px; }

.footer { padding: 34px 0; color: var(--muted); border-top: 1px solid var(--line); font-size: .9rem; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer strong { color: var(--ink); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .grid > .card:nth-child(4) { grid-column: span 1; }
}
@media (max-width: 800px) {
  .hero { min-height: auto; padding: 88px 0 76px; background-position: 62% center; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 32px, 1120px); }
  .nav-inner { align-items: flex-start; flex-direction: column; padding: 16px 0; }
  .nav-links { gap: 12px 18px; }
  .nav-links a:last-child { padding: 0; color: var(--ink); border: 0; font-weight: 400; }
  .hero { padding: 70px 0 62px; background-position: 68% center; }
  .hero .wrap { width: min(100% - 32px, 1120px); }
  .hero h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .hero p { font-size: 1.08rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 60px 0; }
  .grid, .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .card, .grid > .card:nth-child(4) { grid-column: span 1; min-height: 0; padding: 23px; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { min-height: auto; }
  .contact { padding: 22px 18px; }
  .field.full { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
+
/* Editorial footer */
.footer { padding: clamp(52px, 7vw, 82px) 0 24px; color: var(--muted); background: var(--soft); border-top: 1px solid var(--line); }
.footer-inner { display: block; }
.footer-intro { max-width: 620px; padding-bottom: clamp(38px, 5vw, 58px); }
.footer-kicker { margin: 0 0 14px; color: var(--brand); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.footer-intro h2 { max-width: 600px; margin: 0; color: var(--ink); font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.03; letter-spacing: -.025em; }
.footer-intro > p:last-child { max-width: 46ch; margin: 20px 0 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.footer-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(180px, .8fr); gap: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.footer-section { min-width: 0; }
.footer-section h3 { margin: 0 0 16px; color: var(--ink); font-size: .73rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a, .footer-data a { width: fit-content; color: var(--brand-dark, var(--brand)); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s ease; }
.footer-links a:hover, .footer-data a:hover { color: var(--brand); }
.footer-network-links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
.footer-data address { display: grid; gap: 7px; margin: 0; font-style: normal; font-size: .9rem; line-height: 1.45; }
.footer-data address strong { color: var(--ink); font-size: 1.05rem; }
.footer-data address span { color: var(--muted); }
.footer-meta { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
@media (max-width: 720px) { .footer-columns { grid-template-columns: 1fr 1fr; gap: 34px 24px; } .footer-data { grid-column: 1 / -1; padding-top: 6px; } .footer-meta { display: grid; gap: 5px; margin-top: 34px; } }
@media (max-width: 480px) { .footer { padding-top: 46px; } .footer-intro h2 { font-size: clamp(1.9rem, 10vw, 2.7rem); } .footer-columns { grid-template-columns: 1fr; gap: 30px; } .footer-data { grid-column: auto; padding-top: 0; } .footer-network-links { grid-template-columns: 1fr 1fr; } .footer-meta { margin-top: 30px; } }
@media (prefers-reduced-motion: reduce) { .footer-links a, .footer-data a { transition: none; } }

/* Legal pages */
.legal { min-height: 52vh; padding: clamp(54px, 8vw, 108px) 0; background: var(--paper); }
.legal-article { max-width: 860px; margin: 0 auto; padding: clamp(28px, 5vw, 64px); color: var(--ink); background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 48px rgba(15, 23, 42, .07); }
.legal-article .eyebrow { margin: 0 0 14px; }
.legal-article h1 { max-width: 720px; margin: 0; font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: .98; letter-spacing: -.045em; }
.legal-article h2 { max-width: 700px; margin: 48px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.15; }
.legal-article p { max-width: 70ch; margin: 18px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.legal-article h1 + p { max-width: 60ch; margin-top: 24px; font-size: 1.1rem; }
.legal-article a { color: var(--brand, var(--ink)); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.legal-article a:hover { color: var(--brand-2, var(--brand)); }
.legal-article .notice { max-width: 70ch; margin-top: 36px; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal-actions a { font-weight: 750; }
@media (max-width: 620px) { .legal { padding: 34px 0 58px; }.legal-article { padding: 28px 20px 32px; border-radius: 12px; }.legal-article h1 { font-size: clamp(2.3rem, 13vw, 3.7rem); }.legal-article h2 { margin-top: 38px; padding-top: 18px; }.legal-article p { font-size: .98rem; }.legal-actions { display: grid; gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .legal-article a { transition: none; } }

.footer-meta span:first-child { font-weight: 750; }
.footer-meta span:last-child { text-align: right; }
@media (max-width: 480px) { .footer-meta span:last-child { text-align: left; } }
