/* ==========================================================================
   Pool Care LA — stylesheet
   One file, no dependencies, no build step. Edit directly.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------- */

:root {
  /* Water: deep pool blue through to a bright waterline aqua. */
  --ink:            #0d1b23;
  --ink-soft:       #3d5563;
  --ink-faint:      #6b8494;

  --deep:           #0b3a4d;
  --deep-2:         #0f4d63;
  --aqua:           #12a3c4;
  --aqua-bright:    #22c3e0;
  --aqua-wash:      #e8f7fb;

  --sand:           #fbf9f5;
  --paper:          #ffffff;
  --line:           #dfe7eb;
  --line-soft:      #eef3f5;

  --warn:           #b8531f;
  --good:           #1b7a52;

  --shadow-sm:      0 1px 2px rgba(13, 27, 35, .06), 0 2px 8px rgba(13, 27, 35, .05);
  --shadow-md:      0 2px 6px rgba(13, 27, 35, .07), 0 12px 28px rgba(13, 27, 35, .08);
  --shadow-lg:      0 4px 12px rgba(13, 27, 35, .09), 0 24px 60px rgba(13, 27, 35, .12);

  --radius:         14px;
  --radius-sm:      9px;
  --radius-lg:      22px;

  --measure:        68ch;
  --wrap:           1180px;
  --wrap-narrow:    820px;

  --step--1: clamp(.86rem, .84rem + .12vw, .94rem);
  --step-0:  clamp(1rem, .97rem + .16vw, 1.09rem);
  --step-1:  clamp(1.17rem, 1.11rem + .3vw, 1.36rem);
  --step-2:  clamp(1.38rem, 1.27rem + .55vw, 1.75rem);
  --step-3:  clamp(1.62rem, 1.43rem + .95vw, 2.3rem);
  --step-4:  clamp(1.95rem, 1.6rem + 1.7vw, 3.1rem);
  --step-5:  clamp(2.3rem, 1.75rem + 2.6vw, 3.9rem);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
}

/* --- Reset --------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
figcaption { font-size: var(--step--1); color: var(--ink-faint); margin-top: .5rem; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.018em;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); margin-top: 2.2em; }
h3 { font-size: var(--step-1); margin-top: 1.8em; }
h4 { font-size: var(--step-0); margin-top: 1.5em; }

p, ul, ol, dl, table, blockquote { margin: 0 0 1.15em; }
p { text-wrap: pretty; }

a { color: var(--deep-2); text-underline-offset: .18em; text-decoration-thickness: .06em; }
a:hover { color: var(--aqua); }

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

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--aqua-bright); color: #04222c; }

/* --- Layout primitives --------------------------------------------------- */

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

