/* ==========================================================================
   NEZBEDY.CZ – hlavní styly
   Struktura: 1 Fonty · 2 Proměnné · 3 Reset · 4 Layout · 5 Hlavička
              6 Navigace · 7 Tlačítka · 8 Stránky „slovní hry“ · 9 Patička
              10 Pomocné třídy · 11 Landing page (Hra slov)
   ========================================================================== */

/* 1 Fonty (self-hosted, podmnožina latinky s češtinou) ------------------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/montserrat-cs.woff2") format("woff2");
}
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-serif-cs.woff2") format("woff2");
}

/* 2 Proměnné ------------------------------------------------------------- */
:root {
  /* barvy */
  --c-bg: #ffffff;
  --c-text: #191919;
  --c-nav: #393939;
  --c-muted: #666666;
  --c-accent: #7f0d0d;
  --c-accent-hover: #650a0a;
  --c-accent-text: #a13a3c;
  --c-heading: #000000;
  --c-bg-alt: #f6f6f6;
  --c-placeholder: #e4e4e4;
  --c-accent-light: #f2a0a1;
  --c-ok: #1f7a4d;
  --c-line: #d4d4d4;

  /* písma */
  --f-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "PT Serif", Georgia, "Times New Roman", serif;

  /* rozměry */
  --container: 1060px;
  --container-narrow: 920px;
  --gutter: 10px;
  --header-pt: 22px;

  --radius: 4px;
  --shadow-btn: 0 10px 28px rgba(0, 0, 0, 0.14);
  --ease: 0.2s ease;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --header-pt: 37px; }
}

/* 3 Reset ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

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

/* 4 Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: calc(var(--container-narrow) + 2 * var(--gutter));
}

.site-main { flex: 1 0 auto; }

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--c-accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.5rem; }

/* 5 Hlavička ------------------------------------------------------------- */
.site-header { padding-top: var(--header-pt); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: block;
  flex-shrink: 0;
  width: 232px;
  max-width: calc(100vw - 88px);
  text-decoration: none;
}

.logo img { width: 100%; height: auto; }


/* 6 Navigace ------------------------------------------------------------- */
.nav__list {
  display: flex;
  gap: 2.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 0.35rem 0.125rem;
  color: var(--c-nav);
  font-size: 0.84375rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* hamburger */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -2px; /* ikona 21 px od okraje jako originál */
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-text);
  cursor: pointer;
}
.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform var(--ease), background-color var(--ease);
}
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

/* mobilní menu (do 1023 px) */
@media (max-width: 1023.98px) {
  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 60;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ease), visibility var(--ease);
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }
  .nav__link { font-size: 1.25rem; }

  body.nav-open { overflow: hidden; }
}

/* 7 Tlačítka ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14rem;
  min-height: 62px;
  padding: 0.75rem 1.75rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--c-accent);
  box-shadow: var(--shadow-btn);
  color: #fff;
  font-family: var(--f-sans);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.btn:hover {
  background: var(--c-accent-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}
@media (min-width: 768px) {
  .btn { min-width: 16rem; }
}

/* tlačítko v menu */
.btn--sm {
  min-width: 0;
  min-height: 44px;
  padding: 0.55rem 1.3rem;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: 0 6px 16px rgba(127, 13, 13, 0.22);
}
.nav__list { align-items: center; }
@media (max-width: 1023.98px) {
  .nav__cta { margin-top: 0.75rem; }
  .nav__cta .btn { font-size: 1.05rem; }
}

