/* --------------------------- CSS RESET & NORMALIZE ----------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #F7F9FD;
  color: #222831;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  color: #1565C0;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F9A825;
  outline: none;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  margin-bottom: 16px;
  color: #1A1A1A;
  letter-spacing: -0.01em;
  line-height: 1.12;
}
h1 { font-size: 2.5rem; margin-bottom: 12px; }
h2 { font-size: 2rem;   margin-bottom: 10px; }
h3 { font-size: 1.4rem; margin-bottom: 8px; }
p, ul li, ol li { font-size: 1rem; margin-bottom: 14px; }
strong { font-weight: bold; }

/* ----------- LAYOUT & CONTAINER SPACING BASE PATTERNS --------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(21, 70, 192, 0.10);
  position: relative;
  transition: transform 0.16s cubic-bezier(.9,.6,.23,1.2), box-shadow 0.16s;
}
.card:hover {
  transform: translateY(-6px) scale(1.035) rotate(-1deg);
  box-shadow: 0 4px 32px 0 rgba(21, 101, 192, 0.17);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-section {
  margin-bottom: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  background: #fffbe6;
  border: 2px solid #F9A825;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(21,101,192,0.11);
  transition: box-shadow 0.18s, transform 0.14s;
  position: relative;
}
.testimonial-card blockquote {
  color: #222831;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
  background: none;
  border-left: 0;
}
.testimonial-meta {
  font-size: 1rem;
  color: #155A8A;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
/* Visually emphasize testimonial active state */
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(249, 168, 37, 0.28);
  transform: translateY(-4px) scale(1.023);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ------------ FLEXBOX-ONLY: Never use CSS Grid! -------------- */
/* (enforced in above layouts) */

/* ------------- HEADERS & NAVIGATION: Main + Mobile ------------ */
header {
  background: #1565C0;
  color: white;
  position: relative;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 0 14px 0;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.04rem;
  color: #fff;
  padding: 8px 15px;
  border-radius: 12px;
  transition: background 0.15s, color 0.14s;
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  width: 0px;
  height: 3px;
  background: #F9A825;
  border-radius: 2px;
  transition: width 0.22s ease;
  margin-top: 4px;
}
.main-nav a:hover, .main-nav a.active {
  background: #F9A825;
  color: #1A1A1A;
}
.main-nav a:hover:after, .main-nav a.active:after {
  width: 100%;
}
.main-nav .primary {
  background: #F9A825;
  color: #1A1A1A;
  font-size: 1.1rem;
  margin-left: 10px;
  box-shadow: 0 2px 8px 0 rgba(249, 168, 37, 0.20);
  transition: box-shadow 0.13s, background 0.13s;
}
.main-nav .primary:hover {
  background: #fff;
  color: #1565C0; 
  box-shadow: 0 5px 18px 0 rgba(249, 168, 37, 0.29);
}

.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 22px;
  right: 22px;
  background: #F9A825;
  border: none;
  color: #1565C0;
  font-size: 2.1rem;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  cursor: pointer;
  z-index: 101;
  justify-content: center;
  align-items: center;
  transition: background 0.14s, color 0.14s;
  box-shadow: 0 2px 12px 0 rgba(249, 168, 37, 0.16);
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #1565C0;
  color: #fff;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 105vw;
  height: 100vh;
  background: #1565C0;
  z-index: 2000;
  transform: translateX(110%);
  transition: transform 0.37s cubic-bezier(.7,.1,.2,1.1);
  box-shadow: -2px 0 32px #22283111;
  opacity: 0.98;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0%);
  pointer-events: auto;
  opacity: 0.98;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 14px 20px 0 0;
  background: #fffbe6;
  color: #1565C0;
  font-size: 2.1rem;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 7px 0 rgba(249, 168, 37, 0.16);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-close:hover {
  background: #F9A825;
  color: #1A1A1A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 28px 0 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.34rem;
  padding: 13px 0 13px 10px;
  color: #fff;
  border-radius: 7px;
  transition: background 0.17s, color 0.15s;
  width: 100%;
}
.mobile-nav a:hover {
  background: #F9A825;
  color: #1A1A1A;
}

/* Hide main-nav, show burger on mobile */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu,
  .mobile-menu.open {
    display: none!important;
  }
}

