/* ========================================================
   Luxora Szkolenia - style.css
   Style: CREATIVE ARTISTIC (Vibrant Colors, Artistic Fonts)
   Only flexbox layouts, mobile-first responsive design
   ======================================================== */

/* CSS Reset & Normalize */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F5F7FA;
  color: #222;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

ol, ul {
  list-style: none;
}
a {
  color: #24506A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #8EC35B;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e7ef;
  text-align: left;
  font-size: 16px;
}
th {
  color: #fff;
  background: #24506A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
tr:nth-child(even) td {
  background: #f0f8f1;
}

/* ==== ARTISTIC BRAND TYPOGRAPHY ==== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Roboto:wght@400;500;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #24506A;
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 18px;
  background: linear-gradient(90deg, #24506A 65%, #8EC35B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  color: #8EC35B;
  font-weight: 800;
}
h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #24506A;
}
.section h2, .section h3 {
  margin-top: 0;
}
p, li, span {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.subheadline {
  font-size: 18px;
  color: #555;
  margin-bottom: 28px;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ============ LAYOUT WRAPPERS ============ */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
  background: #fff;
  border-radius: 32px 16px 32px 16px;
  box-shadow: 0 6px 36px 0 rgba(36,80,106,0.06);
  transition: box-shadow 0.33s;
}
.section:hover {
  box-shadow: 0 12px 64px 0 rgba(36,80,106,0.15);
}