/* 8 Stránky „slovní hry“ (Slovo, Dvě slova, Tři slova, Hra slov) -------- */
.word-page {
  padding-top: 45px;
  padding-bottom: 5rem;
  text-align: center;
}
/* mobil: hlavní text hry na střed obrazovky */
@media (max-width: 767.98px) {
  .site-main:has(> .word-page) {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .site-main > .word-page { padding-top: 24px; padding-bottom: 72px; }
}
@media (min-width: 1024px) {
  .word-page { padding-top: 78px; }
}

.word-page__title {
  font-family: var(--f-serif);
  font-size: clamp(3.4375rem, 1.6rem + 6vw, 5.875rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-text);
  text-wrap: balance;
}

.word-page__actions {
  margin-top: 1.45rem;
}
@media (min-width: 1024px) {
  .word-page__actions { margin-top: 4.5rem; }
}

@media (min-width: 1024px) {
  .word-page { padding-bottom: 5.7rem; }
}

.text-accent { color: var(--c-accent-text); }

/* 9 Patička -------------------------------------------------------------- */
.site-footer {
  padding-bottom: 19px;
  color: var(--c-muted);
  font-size: 0.875rem;
  line-height: 1.9;
  text-align: center;
}
@media (min-width: 1024px) {
  .site-footer {
    padding-bottom: 31px;
    line-height: 1.55;
  }
}

.site-footer__inner {
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
}
@media (min-width: 1024px) {
  .site-footer__inner { padding-top: 1.9rem; }
}

.site-footer__contact {
  font-weight: 600;
  font-style: normal;
}
.site-footer__contact a {
  text-decoration: none;
}
.site-footer__contact a:hover { color: var(--c-accent); }

.site-footer__legal { margin-top: 6px; }
@media (min-width: 1024px) {
  .site-footer__legal { margin-top: 3px; }
}
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.link-button:hover { color: var(--c-accent); }

.site-footer__sep {
  margin-inline: 0.6em;
}

/* 11 Landing page (Hra slov) --------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
[id] { scroll-margin-top: 16px; }

/* tlačítko obrysové (na tmavém podkladu) */
.btn--ghost {
  background: transparent;
  box-shadow: none;
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

/* banner přes celou šířku */
.hero {
  position: relative;
  isolation: isolate;
  margin-top: 22px;
  color: #fff;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #3a3a3a repeating-linear-gradient(135deg, #3f3f3f 0 2px, #363636 2px 18px);
}
.hero__media picture { display: block; height: 100%; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
@media (min-width: 768px) {
  .hero__media img { object-position: 72% 20%; }
}
/* mobil: fotka nahoře, text pod ní na tmavém podkladu */
@media (max-width: 767.98px) {
  .hero { background: #171717; }
  .hero .hero__media {
    position: relative;
    z-index: 0;
    height: clamp(300px, 82vw, 460px);
  }
  .hero .hero__media::after {
    background: linear-gradient(180deg, rgba(23, 23, 23, 0) 55%, #171717 100%);
  }
  .hero .hero__inner {
    position: relative;
    z-index: 1;
    min-height: 0;
    margin-top: -48px;
    padding-top: 0;
    padding-bottom: 44px;
  }
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 17, 17, 0.92) 0%, rgba(17, 17, 17, 0.7) 45%, rgba(17, 17, 17, 0.15) 80%);
}
.hero__inner {
  display: flex;
  align-items: flex-end;
  min-height: 560px;
  padding-top: 120px;
  padding-bottom: 40px;
}
.hero__content { max-width: 36rem; }
.hero__title {
  color: #fff;
  font-family: var(--f-serif);
  font-size: clamp(2.75rem, 1.5rem + 4.4vw, 4.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
@media (min-width: 768px) {
  .hero__title { white-space: nowrap; }
}
.hero__lead {
  margin-top: 1.1rem;
  font-size: clamp(1.02rem, 0.9rem + 0.5vw, 1.28rem);
  font-weight: 700;
  line-height: 1.45;
  text-wrap: pretty;
}
.hero__accent { color: var(--c-accent-light); }
.hero__text {
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.75rem;
}
@media (min-width: 768px) {
  .hero__media::after {
    background: linear-gradient(90deg, rgba(17, 17, 17, 0.9) 0%, rgba(17, 17, 17, 0.65) 45%, rgba(17, 17, 17, 0) 78%);
  }
  .hero__inner {
    align-items: center;
    min-height: clamp(520px, 68vh, 680px);
    padding-block: 72px;
  }
  .hero__content { max-width: 34rem; }
}
@media (min-width: 1024px) {
  .hero { margin-top: 36px; }
  .hero__text { font-size: 1.09rem; }
}

/* obecná sekce */
.section { padding-block: 56px; }
.section--alt { background: var(--c-bg-alt); }
@media (min-width: 1024px) {
  .section { padding-block: 96px; }
}
.section__head {
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section__title {
  font-family: var(--f-serif);
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section__lead {
  margin-top: 0.9rem;
  color: var(--c-heading);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.55;
  text-wrap: balance;
}
.section__text {
  margin-top: 0.7rem;
  color: var(--c-muted);
  font-size: 0.98rem;
  text-wrap: balance;
}
@media (min-width: 1024px) {
  .section__head { margin-bottom: 3.25rem; }
  .section__lead { font-size: 1.28rem; line-height: 1.45; }
  .section__text { font-size: 1.09rem; }
}

/* loga klientů */
.clients {
  padding-block: 22px;
  border-bottom: 1px solid var(--c-line);
  background: #fff;
}
.clients__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients__track {
  display: flex;
  width: max-content;
  animation: clients-marquee 28s linear infinite;
}
.clients__list {
  display: flex;
  flex: none;
  align-items: center;
  gap: 44px;
  margin: 0;
  padding: 0 44px 0 0;
  list-style: none;
}
.clients__logo img { display: block; }
@keyframes clients-marquee {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .clients__viewport { overflow-x: auto; }
  .clients__track { animation: none; }
}
@media (min-width: 1024px) {
  .clients { padding-block: 30px; }
  .clients__viewport { -webkit-mask-image: none; mask-image: none; }
  .clients__track { width: auto; animation: none; }
  .clients__list { flex: 1; justify-content: space-between; gap: 24px; padding: 0; }
  .clients__list[aria-hidden="true"] { display: none; }
}

/* služby */
.services {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service {
  padding: 24px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: #fff;
}
.service--highlight {
  border-color: var(--c-accent);
  box-shadow: inset 0 0 0 1px var(--c-accent);
  position: relative;
}
.service__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--c-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.service__icon {
  display: block;
  margin-bottom: 14px;
  color: var(--c-accent);
}
.service__icon .icon { width: 32px; height: 32px; }
.service__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}
.service__text {
  margin-top: 0.35rem;
  color: var(--c-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
@media (min-width: 640px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .service { padding: 28px; }
}

/* karusel */
.carousel { position: relative; }
.carousel__controls {
  display: none;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 16px;
}
.carousel__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--c-accent);
  border-radius: 50%;
  background: #fff;
  color: var(--c-accent);
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), opacity var(--ease);
}
.carousel__btn:hover:not(:disabled) {
  background: var(--c-accent);
  color: #fff;
}
.carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 85%;
  gap: 16px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 4px var(--gutter) 16px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -2px; }
.carousel__item {
  display: flex;
  scroll-snap-align: start;
}
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #cfcfcf;
  transition: width var(--ease), background-color var(--ease);
}
.carousel__dot.is-active {
  width: 22px;
  background: var(--c-accent);
}
@media (min-width: 640px) {
  .carousel__track { grid-auto-columns: calc((100% - 2 * var(--gutter) - 16px) / 2.15); }
}
@media (min-width: 768px) {
  .carousel__controls { display: flex; }
}
@media (min-width: 1024px) {
  .carousel__track {
    grid-auto-columns: calc((100% - 2 * var(--gutter) - 48px) / 3.2);
    gap: 24px;
  }
}

/* karta ukázky */
.work {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: #fff;
}
.work__shot {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-placeholder);
}
.work__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.work__body { padding: 18px 20px 22px; }
.work__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}
.work__link {
  display: inline-block;
  margin-top: 2px;
  padding-block: 2px;
  color: var(--c-accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.work__link:hover { text-decoration: underline; }
.work__label {
  margin-top: 14px;
  color: var(--c-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.work__list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.work__list { color: #444; font-size: 0.9rem; line-height: 1.6; }
.work__list li {
  position: relative;
  padding-left: 16px;
}
.work__list li::before {
  content: "›";
  position: absolute;
  left: 2px;
  color: var(--c-accent);
  font-weight: 700;
}

/* karta reference */
.quote {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 26px 24px 22px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: #fff;
}
.quote__text {
  flex: 1;
  margin: 0;
  color: #6b6b6b;
  font-family: var(--f-serif);
  font-size: 1rem;
  line-height: 1.65;
}
.quote__text::before {
  content: "\201D";
  display: block;
  height: 2.1rem;
  color: var(--c-accent);
  font-size: 4.2rem;
  line-height: 0.95;
}
.quote__text strong {
  color: #3a3a3a;
  font-weight: 700;
}
.quote__author {
  margin-top: 18px;
  color: var(--c-accent);
  font-size: 0.9rem;
  line-height: 1.4;
}
.quote__role { font-weight: 400; }

/* kdo jsem */
.about {
  display: grid;
  gap: 28px;
  align-items: center;
}
.about__photo {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: var(--c-placeholder);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__intro .section__lead,
.about__intro .section__text { text-wrap: pretty; }
.facts {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
.fact {
  padding: 24px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: #fff;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}
.fact p + p { margin-top: 0.7rem; }
.fact strong { color: var(--c-text); }
.fact strong.text-accent { color: var(--c-accent-text); }
.fact__title {
  margin-bottom: 0.8rem;
  color: var(--c-text);
  font-size: 1.1rem;
  font-weight: 700;
}
.fact__num { color: var(--c-accent); }
@media (min-width: 900px) {
  .about {
    grid-template-columns: 5fr 7fr;
    gap: 56px;
  }
  .facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
  }
}

/* kontakt a formulář */
.contact {
  display: grid;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}
.contact__list {
  order: 2;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact__list li {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
}
.contact__label {
  color: var(--c-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact__list a {
  color: var(--c-accent);
  font-weight: 600;
  text-decoration: none;
}
.contact__list a:hover { text-decoration: underline; }
.form__row { display: grid; gap: 0 16px; align-items: end; }
.form__field { margin: 0 0 16px; }
.form__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}
.form__field input,
.form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #bdbdbd;
  border-radius: var(--radius);
  background: #fff;
  color: var(--c-text);
  font: inherit;
}
.form__field input:focus-visible,
.form__field textarea:focus-visible {
  border-color: var(--c-accent);
  outline: 2px solid var(--c-accent);
  outline-offset: 1px;
}
.form__field textarea {
  min-height: 140px;
  resize: vertical;
}
.form__status {
  margin-top: 12px;
  font-weight: 600;
}
.form__status.is-ok { color: var(--c-ok); }
.form__status.is-error { color: var(--c-accent); }
@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .contact {
    grid-template-columns: 5fr 7fr;
    gap: 56px;
    align-items: start;
  }
  .contact__list { order: 0; }
}

/* mikro výzva v banneru */
.hero__note { margin-top: 1.1rem; font-size: 0.95rem; }
.hero__note a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--c-accent-light);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.hero__note a:hover { color: var(--c-accent-light); }
.hero__rating a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__star { flex: none; color: #f5b83d; }

.icon--sm { width: 18px; height: 18px; }

/* Kde AI končí a začínám já */
.versus {
  display: grid;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}
.versus__col {
  padding: 26px 24px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: #fff;
}
.versus__col--me {
  border-color: var(--c-accent);
  box-shadow: inset 0 0 0 1px var(--c-accent);
}
.versus__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1.15rem;
  font-weight: 700;
}
.versus__icon { display: inline-flex; color: var(--c-muted); }
.versus__col--me .versus__icon { color: var(--c-accent); }
.versus__icon .icon { width: 28px; height: 28px; }
.versus__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #444;
}
.versus__list li { display: flex; gap: 10px; align-items: flex-start; }
.versus__list .icon { flex: 0 0 auto; margin-top: 3px; color: var(--c-muted); }
.versus__col--me .versus__list { color: var(--c-text); font-weight: 600; }
.versus__col--me .versus__list .icon { color: var(--c-accent); }
.versus__note {
  margin-top: 2rem;
  font-family: var(--f-serif);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  text-align: center;
  text-wrap: balance;
}
@media (min-width: 768px) {
  .versus { grid-template-columns: 1fr 1fr; gap: 24px; }
  .versus__col { padding: 32px; }
}

/* Jak spolupracujeme */
.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: #fff;
}
.step__num {
  display: block;
  margin-bottom: 8px;
  color: var(--c-accent);
  font-family: var(--f-serif);
  font-size: 2.6rem;
  line-height: 1;
}
.step__title { font-size: 1.15rem; font-weight: 700; }
.step__text {
  margin-top: 0.4rem;
  color: var(--c-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step { padding: 32px 28px; }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 52px;
    right: -25px;
    width: 26px;
    height: 2px;
    background: var(--c-accent);
  }
}

/* Často se ptáte */
.faq {
  max-width: 780px;
  margin: 0 auto;
  border-top: 1px solid var(--c-line);
}
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--c-accent); }
.faq__icon {
  flex: 0 0 auto;
  color: var(--c-accent);
  transition: transform var(--ease);
}
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a {
  padding: 0 4px 20px;
  color: #444;
  font-size: 0.98rem;
  line-height: 1.65;
}

/* formulář – výběr tématu */
.form__field select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 1px solid #bdbdbd;
  border-radius: var(--radius);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%237F0D0D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 10l4.5 4.5 4.5-4.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--c-text);
  font: inherit;
  appearance: none;
}
.form__field select:focus-visible {
  border-color: var(--c-accent);
  outline: 2px solid var(--c-accent);
  outline-offset: 1px;
}
.form__opt { color: var(--c-muted); font-weight: 400; }

/* závěrečný pruh před kontaktem */
.claim {
  padding-block: 64px;
  background: #171717;
  color: #fff;
  text-align: center;
}
.claim__text {
  max-width: 48rem;
  margin: 0 auto;
  font-family: var(--f-serif);
  font-size: clamp(1.75rem, 1.15rem + 2.6vw, 3.1rem);
  line-height: 1.25;
  text-wrap: balance;
}
.claim__accent { color: var(--c-accent-light); }
.claim__actions { margin-top: 2rem; }
@media (min-width: 1024px) {
  .claim { padding-block: 104px; }
}

/* 10 Pomocné třídy ------------------------------------------------------- */
.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;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* 13 Cookie lišta --------------------------------------------------------- */
.btn--outline {
  background: #fff;
  box-shadow: none;
  border: 2px solid var(--c-accent);
  color: var(--c-accent);
}
.btn--outline:hover {
  background: #fbefef;
  box-shadow: none;
}

.cookie-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 100;
  padding: 0 var(--gutter) var(--gutter);
  pointer-events: none;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar__inner {
  max-width: var(--container-narrow);
  max-height: calc(100vh - 2 * var(--gutter));
  margin-inline: auto;
  padding: 20px 20px 18px;
  overflow-y: auto;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.12);
  font-size: 0.9375rem;
  line-height: 1.55;
  pointer-events: auto;
}
.cookie-bar__title {
  font-family: var(--f-serif);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.25;
}
.cookie-bar__text { margin-top: 6px; color: var(--c-text); }
.cookie-bar__text a { color: var(--c-accent-text); }
.cookie-bar__prefs {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
}
.cookie-bar__prefs[hidden] { display: none; }
.cookie-bar__opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.cookie-bar__opt input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--c-accent);
}
.cookie-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 16px;
}
.cookie-bar__actions .btn {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: 0.75rem;
  white-space: nowrap;
}
@media (max-width: 767.98px) {
  .cookie-bar__inner { padding: 16px 16px 14px; font-size: 0.875rem; line-height: 1.5; }
  .cookie-bar__title { font-size: 1.1875rem; }
  .cookie-bar__actions { margin-top: 12px; gap: 8px; }
  .cookie-bar__actions .btn { font-size: 0.875rem; }
  .cookie-bar__actions .link-button { flex-basis: 100%; text-align: center; }
  .cookie-bar__actions [data-cookie-save] { flex-basis: 100%; }
}
.cookie-bar__actions [hidden] { display: none; }
.cookie-bar__actions .link-button { padding: 6px 4px; }
@media (min-width: 768px) {
  .cookie-bar { padding: 0 20px 20px; }
  .cookie-bar__inner { padding: 24px 28px 22px; }
  .cookie-bar__actions .btn { flex: 0 0 auto; min-width: 11rem; }
}

