/* ===========================================================
   LUXURY PREMIUM STYLE CSS for Akademia Przyszłości
   ===========================================================
   - Only Flexbox for all layouts
   - Premium gold accents, sophisticated colors, refined details
   - Proper spacing, mobile-first, high contrast, luxury font pairing
   =========================================================== */

/* Normalize & Reset */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
html, body { height: 100%; width: 100%; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background-color: #F7F6F2;
  color: #222;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
img { max-width: 100%; display: block; }
a { color: #234378; text-decoration: none; transition: color .2s; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}
ul, ol { padding-left: 1.1em; }

/* Remove default focus for mouse, visible for keyboard */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 2px solid #BFA142;
  outline-offset: 2px;
}

/* Brand GOLD */
:root {
  --primary: #234378;
  --secondary: #16A085;
  --accent: #F7F6F2;
  --gold: #BFA142;
  --gold-dark: #8a7300;
  --text-dark: #222;
  --text-light: #fff;
  --shadow: 0 8px 32px 0 rgba(25,29,37,0.10), 0 1.5px 7px 0 rgba(191,161,66,0.07);
  --shadow-card: 0 4px 18px 0 rgba(35,67,120,0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1160px;
  --footer-bg: #1a2336;
}

/* =================== TYPOGRAPHY =================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 16px;
}
h1 { font-size: 2.4rem; line-height: 1.18; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.22; margin-bottom: 18px; }
h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 12px; }
h4 { font-size: 1.1rem; font-weight:600; margin-bottom:10px; }
p, li, address {
  font-size: 1rem; line-height: 1.78; color: var(--text-dark);
  margin-bottom: 10px;
}
address { font-style: normal; color: #424363; font-size: 1rem; margin-top: 10px; }

/* Links */
a:hover, a:focus-visible { color: var(--gold); text-decoration: underline; }

/* =================== CONTAINERS =================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  padding: 0;
}

/* =================== SECTIONS & CARDS =================== */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0; /* top padding only - allow visual flow */
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: 28px 22px 22px 22px;
  min-width: 250px;
  flex: 1 1 270px;
  transition: box-shadow .18s, transform .14s;
  border: 1px solid #eceae4;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 24px rgba(191,161,66,.15), 0 2px 8px rgba(35,67,120,.12);
  transform: translateY(-4px) scale(1.015);
}

/* =================== HERO AREA =================== */
.hero {
  background: linear-gradient(92deg, #F7F6F2 80%, #fff 120%);
  padding-top: 52px;
  padding-bottom: 60px;
  border-bottom: 2px solid var(--gold);
}
.hero .container { padding-left: 0; padding-right: 0; }
.hero .content-wrapper {
  max-width: 720px;
  padding: 0 20px;
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius);
  box-shadow: 0 4px 36px rgba(191,161,66,0.10);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero p {
  font-size: 1.17rem;
  color: #414742;
  margin-bottom: 18px;
  margin-top: 0;
}

/* =================== NAVIGATION =================== */
header {
  width: 100%;
  box-shadow: 0 4px 16px rgba(35,67,120,.03);
  background: #fff;
  z-index: 100;
  border-bottom: 1px solid #EAE8DE;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 24px;
}
header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
header nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 10px 8px;
  border-radius: 5px;
  font-size: 1rem;
  transition: background .14s, color .14s;
  line-height: 1.2;
}
header nav a:hover, header nav a:focus-visible {
  color: var(--gold);
  background: #F7F6F2;
}
header .primary-cta {
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  border-radius: 24px;
  padding: 10px 28px;
  margin-left: 16px;
  border: none;
  box-shadow: 0 1px 8px rgba(35,67,120,0.09);
  transition: background .2s, color .2s, box-shadow .18s;
}
header .primary-cta:hover, header .primary-cta:focus-visible {
  background: var(--gold-dark);
  color: #fff;
  box-shadow: 0 2px 12px #BFA14240;
}
header img[alt="Akademia Przyszłości"] {
  height: 44px;
  width: auto;
  margin-right: 8px;
}

/* Burger for Mobile */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  cursor: pointer;
  color: var(--primary);
  border: none;
  background: none;
  padding: 0 0 0 10px;
  line-height: 1;
  z-index: 130;
  transition: color .2s;
}
.mobile-menu-toggle:focus-visible {
  color: var(--gold);
}

