:root {
  --bg: #f7f2ec;
  --surface: #ffffff;
  --surface-strong: #efe6dd;
  --primary: #4b3a36;
  --ink: #2e2523;
  --muted-ink: #6f625d;
  --line: #d8c8bc;
  --accent: #8e4b4b;
  --accent-2: #8e4b4b;
  --accent-ink: #ffffff;
  --header-bg: rgba(247, 242, 236, 0.92);
  --hero-bg: linear-gradient(90deg, #f7f2ec 0%, #efe6dd 100%);
  --shadow: rgba(29, 33, 31, 0.14);
  --soft-shadow: rgba(29, 33, 31, 0.08);
  --input-border: #d8c8bc;
  --max-width: 1120px;
}

html[data-theme="dark"] {
  --bg: #171210;
  --surface: #241c19;
  --surface-strong: #1f1715;
  --primary: #f0dfd2;
  --ink: #f7eee7;
  --muted-ink: #d9c8bd;
  --line: #5a4740;
  --accent: #c97979;
  --accent-2: #e0a2a2;
  --accent-ink: #241412;
  --header-bg: rgba(36, 28, 25, 0.94);
  --hero-bg: linear-gradient(90deg, #171210 0%, #2b1f1b 100%);
  --shadow: rgba(0, 0, 0, 0.52);
  --soft-shadow: rgba(0, 0, 0, 0.32);
  --input-border: #6a544c;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Avenir Next, Trebuchet MS, Verdana, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 60px 0;
}

.muted {
  background: var(--surface-strong);
}

h1,
h2,
h3 {
  margin: 0 0 18px;
  line-height: 1.08;
  letter-spacing: 0;
}

h1,
h2 {
  color: var(--primary);
  font-family: Georgia, Times New Roman, serif;
  font-weight: 700;
}

h1 {
  max-width: 760px;
  font-size: 56px;
}

h2 {
  max-width: 760px;
  font-size: 38px;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 18px;
}

ul,
ol {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
}

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

.brand {
  color: var(--ink);
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

#sluzby,
#postup-oceneni,
#kvalifikace,
#cenik,
#poradna,
#kontakty {
  scroll-margin-top: 72px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px;
  font: inherit;
  font-weight: 800;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-left: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 3px;
  font: inherit;
}

.theme-option {
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.theme-option:hover {
  color: var(--ink);
  background: var(--surface-strong);
}

.theme-option.is-active {
  color: var(--accent-ink);
  background: var(--accent);
}

html[data-theme="dark"] .site-header {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .btn-primary {
  box-shadow: 0 10px 24px rgba(201, 121, 121, 0.2);
}

html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .menu-toggle {
  background: #30231f;
  border-color: #735950;
}

html[data-theme="dark"] .theme-option:hover {
  background: #392a25;
}

html[data-theme="dark"] .hero-portrait img {
  filter: brightness(1.08) contrast(1.04);
}

html[data-theme="dark"] .tile-grid article,
html[data-theme="dark"] .faq-grid article,
html[data-theme="dark"] .steps li,
html[data-theme="dark"] .service-panel,
html[data-theme="dark"] .credential-panel,
html[data-theme="dark"] .document-list,
html[data-theme="dark"] .advice-card,
html[data-theme="dark"] .article-body,
html[data-theme="dark"] .article-placeholder,
html[data-theme="dark"] .advice-home-panel {
  border-color: #6a544c;
}

.hero {
  padding: 70px 0 60px;
  background: var(--hero-bg);
}

.compact-hero {
  padding: 30px 0 32px;
}

.compact-hero h1 {
  font-size: 46px;
}

.advice-page-section {
  padding: 34px 0 54px;
  background: var(--hero-bg);
}

.advice-page-section .hero-content {
  max-width: 900px;
}

.advice-page-section h1 {
  font-size: 46px;
}

.advice-page-section .lead {
  max-width: 900px;
  margin-bottom: 12px;
}

.article-hero h1 {
  max-width: 860px;
  font-size: 40px;
}

.article-hero .lead {
  max-width: 860px;
}

.article-hero + .section {
  padding-top: 34px;
}

.compact-hero .lead {
  margin-bottom: 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 56px;
  align-items: center;
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent-2);
}

.lead {
  max-width: 650px;
  font-size: 21px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero-portrait {
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 56px var(--shadow);
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 24%;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px rgba(20, 107, 88, 0.24);
}

.btn-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.proof-strip {
  padding: 0 0 18px;
  background: var(--bg);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.proof-grid div {
  min-height: 86px;
  padding: 18px 28px;
  border-left: 1px solid var(--line);
}

.proof-grid div:first-child {
  border-left: 0;
}

.proof-grid div:last-child {
  border-right: 0;
}

.proof-grid strong,
.proof-grid span {
  display: block;
}

.proof-grid strong {
  margin-bottom: 4px;
  font-size: 18px;
}

.proof-grid span {
  color: var(--muted-ink);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 56px;
  align-items: start;
}

.service-panel {
  border-left: 6px solid var(--accent);
  background: var(--surface);
  padding: 30px 34px;
  box-shadow: 0 18px 44px var(--soft-shadow);
}

.service-panel ul,
.check-list,
.document-list {
  padding-left: 22px;
}

.service-panel li,
.check-list li,
.document-list li {
  margin-bottom: 10px;
}

.section-heading {
  margin-bottom: 34px;
}

.tile-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tile-grid article,
.faq-grid article {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 28px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding-left: 0;
  counter-reset: step;
  list-style: none;
}

.steps li {
  display: block;
  min-height: 142px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  counter-increment: step;
}

.steps li::before {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 900;
  content: counter(step);
}

.credential-panel {
  border-left: 6px solid var(--accent-2);
  background: var(--surface);
  padding: 30px 34px;
  align-self: center;
  box-shadow: 0 18px 44px var(--soft-shadow);
}

.certificate {
  margin: 0 0 24px;
}

.certificate img {
  width: 128px;
  margin-bottom: 18px;
}

.certificate figcaption {
  color: var(--muted-ink);
  font-weight: 700;
}

.credential-list {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.credential-list p {
  margin: 0;
}

.credential-list strong,
.credential-list span {
  display: block;
}

.credential-list span {
  color: var(--muted-ink);
}

.price-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 18px;
}

.price-list strong {
  white-space: nowrap;
}

.document-list {
  border-left: 6px solid var(--accent);
  background: var(--surface);
  padding: 30px 34px 30px 56px;
}

.advice-home-panel {
  border-left: 6px solid var(--accent);
  background: var(--surface);
  padding: 30px 34px;
  box-shadow: 0 18px 44px var(--soft-shadow);
}

.advice-link-list {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.advice-link-list a {
  color: var(--ink);
  font-weight: 800;
}

.advice-toolbar {
  display: grid;
  gap: 18px;
  margin: 26px 0 28px;
}

.advice-search {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px 16px;
  color: var(--ink);
  font: inherit;
}

.advice-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.advice-filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 13px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.advice-filter.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.advice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.advice-coming-soon {
  margin-top: 52px;
}

.advice-coming-soon h2 {
  margin-bottom: 22px;
}

.advice-card {
  position: relative;
  display: flex;
  min-height: 240px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.advice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px var(--soft-shadow);
}

.advice-card--coming-soon,
.advice-card--coming-soon:hover {
  cursor: default;
  transform: none;
  box-shadow: none;
}

.advice-card[hidden] {
  display: none;
}

.advice-card h2,
.advice-card h3 {
  font-family: Avenir Next, Trebuchet MS, Verdana, sans-serif;
  font-size: 21px;
  line-height: 1.22;
}

.advice-card > .pill:first-child {
  margin-bottom: 16px;
}

.advice-card p {
  color: var(--muted-ink);
}

.advice-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
}

.card-link::after {
  position: absolute;
  inset: 0;
  content: "";
}

.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted-ink);
  font-size: 13px;
  font-weight: 800;
}

.status-pill {
  color: var(--accent);
}

.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 -6px 16px var(--soft-shadow);
  padding: 7px 16px;
  backdrop-filter: blur(10px);
}

.cookie-banner p {
  margin: 0;
  overflow: hidden;
  color: var(--muted-ink);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
}

.cookie-button,
.cookie-close {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.cookie-button {
  padding: 3px 10px;
}

.cookie-button--primary {
  border-color: transparent;
  background: var(--primary);
  color: var(--accent-ink);
}

.cookie-close {
  width: 28px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 720px) {
  .cookie-banner {
    gap: 7px;
    padding: 6px 8px;
  }

  .cookie-banner p {
    font-size: 12px;
  }

  .cookie-actions {
    gap: 6px;
  }

  .cookie-button {
    padding: 3px 8px;
  }
}

.footer-link,
.text-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.footer-link:hover,
.text-button:hover {
  text-decoration: underline;
}

.advice-empty {
  margin-top: 20px;
  color: var(--muted-ink);
  font-weight: 800;
}

.advice-empty[hidden] {
  display: none;
}

.article-layout {
  display: block;
}

.article-container {
  max-width: 860px;
}

.article-body {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 34px 38px;
}

.article-body h2 {
  margin-top: 30px;
  font-size: 28px;
}

.article-summary {
  margin-bottom: 28px;
}

.article-summary h2 {
  margin-top: 0;
}

.article-body ul {
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
}

.article-callout,
.article-placeholder {
  border-left: 6px solid var(--accent);
  background: var(--surface-strong);
  padding: 24px 28px;
}

.article-placeholder {
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
}

.contact-section {
  background: var(--surface);
}

.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--surface-strong);
}

.contact-form label {
  display: block;
  margin: 16px 0 7px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted-ink);
  font-size: 14px;
}

