/* ============================================================
   pronajembytujihlava.cz — styles
   ----------------------------------------------------------
   1. Design tokens
   2. Base / reset
   3. Layout primitives (container, section)
   4. Skip link
   5. Header / nav
   6. Hero
   7. Sections (benefits, timeline, metrics, reviews, profile)
   8. Form
   9. FAQ
   10. Footer
   11. Reveal animation
   12. Responsive
   13. Reduced motion
   ============================================================ */

/* 1. Design tokens
   ----------------------------------------------------------- */
:root {
  --bg-primary: #f6f3ee;
  --bg-card: #fefdfb;
  --border: #e8e4dd;
  --border-light: #d9d3cb;
  --text-primary: #1a1a18;
  --text-secondary: #6b6560;
  --text-muted: #8b857f; /* darkened from spec #B5AFA8 for WCAG AA contrast */
  --accent: #2d5a3d;
  --accent-hover: #1e4230;
  --accent-light: #e8f0ea;
  --shadow-soft: 0 22px 60px rgba(52, 43, 31, 0.08);
  --shadow-card: 0 12px 30px rgba(52, 43, 31, 0.05);
  --container: 960px;
  --container-narrow: 640px;
  --radius-card: 12px;
  --radius-form: 16px;
  --radius-pill: 999px;
}

/* 2. Base / reset
   ----------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(45, 90, 61, 0.06), transparent 30%),
    radial-gradient(circle at 90% -5%, rgba(217, 211, 203, 0.45), transparent 28%),
    var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

/* 3. Layout primitives
   ----------------------------------------------------------- */
.page-shell {
  position: relative;
  overflow: clip;
}

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

.container.narrow {
  width: min(100%, var(--container-narrow));
}

.section {
  padding: 48px 0;
}

/* 4. Skip link
   ----------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* 5. Header / nav
   ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(246, 243, 238, 0.85);
  border-bottom: 1px solid rgba(232, 228, 221, 0.7);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
  min-height: 72px;
}

.brand {
  font-family: "DM Serif Display", serif;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}

.brand-logo img {
  display: block;
  width: auto;
  max-width: min(54vw, 240px);
  height: clamp(34px, 5vw, 48px);
  object-fit: contain;
}

.nav-right {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  flex: 0 0 auto;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-phone svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.nav-phone:hover,
.nav-phone:focus-visible {
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(45, 90, 61, 0.18);
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: rgba(45, 90, 61, 0.08);
  border-color: var(--accent);
}

/* 6. Hero
   ----------------------------------------------------------- */
