/* Vzhled webu kubecek.eu */

:root {
  --bg: #f7f1e7;
  --surface: #fffdf8;
  --text: #18212b;
  --muted: #4f5a64;
  --primary: #173f5f;
  --primary-hover: #0f3049;
  --accent: #a65f2b;
  --accent-soft: #f2dfcf;
  --border: #d8c9b8;
  --focus: #7a2f00;
  --success-bg: #e7f5ea;
  --success-text: #174d24;
  --error-bg: #fdecec;
  --error-text: #7a1f1f;
  --shadow: 0 10px 28px rgba(24, 33, 43, 0.08);
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.16em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: 0.8rem 1rem;
  background: var(--text);
  color: white;
  border-radius: 8px;
}

.skip-link:focus { top: 1rem; }

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

header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(242, 223, 207, 0.14) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 31%, rgba(242, 223, 207, 0.10) 0 3px, transparent 4px),
    linear-gradient(135deg, #173f5f 0%, #234f6d 100%);
  background-size: auto, auto, auto;
  color: white;
  padding: 1.2rem 0 3.5rem;
}

header a { color: white; }

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border-radius: 12px;
  background: var(--surface);
}

.brand img {
  display: block;
  width: min(320px, 70vw);
  height: auto;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

nav a { font-weight: 650; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: 4rem;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 1.05;
}

.motto {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 700;
  margin: 0 0 1rem;
  color: #f5dfcc;
}

.hero-copy > p:not(.motto) {
  font-size: 1.14rem;
  max-width: 760px;
}

.hero-photo {
  margin: 0;
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
  background: var(--surface);
}

.hero-photo img,
.feature-image img,
.massage-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo img { aspect-ratio: 3 / 2; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  font-weight: 750;
  text-decoration: none;
  border: 2px solid transparent;
}

.button-primary {
  background: white;
  color: var(--primary);
}

.button-primary:hover {
  background: #f8efe6;
  color: var(--primary-hover);
}

.button-secondary {
  border-color: white;
  color: white;
}

.button-secondary:hover {
  background: rgba(255,255,255,.12);
  color: white;
}

main { padding: 3rem 0 5rem; }

section { scroll-margin-top: 1.5rem; }

.section {
  margin: 0 0 2rem;
  padding: clamp(1.3rem, 4vw, 2.4rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section h2 {
  margin-top: 0;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.2;
  color: var(--primary);
}

.section h3 {
  color: var(--accent);
  margin-top: 2rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.status {
  margin: 0 auto 2rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  font-weight: 750;
}

.status.success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 2px solid #88bf92;
}

.status.error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 2px solid #d99a9a;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fffaf4;
}

.card h3 { margin-top: 0; }

.feature-list {
  display: grid;
  gap: 1.5rem;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 2.5rem);
  align-items: center;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fffaf4;
}

.feature-row:nth-child(even) .feature-image { order: 2; }

.feature-row h3 { margin-top: 0; }

.feature-image,
.massage-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #e7eef4;
}

.feature-image img,
.massage-photo img { aspect-ratio: 3 / 2; }

.massage-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.2rem, 4vw, 2.5rem);
  align-items: center;
}

details.service-details {
  margin-top: 1.5rem;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: #fffaf4;
}

details.service-details > summary {
  padding: 1rem 1.2rem;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

details.service-details > summary:hover { color: var(--accent); }

details.service-details > summary:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}

.service-details-content { padding: 0 1.2rem 1.3rem; }

ul.clean { padding-left: 1.3rem; }

