:root {
  --bg: #f3f8ff;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --text: #10273e;
  --muted: #4b6278;
  --primary: #0b2c4d;
  --secondary: #17446f;
  --accent: #13b9c9;
  --line: #d6e2ef;
  --radius: 16px;
  --shadow: 0 16px 36px rgba(11, 44, 77, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Avenir Next", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--secondary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--primary);
  font-weight: 800;
}

.back-link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

section {
  padding: 4rem 0;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(19, 185, 201, 0.18), transparent 38%),
    radial-gradient(circle at 85% 18%, rgba(23, 68, 111, 0.16), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero h1 {
  margin: 0 0 0.7rem;
  line-height: 1.1;
  font-size: clamp(2rem, 5vw, 3.1rem);
  max-width: 14ch;
}

.lead {
  color: var(--muted);
  max-width: 60ch;
}

.kicker {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  color: var(--secondary);
  font-weight: 700;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  text-decoration: none;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.btn.alt {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--line);
  box-shadow: none;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.badge-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 700;
  background: #fff;
}

.price {
  font-size: 1.9rem;
  margin: 0.2rem 0 0.5rem;
  font-weight: 800;
}

.panel {
  background: linear-gradient(165deg, var(--surface-soft), #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.list {
  margin: 0;
  padding-left: 1.15rem;
}

footer {
  padding: 1.2rem 0;
  background: var(--primary);
  color: #dceaf7;
}

footer a {
  color: #c8f6fa;
}

/* Theme variations */
body.theme-electrician {
  --bg: #f2f7fe;
  --primary: #0b2c4d;
  --secondary: #1e547f;
  --accent: #13b9c9;
}

body.theme-cafe {
  --bg: #fff9f4;
  --surface: #fffefa;
  --surface-soft: #fff4e6;
  --text: #2f2017;
  --muted: #6d5140;
  --primary: #4f2f1f;
  --secondary: #7a4a31;
  --accent: #e89542;
  --line: #ecd7c4;
}

body.theme-trainer {
  --bg: #f4faf6;
  --surface-soft: #e7f4ea;
  --text: #122720;
  --muted: #47695d;
  --primary: #154a38;
  --secondary: #1f6d53;
  --accent: #4dc694;
  --line: #cde4d8;
}

body.theme-dentist {
  --bg: #f2fbff;
  --surface-soft: #eaf7ff;
  --text: #123449;
  --muted: #496a7e;
  --primary: #0d4865;
  --secondary: #1b6d92;
  --accent: #32c0dd;
  --line: #cfe5f2;
}

body.theme-landscaping {
  --bg: #f3faf3;
  --surface-soft: #e8f3e9;
  --text: #1c321d;
  --muted: #4f6d51;
  --primary: #2a5e35;
  --secondary: #3f7c48;
  --accent: #74b84f;
  --line: #d2e4d0;
}

body.theme-barber {
  --bg: #f6f6fa;
  --surface-soft: #ececf4;
  --text: #1d1d2f;
  --muted: #59596f;
  --primary: #23233a;
  --secondary: #3b3b5a;
  --accent: #d9b573;
  --line: #d8d8e8;
}

@media (min-width: 760px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
