* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

body {
  font-family: "Rubik", sans-serif;
  color: #333;
  line-height: 1.5;
  overflow-x: hidden;
}

/* body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("./assets/dsc-5962-optimized.jpg") center 30% / cover no-repeat;
} */

.background-image {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  object-fit: cover;
  object-position: center 30%;
  z-index: -1;
}

.content {
  position: relative;
  z-index: 1;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  padding: 12px;
  z-index: 100;
  box-shadow: 0 5px 20px 0 rgb(0 0 0 / 0.15);
  border-bottom: 1px solid #eee;
}

.nav .nav-links {
  display: flex;
  gap: 24px;
  color: #0a2540; /* tmavě modrá */
  font-size: 1.1rem;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  /* transition: color 0.15s ease; */
}

.nav .nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  margin: auto;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 1px;
  width: 0;
  background: #0a2540;
  /* transition: width 0.15s cubic-bezier(0.075, 0.82, 0.165, 1); */
}

.nav a:hover:not(.spec-button)::after {
  width: 100%;
}

.nav-container {
  margin: auto 20px;
  display: flex;
  justify-content: flex-end;
}

/* HERO */
.hero {
  min-height: 100svh;

  /* background-image: url("./assets/dsc-5962-optimized.jpg"); */
  /* background-size: cover; */
  /* background-position: 50% 30%; */
  /* background-repeat: no-repeat; */

  /* background-attachment: fixed; desktop efekt */

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* mobil fix */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}

/* OVERLAY */
.overlay {
  position: absolute;
  width: 100%;
  height: 100svh;
  background: rgba(0, 0, 0, 0.2); /* 20% černá */
  top: 0;
  left: 0;
}

/* TEXT */
.hero h1 {
  color: white;
  font-size: 3rem;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
  margin-bottom: 8px;
}

.hero h2 {
  color: white;
  z-index: 1;
  font-size: 1.5rem;
  text-align: center;
  padding: 0 20px;
}

/* SECTION */
section {
  margin: auto;
  padding: 100px 24px;
}

#about,
#how-i-work,
#contact {
  scroll-margin-top: 88px;
}

.section-alt {
  background: #f5f7fa;
}

.section-container {
  max-width: 1140px;
  margin: auto;
}

.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;

  /* align-items: start; */
  /* background: #fff; */
  font-family: "Rubik", sans-serif;
  max-width: 1140px;
  justify-self: center;
}

/* LEFT TEXT */
.about-text h2 {
  font-size: clamp(28px, 4vw, 34px);
  color: #0a2540;
  margin-bottom: 10px;
}

/* .about-text */
h3 {
  font-size: clamp(21px, 3vw, 24px);
  color: #d1004b;
  font-weight: 500;
  margin-bottom: 25px;
}

.about-text p {
  font-size: 18px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 20px;
}

/* RIGHT SIDE */
.about-media {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* foto */
.about-media img {
  width: 100%;
  max-width: 420px;
  border-radius: 25px;
  object-fit: cover;
  margin-bottom: 20px;
}

/* nadpis certifikátů */
.about-media h4 {
  font-size: 20px;
  color: #0a2540;
  margin: 20px 0 10px;
}

/* certifikáty */
.certs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  cursor: pointer;
}

.certs img {
  width: 90px;
  height: auto;
  border-radius: 6px;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.certs img:hover {
  transform: scale(1.05);
  opacity: 1;
}

.about-work {
  display: flex;
  flex-direction: row;
  gap: 60px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .about-work {
    flex-direction: column-reverse;
  }
}

/* TAK NEVIM */
.container {
  /* max-width: 800px; */
  margin: auto;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px) {
  .container {
    display: block;
  }
}

.boxik {
  background: white;
  max-width: 800px;
  width: 100%;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 900px) {
  .boxik {
    width: 100%;
  }
}

.right {
  align-self: flex-end;
}

h2 {
  margin-top: 0;
  margin-bottom: 14px;
  color: #0a2540;
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
  font-size: 17px;
}

p {
  margin-bottom: 10px;
  /* font-size: 17px; */
}

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .about-media {
    margin-top: 40px;
  }
}

.thumb {
  width: 200px;
  cursor: pointer;
  border-radius: 8px;
}

.spec-button {
  padding: 12px 16px;
  background: #222;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-align: center;
}

.spec-button.white {
  background: #fff;
  color: #000;
  border: 1px solid #ccc;
}