.notice {
  padding: 1rem 1.15rem;
  border-left: 6px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

caption {
  text-align: left;
  font-weight: 800;
  margin-bottom: 0.7rem;
  color: var(--primary);
}

th, td {
  border: 1px solid var(--border);
  padding: 0.8rem;
  text-align: left;
  vertical-align: top;
}

th { background: #e7eef4; }

.contact-links {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0;
}

.contact-links a {
  display: inline-block;
  width: fit-content;
  font-weight: 750;
}

form { margin-top: 1.4rem; }

.field { margin-bottom: 1rem; }

label {
  display: block;
  font-weight: 750;
  margin-bottom: 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  max-width: 760px;
  padding: 0.8rem;
  font: inherit;
  color: var(--text);
  background: white;
  border: 2px solid #9b8d7e;
  border-radius: 10px;
}

textarea {
  min-height: 10rem;
  resize: vertical;
}

button {
  padding: 0.85rem 1.15rem;
  font: inherit;
  font-weight: 800;
  background: var(--primary);
  color: white;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

button:hover { background: var(--primary-hover); }

.form-note {
  color: var(--muted);
  font-size: 0.96rem;
}

.required-note {
  margin-bottom: 1.25rem;
}

.required-marker {
  color: #7a1f1f;
  font-weight: 800;
}

.field-error[hidden] { display: none; }

.field-error {
  display: block;
  margin-top: 0.35rem;
  color: var(--error-text);
  font-weight: 750;
}

.error-summary {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  color: var(--error-text);
  background: var(--error-bg);
  border: 2px solid #d99a9a;
  border-radius: 12px;
}

.error-summary:focus {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}

.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;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-progress:empty { display: none; }

address { font-style: normal; }

footer {
  background: var(--text);
  color: white;
  padding: 2rem 0;
}

footer a { color: white; }

@media (max-width: 700px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav ul {
    flex-direction: column;
    gap: 0.45rem;
  }

  .hero-grid,
  .feature-row,
  .massage-intro {
    grid-template-columns: 1fr;
  }

  .hero-grid { padding-top: 2.4rem; }

  .feature-row:nth-child(even) .feature-image { order: initial; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Objednávky konzultací ---------- */

input[type="radio"],
input[type="checkbox"] {
  width: 1.6rem;
  height: 1.6rem;
  margin: 0.25rem 0 0;
  padding: 0;
  flex: none;
  accent-color: var(--primary);
}

fieldset {
  margin: 0 0 1.2rem;
  padding: 1rem 1.2rem 0.6rem;
  border: 2px solid var(--border);
  border-radius: 14px;
  max-width: 760px;
}

legend {
  padding: 0 0.4rem;
  font-weight: 800;
}

.choice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.choice label {
  margin: 0;
}

.choice-note {
  display: block;
  font-weight: 400;
  color: var(--muted);
}

.price-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.pay-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.2rem;
  border: 2px solid var(--primary);
  border-radius: 14px;
  background: white;
}

.pay-box dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1rem;
  align-items: center;
}

.pay-box dt { font-weight: 750; }
.pay-box dd { margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

.pay-qr { text-align: center; }
.pay-qr svg { display: block; width: 220px; height: 220px; }

.copy-button {
  padding: 0.35rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--text);
  border: 2px solid var(--accent);
}

.copy-button:hover { background: #ead1bd; }

.state {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-weight: 750;
  background: #e7eef4;
}

.state-zaplaceno { background: var(--success-bg); color: var(--success-text); }
.state-zruseno { background: var(--error-bg); color: var(--error-text); }
.state-ceka_na_platbu { background: var(--accent-soft); }

.page-header { padding: 1.2rem 0 1.6rem; }

.inline-form { display: inline; margin: 0; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1rem 0;
}

.button-quiet {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.button-quiet:hover { background: #e7eef4; color: var(--primary-hover); }

.button-danger { background: var(--error-text); }

.filter-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  list-style: none;
  padding: 0;
}

.filter-nav a[aria-current="page"] { font-weight: 800; color: var(--text); }

.items-table input { min-width: 6rem; }

@media (max-width: 700px) {
  .pay-box { grid-template-columns: 1fr; }
  .pay-box dl { grid-template-columns: 1fr; }
  .pay-box dt { margin-top: 0.4rem; }
}

@media print {
  header, footer, nav, .button-row, .copy-button, .skip-link { display: none !important; }
  body { background: white; }
  .section { box-shadow: none; border: 0; }
}

.button-solid {
  background: var(--primary);
  color: white;
}

.button-solid:hover { background: var(--primary-hover); color: white; }

.section h1 {
  margin-top: 0;
  color: var(--primary);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.section h1 ~ h2 { margin-top: 2.2rem; }

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  list-style: none;
  margin: 0.8rem 0;
  padding: 0;
}

.payment-logos li {
  display: flex;
  align-items: center;
  padding: 0.3rem 0.5rem;
  background: white;
  border-radius: 8px;
}

.payment-logos img {
  height: 32px;
  width: auto;
}

.payment-logos img.logo-tall {
  height: 56px;
  margin: -10px 0;
}

fieldset.subgroup {
  margin: 0.4rem 0 1rem;
  padding: 0.6rem 0.9rem 0.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}

fieldset.subgroup legend { font-weight: 750; }

th.table-group {
  background: var(--accent-soft);
  font-weight: 800;
}