/* =================== MOBILE MENU OVERLAY =================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25,29,37,0.90);
  backdrop-filter: blur(3px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transform: translateX(100%);
  opacity: 0;
  transition: transform .34s cubic-bezier(.4,.86,.65,1.25), opacity .25s;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2.6rem;
  font-weight: 400;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
  margin: 32px 32px 0 0;
  align-self: flex-end;
  transition: color .18s;
  z-index: 2;
}
.mobile-menu-close:hover, .mobile-menu-close:focus-visible {
  color: var(--gold);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
  margin: 48px 36px 0 0;
  width: 85vw;
  max-width: 380px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  border-radius: 7px;
  padding: 14px 24px 13px 10px;
  display: block;
  background: none;
  transition: background .16s, color .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus-visible {
  background: rgba(191,161,66,0.14);
  color: var(--gold);
}
.mobile-nav a:last-child {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 8px;
}

/* =================== FLEX LAYOUTS =================== */
.features-grid, .skills-grid, .testimonials-grid,
.course-cards, .advantages, .training-program-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
  justify-content: flex-start;
}
.features-grid > div, .skills-grid > div, .advantages > div,
.training-program-cards > div, .course-cards > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 22px 20px 18px 20px;
  border: 1px solid #eceae4;
  transition: box-shadow .17s, transform .11s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.features-grid > div:hover, .skills-grid > div:hover,
.advantages > div:hover, .training-program-cards > div:hover, .course-cards > div:hover {
  box-shadow: 0 4px 32px rgba(191,161,66,0.11), 0 3px 15px rgba(35,67,120,.08);
  transform: translateY(-4px) scale(1.012);
}

.infographic-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.infographic-blocks > div {
  flex: 1 1 210px;
  background: #FFEECB;
  border-radius: var(--radius-sm);
  padding: 20px 16px 12px 18px;
  color: #865600;
}

.training-program-cards {
  margin-top: 18px;
}

/* Testimonials Grid */
.testimonials-grid {
  gap: 32px;
  margin-bottom: 8px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 28px 22px 26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(35,67,120,.09);
  border-left: 6px solid var(--gold);
  min-width: 240px;
  max-width: 400px;
  margin-bottom: 20px;
  transition: box-shadow .17s, border-color .17s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 28px rgba(191,161,66,0.13);
  border-left: 6px solid var(--gold-dark);
}
.testimonial-card p {
  color: #1b1c23;
  font-size: 1.07rem;
  margin-bottom: 4px;
}
.testimonial-name {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
}
.star-rating {
  color: var(--gold);
  letter-spacing: 3px;
  font-size:1.17rem;
  margin-top:-10px;
}