/* -------------- HERO & ENERGETIC HEADERS ---------------- */
.hero {
  background: linear-gradient(100deg, #fffbe6 0%, #F7F9FD 100%);
  border-bottom-left-radius: 48px;
  border-bottom-right-radius: 48px;
  padding: 56px 0 58px 0;
  margin-bottom: 46px;
  box-shadow: 0 8px 32px 0 rgba(21, 101, 192, 0.09);
  animation: heroPop 1.1s cubic-bezier(.54,1.3,.38,1) 1;
}
@keyframes heroPop {
  0% { opacity: 0; transform: scale(0.94) translateY(40px); }
  80% { opacity: 1; transform: scale(1.03) translateY(-6px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.hero h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.7rem;
  color: #1565C0;
  text-shadow: 1px 2px 0 #F9A82544;
  margin-bottom: 13px;
}
.hero .subheadline {
  color: #1A1A1A;
  font-size: 1.21rem;
  margin-bottom: 22px;
  background: #F9A82522;
  padding: 8px 18px;
  border-radius: 13px;
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}

/* -------------- BUTTONS, CTA, INTERACTIVE ELEMENTS ----------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1565C0;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.13rem;
  padding: 13px 32px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 16px 0 rgba(21,101,192,0.11);
  text-shadow: 0 1px 0 #F7F9FD44;
  margin-top: 8px;
  margin-bottom: 8px;
  transition: background 0.15s, color 0.14s, box-shadow 0.16s, transform 0.11s;
  position: relative;
  z-index: 1;
  min-width: 150px;
}
.cta.primary {
  background: #F9A825;
  color: #1565C0;
  font-size: 1.2rem;
  box-shadow: 0 2px 14px 0 rgba(249, 168, 37, 0.19);
}
.cta:hover, .cta:focus {
  background: #fff;
  color: #1565C0;
  box-shadow: 0 3px 24px 0 rgba(21,101,192,0.25);
  transform: translateY(-2px) scale(1.036);
}
.cta.primary:hover, .cta.primary:focus {
  background: #fffbe6;
  color: #1A1A1A;
  transform: scale(1.04) rotate(-2deg);
  box-shadow: 0 5px 22px 0 rgba(249, 168, 37, 0.33);
}

/* ------------- LISTS: ICON BULLETS FOR SERVICES/FEATURES ------------ */
ul li, ol li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 0 10px 0;
  margin-bottom: 0px; /* managed by gap */
  font-size: 1rem;
}
ul li img, ol li img {
  width: 34px;
  height: 34px;
  margin-right: 4px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 8px 0 #F9A82533;
  padding: 3px;
}

/* ------------- TABLES ------------ */
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(21, 101, 192, 0.07);
  overflow: hidden;
  margin: 22px 0 18px 0;
  font-family: 'Open Sans', Arial, sans-serif;
}
thead {
  background: #1565C0;
  color: #fff;
}
th, td {
  padding: 16px 16px;
  text-align: left;
  font-size: 1.04rem;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
}
tbody tr {
  background: #F7F9FD;
  border-bottom: 1px solid #E9E9EF;
  transition: background 0.13s;
}
tbody tr:hover {
  background: #fffbe6;
}
tbody td {
  font-family: 'Open Sans', Arial, sans-serif;
}

.service-price {
  color: #F9A825;
  font-weight: 900;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: 8px;
  font-size: 1.07em;
}

/* ------------- BLOG LIST ------------ */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.blog-list article {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 12px 0 rgba(21,101,192,0.10);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 350px;
  padding: 22px 18px 18px 18px;
  transition: box-shadow 0.14s, transform 0.13s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.blog-list article h3 {
  color: #1565C0;
  font-size: 1.25rem;
  margin-bottom: 4px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.blog-list article a {
  color: #F9A825;
  font-weight: bold;
  margin-top: 6px;
  font-size: 1.06rem;
  transition: color 0.15s;
}
.blog-list article a:hover {
  color: #1565C0;
}
.blog-list article:hover {
  box-shadow: 0 5px 24px 0 #F9A82522;
  transform: translateY(-2px) scale(1.02);
}

.blog-categories {
  margin-top: 34px;
  background: #fffbe6;
  padding: 14px 22px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.blog-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.blog-categories a {
  padding: 5px 13px;
  background: #fff;
  border-radius: 9px;
  color: #1565C0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.16s, color 0.14s;
}
.blog-categories a:hover {
  background: #F9A825;
  color: #1A1A1A;
}

/* ------------- FOOTER ------------- */
footer {
  margin-top: 80px;
  background: #1565C0;
  color: #fff;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  padding: 38px 0 22px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #fff;
  font-size: 1.02rem;
  text-decoration: underline;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.16s;
}
.footer-nav a:hover {
  color: #F9A825;
}
.brand-foot {
  display: flex;
  align-items: center;
  gap: 13px;
  justify-content: center;
  margin-bottom: 0;
}
.brand-foot img {
  width: 34px;
  height: 34px;
}

/* ------------- COOKIE CONSENT BANNER & MODAL ------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #222831;
  color: #fff;
  box-shadow: 0 -2px 22px 0 #22283133;
  z-index: 3300;
  padding: 26px 16px 16px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 1rem;
  animation: cookiePop 0.6s cubic-bezier(.61,1.41,.36,1.07);
}
@keyframes cookiePop {
  0%   { opacity: 0; transform: translateY(60px) scale(.95); }
  90%  { opacity: 1; transform: translateY(-6px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1.0); }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: 22px;
  align-items: center;
}
.cookie-banner button {
  background: #F9A825;
  color: #222831;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  padding: 10px 24px;
  cursor: pointer;
  margin: 0 3px;
  min-width: 112px;
  font-size: 1rem;
  box-shadow: 0 1px 6px 0 #F9A82533;
  transition: background 0.16s, color 0.13s, transform 0.13s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #fffbe6;
  color: #1565C0;
  transform: scale(1.03);
}

.cookie-modal-backdrop {
  position: fixed;
  z-index: 3400;
  background: #22283177;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: backdropPop 0.21s;
}
@keyframes backdropPop {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #222831;
  border-radius: 24px;
  box-shadow: 0 8px 48px 0 rgba(21,101,192,0.17);
  padding: 36px 34px 28px 34px;
  min-width: 320px;
  max-width: 98vw;
  font-family: 'Open Sans', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: modalPop 0.28s cubic-bezier(.7,.1,.24,1.4);
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(.93) translateY(60px); }
  72%  { opacity: 1; transform: scale(1.01) translateY(-7px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h3 {
  color: #1565C0;
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 7px;
}
.cookie-modal .cookie-switch-label {
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
}
.cookie-modal .cookie-switch {
  width: 42px;
  height: 24px;
  background: #F7F9FD;
  border-radius: 14px;
  position: relative;
  transition: background 0.13s;
  cursor: pointer;
  display: inline-block;
}
.cookie-modal .cookie-switch[aria-checked="true"] {
  background: #F9A825;
}
.cookie-modal .cookie-switch::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px 0 #F7F9FD66;
  transition: transform 0.17s;
}
.cookie-modal .cookie-switch[aria-checked="true"]::before {
  transform: translateX(18px);
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #1565C0;
  font-size: 2rem;
  position: absolute;
  top: 18px;
  right: 22px;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 9px;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal-close:hover {
  color: #F9A825; background: #F7F9FD;
}
/* For essential cookies always enabled */
.cookie-modal .always-enabled {
  color: #888;
  font-size: 0.98rem;
  margin-left: 7px;
  font-style: italic;
}

/* ------------- MISC. --------------- */
::-webkit-input-placeholder { color: #888; }
::-moz-placeholder { color: #888; }
:-ms-input-placeholder { color: #888; }
::placeholder { color: #888; }

/* ------------- RESPONSIVE & MOBILE STYLES ------------- */
@media (max-width: 1200px) {
  .container { max-width: 980px; }
}
@media (max-width: 900px) {
  .container { max-width: 98vw; padding-left: 8px; padding-right: 8px; }
  .main-nav a { font-size: 1rem; padding: 7px 9px; }
  .hero h1 { font-size: 2.1rem; }
}
@media (max-width: 768px) {
  .section, .hero { padding: 24px 2vw; }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.19rem; }
  .hero h1 { font-size: 1.34rem; }
  .container { max-width: 100vw; }
  .hero { margin-bottom: 22px; }
  .content-grid, .card-container, .blog-list { gap: 11px; flex-direction: column; }
  .footer-nav { gap: 7px; }
  .brand-foot { flex-direction: column; gap: 3px; }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    padding: 12px;
    gap: 13px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 9px;
    padding: 16px 5vw 13px 5vw;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-actions {
    margin-left: 0;
    gap: 8px;
  }
}

/* -------------- Playful, Dynamic Animations & Micro-Effects ------------- */
.cta,.main-nav a,.blog-list article,.testimonial-card,.feature-item {
  transition: 
    box-shadow 0.17s cubic-bezier(.61,1.41,.36,1.07),
    transform 0.16s cubic-bezier(.54,1.3,.38,1),
    background 0.13s, color 0.10s;
}
.feature-item {
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 2px 10px 0 #F9A8250b;
  padding: 12px 16px;
  margin-bottom: 8px;
  position: relative;
}
.feature-item:hover {
  background: #F9A82533;
  transform: scale(1.03) rotate(-2deg);
  box-shadow: 0 5px 18px 0 #F9A82533;
}

/* Fun bounce on hover for list icons */
ul li img, ol li img {
  transition: transform 0.21s cubic-bezier(.92,.01,.38,1.3);
}
ul li:hover img, ol li:hover img {
  transform: scale(1.21) rotate(-10deg);
}

/* Fun font for accents */
strong, .service-price, .testimonial-meta {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* -------------- VISUAL HIERARCHY & SPACING -------------- */
main section {
  margin-bottom: 60px;
}
.content-wrapper > *:not(:last-child) {
  margin-bottom: 20px;
}

/* ------------------ Print/Accessibility improvements ------------------ */
@media (print) {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-backdrop { display: none!important; }
}

/* ------------------ UTILITY CLASSES --------------------- */
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mt-40 { margin-top: 40px !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

/* ======================== END OF FILE ======================== */
/* Brand "Rychlý Trenér" - playful_dynamic webdesign by professional CSS/UI */