.nav-links a.header-cta {
  color: #128c4a;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #128c4a;
  max-height: 44px;
  background: white;
  box-shadow: 0 2px 10px rgba(209, 0, 75, 0);
  transition: all 0.18s ease;
}

.nav-links a.header-cta:hover {
  /* transform: translateY(-1px); */
  background: #003b1008;
  box-shadow: 0 3px 10px rgba(0, 209, 35, 0.12);
  /* box-shadow: 0 6px 16px rgba(209, 80, 75, 0.12); */
}

.nav-links a.header-cta:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 209, 35, 0.12);
}

.google-calendar {
  /* margin: 0 40px; */
  /* height: 650px; */
  max-width: 1140px;
  width: 100%;

  display: flex;
  justify-content: center;
}

.google-calendar iframe {
  max-width: 100%;
}

.footer {
  background: #f5f7fa;
  border-top: 1px solid #e7ebef;
  padding: 34px 20px 24px;
  color: #0a2540;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 48px;
  align-items: center;
}

.footer-brand h2 {
  margin-bottom: 2px;
  font-size: 24px;
  line-height: 1.2;
}

.footer-brand p {
  margin-bottom: 0;
  color: #667085;
}

.footer-brand small {
  display: block;
  margin-top: 8px;
  color: #98a2b3;
  font-size: 13px;
  line-height: 1.4;
}

.footer-contact {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid #d9e0e7;
  border-radius: 10px;
  background: #fff;
  color: #0a2540;
  text-align: left;
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.04);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.footer-link svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: currentColor;
}

.footer-link span {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  line-height: 1.2;
}

.footer-link small {
  margin-top: 2px;
  color: #667085;
  font-size: 13px;
  font-weight: 400;
}

.footer-link.whatsapp {
  color: #128c4a;
}

.footer-link.email {
  color: #d1004b;
}

.footer-link:hover {
  transform: translateY(-1px);
  border-color: currentColor;
  background: #fbfcfd;
  box-shadow: 0 8px 22px rgba(10, 37, 64, 0.1);
}

/* overlay */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* velký obrázek */
#lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  touch-action: none;
}

/* variables only for PROCESS icons !! */
:root {
  --primary: #128c4a;
  --primary-light: #eaf8f0;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
}

.success-flow-wrap {
  width: 100%;
  max-width: 1100px;
  min-width: 0;
  margin-top: 2rem;
}

.success-flow {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  max-width: 100%;
  padding: 1.5rem 1.25rem 2rem;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.step {
  width: 180px;
  min-width: 180px;

  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;

  padding: 1.5rem 1rem;
  text-align: center;

  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.03),
    0 12px 30px rgba(0, 0, 0, 0.04);

  transition: all 0.25s ease;

  cursor: default;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow:
    0 10px 25px rgba(18, 140, 74, 0.12),
    0 20px 40px rgba(0, 0, 0, 0.08);
}

.icon {
  width: 58px;
  height: 58px;

  margin: 0 auto 1rem;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.65rem;

  background: var(--primary-light);
  border-radius: 50%;
}

