:root {
  --teal: #024956;
  --teal-dark: #013640;
  --teal-soft: #e6f0f1;
  --cream: #faf7f2;
  --ink: #1d2b2f;
  --muted: #4f5f63;
  --line: #d5e0e2;
  --white: #ffffff;
  --focus: #f2a900;
  --radius: 14px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

h1, h2, h3 { line-height: 1.2; color: var(--teal-dark); margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal); color: var(--white); padding: 10px 16px; z-index: 10;
}
.skip:focus { left: 16px; top: 16px; }

/* Top bar and header */
.topbar { background: var(--teal); color: var(--white); font-size: 0.95rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: var(--white); font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: var(--white); }
.topbar__phones { display: flex; gap: 20px; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand img { width: 220px; }

.nav-toggle {
  display: none; font: inherit; font-weight: 600; color: var(--teal);
  background: var(--white); border: 2px solid var(--teal); border-radius: 999px; padding: 8px 18px; cursor: pointer;
}

.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--ink); }
.site-nav a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.site-nav a[aria-current="page"] { color: var(--teal); text-decoration: underline; text-decoration-thickness: 2px; }
.site-nav .site-nav__cta { background: var(--teal); color: var(--white); margin-left: 6px; }
.site-nav .site-nav__cta:hover { background: var(--teal-dark); color: var(--white); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; flex-direction: column; align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 1.1rem; }
  .site-nav .site-nav__cta { margin: 8px 0 0; text-align: center; }
  .brand img { width: 180px; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: var(--teal); color: var(--white); border: 2px solid var(--teal); font-size: 1.05rem;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--teal); }
.btn--ghost:hover { background: var(--teal-soft); color: var(--teal-dark); }
.btn--light { background: var(--white); color: var(--teal); border-color: var(--white); }
.btn--light:hover { background: var(--teal-soft); color: var(--teal-dark); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Sections */
.section { padding: 64px 0; }
.section--soft { background: var(--cream); }
.section--teal { background: var(--teal); color: var(--white); }
.section--teal h2, .section--teal h3 { color: var(--white); }
.section--teal a:not(.btn) { color: var(--white); }
@media (max-width: 560px) { .actions .btn { flex: 1 1 100%; text-align: center; } }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 46rem; }
.section--teal .lead { color: #d9e8ea; }
.narrow { max-width: 46rem; }

.hero { background: linear-gradient(180deg, var(--teal-soft), var(--white)); padding: 72px 0 56px; }
.hero__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 8px 30px rgba(2, 73, 86, 0.08); }
.hero__card h2 { font-size: 1.35rem; }
.hero__card ul { margin: 0; padding-left: 1.2em; }
.hero__card li { margin-bottom: 6px; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; gap: 28px; } .hero { padding: 48px 0 40px; } }

.page-head { background: var(--teal-soft); padding: 48px 0 36px; }
.page-head p { margin-bottom: 0; }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card a.card__link { font-weight: 700; }

.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.points li { padding-left: 34px; position: relative; }
.points li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: var(--white); font-weight: 700; margin-bottom: 12px; }
.steps h3 { font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Testimonials */
.quote { margin: 0; background: var(--white); border-radius: var(--radius); padding: 28px; border-left: 6px solid var(--teal); }
.quote blockquote { margin: 0 0 12px; font-size: 1.15rem; color: var(--ink); }
.quote figcaption { color: var(--muted); font-weight: 600; }

/* CQC */
.cqc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.cqc p:last-child { margin-bottom: 0; }
.cqc__widget { max-width: 100%; overflow-x: auto; }
@media (max-width: 860px) { .cqc { grid-template-columns: 1fr; gap: 28px; } }

/* Team */
.person { border-top: 4px solid var(--teal); }
.person__head { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.person__head h3 { margin-bottom: 0.15em; }
.avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--teal); color: var(--white); display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; letter-spacing: 0.02em; }
.person__role { color: var(--muted); font-weight: 600; font-size: 1rem; line-height: 1.4; margin: 0; }

/* Services */
.service { padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.service:first-of-type { border-top: 0; }
.service__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .service__grid { grid-template-columns: 1fr; } }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.jump a { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-weight: 600; font-size: 0.98rem; }

/* Forms */
.form { display: grid; gap: 18px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.98rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 2px solid #9fb4b8; border-radius: 10px; background: var(--white); color: var(--ink);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: 3px solid var(--focus); outline-offset: 1px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 24px; height: 24px; margin-top: 3px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: var(--teal-soft); border-radius: var(--radius); padding: 18px 20px; }
.notice--warn { background: #fff4e0; }
.form-error { background: #fdecea; border: 2px solid #b3261e; color: #5c0f0a; border-radius: 10px; padding: 14px 16px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.contact-grid > *, .grid > *, .site-footer__grid > *, .hero__grid > * { min-width: 0; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.contact-list strong { display: block; }
.big-link { font-size: 1.3rem; font-weight: 700; }

/* Prose pages */
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose table { border-collapse: collapse; width: 100%; margin-bottom: 1em; }
.prose th, .prose td { text-align: left; border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }

/* Footer */
.site-footer { background: var(--teal-dark); color: #d9e8ea; margin-top: 0; padding-top: 48px; font-size: 1rem; }
.site-footer a { color: var(--white); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer__name { color: var(--white); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 32px; padding-top: 18px; padding-bottom: 24px; font-size: 0.9rem; }
.site-footer__legal p { margin: 0; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr; } }