.hero {
  padding-top: 48px;
  padding-bottom: 64px;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.kicker,
.section-kicker,
.field-group label,
.panel-overline {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.08;
  max-width: 20ch;
}

h1 span {
  color: var(--accent);
}

h2 {
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.12;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
}

.hero-text {
  margin: 22px 0 0;
  max-width: 34rem;
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.hero-actions {
  margin-top: 32px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.hero-side {
  padding: 24px 24px 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-card);
}

.panel-overline {
  margin-bottom: 18px;
}

.hero-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.hero-side-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
}

.hero-side-list li + li {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.hero-side-list svg {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.hero-side-list strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}

.hero-side-list span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Button */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 36px;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(45, 90, 61, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.button-full {
  width: 100%;
}

.button[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

/* 7. Sections
   ----------------------------------------------------------- */
.section-heading {
  margin-bottom: 32px;
}

.section-heading-slim {
  max-width: 720px;
}

.section-heading.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
}

.section-lead {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.benefit-card {
  padding: 28px 26px;
}

.benefit-card h3 {
  margin-top: 20px;
  font-size: 22px;
  line-height: 1.2;
}

.benefit-card p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.icon-wrap {
  width: 40px;
  height: 40px;
  color: var(--accent);
}

.icon-wrap svg,
.success-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Timeline */
.timeline-section {
  background: linear-gradient(180deg, rgba(232, 240, 234, 0.0), rgba(232, 240, 234, 0.35), rgba(232, 240, 234, 0.0));
}

.timeline-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  align-items: stretch;
  position: relative;
}

.timeline-step {
  position: relative;
  padding: 24px 22px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.timeline-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  margin-bottom: 14px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.timeline-step-accent {
  background: linear-gradient(180deg, rgba(232, 240, 234, 0.85), rgba(254, 253, 251, 0.95));
  border-color: rgba(45, 90, 61, 0.18);
}

.timeline-step-accent .timeline-number {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.timeline-step h3 {
  font-size: 19px;
  line-height: 1.25;
}

.timeline-step p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Kalkulačka nájmu — jemné odlišení od kontaktního formuláře pod ní */
.calc-section {
  background: linear-gradient(180deg, rgba(232, 240, 234, 0), rgba(232, 240, 234, 0.35), rgba(232, 240, 234, 0));
}

/* Teaser na homepage → odkazuje na samostatnou LP kalkulacka-najmu.html.
   Selektor .section.calc-teaser-section má specificitu (0,2,0), aby přebil
   pozdější responzivní re-deklarace .section (56px/32px) — jinak by kolem
   kompaktního teaseru zůstaly mezery jako u plnohodnotné sekce. */
.section.calc-teaser-section {
  padding: 8px 0;
}

.calc-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 28px 32px;
}

.calc-teaser h2 {
  font-size: clamp(24px, 3.2vw, 30px);
  line-height: 1.15;
}

.calc-teaser-text {
  margin: 8px 0 0;
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.calc-teaser .button {
  flex: 0 0 auto;
}

/* Hero LP kalkulačky — .section.calc-hero kvůli specificitě (viz teaser) */
.section.calc-hero {
  padding-bottom: 8px;
  text-align: center;
}

.calc-hero h1 {
  margin: 0 auto;
}

.calc-hero .section-lead {
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

.calc-hero .hero-trust {
  justify-content: center;
}

.section.calc-form-section {
  padding-top: 24px;
}

/* Odkaz v navigaci */
.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent);
}

/* 360° tour */
.tour-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.tour-copy .section-heading {
  margin-bottom: 24px;
}

.tour-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.tour-benefits li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.tour-benefits li strong {
  color: var(--text-primary);
}

.tour-benefits a {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s ease;
}

.tour-benefits a:hover,
.tour-benefits a:focus-visible {
  color: var(--accent-hover);
}

.tour-benefits svg {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.tour-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(45, 90, 61, 0.1), rgba(232, 240, 234, 0.55)),
    var(--bg-card);
  box-shadow: var(--shadow-card);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.tour-visual-inner {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
}

.tour-visual-inner svg {
  width: 96px;
  height: 96px;
  margin-bottom: 8px;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.tour-visual-inner strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.tour-visual-inner span {
  font-size: 14px;
  color: var(--text-secondary);
}

.tour-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 720px) {
  .tour-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 40px;
  }
}

/* Metrics */
.metrics-section {
  padding: 12px 0;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metric {
  text-align: center;
}

.metric strong {
  display: block;
  font-family: "DM Serif Display", serif;
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
}

.metric span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}

.review-card {
  padding: 28px 26px;
  position: relative;
}

.quote-icon {
  width: 32px;
  height: 32px;
  color: var(--border-light);
  stroke: currentColor;
  stroke-width: 1.6;
  fill: currentColor;
}

.review-text {
  margin: 18px 0 24px;
  font-size: 16px;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-secondary);
}

.review-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.review-footer strong {
  display: block;
  font-weight: 700;
  font-size: 15px;
}

.review-footer span {
  display: block;
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 13px;
}

.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 auto;
}

/* 8. Form
   ----------------------------------------------------------- */
.form-shell {
  max-width: 600px;
  margin: 0 auto;
  padding: 36px 32px 32px;
  border-radius: var(--radius-form);
}

.lead-form {
  display: grid;
  gap: 20px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field-group label {
  display: block;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  margin-top: 10px;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 15px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: #a5a098;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
}

.field-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.55;
}

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

.form-feedback {
  margin: -4px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.form-feedback.is-error {
  color: #8a3d2f;
}

.form-note {
  margin: -8px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.success-state {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 24px 0 8px;
  text-align: center;
  animation: fade-in 0.45s ease;
}

.success-icon {
  width: 72px;
  height: 72px;
  padding: 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-light);
  color: var(--accent);
}

.success-state h3 {
  font-size: 26px;
}

.success-state p {
  margin: 0;
  max-width: 30ch;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Thank-you page */
.thanks-section {
  padding: 80px 0 96px;
}

.thanks-card {
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
  padding: 48px 28px 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.thanks-icon {
  width: 96px;
  height: 96px;
  padding: 18px;
  border-radius: var(--radius-pill);
  background: var(--accent-light);
  color: var(--accent);
}

.thanks-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.thanks-headline {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 44px);
  line-height: 1.12;
}

.thanks-lead {
  margin: 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.thanks-lead strong {
  color: var(--text-primary);
}

.thanks-contact {
  margin-top: 8px;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.thanks-contact-label {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.thanks-phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(45, 90, 61, 0.18);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.thanks-phone-pill:hover,
.thanks-phone-pill:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.thanks-phone-pill svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.thanks-back {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.thanks-back:hover,
.thanks-back:focus-visible {
  color: var(--accent);
}

/* 9. FAQ
   ----------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-toggle:hover {
  background: rgba(232, 240, 234, 0.4);
}

.faq-arrow {
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.25s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.faq-item.is-open .faq-arrow {
  transform: rotate(180deg);
}

/* Profile */
.profile-section {
  padding-bottom: 72px;
}

.profile-card {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-form);
  box-shadow: var(--shadow-card);
}

.profile-photo {
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: linear-gradient(145deg, rgba(45, 90, 61, 0.18), rgba(217, 211, 203, 0.7));
  color: var(--accent);
}

.profile-photo svg {
  width: 70px;
  height: 70px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-copy {
  flex: 1 1 280px;
}

.profile-copy h3 {
  font-size: 22px;
}

.profile-copy > p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 15px;
}

.profile-role {
  margin: 6px 0 12px !important;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent) !important;
}

.profile-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px !important;
  font-size: 12px !important;
  color: var(--text-muted) !important;
}

.profile-meta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.profile-contact {
  margin: 4px 0 14px !important;
  font-size: 15px !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.profile-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s ease;
}

.profile-contact a:hover,
.profile-contact a:focus-visible {
  color: var(--accent-hover);
}

.profile-contact svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* 10. Footer
   ----------------------------------------------------------- */
/* Footer vista — thin Jihlava photo band above footer for visual breath */
.footer-vista {
  position: relative;
  height: 200px;
  background-image: url('assets/jihlava-aerial.jpg');
  background-size: cover;
  background-position: center 40%;
  background-color: var(--accent-light);
  overflow: hidden;
  isolation: isolate;
}

.footer-vista::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 60px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 100%);
  pointer-events: none;
}

.footer-vista::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 60px;
  background: linear-gradient(0deg, var(--bg-primary) 0%, transparent 100%);
  pointer-events: none;
}

.site-footer {
  padding: 8px 0 28px;
}

.site-footer .container {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-brand {
  font-size: 16px;
}

.footer-email {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-email:hover,
.footer-email:focus-visible {
  color: var(--accent);
}

.site-footer p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-tenant-note {
  margin: 0 0 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.footer-tenant-note a {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-tenant-note a:hover,
.footer-tenant-note a:focus-visible {
  color: var(--accent-hover);
}

.footer-link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--accent);
}

/* Legal page (ochrana osobních údajů) */
.legal-section {
  padding: 56px 0 72px;
}

.legal-section h1 {
  font-size: clamp(32px, 4.4vw, 44px);
  line-height: 1.12;
}

.legal-updated {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.legal-section h2 {
  margin-top: 36px;
  font-size: 22px;
  line-height: 1.25;
}

.legal-section p,
.legal-section li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-section p {
  margin: 12px 0 0;
}

.legal-section ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-section li + li {
  margin-top: 6px;
}

.legal-section a {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s ease;
}

.legal-section a:hover,
.legal-section a:focus-visible {
  color: var(--accent-hover);
}

.legal-back {
  margin-top: 40px !important;
}

/* 11. Reveal animation
   ----------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease var(--delay, 0s),
    transform 0.7s ease var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 12. Responsive
   ----------------------------------------------------------- */
@media (min-width: 720px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 36px;
  }

  .hero-text {
    font-size: 20px;
  }

  .benefit-card p,
  .review-text,
  .faq-answer p {
    font-size: 17px;
  }

  .section-lead {
    font-size: 17px;
  }

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

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

@media (min-width: 980px) {
  .hero {
    padding-top: 60px;
  }

  .timeline-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  /* Horizontal connector line — pseudo on each step except last, sitting at vertical center of circle */
  .timeline-step::after {
    content: "";
    position: absolute;
    top: calc(24px + 22px - 1px); /* padding-top + half of circle - half of line */
    left: calc(22px + 44px + 8px); /* padding-left + circle width + small gap */
    right: -16px; /* extend through the grid gap (matches timeline gap) */
    height: 2px;
    background: var(--border-light);
    z-index: 0;
  }

  .timeline-step:last-child::after {
    display: none;
  }
}

@media (max-width: 719px) {
  .section {
    padding: 32px 0;
  }

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

  .hero.section {
    padding: 24px 0 28px;
  }

  .hero-grid {
    gap: 20px;
  }

  .kicker,
  .section-kicker,
  .panel-overline {
    margin-bottom: 10px;
  }

  .hero-text {
    margin-top: 14px;
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-trust {
    margin-top: 18px;
  }

  .metrics-section {
    padding: 8px 0;
  }

  .metrics-strip {
    gap: 14px;
    padding: 16px 20px;
  }

  .metric strong {
    font-size: 26px;
  }

  .metric span {
    margin-top: 6px;
  }

  .benefits-grid,
  .timeline-grid,
  .reviews-grid {
    gap: 12px;
  }

  .benefit-card,
  .review-card {
    padding: 22px 20px;
  }

  .timeline-step {
    padding: 20px 20px 18px;
  }

  .benefit-card h3 {
    margin-top: 14px;
  }

  .benefit-card p {
    margin-top: 8px;
  }

  .timeline-number {
    margin-bottom: 10px;
  }

  .footer-vista {
    height: 160px;
  }

  .thanks-section {
    padding: 40px 0 56px;
  }

  .thanks-card {
    padding: 36px 22px 32px;
    gap: 18px;
  }

  .thanks-icon {
    width: 76px;
    height: 76px;
    padding: 14px;
  }

  .site-header {
    position: static;
  }

  .nav-bar {
    min-height: 60px;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 0;
  }

  .brand-logo {
    flex: 1 1 100%;
  }

  .brand-logo img {
    max-width: min(60vw, 220px);
    height: 34px;
  }

  .nav-right {
    flex: 1 1 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .nav-phone {
    font-size: 15px;
    gap: 6px;
  }

  .nav-phone svg {
    width: 16px;
    height: 16px;
  }

  .nav-cta {
    padding: 0 14px;
    min-height: 36px;
    font-size: 11px;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }

  /* Na mobilu odkaz z navigace pryč — kalkulačku najde v teaseru na stránce */
  .nav-link {
    display: none;
  }

  .calc-teaser {
    padding: 24px 20px;
  }

  .calc-teaser .button {
    width: 100%;
  }

  .hero {
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .hero-side {
    padding: 22px 22px 20px;
  }

  .benefit-card,
  .review-card {
    padding: 28px 24px;
  }

  .form-shell {
    padding: 28px 22px 24px;
  }

  .profile-card {
    padding: 24px 22px;
    gap: 20px;
  }

  .profile-photo {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
  }

  .profile-photo svg {
    width: 56px;
    height: 56px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* 13. Reduced motion
   ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