.step h3 {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.connector {
  width: 24px;
  height: 3px;
  margin: 4px;
  background: #d1d5db;
  border-radius: 999px;
  position: relative;
}

.connector::after {
  content: "";
  position: absolute;
  right: 0px;
  top: 50%;

  width: 10px;
  height: 10px;

  border-top: 3px solid #d1d5db;
  border-right: 3px solid #d1d5db;

  transform: translateY(-50%) rotate(45deg);
}

.connector--success,
.connector--success::after {
  border-color: var(--primary);
}

.connector--success {
  background: var(--primary);
}

.step--success {
  border-color: rgba(18, 140, 74, 0.25);

  background: linear-gradient(180deg, #ffffff 0%, #f7fcf9 100%);

  box-shadow:
    0 8px 20px rgba(18, 140, 74, 0.1),
    0 14px 10px rgba(18, 140, 74, 0.08);
}

.step--success .icon {
  background: var(--primary);
  color: white;
}

/* ===== COOKIE CONSENT ===== */
/* backdrop */
.cookie-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  z-index: 9999;
}

/* ===== MODAL ===== */
.cookie-modal {
  width: 520px;
  max-width: 95%;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-header h2 {
  margin: 0;
  font-size: 18px;
}

.close {
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

/* ===== TEXT ===== */
.cookie-text {
  font-size: 14px;
  margin: 12px 0;
  line-height: 1.4;
  color: #333;
}

/* ===== BUTTONS ===== */
.cookie-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

button {
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.accept {
  background: #2f5d74;
  color: white;
}
.reject {
  background: #eaeaea;
}
.settings {
  background: #f5f5f5;
}

/* ===== ACCORDION ===== */
.cookie-section {
  border-top: 1px solid #eee;
  /* margin-top: 10px; */
}

.cookie-sections {
  display: none;
}

.section-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
/* hover */
.section-header:hover {
  color: #2f5d74;
}

.section-content {
  display: none;
  font-size: 13px;
  color: #444;
  padding-bottom: 10px;
}

.cookies-link {
  display: flex;
  margin-top: 12px;
  font-size: 12px;
  text-decoration: underline;
  color: #656565;
}

/* ===== TOGGLE ===== */
.toggle {
  width: 40px;
  height: 20px;
  background: #ccc;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
}

.toggle::after {
  content: "";
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: 0.2s;
}

.toggle.active {
  background: #2f5d74;
}

.toggle.active::after {
  left: 22px;
}

@media (max-width: 700px) {
  .nav {
    padding: 8px 10px;
  }

  .nav-container {
    margin: 0;
    justify-content: center;
  }

  .nav .nav-links {
    width: 100%;
    justify-content: space-around;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    font-size: 16px;
    line-height: 1.1;
  }

  .nav .nav-links a {
    flex: 0 1 auto;
    margin: 0;
    padding: 6px 0;
    white-space: nowrap;
  }

  .nav-links a.header-cta {
    flex-shrink: 0;
    max-height: none;
    min-height: 36px;
    padding: 7px 9px;
    border-width: 1px;
    border-radius: 10px;
    font-size: 14px;
  }

  /* .hero {
    min-height: 92svh;
    background-attachment: scroll;
    background-size: cover;
    background-position: center top;
    padding-top: 72px;
  } */

  .hero h1 {
    font-size: 36px;
    line-height: 1.05;
  }

  /* .hero h2 {
    font-size: 25px;
    line-height: 1.25;
  } */

  section {
    padding: 64px 18px;
  }

  .intro-panel {
    padding: 42px 0 !important;
    border-radius: 0 !important;
  }

  .intro-heading {
    font-size: 26px !important;
    line-height: 1.35;
    /* margin-bottom: 28px !important; */
  }

  .intro-actions {
    width: 100%;
  }

  .intro-actions .spec-button,
  .boxik .spec-button {
    width: 100%;
  }

  .success-flow-wrap {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
  }

  .success-flow {
    scroll-snap-type: x mandatory;
    scroll-padding-left: 18px;
    padding: 1.5rem 18px 2rem;
  }

  .step {
    width: min(76vw, 260px);
    min-width: min(76vw, 260px);
    padding: 1.75rem 1.25rem;
    scroll-snap-align: start;
    border-radius: 18px;
  }

  .connector {
    flex: 0 0 28px;
    width: 28px;
    margin: 5px 2px;
  }

  .about {
    gap: 32px;
  }

  h3 {
    font-size: 23px;
    line-height: 1.35;
  }

  .about-text p,
  p,
  li {
    font-size: 14px;
    line-height: 1.75;
  }

  .about-media {
    margin-top: 18px;
  }

  .about-media img {
    max-width: 100%;
    border-radius: 18px;
  }

  .certs {
    gap: 12px;
  }

  .certs img {
    width: calc(50% - 8px);
    max-width: 120px;
  }

  .about-work {
    gap: 26px;
    margin-bottom: 28px;
  }

  .boxik {
    padding: 22px 18px;
    margin-bottom: 28px;
    border-radius: 8px;
  }

  .boxik h2 {
    font-size: 25px;
    line-height: 1.25;
  }

  .google-calendar iframe {
    height: 760px;
    padding: 0 !important;
    border-radius: 10px !important;
  }

  .footer {
    padding: 30px 18px 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .footer-contact {
    justify-content: center;
  }

  .footer-link {
    width: 100%;
    max-width: 340px;
  }

  .cookie-backdrop {
    align-items: flex-end;
  }

  .cookie-modal {
    width: 100%;
    max-width: 100%;
    max-height: 88svh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    padding: 18px;
  }

  .section-header {
    padding: 8px 0;
  }

  /* .cookie-actions {
    flex-direction: column;
  } */

  /* .cookie-actions button {
    width: 100%;
    min-height: 46px;
  } */
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 40px;
  }

  .nav-links a.header-cta {
    min-height: 34px;
    padding: 6px 7px;
    font-size: 0.72rem;
  }

  .about-text h2,
  .about-work .about-text h2 {
    font-size: 27px !important;
  }
}