/* 14 Ochrana osobních údajů ------------------------------------------------ */
.legal { padding-block: 40px 64px; }
@media (min-width: 1024px) {
  .legal { padding-block: 64px 96px; }
}
.legal__title {
  font-family: var(--f-serif);
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.legal__lead {
  margin-top: 14px;
  font-size: 1.125rem;
  color: var(--c-muted);
}
.legal__date { margin-top: 8px; font-size: 0.875rem; color: var(--c-muted); }
.legal h2 {
  margin-top: 2.6rem;
  font-family: var(--f-serif);
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.25;
  scroll-margin-top: 24px;
}
.legal h2 + * { margin-top: 0.8rem; }
.legal p + p,
.legal p + ul,
.legal ul + p,
.legal .legal__table-wrap + p { margin-top: 0.8rem; }
.legal ul { margin-block: 0; padding-left: 1.2rem; }
.legal h2 + ul { margin-top: 0.8rem; }
.legal li + li { margin-top: 0.35rem; }
.legal a { color: var(--c-accent-text); }
.legal__table-wrap { margin-top: 1rem; overflow-x: auto; }
.legal table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.legal th,
.legal td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
}
.legal thead th { background: var(--c-bg-alt); font-weight: 600; }
.legal__tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.legal__tag--ok { background: #e6f2ec; color: var(--c-ok); }
.legal__tag--ask { background: #fbefef; color: var(--c-accent); }
.legal__actions { margin-top: 1.2rem; }

/* poznámka pod formulářem */
.form__note {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--c-muted);
}
.form__note a { color: inherit; }

/* 15 E-book ---------------------------------------------------------------- */
.ebook {
  position: relative;
  overflow: hidden;
  padding-block: 44px;
  background: linear-gradient(120deg, #4f0707 0%, #7f0d0d 50%, #a5282b 100%);
  color: rgba(255, 255, 255, 0.9);
}
.ebook::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -8%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 160, 161, 0.22), rgba(242, 160, 161, 0) 70%);
  pointer-events: none;
}
.ebook__inner {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
}
.ebook__cover { display: grid; place-items: center; }
.ebook__book {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 150px;
  aspect-ratio: 3 / 4;
  padding: 18px 16px 16px 24px;
  border-radius: 3px 8px 8px 3px;
  background: linear-gradient(160deg, #fff 0%, #f6eded 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 8px 0 0 #e5d4d4;
  color: var(--c-text);
  transform: rotate(-5deg);
}
.ebook__num {
  font-family: var(--f-serif);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--c-accent);
}
.ebook__name {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}
.ebook__author {
  margin-top: auto;
  color: var(--c-muted);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ebook__eyebrow {
  color: var(--c-accent-light);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ebook__title {
  margin-top: 0.5rem;
  color: #fff;
  font-family: var(--f-serif);
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}
.ebook__text { margin-top: 0.8rem; max-width: 34rem; text-wrap: pretty; }
.ebook__actions { margin-top: 1.5rem; }
.ebook .btn {
  background: #fff;
  color: var(--c-accent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.ebook .btn:hover { background: #fbefef; }
@media (min-width: 768px) {
  .ebook { padding-block: 64px; }
  .ebook__inner { grid-template-columns: auto 1fr; gap: 56px; }
  .ebook__cover { padding-inline: 12px; }
  .ebook__book { width: 190px; padding: 22px 20px 20px 30px; }
  .ebook__num { font-size: 4rem; }
  .ebook__name { font-size: 0.92rem; }
  .ebook__author { font-size: 0.7rem; }
}

/* 16 Stránka 404 ------------------------------------------------------------ */
.word-page__note {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: var(--c-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  text-wrap: balance;
}
.word-page__actions--duo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