@media (max-width: 40rem) {
  .wrap { width: min(100% - 2rem, var(--wrap)); }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--deep);
  color: #fff;
  padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -.03em;
  color: var(--deep);
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}
.brand:hover { color: var(--aqua); }

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--aqua-bright), var(--deep));
  display: grid;
  place-items: center;
  color: #fff;
}
.brand-mark svg { width: 1.15rem; height: 1.15rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .45rem;
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  background: var(--paper);
  color: var(--deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem .95rem;
  cursor: pointer;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .15rem;
  margin: 0;
  padding: 0;
}

.primary-nav > ul > li { position: relative; }

.primary-nav a,
.primary-nav .menu-button {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font: inherit;
  font-size: .95rem;
  font-weight: 550;
  color: var(--ink-soft);
  text-decoration: none;
  padding: .55rem .7rem;
  border-radius: var(--radius-sm);
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav .menu-button:hover { color: var(--deep); background: var(--aqua-wash); }

.primary-nav a[aria-current="page"] { color: var(--deep); font-weight: 700; }

.menu-button::after {
  content: "";
  width: .38rem; height: .38rem;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

/* Специфичность здесь не украшение: `.primary-nav ul` тоже задаёт display,
   и без уточнения родителем подменю раскрывалось само собой. */
.primary-nav .submenu {
  position: absolute;
  top: calc(100% + .3rem);
  left: 0;
  min-width: 15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .45rem;
  display: none;
  flex-direction: column;
  gap: 1px;
  max-height: min(70vh, 32rem);
  overflow-y: auto;
}
.primary-nav .submenu.mega { min-width: 34rem; display: none; }
.primary-nav .submenu.mega[data-open="true"] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px .35rem;
}
.primary-nav .submenu[data-open="true"] { display: flex; }
.primary-nav .submenu a { display: block; font-weight: 500; font-size: .92rem; padding: .45rem .6rem; }
.primary-nav .submenu .group-title {
  grid-column: 1 / -1;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 700;
  color: var(--ink-faint);
  padding: .6rem .6rem .25rem;
  margin: 0;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex: none;
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
  background: var(--deep);
  border-radius: 999px;
  padding: .6rem 1.1rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.header-cta:hover { background: var(--aqua); color: #fff; }
.header-cta svg { width: 1rem; height: 1rem; flex: none; }

@media (max-width: 62rem) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 4.4rem);
    overflow-y: auto;
    padding: .75rem 0 1.25rem;
  }
  .primary-nav[data-open="true"] { display: block; }
  .primary-nav > ul {
    flex-direction: column;
    align-items: stretch;
    width: min(100% - 2rem, var(--wrap));
    margin-inline: auto;
    gap: 0;
  }
  .primary-nav > ul > li { border-bottom: 1px solid var(--line-soft); }
  .primary-nav a, .primary-nav .menu-button { padding: .8rem .2rem; width: 100%; font-size: 1rem; }
  .menu-button { justify-content: space-between; }
  .primary-nav .submenu, .primary-nav .submenu.mega {
    position: static;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 .6rem .8rem;
    min-width: 0;
    max-height: none;
  }
  .primary-nav .submenu.mega[data-open="true"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-cta { padding: .55rem .9rem; }
  .header-cta .cta-text { display: none; }
}

@media (max-width: 26rem) {
  .brand span { font-size: .95rem; }
}

/* --- Breadcrumbs --------------------------------------------------------- */

.breadcrumbs {
  font-size: var(--step--1);
  color: var(--ink-faint);
  padding: 1rem 0 0;
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: var(--line); }
.breadcrumbs a { color: var(--ink-faint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--deep); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink-soft); }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(34, 195, 224, .28), transparent 60%),
    linear-gradient(165deg, var(--deep) 0%, #072d3d 55%, #041e2a 100%);
  color: #eaf6fa;
  padding: clamp(2.5rem, 1rem + 6vw, 5.5rem) 0 clamp(2.5rem, 1rem + 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 40px;
  background: radial-gradient(60px 20px at 50% 0, transparent 68%, var(--sand) 70%) 0 0/72px 40px repeat-x;
  opacity: .95;
}
.hero h1 { color: #fff; font-size: var(--step-5); margin-bottom: .35em; }
.hero .lede {
  font-size: var(--step-1);
  color: #bfe2ee;
  max-width: 46ch;
  margin-bottom: 1.6rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--aqua-bright);
  background: rgba(34, 195, 224, .12);
  border: 1px solid rgba(34, 195, 224, .3);
  border-radius: 999px;
  padding: .35rem .8rem;
  margin-bottom: 1.1rem;
}
.hero .eyebrow { color: var(--aqua-bright); }

@media (max-width: 54rem) {
  .hero-grid { grid-template-columns: 1fr; }
  /* Заголовок и кнопка идут первыми: на телефоне картинка во весь экран
     отодвигает предложение ниже сгиба, и человек его не видит. */
  .hero-media img { aspect-ratio: 16 / 9; }
}

/* Compact hero for interior pages */
.page-head {
  background: linear-gradient(170deg, #f2fafc 0%, var(--sand) 100%);
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(1.75rem, 1rem + 3vw, 3rem);
}
.page-head h1 { margin-top: .6rem; max-width: 22ch; }
.page-head .lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 1.4rem;
}

/* --- Buttons ------------------------------------------------------------- */

.btn, main a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05rem; height: 1.05rem; flex: none; }

