/* Samazini Procentus — vienkārša, pārdomāta, informatīva lapa.
   Mobilā vispirms. Bez ārējiem fontiēm un izsekotājiem. */

:root {
  --bg: #f4f1e9;
  --paper: #fffcf7;
  --ink: #1c1916;
  --muted: #5a544c;
  --line: #d8d1c5;
  --accent: #6a2428;
  --accent-hover: #4e1a1d;
  --soft: #f1e7e4;
  --focus: #6a2428;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --space: 1.25rem;
  --measure: 40rem;
  --page: 44rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover { color: var(--accent-hover); }

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 0.75rem;
  z-index: 30;
}

.skip:focus { top: 0.75rem; }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .wrap {
  width: min(58rem, calc(100% - 2rem));
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
  padding: 0.85rem 0 0.95rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand:hover { color: var(--ink); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.95rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover { color: var(--accent); text-decoration: underline; }

/* Sections */
main { padding-bottom: 0.5rem; }

.hero,
section {
  padding: 2.15rem 0;
  border-bottom: 1px solid var(--line);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(1.85rem, 7.5vw, 2.55rem);
  max-width: 16ch;
  margin-bottom: 0.9rem;
}

h2 { font-size: clamp(1.4rem, 4vw, 1.75rem); }

h3 {
  font-size: 1.05rem;
  font-family: var(--sans);
  letter-spacing: 0;
  margin: 0 0 0.3rem;
}

.lead,
.intro {
  margin: 0 0 1.35rem;
  color: var(--muted);
  max-width: var(--measure);
}

.lead {
  font-size: 1.12rem;
  color: var(--ink);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.15rem;
  min-height: 2.75rem;
  background: var(--accent);
  color: #fffdf8;
  text-decoration: none;
  font-weight: 600;
  border-radius: 2px;
  line-height: 1.3;
}

.btn:hover { background: var(--accent-hover); color: #fffdf8; }

/* Lists of situations / outcomes */
.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.plain-list li {
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--accent);
}

.plain-list p {
  margin: 0;
  color: var(--muted);
}

.note {
  margin: 1.25rem 0 0;
  max-width: var(--measure);
  color: var(--muted);
  font-size: 1rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.85rem;
  align-items: start;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
}

.steps h3 { margin-top: 0.2rem; }

.steps p {
  margin: 0;
  color: var(--muted);
}

/* Prices */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.price-table th {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.price-table th:last-child { text-align: right; }

.price-table tr:last-child td { border-bottom: 0; }

.price-table td:last-child {
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.price-notes {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  max-width: var(--measure);
}

.price-notes li { margin: 0 0 0.35rem; }

/* Quote */
.quote-block {
  padding: 2.4rem 0;
}

.quote {
  margin: 0;
  max-width: 28rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-size: 1.28rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
}

/* Prepare */
.prep-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  max-width: var(--measure);
}

.prep-list li { margin: 0 0 0.4rem; }

/* FAQ */
.faq {
  display: grid;
  gap: 0.55rem;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.15rem 0.9rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 0;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.1rem;
  color: var(--accent);
  font-weight: 700;
}

.faq details[open] summary::before { content: "−"; }

.faq details p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

/* Contact */
.contact-box {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.15rem 1.15rem 1.25rem;
  max-width: 28rem;
}

.contact-box .label {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.email-link {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 1.12rem;
  font-weight: 650;
  word-break: break-word;
}

.contact-note {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: var(--measure);
}

/* Footer */
.site-footer {
  padding: 1.7rem 0 2.3rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.15rem 0 0.4rem;
}

.site-footer p { margin: 0 0 0.55rem; max-width: var(--measure); }

@media (max-width: 639px) {
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td {
    display: block;
    width: 100%;
  }
  .price-table tr {
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--line);
  }
  .price-table tr:last-child { border-bottom: 0; }
  .price-table th, .price-table td {
    padding: 0.1rem 0;
    border: 0;
  }
  .price-table td:last-child {
    white-space: normal;
    text-align: left;
    margin-top: 0.15rem;
  }
}

@media (min-width: 640px) {
  body { font-size: 1.125rem; }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(244, 241, 233, 0.94);
  }

  .plain-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem 1.75rem;
  }

  .hero,
  section { padding: 2.45rem 0; }

  .quote { font-size: 1.4rem; }
}