.field-error {
  min-height: 20px;
  margin: 5px 0 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.form-status {
  margin: 14px 0 0;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.form-status.is-error {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-wrap {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-wrap p {
  margin: 0;
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 24px, var(--max-width));
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    padding: 52px 0;
  }

  .compact-hero {
    padding: 32px 0;
  }

  .compact-hero h1,
  .article-hero h1,
  .advice-page-section h1 {
    font-size: 34px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-portrait {
    max-width: 420px;
  }

  .hero-portrait img {
    aspect-ratio: 4 / 3;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 31px;
  }

  .lead {
    font-size: 18px;
  }

  .section {
    padding: 46px 0;
  }

  .proof-grid,
  .two-column,
  .tile-grid,
  .faq-grid,
  .steps,
  .advice-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .proof-grid div,
  .proof-grid div:last-child {
    min-height: auto;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 20px;
  }

  .proof-grid div:last-child {
    border-bottom: 0;
  }

  .two-column {
    gap: 30px;
  }

  .price-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .steps li {
    min-height: auto;
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px;
  }

  .steps li::before {
    margin-bottom: 0;
  }

  .credential-panel {
    align-self: stretch;
  }

  .article-body {
    padding: 26px;
  }

  .article-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .advice-page-section {
    padding: 32px 0 44px;
  }
}
