:root {
  color-scheme: light;
  --ink: #263a36;
  --muted: #64736d;
  --accent: #52745f;
  --paper: #fffefa;
  --line: #e3e8e2;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #304b3b;
}

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 2;
  padding: 0.6rem 1rem;
  color: #fff;
  background: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 1.1rem;
}

.site-header nav a {
  color: var(--ink);
  font-size: 0.925rem;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

main {
  min-height: 65vh;
}

.content {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1rem, 3vw, 2rem);
}

.content h1,
.content h2,
.content h3,
.content h4 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
}

.content h1 {
  margin-block: 0.25rem 0.35rem;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  text-align: center;
}

.content h2 {
  margin-block: 0.85rem 0.35rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  text-align: center;
}

.content h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.content section {
  padding-block: clamp(0.35rem, 1vw, 0.8rem);
}

.content .columns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}

.content .column {
  min-width: 0;
  flex: 1 1 18rem;
}

.content img,
.content video {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.content img {
  max-height: 340px;
  width: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 4px 14px rgba(38, 58, 54, 0.08);
}

.content img.hero-image {
  width: 100%;
}

.content .clover-mark {
  display: block;
  width: 90px;
  height: 90px;
  margin-inline: auto;
}

img[src*="ctyrlistek"] {
  max-width: 90px !important;
  height: auto !important;
  margin: 0 auto 0.6rem !important;
  opacity: 0.92;
  transition: transform 0.3s ease;
}

img[src*="ctyrlistek"]:hover {
  transform: scale(1.08);
}

img[src*="Zena_v_zari"] {
  max-height: 440px !important;
}

.content figure {
  max-width: 100%;
  margin: 1.25rem auto;
}

.content iframe {
  width: 100%;
  max-width: 100%;
  height: 280px;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.content p {
  max-width: 72ch;
  margin-inline: auto;
}

.content #cmplz-document ul,
.content.privacy-policy ul {
  max-width: 72ch;
  margin-inline: auto;
  padding-inline-start: 1.5rem;
}

.form-notice {
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--accent);
  background: #f0f4ef;
  font-size: 0.925rem;
}

.content fieldset:disabled {
  border: 0;
  opacity: 0.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  max-width: 660px;
  margin: 1.25rem auto 1.75rem;
}

.service-grid > img {
  display: none;
}

.service-grid > a {
  position: relative;
  display: flex;
  min-height: 160px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.4rem;
  border: 1px solid var(--line);
  box-shadow: 0 3px 10px rgba(38, 58, 54, 0.04);
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-grid > a:nth-of-type(1) {
  border-color: #d8e5d3;
  border-radius: 2.5rem 0.5rem 0.5rem 0.5rem;
  background: linear-gradient(135deg, #f7faf3, #fff);
}

.service-grid > a:nth-of-type(2) {
  border-color: #e5def0;
  border-radius: 0.5rem 2.5rem 0.5rem 0.5rem;
  background: linear-gradient(135deg, #f9f7fb, #fff);
}

.service-grid > a:nth-of-type(3) {
  border-color: #f2dcde;
  border-radius: 0.5rem 0.5rem 0.5rem 2.5rem;
  background: linear-gradient(135deg, #fcf6f7, #fff);
}

.service-grid > a:nth-of-type(4) {
  border-color: #d7e8eb;
  border-radius: 0.5rem 0.5rem 2.5rem 0.5rem;
  background: linear-gradient(135deg, #f5fafb, #fff);
}

.service-grid > a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(38, 58, 54, 0.12);
}

.service-grid > a:nth-of-type(1):hover {
  border-color: #82a578;
  background: #f0f7ea;
}

.service-grid > a:nth-of-type(2):hover {
  border-color: #a48fbe;
  background: #f2ecf8;
}

.service-grid > a:nth-of-type(3):hover {
  border-color: #cf8d97;
  background: #fbebed;
}

.service-grid > a:nth-of-type(4):hover {
  border-color: #6da2ab;
  background: #eaf4f6;
}

.service-grid center {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.45;
}

.service-grid > a::after {
  display: inline-block;
  margin-top: 0.55rem;
  color: var(--accent);
  content: "→";
  font-size: 1rem;
  opacity: 0.45;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.service-grid > a:hover::after {
  transform: translateX(4px);
  opacity: 1;
}

.service-extra h2 {
  margin-block: 0.4rem;
  font-size: 1rem;
}

.service-list > .columns {
  flex-wrap: nowrap;
  gap: 0.4rem;
}

.service-list .column {
  flex: 1 1 0;
  text-align: center;
}

.service-list .column > div {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.button-wrap {
  margin: 0.9rem 0;
  text-align: center;
}

.button-wrap a {
  display: inline-block;
  padding: 0.55rem 1.35rem;
  border-radius: 2rem;
  background: linear-gradient(110deg, #ad1457, #7d4ca5);
  box-shadow: 0 3px 10px rgba(125, 50, 120, 0.22);
  color: #fff !important;
  font-size: 0.925rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button-wrap a:hover {
  transform: translateY(-2px);
  background: linear-gradient(110deg, #8f1049, #633986);
  box-shadow: 0 6px 16px rgba(105, 40, 115, 0.32);
  color: #fff !important;
}

.hero-roles h3 {
  margin: 0.25rem 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 400;
  text-align: center;
}

.hero-roles h3 span span {
  display: inline-block;
  padding: 0.15rem 0.35rem;
}

.hero-roles h3 span span:not(:last-child)::after {
  margin-left: 0.7rem;
  color: var(--accent);
  content: "·";
  font-weight: 700;
}

.post-grid [role="list"] {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
  margin: 1.25rem 0;
  padding: 0;
}

.post-grid [role="listitem"] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-grid [role="listitem"]:hover {
  transform: translateY(-3px);
  border-color: #cdd8cc;
  box-shadow: 0 8px 20px rgba(38, 58, 54, 0.08);
}

.post-grid [role="listitem"] > a:first-child {
  display: block;
  overflow: hidden;
  background: #f4f6f3;
}

.post-grid [role="listitem"] img {
  width: 100% !important;
  height: 135px !important;
  max-height: 135px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none;
  object-fit: cover !important;
  transition: transform 0.35s ease;
}

.post-grid [role="listitem"]:hover img {
  transform: scale(1.04);
}

.post-grid [role="listitem"] h3 {
  margin: 0.75rem 0.85rem 0.3rem;
  font-family: Georgia, serif;
  font-size: 0.975rem;
  line-height: 1.35;
  text-align: left;
}

.post-grid [role="listitem"] h3 a {
  color: var(--ink);
  text-decoration: none;
}

.post-grid [role="listitem"] h3 a:hover {
  color: var(--accent);
}

.post-grid [role="listitem"] p {
  flex-grow: 1;
  margin: 0 0.85rem 0.65rem;
  color: var(--muted);
  font-size: 0.835rem;
  line-height: 1.45;
}

.post-grid [role="listitem"] a[aria-label*="Read more"],
.post-grid [role="listitem"] a[aria-label*="článek"] {
  display: inline-block;
  margin: 0 0.85rem 0.4rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
}

.post-grid [role="listitem"] a[aria-label*="Read more"]:hover,
.post-grid [role="listitem"] a[aria-label*="článek"]:hover {
  text-decoration: underline;
}

.post-grid [role="listitem"] span {
  display: block;
  margin: 0 0.85rem 0.75rem;
  color: #92a09b;
  font-size: 0.76rem;
}

.testimonial-grid [role="region"] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin: 1.15rem 0;
}

.testimonial-grid [role="group"] {
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0.5rem;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-grid [role="group"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(38, 58, 54, 0.06);
}

.testimonial-grid [role="group"] a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--ink);
  text-decoration: none;
}

.testimonial-grid [role="group"] a > div:first-child {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 0.975rem;
  font-weight: 600;
}

.testimonial-grid [role="group"] a > div:last-child {
  color: var(--muted);
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.5;
}

.testimonial-grid [role="button"] {
  display: none !important;
}

.image-gallery [role="region"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.image-gallery figure {
  margin: 0;
}

.image-gallery img {
  border: 1px solid var(--line);
  border-radius: 0.4rem;
}

.blog-post > header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.post-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 1.75rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.925rem;
  text-align: center;
}

@media (max-width: 1024px) {
  .post-grid [role="list"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
  }

  .site-header nav {
    justify-content: flex-start;
    gap: 0.35rem 0.9rem;
  }

  .content .columns {
    display: block;
  }

  .content .column {
    margin-bottom: 1rem;
  }

  .service-list > .columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .testimonial-grid [role="region"] {
    grid-template-columns: 1fr;
  }

  .content img {
    max-height: 280px;
  }
}

@media (max-width: 580px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .service-grid > a {
    min-height: auto;
    padding: 1.25rem 1rem;
    border-radius: 0.75rem !important;
  }

  .post-grid [role="list"] {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