/* =================== BUTTONS =================== */
.primary-cta, .cookie-banner .cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight:700;
  font-size: 1rem;
  padding: 12px 36px;
  border-radius: 36px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  margin-right: 12px;
  box-shadow: 0 1.5px 12px #BFA1421b;
  transition: background .2s, color .18s, transform .15s, box-shadow .12s;
}
.primary-cta:hover, .primary-cta:focus-visible, .cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus-visible {
  background: var(--gold-dark);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

/* Secondary CTA for cookie banner */
.cookie-banner .cookie-btn.secondary {
  background: #f2e7c2;
  color: var(--gold-dark);
  font-weight: 600;
  margin-right: 12px;
}
.cookie-banner .cookie-btn.secondary:hover, .cookie-banner .cookie-btn.secondary:focus-visible {
  background: #e3c871;
  color: #fff;
}
.cookie-banner .cookie-btn.text {
  background: transparent;
  color: var(--primary);
  font-weight:500;
  text-decoration: underline;
  margin-right: 0;
  padding: 10px 14px;
}
.cookie-banner .cookie-btn.text:hover, .cookie-banner .cookie-btn.text:focus-visible {
  background: #ebe9e4;
  color: var(--gold-dark);
}

/* =================== LISTS =================== */
ul.feature-list, .advantage-bullets, .course-list, .customization-options ul, .training-card ul, .text-section ul {
  list-style: none;
  margin-left: 0;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
ul.feature-list li, .advantage-bullets li, .course-list li, .customization-options ul li,
.training-card ul li, .text-section ul li {
  padding-left: 34px;
  position: relative;
  min-height: 30px;
  display: flex;
  align-items: flex-start;
  font-size:1rem;
}
ul.feature-list img, .training-card img {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  position: absolute;
  left: 2px;
  top:4px;
}
ul.feature-list li:before, .advantage-bullets li:before, .customization-options ul li:before, .text-section ul li:before {
  content: '';
  display: none;
}

.advantage-bullets li {
  padding-left: 20px;
  position: relative;
}
.advantage-bullets li:before {
  display: inline-block;
  content: '\2022';
  color: var(--gold-dark);
  font-size: 1.22em;
  position: absolute;
  left: 1px;
  top: 3px;
}

/* =================== SPECIAL BLOCKS =================== */
.course-price, .course-highlight {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--gold-dark);
  background: #F0E4B6;
  border-radius: 18px;
  font-size: 0.99rem;
  display: inline-block;
  margin-top: 8px;
  padding: 5px 18px;
  font-weight: 600;
}

/* COURSE LIST (kursy.html) */
.course-list li {
  background: #fff;
  border: 1px solid #eceae4;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 14px rgba(191,161,66,0.05);
  margin-bottom: 18px;
  padding: 22px 18px 12px 18px;
  position: relative;
}

/* ADVANTAGES (kursy.html) */
.advantages {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.advantages > div {
  background: #fff6e1;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(191,161,66,0.04);
  min-width: 210px;
  flex: 1 1 210px;
  padding: 20px 15px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #8b7730;
  font-weight: 500;
  transition: box-shadow .11s;
}
.advantages > div:hover { box-shadow: 0 4px 16px #BFA14222; }
.advantages img { margin-bottom: 7px; height: 32px; width: 32px; }

/* =================== TEXT-IMAGE SECTION & ALIGNMENT =================== */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ====== ADDITIONAL UTILITY CLASSES FOR SPACING ====== */
.mb-0{ margin-bottom:0 !important; }
.mb-20{ margin-bottom:20px !important; }
.mb-30{ margin-bottom:30px !important; }
.mt-24{ margin-top:24px !important; }

/* Mini/short forms, Map, Infographic */
.short-form, .mini-form {
  background: #f4f4ed;
  border: 1.5px solid #F0E4B6;
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  margin-top: 12px;
  font-size: 1rem;
  color: #484758;
}
.map-placeholder {
  background: #e3e7ee;
  border-radius: var(--radius-sm);
  border: 1px solid #d2d7e2;
  margin-top: 10px;
  padding: 14px 10px;
  font-size: 0.98rem;
  color: #234378;
}

.links-to-resources ul {
  list-style: none;padding:0;margin:6px 0 0 0;display: flex;flex-direction: column;gap:9px; }
.links-to-resources li a { color: var(--secondary); font-weight: 600; transition:color .16s; }
.links-to-resources li a:hover { color: var(--gold-dark);text-decoration: underline; }


/* =============== FOOTER =============== */
footer {
  background: var(--footer-bg);
  padding: 48px 0 22px 0;
  color: #EAE8DE;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
  justify-content: space-between;
}
footer img {
  height: 44px;
  width: auto;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-right: 12px;
}
footer nav a {
  color: #EAE8DE;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 2px;
  text-decoration: none;
  transition: color .16s;
}
footer nav a:hover,footer nav a:focus-visible { color: var(--gold);text-decoration: underline; }
footer address {
  color: #e5dca6;
  font-size: 0.97rem;
}
 
@media (max-width: 1100px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .content-wrapper { padding: 0; }
}
@media (max-width: 960px) {
  .container { padding-left: 6px; padding-right: 6px; }
}

/* -------------- RESPONSIVE -------------- */
@media (max-width: 900px) {
  footer .container { flex-direction: column; gap: 32px; padding-bottom: 0; }
}
@media (max-width: 800px) {
  .features-grid > div, .skills-grid > div, .advantages > div, .training-program-cards > div, .course-cards > div {
    flex: 1 1 180px;
    min-width: 170px;
  }
}
@media (max-width: 650px) {
  .hero .content-wrapper { padding:10px 5px; }
  .features-grid, .skills-grid, .advantages, .training-program-cards, .course-cards, .testimonials-grid {
    gap:16px;
  }
  .features-grid > div, .skills-grid > div, .advantages > div, .training-program-cards > div, .course-cards > div, .testimonial-card {
    min-width: 100%;
    flex: 1 1 96%;
    padding-left: 11px;
    padding-right: 11px;
  }
  .infographic-blocks > div { min-width: 100%; }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 0;
  }
  header nav {
    display: none!important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero h1 { font-size: 1.5rem; }
  .hero .content-wrapper { padding:11px 4px; }
  .features-grid, .skills-grid, .advantages, .testimonials-grid,
  .training-program-cards, .course-cards, .content-grid, .infographic-blocks {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .testimonial-card {max-width:100%;padding:18px 9px 16px 13px;}
  .content-wrapper {padding:0;}
  footer .container { flex-direction: column;gap:25px; }
  .content-grid { flex-direction: column;gap:12px; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 16px;}
}

/* =============== COOKIE CONSENT BANNER =============== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  width: 100vw;
  background: #fffbe8;
  color: #60605c;
  border-top: 2.5px solid var(--gold);
  box-shadow: 0 -4px 36px rgba(35,67,120,0.07);
  z-index: 1400;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px 18px 24px;
  font-size: 0.99rem;
  transition: transform .32s;
  gap: 20px;
  visibility: visible;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
}
.cookie-banner .cookie-btn {
  margin-left: 0;
  margin-top: 0;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    padding: 18px 10px 18px 8px;
    align-items: flex-start;
    gap: 14px;
  }
  .cookie-banner .cookie-btn {
    width: 100%;
    margin-bottom: 7px;
  }
}

/* Cookie settings MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(25,29,37,0.95);
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity .22s;
}
.cookie-modal-overlay.open { display: flex; }
.cookie-modal {
  background: #fff;
  color: #222;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px #23437822;
  max-width: 99vw;
  width: 400px;
  padding: 42px 30px 24px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h3 { color: var(--primary); font-size: 1.18rem; margin-bottom:12px; }
.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.cookie-toggle-row label {
  font-size: 1rem;
}
.cookie-toggle-switch {
  width: 46px; height: 25px;
  border-radius: 18px;
  background: #eceae7;
  position: relative;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  transition: background .14s;
  margin-left:8px;
}
.cookie-toggle-switch input {
  opacity: 0; width:0; height:0; position: absolute;
}
.cookie-toggle-slider {
  position: absolute;
  top: 3px; left: 4px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #BFA142;
  transition: left .23s, background .17s;
}
.cookie-toggle-switch input:checked + .cookie-toggle-slider {
  left: 23px;
  background: var(--secondary);
}
.cookie-modal .modal-close {
  position: absolute;
  top: 13px; right: 14px;
  background: none;
  border: none;
  font-size: 2.0rem;
  color: var(--primary);
  cursor: pointer;
  transition: color .17s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus-visible {
  color: var(--gold-dark);
}
.cookie-modal .cookie-btn {
  margin-right: 10px;
}
.cookie-modal .cookie-btn:last-child {
  margin-right:0;
}

@media (max-width:460px){
  .cookie-modal { width: 93vw; padding: 16px 6vw 18px 6vw;}
}


/* =================== ANIMATIONS / TRANSITIONS =================== */
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu,
  .cookie-modal-overlay,
  .cookie-modal,
  .cookie-banner { transition: all .3s; }
}

/* Fade-in utility for modals etc. */
.fade-in { animation: fadein .33s cubic-bezier(.4,.86,.65,1.25); }
@keyframes fadein {
  0% {opacity:0;transform:scale(.95);}
  60%{opacity:1;transform:scale(1.03)}
  100%{opacity:1;transform:scale(1)}
}


/* =================== END - CSS =================== */
