:root {
  --ink: #102019;
  --green: #20382c;
  --green-2: #2f4a3b;
  --cream: #f6efe4;
  --paper: #fffaf1;
  --sand: #eadfce;
  --muted: #5d635c;
  --line: rgba(32, 56, 44, 0.18);
  --shadow: 0 20px 60px rgba(32, 56, 44, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

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

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

h1,
h2,
h3,
.brand {
  font-family: Georgia, "Times New Roman", serif;
}

.hero {
  position: relative;
  min-height: 650px;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(246, 239, 228, 0.98) 0%, rgba(246, 239, 228, 0.9) 35%, rgba(246, 239, 228, 0.36) 62%, rgba(246, 239, 228, 0.08) 100%),
    linear-gradient(180deg, rgba(246, 239, 228, 0.2), rgba(246, 239, 228, 0.92)),
    url("vit_cejka_terapie_mistnost_1.png") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 auto;
  width: min(58vw, 760px);
  background: url("profilovka.png") center right / cover no-repeat;
  content: "";
  opacity: 0.82;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 88%, transparent 100%);
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 12px;
}

.brand {
  color: var(--green);
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
}

.nav-links {
  position: absolute;
  top: 30px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(32, 56, 44, 0.16);
  border-radius: 7px;
  padding: 6px;
  background: rgba(255, 250, 241, 0.78);
  box-shadow: 0 10px 28px rgba(32, 56, 44, 0.1);
  color: #0b291c;
  font-size: 0.96rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 5px;
  padding: 6px 10px;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease;
}

.nav-chat svg {
  width: 1.04em;
  height: 1.04em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(32, 56, 44, 0.08);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 88px;
}

.eyebrow {
  margin: 0 0 26px;
  color: #15261d;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
}

.hero h1 {
  max-width: 540px;
  margin: 0;
  color: var(--green);
  font-size: clamp(2.9rem, 4.8vw, 4.65rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 520px;
  margin: 28px 0 0;
  color: #18261f;
  font-size: 1.06rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid rgba(32, 56, 44, 0.16);
  border-radius: 6px;
  padding: 0 22px;
  background: rgba(255, 250, 241, 0.9);
  box-shadow: 0 10px 28px rgba(32, 56, 44, 0.08);
  color: var(--ink);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(32, 56, 44, 0.16);
}

.button--primary {
  border-color: var(--green);
  background: var(--green);
  color: #fffaf1;
}

.icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-right: 10px;
}

.icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.values,
.intro-grid,
.testimonials,
.footer__grid,
.subfooter {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.values {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 46px 0 42px;
  background: var(--paper);
}

.values article {
  min-height: 130px;
  padding: 0 22px;
  text-align: center;
}

.values article + article {
  border-left: 1px solid var(--line);
}

.line-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 8px;
}

.line-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.values h2,
.intro-grid h2,
.experience h2,
.testimonials h2,
.footer h2 {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 1.65rem;
  line-height: 1.15;
}

.values h2 {
  margin-bottom: 4px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 900;
}

.values p {
  margin: 0;
  color: #36413a;
  font-size: 0.93rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 38px;
  padding: 78px 0 76px;
}

.intro-grid article + article {
  border-left: 1px solid var(--line);
  padding-left: 38px;
}

.intro-grid p {
  margin: 0 0 16px;
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1.7px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  content: "✓";
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

blockquote {
  margin: 34px 0 0;
  color: var(--green);
  font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  font-weight: 600;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.35;
}

.experience {
  display: grid;
  grid-template-columns: minmax(24px, 1fr) minmax(0, 410px) minmax(0, 710px) minmax(24px, 1fr);
  align-items: stretch;
  min-height: 520px;
  width: 100%;
  margin: 10px 0 0;
  background:
    linear-gradient(90deg, rgba(246, 239, 228, 0.92), rgba(246, 239, 228, 0.64) 42%, rgba(255, 250, 241, 0) 82%),
    linear-gradient(180deg, rgba(255, 250, 241, 0), rgba(246, 239, 228, 0.86) 12%, rgba(246, 239, 228, 0.86) 88%, rgba(255, 250, 241, 0));
}

.experience__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-column: 2;
  padding: 76px 36px 76px 0;
}

.experience__text ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.experience__text li + li {
  margin-top: 0;
}

