:root {
  color-scheme: light;
  --ink: #172d3d;
  --muted: #4c6575;
  --blue: #23658c;
  --blue-dark: #174b6a;
  --accent: #e5f4fc;
  --paper: #f8fbfd;
  --line: #d7e8f0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); }
main { flex: 1; display: flex; min-width: 0; }
main > [data-panel] { flex: 1; min-width: 0; }
[data-panel][hidden] { display: none !important; }
img { max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; }
h1 { font-size: clamp(2.5rem, 10vw, 3.7rem); margin-bottom: 1.2rem; }
h2 { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: .7rem; }
:focus-visible { outline: 3px solid #aa6c16; outline-offset: 3px; }
.container { width: min(100% - 2rem, 1160px); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; background: #fff; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.eyebrow { color: var(--blue); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 1rem; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding-block: 1rem; }
.brand { font-weight: 700; font-size: 1.05rem; text-decoration: none; line-height: 1.2; }
.brand span { display: block; color: var(--muted); font-weight: 400; font-size: .76rem; margin-top: .25rem; }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; }
.site-header nav a { text-decoration: none; font-size: .86rem; font-weight: 600; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.site-header nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-underline-offset: .35em; }
.nav-contact { border: 1px solid var(--blue); border-radius: 3px; padding: .4rem .65rem; }
.site-header nav .nav-contact[aria-current="page"] { background: var(--blue); color: #fff; text-decoration: none; }

.hero { display: flex; align-items: center; background: var(--accent); padding-block: 3.5rem; }
.hero-inner { display: grid; gap: 3rem; align-items: center; }
.hero h1 { max-width: 15ch; }
.lead { color: #354e60; font-size: 1.08rem; max-width: 42rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.button { display: inline-block; border: 1px solid var(--blue); border-radius: 3px; background: var(--blue); color: #fff; padding: .75rem 1.15rem; text-decoration: none; font-weight: 700; }
.button:hover, .button:focus-visible { background: var(--blue-dark); }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.hero-profile { width: min(100%, 300px); margin: 0 auto; padding: .8rem; background: var(--blue); color: #fff; box-shadow: 10px 10px 0 rgba(35, 101, 140, .13); }
.hero-profile img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero-profile figcaption { display: flex; flex-direction: column; gap: .15rem; padding: .9rem .2rem .15rem; }
.hero-profile figcaption strong { font-size: .98rem; }
.hero-profile figcaption span { color: #e2f2fb; font-size: .76rem; line-height: 1.35; }

.section, .contact-section { padding-block: 3.5rem; }
.section-alt { background: #fff; }
.section-heading { max-width: 48rem; margin-bottom: 2rem; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.02rem; }
.service-grid, .price-grid { display: grid; gap: .8rem; }
.service-card, .price-card { border: 1px solid var(--line); background: #fff; padding: 1.3rem; }
.service-card p, .price-card p:not(:last-child) { color: var(--muted); margin-bottom: 0; }
.card-index { display: block; color: var(--blue); font-size: .75rem; font-weight: 800; margin-bottom: .8rem; }
.price-card { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.price-card p { margin: 0; }
.price-card strong { color: var(--blue); font-size: 1.3rem; }
.price-note { color: var(--muted); font-size: .86rem; margin: 1rem 0 0; }

.method-layout, .about-layout, .contact-layout { display: grid; gap: 2rem; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 2rem 1fr; gap: 0 .7rem; border-top: 1px solid var(--line); padding: .85rem 0; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; color: var(--blue); font-size: .75rem; font-weight: 700; }
.steps strong { font-size: 1.03rem; }
.steps span { color: var(--muted); }
.about-layout > p { color: var(--muted); font-size: 1.1rem; }

.contact-section { background: var(--blue); color: #fff; }
.contact-section .eyebrow { color: #d7effc; }
.contact-layout > div > p:last-of-type { color: #e2f2fb; font-size: 1.04rem; }
.contact-links { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .35rem; }
.contact-links a { color: #fff; text-underline-offset: .2em; overflow-wrap: anywhere; }
.contact-form { display: grid; gap: .3rem; background: #fff; color: var(--ink); padding: 1.3rem; }
.contact-form label { font-size: .86rem; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #9db4c2; border-radius: 2px; background: #fff; padding: .58rem; margin-bottom: .55rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.contact-form textarea { resize: vertical; min-height: 6rem; }
.contact-form .button { justify-self: start; }
.hidden { position: absolute; left: -9999px; }
.form-note { color: var(--muted); font-size: .76rem; margin: .3rem 0 0; }

.site-footer { background: #102d40; color: #e2f2fb; padding-block: 1.25rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; font-size: .8rem; }
.footer-inner p { margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (min-width: 700px) {
  .container { width: min(100% - 3rem, 1160px); }
  .header-inner { min-height: 78px; flex-direction: row; align-items: center; justify-content: space-between; padding-block: .75rem; }
  .hero-inner { grid-template-columns: minmax(0, 1.5fr) minmax(230px, .8fr); gap: clamp(2rem, 5vw, 5rem); }
  .hero h1 { font-size: clamp(2.8rem, 4vw, 4.1rem); }
  .hero-profile { width: min(100%, 320px); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .method-layout, .about-layout, .contact-layout { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
  .contact-form { padding: 1.6rem; }
}

@media (min-width: 1100px) {
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-profile { width: min(100%, 340px); }
}

@media (min-width: 900px) and (min-height: 760px) {
  .section, .contact-section { display: flex; align-items: center; padding-block: 2.5rem; }
  .hero { padding-block: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
