:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --ink: #162033;
  --muted: #61708a;
  --brand: #8a4a25;
  --brand-dark: #5f2f17;
  --card: #fffaf4;
  --line: #e6d7c6;
  --hero-start: #fff8ee;
  --hero-end: #f0dac2;
  --panel-shadow: #412b1a;
  --ok: #136f3a;
  --warn: #985d12;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.obce-admin-banner.hidden {
  display: none;
}

.obce-admin-banner p {
  margin: 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: #eef6ff;
  border: 1px solid #93c5fd;
  font-size: 0.95rem;
  line-height: 1.45;
}

.obce-admin-banner a {
  font-weight: 700;
  color: var(--brand-dark);
}

body.obce-pending::before {
  content: "Načítám stránku…";
  display: block;
  padding: 2rem clamp(18px, 5vw, 72px);
  color: var(--muted);
  font-weight: 600;
}

a {
  color: inherit;
}

.hero {
  padding: 24px clamp(18px, 5vw, 72px) 72px;
  background:
    radial-gradient(circle at top right, rgba(255, 209, 128, 0.45), transparent 32rem),
    linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%);
}

.topbar,
.hero-grid,
.section,
footer {
  max-width: 1180px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(150px, 18vw, 220px);
  height: auto;
}

.brand-text {
  font-size: 0;
  line-height: 1;
}

.toplinks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 700;
}

.toplinks a {
  text-decoration: none;
}

.ghost {
  padding: 10px 16px;
  border: 1px solid rgba(22, 32, 51, 0.16);
  border-radius: 999px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  letter-spacing: -0.06em;
}

h2 {
  max-width: 860px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.25rem;
}

.lead {
  max-width: 780px;
  color: #39465c;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.order-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  color: white;
  background: var(--brand);
  box-shadow: 0 18px 36px rgba(95, 47, 23, 0.18);
}

.btn.secondary {
  color: var(--brand-dark);
  background: #fff7ec;
  border: 1px solid var(--line);
}

.btn.secondary.danger {
  color: #8f1d2f;
  background: #fff1f2;
  border-color: rgba(143, 29, 47, 0.35);
}

.hero-card,
.panel,
.order-form,
.price-table,
.cards article,
.steps {
  background: rgba(255, 250, 244, 0.9);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  border: 1px solid rgba(138, 74, 37, 0.18);
  border-radius: 28px;
  box-shadow: 0 24px 60px color-mix(in srgb, var(--panel-shadow) 9%, transparent);
}

.hero-card {
  padding: 28px;
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.section {
  padding: 72px clamp(18px, 5vw, 0px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.cards article {
  padding: 24px;
}

.cards p,
.split p,
.price-section p,
.order-section p {
  color: var(--muted);
  line-height: 1.6;
}

.split,
.price-section,
.order-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 34px;
  align-items: start;
}

.steps {
  margin: 0;
  padding: 24px;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(138, 74, 37, 0.12);
  font-weight: 800;
}

.steps li:last-child {
  border-bottom: 0;
}

.steps span {
  display: inline-grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 999px;
}

.price-table,
.order-form,
.panel {
  padding: 24px;
}

.price-row,
.selected,
.order-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(138, 74, 37, 0.14);
}

.price-row:last-child,
.order-card:last-child {
  border-bottom: 0;
}

.price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--brand-dark);
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #d9c7b2;
  border-radius: 14px;
  font: inherit;
  color: var(--ink);
  background: white;
}

textarea {
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 700;
}

.check input {
  width: auto;
  margin-top: 4px;
}

.results {
  display: grid;
  gap: 8px;
  margin: -6px 0 14px;
}

.result-btn {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  background: #fff;
  cursor: pointer;
}

.result-btn strong {
  display: block;
}

.selected {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff8ec;
}

.status {
  margin: 12px 0 0;
  min-height: 1.5em;
  color: var(--muted);
  font-weight: 800;
}

.status.ok {
  color: var(--ok);
}

.status.error {
  color: #a22727;
}

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

.small {
  font-size: 0.9rem;
}

.admin {
  border-top: 1px solid rgba(138, 74, 37, 0.16);
  font-size: 0.92rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(360px, 0.95fr);
  gap: 22px;
  margin-top: 24px;
}

.admin .panel {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(24, 31, 44, 0.07);
}

.admin h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.admin h3 {
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.admin h4 {
  margin: 18px 0 10px;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin label {
  gap: 5px;
  margin-bottom: 9px;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 600;
}

.admin input,
.admin textarea,
.admin select {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.admin .btn {
  min-height: 36px;
  padding: 9px 13px;
  font-size: 0.86rem;
}

.admin-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.admin-editor-grid .wide {
  grid-column: 1 / -1;
}

.theme-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.theme-editor-grid input[type="color"] {
  min-height: 34px;
  padding: 3px;
}

.band-row {
  display: grid;
  grid-template-columns: 1fr 90px 90px 110px 120px 44px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.band-row button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  cursor: pointer;
}

.orders {
  margin-top: 18px;
}

.order-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.order-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #f6e5d2;
  font-size: 0.82rem;
  font-weight: 900;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 36px clamp(18px, 5vw, 0px) 56px;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.ico-verify-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}

.ico-verify-row input {
  flex: 1 1 140px;
  min-width: 0;
}

.ico-verify-field {
  grid-column: 1 / -1;
}

.ares-panel {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ares-panel--ok {
  border-color: rgba(19, 111, 58, 0.35);
  background: rgba(19, 111, 58, 0.06);
  color: var(--ok);
}

.ares-panel--warn {
  border-color: rgba(152, 93, 18, 0.35);
  background: rgba(152, 93, 18, 0.08);
  color: var(--warn);
}

.ares-badge {
  font-weight: 700;
}

.contact-email-field {
  grid-column: 1 / -1;
}

.contact-email-hint {
  margin: 6px 0 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(185, 28, 28, 0.35);
  background: rgba(185, 28, 28, 0.06);
  color: #9f1239;
  font-size: 0.92rem;
  line-height: 1.45;
}

.contact-email-field input.field-invalid {
  border-color: #b91c1c;
  box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.25);
}

@media (max-width: 860px) {
  .hero-grid,
  .split,
  .price-section,
  .order-section,
  .admin-grid,
  .cards,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 42px;
  }

  .band-row {
    grid-template-columns: 1fr 1fr;
  }
}