.experience__photo {
  position: relative;
  grid-column: 3 / 5;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.experience__photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.experience__photo figcaption {
  position: absolute;
  right: 28px;
  top: 36px;
  width: min(260px, calc(100% - 56px));
  border-radius: 8px;
  padding: 26px 28px;
  background: rgba(255, 250, 241, 0.88);
  box-shadow: var(--shadow);
}

.experience__photo strong {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
}

.address-note {
  display: block;
  margin-top: 18px;
}

.testimonials {
  padding: 62px 0 70px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.quote-card {
  position: relative;
  min-height: 250px;
  border-radius: 8px;
  padding: 46px 24px 22px;
  background: #f4ecdfff;
  box-shadow: 0 1px 0 rgba(32, 56, 44, 0.04);
}

.quote-card::before {
  position: absolute;
  left: 24px;
  top: 10px;
  color: var(--green);
  content: "“";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 1;
}

.quote-card__text {
  position: relative;
  max-height: 142px;
  overflow: hidden;
  transition: max-height 220ms ease;
}

.quote-card.is-expanded .quote-card__text {
  max-height: 520px;
}

.quote-card.is-collapsed .quote-card__text::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 48px;
  background: linear-gradient(rgba(244, 236, 223, 0), #f4ecdf);
  content: "";
}

.quote-card p {
  margin: 0 0 22px;
}

.quote-more {
  border: 0;
  border-bottom: 1px solid currentColor;
  margin: 2px 0 18px;
  padding: 0 0 2px;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 900;
}

.quote-card h3 {
  margin: 0;
  font-family: inherit;
  font-size: 1rem;
}

.quote-card span {
  display: block;
  color: var(--muted);
}

.footer {
  background:
    radial-gradient(circle at 100% 100%, rgba(246, 239, 228, 0.12), transparent 34%),
    linear-gradient(90deg, #193126, #294634);
  color: #fffaf1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.28fr 1fr;
  gap: 46px;
  padding: 52px 28px 50px;
}

.footer__grid section + section {
  border-left: 1px solid rgba(255, 250, 241, 0.3);
  padding-left: 46px;
}

.footer h2 {
  color: #fffaf1;
}

.footer p,
.footer a {
  display: block;
  margin: 0 0 12px;
  color: rgba(255, 250, 241, 0.9);
}

.footer a:hover,
.footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.map-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
}

.map-link svg {
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  margin-top: 0.2em;
  fill: currentColor;
}

.footer-message {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 250, 241, 0.42);
  border-radius: 999px;
  margin: 2px 0 0;
  padding: 9px 15px;
  background: rgba(255, 250, 241, 0.1);
  color: #fffaf1;
  font-weight: 800;
}

.footer-message svg {
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.footer .footer-message:hover,
.footer .footer-message:focus-visible {
  background: rgba(255, 250, 241, 0.18);
  text-decoration: none;
}

.footer .pdf-link {
  display: inline;
  margin: 0;
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.signature {
  margin-top: 18px;
  font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  font-weight: 600;
  font-size: 1.6rem;
}

.subfooter {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding: 20px 32px;
  color: rgba(32, 32, 24, 0.72);
  -webkit-text-fill-color: rgba(32, 32, 24, 0.72);
  background: #efe5d6;
  font-size: 0.86rem;
}

.subfooter a,
.subfooter span {
  color: inherit;
  -webkit-text-fill-color: currentColor;
}

.subfooter span:nth-child(2) {
  text-align: center;
}

.subfooter span:nth-child(3) {
  text-align: right;
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(246, 239, 228, 0.94), rgba(246, 239, 228, 0.88)),
      url("vit_cejka_terapie_mistnost_1.png") center / cover no-repeat;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .nav-links {
    position: static;
    flex-wrap: wrap;
  }

  .hero__content {
    padding-bottom: 58px;
  }

  .values {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 26px;
  }

  .values article {
    border-left: 0;
  }

  .values article + article {
    border-left: 0;
  }

  .intro-grid,
  .experience,
  .cards,
  .footer__grid,
  .subfooter {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    gap: 28px;
  }

  .experience {
    height: auto;
    width: min(100% - 48px, 1120px);
    margin: 10px auto 0;
    background: linear-gradient(180deg, rgba(246, 239, 228, 0), rgba(246, 239, 228, 0.86) 12%, rgba(246, 239, 228, 0.86) 88%, rgba(255, 250, 241, 0));
  }

  .experience__text,
  .experience__photo {
    grid-column: auto;
  }

  .intro-grid article + article,
  .footer__grid section + section {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 28px;
  }

  .footer__grid section + section {
    border-color: rgba(255, 250, 241, 0.3);
  }

  .subfooter span,
  .subfooter span:nth-child(2),
  .subfooter span:nth-child(3) {
    text-align: left;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
    padding-bottom: 78px;
  }

  .topbar,
  .hero__content,
  .values,
  .intro-grid,
  .experience,
  .testimonials,
  .footer__grid,
  .subfooter {
    width: min(100% - 30px, 1120px);
  }

  .hero {
    border-bottom: 1px solid rgba(32, 56, 44, 0.08);
    background:
      linear-gradient(180deg, rgba(246, 239, 228, 0.98), rgba(246, 239, 228, 0.86) 58%, rgba(246, 239, 228, 0.98)),
      url("vit_cejka_terapie_mistnost_1.png") center / cover no-repeat;
  }

  .hero::after {
    top: 88px;
    right: -30px;
    bottom: auto;
    width: min(58vw, 230px);
    height: 280px;
    opacity: 0.34;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  }

  .topbar {
    padding: 20px 0 6px;
  }

  .brand {
    font-size: clamp(2.45rem, 14vw, 3.15rem);
  }

  .nav-links {
    position: fixed;
    z-index: 30;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    border-radius: 12px;
    padding: 6px;
    background: rgba(255, 250, 241, 0.92);
    box-shadow: 0 14px 34px rgba(16, 32, 25, 0.18);
    font-size: 0.78rem;
    backdrop-filter: blur(16px);
  }

  .nav-links a {
    justify-content: center;
    min-height: 44px;
    padding: 7px 5px;
    text-align: center;
  }

  .nav-chat {
    background: var(--green);
    color: #fffaf1;
  }

  .nav-chat svg {
    width: 1.15em;
    height: 1.15em;
  }

  .eyebrow {
    max-width: 250px;
    margin-bottom: 18px;
    font-size: 1rem;
  }

  .hero h1 {
    max-width: 330px;
    font-size: clamp(2.15rem, 11.5vw, 3rem);
  }

  .hero__lead {
    max-width: 330px;
    margin-top: 22px;
    font-size: 0.98rem;
  }

  .hero__content {
    padding-top: 12px;
    padding-bottom: 96px;
  }

  .hero__actions {
    display: grid;
    gap: 10px;
    margin-top: 24px;
  }

  .button {
    width: 100%;
    min-height: 54px;
    justify-content: flex-start;
    border-radius: 8px;
    padding: 0 18px;
  }

  .values {
    width: 100%;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 78vw);
    gap: 12px;
    overflow-x: auto;
    padding: 34px 15px 30px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .values::-webkit-scrollbar {
    display: none;
  }

  .values article {
    display: flex;
    min-height: 196px;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: center;
    border: 1px solid rgba(32, 56, 44, 0.1);
    border-radius: 8px;
    background: rgba(255, 250, 241, 0.8);
    min-height: auto;
    padding: 24px 18px;
    box-shadow: 0 10px 28px rgba(32, 56, 44, 0.07);
  }

  .values article + article {
    border-left: 1px solid rgba(32, 56, 44, 0.1);
  }

  .intro-grid {
    gap: 0;
    padding: 42px 0;
  }

  .intro-grid article {
    padding: 28px 0;
  }

  .intro-grid article:first-child {
    padding-top: 0;
  }

  .intro-grid article + article {
    border-top: 1px solid var(--line);
    padding-top: 28px;
  }

  .check-list {
    gap: 12px;
  }

  blockquote {
    margin-top: 24px;
    font-size: 2rem;
  }

  .experience {
    width: 100%;
    margin-top: 0;
    background: #f7f0e6;
  }

  .experience__text {
    width: min(100% - 30px, 1120px);
    margin: 0 auto;
    padding: 38px 0 30px;
  }

  .experience__text ul {
    gap: 12px;
  }

  .experience__photo {
    min-height: 0;
  }

  .experience__photo figcaption {
    position: static;
    width: min(100% - 30px, 1120px);
    margin: -44px auto 0;
    border-radius: 8px;
    padding: 22px;
    box-shadow: none;
  }

  .experience__photo img {
    height: 280px;
    min-height: 0;
    object-position: center;
  }

  .testimonials {
    padding: 44px 0 52px;
  }

  .cards {
    gap: 14px;
  }

  .quote-card {
    min-height: auto;
    border: 1px solid rgba(32, 56, 44, 0.08);
    padding: 44px 22px 22px;
  }

  .quote-card__text {
    max-height: 128px;
  }

  .footer__grid {
    gap: 0;
    padding: 42px 0;
  }

  .footer__grid section {
    padding: 0;
  }

  .footer__grid section + section {
    padding-top: 30px;
    margin-top: 28px;
  }

  .subfooter {
    gap: 8px;
    padding: 18px 16px;
    font-size: 0.8rem;
  }
}