.btn-primary, main a.btn-primary {
  background: var(--aqua);
  color: #032431;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--aqua-bright); color: #032431; box-shadow: var(--shadow-md); }

.btn-solid, main a.btn-solid { background: var(--deep); color: #fff; }
.btn-solid:hover { background: var(--deep-2); color: #fff; }

.btn-ghost, main a.btn-ghost {
  background: transparent;
  color: #eaf6fa;
  border-color: rgba(234, 246, 250, .35);
}
.btn-ghost:hover { background: rgba(234, 246, 250, .1); color: #fff; }

.btn-outline, main a.btn-outline {
  background: var(--paper);
  color: var(--deep);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--aqua); color: var(--deep); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* --- Main content -------------------------------------------------------- */

main { display: block; }

.section { padding: clamp(2.5rem, 1.2rem + 4vw, 4.5rem) 0; }
.section-tight { padding: clamp(1.75rem, 1rem + 2.5vw, 3rem) 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-deep {
  background: linear-gradient(165deg, var(--deep), #072936);
  color: #dceef4;
}
.section-deep h2, .section-deep h3 { color: #fff; }
.section-deep a { color: var(--aqua-bright); }

.section-head { max-width: 60ch; margin-bottom: 2rem; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); margin-bottom: 0; }

/* Prose: styles the unstructured page bodies inherited from the source site. */
.prose {
  max-width: var(--measure);
}
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--aqua); }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.prose blockquote {
  border-left: 3px solid var(--aqua);
  padding: .2rem 0 .2rem 1.2rem;
  color: var(--ink-soft);
  font-size: var(--step-1);
}
.prose strong { font-weight: 700; color: var(--ink); }

.prose-wide { max-width: none; }

/* --- Cards --------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.card h3 { margin: 0; font-size: var(--step-1); }
.card p { color: var(--ink-soft); margin: 0; }
.card .card-link { margin-top: auto; padding-top: .8rem; font-weight: 650; text-decoration: none; }
.card .card-link::after { content: " \2192"; }

a.card {
  text-decoration: none;
  color: inherit;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
a.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--aqua);
  color: inherit;
}
a.card h3 { color: var(--deep); }

.card-icon {
  width: 2.6rem; height: 2.6rem;
  border-radius: 10px;
  background: var(--aqua-wash);
  color: var(--deep-2);
  display: grid; place-items: center;
  margin-bottom: .35rem;
}
.card-icon svg { width: 1.35rem; height: 1.35rem; }

/* --- Checklist / feature list -------------------------------------------- */

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
/* Маркер занимает первую колонку, ВСЁ содержимое — вторую.
   Без явного `grid-column: 2` автоматическая раскладка кладёт второй
   элемент (обычно абзац) обратно в узкую колонку маркера, и текст
   выходит в столбик по одной букве. */
.checklist li {
  display: grid;
  grid-template-columns: 1.45rem minmax(0, 1fr);
  column-gap: .7rem;
  row-gap: .1rem;
  align-items: start;
  margin: 0;
}
.checklist li > * { grid-column: 2; min-width: 0; }
.checklist li::before {
  content: "";
  width: 1.35rem; height: 1.35rem;
  border-radius: 50%;
  background: var(--aqua-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f4d63' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/.8rem no-repeat;
  margin-top: .18rem;
  grid-column: 1;
  grid-row: 1;
}
.checklist strong { display: block; }
.checklist p { margin: .15rem 0 0; color: var(--ink-soft); font-size: var(--step--1); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1.35rem; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: .1rem;
  margin: 0;
}
.steps li > * { grid-column: 2; min-width: 0; }
.steps li::before {
  content: counter(step);
  grid-column: 1;
  grid-row: 1;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  font-weight: 700;
  display: grid; place-items: center;
  font-size: .95rem;
}
.steps h3 { margin: .25rem 0 .3rem; font-size: var(--step-0); }
.steps p { margin: 0; color: var(--ink-soft); }

/* --- Stats / trust bar --------------------------------------------------- */

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  align-items: center;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
  padding: 1rem 0;
}
.trust-bar li { display: inline-flex; align-items: center; gap: .45rem; margin: 0; }
.trust-bar { list-style: none; padding-left: 0; }
.trust-bar svg { width: 1.05rem; height: 1.05rem; color: var(--aqua); flex: none; }
.hero .trust-bar { color: #a9d5e3; }
.hero .trust-bar svg { color: var(--aqua-bright); }

.stat-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.stat .num { display: block; font-size: var(--step-3); font-weight: 800; color: var(--deep); line-height: 1.1; letter-spacing: -.03em; }
.stat .label { font-size: var(--step--1); color: var(--ink-soft); }

/* --- Tables -------------------------------------------------------------- */

.table-scroll { overflow-x: auto; margin-bottom: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); margin: 0; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th { background: var(--aqua-wash); color: var(--deep); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --- FAQ ----------------------------------------------------------------- */

.faq { display: grid; gap: .7rem; max-width: var(--measure); }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 3rem 1.05rem 1.25rem;
  font-weight: 650;
  font-size: var(--step-0);
  position: relative;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 1.25rem; top: 1.45rem;
  width: .55rem; height: .55rem;
  border-right: 2px solid var(--aqua);
  border-bottom: 2px solid var(--aqua);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details[open] summary { color: var(--deep); }
.faq .faq-body { padding: 0 1.25rem 1.25rem; color: var(--ink-soft); }
.faq .faq-body > :last-child { margin-bottom: 0; }

/* --- Callouts ------------------------------------------------------------ */

.note {
  background: var(--aqua-wash);
  border: 1px solid #cbe9f2;
  border-left: 4px solid var(--aqua);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin: 1.75rem 0;
}
.note > :last-child { margin-bottom: 0; }
.note strong { color: var(--deep); }

.note-warn { background: #fdf4ee; border-color: #f0d9c7; border-left-color: var(--warn); }
.note-warn strong { color: var(--warn); }

/* --- CTA band ------------------------------------------------------------ */

.cta-band {
  background: linear-gradient(160deg, var(--deep) 0%, #093243 60%, #06222e 100%);
  color: #e6f4f9;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; margin: 0 0 .4em; font-size: var(--step-2); }
.cta-band p { margin: 0; color: #b7dbe7; max-width: 52ch; }
.cta-band .btn-row { flex-wrap: nowrap; }

@media (max-width: 48rem) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-row { flex-wrap: wrap; }
}

/* --- Area chips ---------------------------------------------------------- */

.area-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.area-list li { margin: 0; }
.area-list a, .area-list span {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 600;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  text-decoration: none;
}
.area-list a:hover { border-color: var(--aqua); color: var(--deep); background: var(--aqua-wash); }
.area-list span { color: var(--ink-faint); background: transparent; border-style: dashed; }

/* --- Reviews ------------------------------------------------------------- */

.quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.quote blockquote { border: 0; padding: 0; margin: 0 0 .9rem; font-size: var(--step-0); color: var(--ink); }
.quote figcaption { font-weight: 650; color: var(--ink-soft); margin: 0; }

/* --- Forms --------------------------------------------------------------- */

form fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
form legend {
  font-weight: 700;
  font-size: var(--step-1);
  padding: 0;
  margin-bottom: .9rem;
  color: var(--ink);
}
form label { display: block; font-weight: 600; font-size: var(--step--1); margin-bottom: .35rem; color: var(--ink-soft); }
form p { margin-bottom: 1.1rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
input[type="number"], input[type="date"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .7rem .85rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--aqua); outline: 2px solid rgba(18, 163, 196, .2); outline-offset: 0; }
textarea { min-height: 8rem; resize: vertical; }

input[type="checkbox"], input[type="radio"] { accent-color: var(--aqua); width: 1.05rem; height: 1.05rem; }
form ul { list-style: none; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
form ul label { display: flex; align-items: center; gap: .5rem; font-weight: 500; font-size: var(--step-0); color: var(--ink); margin: 0; }

.site-search { display: flex; gap: .4rem; align-items: center; }
.site-search input { padding: .45rem .7rem; font-size: .9rem; }

#form-status { font-weight: 600; color: var(--good); }

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  background: #06222e;
  color: #a9c8d4;
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0 2rem;
  font-size: var(--step--1);
}
.site-footer h2, .site-footer h3 {
  color: #fff;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 .9rem;
}
.site-footer a { color: #cfe6ee; text-decoration: none; }
.site-footer a:hover { color: var(--aqua-bright); text-decoration: underline; }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer .brand { color: #fff; margin-bottom: .9rem; }
.site-footer .brand:hover { color: var(--aqua-bright); }
.footer-note {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  color: #7fa2b1;
}
.footer-note p { margin: 0; }

@media (max-width: 60rem) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 34rem) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* --- Sticky mobile action bar -------------------------------------------- */

.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  display: none;
  gap: .5rem;
  padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.action-bar .btn { flex: 1; padding: .8rem 1rem; font-size: .95rem; }

@media (max-width: 48rem) {
  .action-bar { display: flex; }
  body { padding-bottom: 4.4rem; }
}

/* --- Utilities ----------------------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.muted { color: var(--ink-faint); }
.small { font-size: var(--step--1); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.source-note { font-size: var(--step--1); color: var(--ink-faint); }

.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  align-items: start;
}
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* Article meta */
.post-meta { font-size: var(--step--1); color: var(--ink-faint); margin-bottom: 1.5rem; }
.post-meta a { color: var(--ink-faint); }

.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.15rem; }
.post-list article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.post-list h3 { margin: 0 0 .4rem; font-size: var(--step-1); }
.post-list h3 a { text-decoration: none; color: var(--deep); }
.post-list p { color: var(--ink-soft); margin-bottom: .6rem; }

/* Print */
@media print {
  .site-header, .action-bar, .site-footer nav, .btn { display: none !important; }
  body { background: #fff; }
}