/* ============ FLEXBOX MANDATORY PATTERNS ============ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}
.card {
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border-radius: 20px 8px 24px 12px;
  box-shadow: 0 2px 16px 0 rgba(36,80,106,0.09);
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 0;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(36,80,106,0.14);
  transform: translateY(-3px) scale(1.03) rotate(-1deg);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  width: 100%;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f5fcf6;
  border-radius: 22px 8px 22px 8px;
  margin-bottom: 20px;
  min-width: 0;
  box-shadow: 0 4px 16px rgba(36,80,106,.07);
  position: relative;
}
.testimonial-card p {
  font-size: 18px;
  color: #222;
  letter-spacing: 0.01em;
  flex: 1;
}
.testimonial-card span {
  font-size: 15px;
  color: #24506A;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: 8px;
  white-space: nowrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f0f8f1;
  border-radius: 15px 5px 15px 5px;
  padding: 22px 20px;
  margin-bottom: 20px;
}

/* ===== ARTISTIC ACCENTS (decorative) ===== */
.section:before {
  content: '';
  display: block;
  position: absolute;
  z-index: 0;
  width: 68px;
  height: 68px;
  right: -24px;
  top: -32px;
  background: url('../assets/brush.svg'),linear-gradient(135deg,#8EC35B 0%,#24506A 74%);
  background-size: cover;
  opacity: 0.30;
  pointer-events: none;
  border-radius: 24px;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -20px;
  left: -18px;
  width: 52px;
  height: 52px;
  background: radial-gradient(circle,#8EC35B 0%,#24506A 90%);
  opacity: 0.11;
  border-radius: 50%;
  pointer-events: none;
}

/* ============ BUTTONS & LINKS ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #24506A;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 36px;
  border: none;
  border-radius: 42px 18px 42px 18px;
  margin-right: 16px;
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(36,80,106,0.13);
  transition: background 0.19s, box-shadow .18s, transform 0.16s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #8EC35B;
  color: #222;
  box-shadow: 0 6px 32px 0 rgba(142,195,91,0.14);
  transform: translateY(-2px) scale(1.04) rotate(-2deg);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #24506A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 36px;
  border: 2px solid #24506A;
  border-radius: 42px 18px 42px 18px;
  cursor: pointer;
  transition: border .18s, background 0.18s, color .15s, transform .15s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #24506A;
  color: #fff;
  border-color: #8EC35B;
  transform: translateY(-2px) scale(1.03) rotate(2deg);
}

/* ============ HEADER & NAV ============ */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 24px 0 rgba(142,195,91,0.08);
  border-radius: 0 0 28px 28px;
  position: relative;
  z-index: 32;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}
header img {
  height: 54px;
  margin-right: 30px;
  border-radius: 14px 5px 18px 7px;
  box-shadow: 0 2px 14px rgba(36,80,106,0.08);
  background: #f0f8f1;
  padding: 5px 18px 5px 5px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #24506A;
  letter-spacing: 0.01em;
  border-radius: 14px 4px 14px 4px;
  padding: 6px 16px;
  transition: background 0.22s, color 0.15s;
}
header nav a:hover, header nav a:focus {
  background: #8EC35B;
  color: #fff;
}

/* Hide mobile menu button on desktop */
.mobile-menu-toggle {
  display: none;
}

/* =============== FOOTER ======================= */
footer {
  background: #24506A;
  color: #fff;
  border-radius: 28px 28px 0 0;
  padding: 40px 0 20px 0;
  margin-top: 60px;
  font-size: 15px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
footer nav a {
  color: #fff;
  font-size: 16px;
  opacity: 0.87;
  transition: color 0.16s, opacity 0.13s;
}
footer nav a:hover {
  color: #8EC35B;
  opacity: 1;
}
footer p {
  color: #f0f8f1;
  margin-bottom: 7px;
  line-height: 1.6;
}

/* =============== TEXT SECTIONS =============== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 12px;
  color: #333;
  font-size: 17px;
}
.text-section ul {
  margin-left: 18px;
  margin-bottom: 10px;
}
.text-section li {
  list-style: disc inside;
  margin-left: 0;
  margin-bottom: 8px;
  padding-left: 8px;
  font-size: 16px;
}
.text-section img {
  display: inline-block;
  height: 22px;
  width: 22px;
  margin-right: 10px;
  vertical-align: -5px;
}

/* =============== ICONIC/FEATURE LISTS =============== */
ul li img {
  vertical-align: middle;
  margin-right: 11px;
  height: 26px;
  width: 26px;
}
ul li {
  margin-bottom: 14px;
  font-size: 17px;
}
ul:last-child li {
  margin-bottom: 0;
}

/* =============== UNIQUE ARTISTIC ELEMENTS =============== */
h2, .btn-primary, .card, footer, .testimonial-card, .btn-secondary {
  box-shadow: 0 2px 12px 0 rgba(36,80,106,0.07);
}
h2, h3 {
  position: relative;
}
h2:before {
  content: '';
  position: absolute;
  left: -12px;
  top: 7px;
  width: 11px;
  height: 11px;
  background: #8EC35B;
  border-radius: 50%;
  opacity: 0.75;
}

/* =============== TABLES =============== */
table {
  margin: 34px 0 28px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 20px 0 rgba(36,80,106,0.07);
}
@media (max-width: 650px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  th, td {
    padding: 12px 4px;
    width: 100%;
    box-sizing: border-box;
  }
  tr {
    margin-bottom: 13px;
  }
  th {
    position: sticky;
    top: 0;
  }
}

/* ================= MOBILE FIRST RESPONSIVE ==================== */
@media (max-width: 1200px) {
  .container { max-width: 97vw; }
}
@media (max-width: 900px) {
  .container { max-width: 99vw; }
  .card-container, .content-grid, header nav, footer nav { gap: 13px; }
  header .container { flex-direction: column; align-items: flex-start; }
  header nav { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
  .section { padding: 30px 7px; margin-bottom: 35px; }
  .content-wrapper { gap: 14px; }
  .card { padding: 18px 10px; }
  .testimonial-card {
    flex-direction: column;
    padding: 15px 8px;
    gap: 10px;
    align-items: flex-start;
  }
  .card-container, .content-grid {
    gap: 10px;
    flex-direction: column;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  header .container { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  header img { height: 38px; }
  header nav { display: none; }
  .mobile-menu-toggle {
    display: flex;
    background: #8EC35B;
    color: #fff;
    font-size: 2.2rem;
    padding: 7px 18px;
    border: none;
    border-radius: 14px 4px 14px 4px;
    position: absolute;
    right: 16px;
    top: 20px;
    z-index:31;
    align-items:center;
    box-shadow: 0 2px 8px rgba(36,80,106,0.12);
    cursor: pointer;
    transition: background 0.18s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #24506A;
    color: #fff;
  }
}

@media (max-width: 540px) {
  h1 { font-size: 1.28rem; margin-bottom: 10px; }
  h2 { font-size: 1rem; }
  .section { padding: 16px 3px; }
  .card { padding: 10px 4px; }
  .btn-primary, .btn-secondary {
    padding: 11px 16px;
    font-size: 14px;
    margin-right: 5px;
  }
  .testimonial-card {
    padding: 11px 2px;
  }
  footer { padding: 20px 0 12px 0; }
}

/* ================= MOBILE MENU =================== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: #8EC35B;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 1001;
  overflow-y: auto;
  transform: translateX(-100vw);
  transition: transform 0.37s cubic-bezier(.73,.09,.53,1.03);
  box-shadow: 0 6px 50px 0 rgba(36,80,106,0.21);
  padding: 0 0 40px 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 14px 20px 10px 0;
  background: none;
  border: none;
  color: #24506A;
  font-size: 2.3rem;
  cursor: pointer;
  z-index: 1011;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100vw;
  gap: 6px;
  margin-top: 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  padding: 19px 30px 17px 32px;
  color: #264d68;
  background: rgba(255,255,255,0.90);
  border-radius: 14px 5px 18px 8px;
  margin: 0 20px;
  margin-bottom: 7px;
  transition: background 0.19s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus{
  background: #24506A;
  color: #fff;
}

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

  }
}

/* Only show .mobile-menu if active class added (JS) */
.mobile-menu {
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  pointer-events: auto;
  opacity: 1;
}

/* ================= COOKIE CONSENT BANNER ============== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #24506A;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 22px 18px 16px 18px;
  font-size: 16px;
  z-index: 1501;
  box-shadow: 0 -2px 32px 0 rgba(36,80,106,0.23);
  gap: 14px;
  transition: transform .38s cubic-bezier(.43,.14,.53,1.12), opacity .24s;
  transform: translateY(110%);
  opacity: 0;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner p {
  color: #fff;
  font-size: 15px;
}
.cookie-btns {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cookie-btns button {
  padding: 10px 22px;
  border-radius: 20px 7px 20px 7px;
  border: none;
  font-size: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(36,80,106,0.11);
  transition: background .18s, color .15s;
}
.cookie-btns .accept {
  background: #8EC35B;
  color: #24506A;
}
.cookie-btns .accept:hover, .cookie-btns .accept:focus {
  background: #fff;
  color: #24506A;
}
.cookie-btns .reject {
  background: #fff;
  color: #24506A;
}
.cookie-btns .reject:hover, .cookie-btns .reject:focus {
  background: #e8e8e8;
}
.cookie-btns .settings {
  background: #24506A;
  color: #fff;
  border: 2px solid #8EC35B;
}
.cookie-btns .settings:hover, .cookie-btns .settings:focus {
  background: #8EC35B;
  color: #24506A;
}

/* Cookie Modal */
#cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,80,106,0.27);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .33s;
}
#cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-box {
  background: #fff;
  color: #24506A;
  border-radius: 32px 12px 28px 8px;
  box-shadow: 0 12px 48px 0 rgba(36,80,106,0.18);
  padding: 38px 24px 30px 24px;
  min-width: 310px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-box h3 {
  color: #24506A;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-close {
  position: absolute;
  right: 22px;
  top: 20px;
  background: none;
  border: none;
  color: #24506A;
  font-size: 2.0rem;
  cursor: pointer;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 22px 0 12px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}
.cookie-category input[type=checkbox], input[type=radio] {
  accent-color: #8EC35B;
  width: 21px; height: 21px;
}
.cookie-category.essential {
  color: #24506A;
  font-weight: 700;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.cookie-modal-actions button {
  padding: 11px 22px;
  border-radius: 20px 7px 20px 7px;
  border: none;
  font-size: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
  background: #24506A;
  color: #fff;
  transition: background .18s, color .15s;
}
.cookie-modal-actions button.secondary {
  background: #8EC35B;
  color: #24506A;
}
.cookie-modal-actions button.secondary:hover, .cookie-modal-actions button.secondary:focus {
  background: #24506A;
  color: #fff;
}

/* ========== SELECTED MICRO-INTERACTIONS & TRANSITIONS =========== */
.btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close, .cookie-btns button, .cookie-modal-actions button {
  transition: background .18s, color .14s, box-shadow .18s, border .13s, transform .18s;
}
*:focus {
  outline: 2px solid #8EC35B;
  outline-offset: 1px;
}

/* ========== UNIQUE/FUN ARTISTIC TOUCHES =========== */
.section, .testimonial-card, .feature-item {
  border-width: 1.5px;
  border-style: solid;
  border-color: #f2ffe5 #e5f1f8 #e5fee6 #f7f8e4;
  box-shadow: 0 3px 14px 0 rgba(142,195,91,0.04);
}

/* ========== OVERRIDES & UTILITY SPACING ========== */
.section + .section, .content-wrapper + .content-wrapper { margin-top: 44px; }
.card + .card { margin-left: 0; margin-bottom: 20px; }
.testimonial-card + .testimonial-card { margin-top: 10px; }
.card-container > * { min-width: 0; }

/* ========== ENSURE MINIMAL 20PX BETWEEN CARDS/SECTIONS ========== */
.section, .card, .testimonial-card, .feature-item {
  margin-bottom: 24px;
}
.section:last-child, .card:last-child, .testimonial-card:last-child, .feature-item:last-child {
  margin-bottom: 0;
}

/* ========== ACCENT VIBRANT HEADLINE/DECORATIONS ========== */
h1, h2 {
  text-shadow: 0 3px 12px rgba(142,195,91,0.11);
}
h1::after {
  content: '';
  display: inline-block;
  margin-left: 12px;
  vertical-align: middle;
  width: 32px;
  height: 13px;
  background: url('../assets/brush-underline.svg') no-repeat center center/contain;
  opacity: .68;
}

/* ========== ACCESSIBILITY: ENSURE CONTRAST ON TESTIMONIAL SECTIONS ========== */
.testimonial-card {
  background: #fff;
  color: #222;
  border: 1.5px solid #e3f2ec;
}
.testimonial-card p, .testimonial-card span {
  color: #222;
}

/* ========== SPECIAL: REMOVE DECORATIVE :before/:after ON SMALL SCREENS ========== */
@media (max-width: 500px) {
  .section:before, .section:after { display: none; }
  h1::after { display: none; }
}
