/* -------------------------------------
   Polish Sphere Edukacja - Minimalist CSS
   Brand: Primary #1B3556, Secondary #F0A300, Accent #FFFFFF
   Typography: 'Montserrat' for headings, 'Roboto' for body
   ONLY FLEXBOX for layouts! NO CSS GRID!
----------------------------------------*/

/* RESET & BASELINE ------------------- */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}
*, *:before, *:after {
  box-sizing: border-box;
}
:root {
  --primary: #1B3556;
  --secondary: #F0A300;
  --accent: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-700: #495057;
  --gray-900: #1C1C1C;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius-lg: 18px;
  --radius-md: 10px;
  --shadow-lg: 0 8px 32px rgba(27,53,86,0.06);
  --shadow-md: 0 2.5px 8px rgba(27,53,86,0.09);
  --transition: .20s cubic-bezier(.45,.05,.55,.95);
}
html {
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--accent);
  color: var(--primary);
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0;
  scroll-behavior: smooth;
}

/* Remove styles for all elements */
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  appearance: none;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 4px;
}
ul, ol {
  margin: 0;
  padding-left: 1.2em;
}
ul li, ol li {
  margin-bottom: 0.6em;
}
hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 32px 0;
}

/* TYPOGRAPHY -------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 16px 0;
  letter-spacing: -.01em;
  line-height: 1.11;
}
h1 { font-size: 2.625rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
strong { font-weight: 600; color: var(--primary); }
p, li {
  font-size: 1rem;
  color: var(--gray-900);
  margin-top: 0;
  margin-bottom: 14px;
  line-height: 1.7;
}
.subheadline {
  font-family: var(--font-body);
  font-size: 1.18rem;
  color: var(--gray-700);
  font-weight: 400;
  margin-bottom: 22px;
}

/* LAYOUT STRUCTURE -------------------- */
.container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* CRITICAL FLEXBOX LAYOUTS ------------ */
.card-container {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.card {
  background: var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  padding: 24px 22px;
  position: relative;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  min-width: 265px;
  transition: box-shadow .19s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 36px rgba(27, 53, 86, 0.10);
}

.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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  min-width: 0;
  color: var(--primary);
  transition: box-shadow .17s;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.09rem;
  margin-bottom: 0;
  letter-spacing: 0.01em;
}
.testimonial-card strong {
  color: var(--gray-700);
  font-weight: 600;
  font-size: .96rem;
  letter-spacing: 0.02em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---- Lists and grids ---- */
.feature-grid, .service-list, .benefit-list, .skills-list, .workshop-topics, .flexibility-points {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 16px 0;
  padding: 0;
  list-style: none;
}
.feature-grid li, .service-list li, .benefit-list li, .skills-list li, .workshop-topics li, .flexibility-points li {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 18px 20px 14px 18px;
  box-shadow: var(--shadow-md);
  font-size: 1.03rem;
  flex: 1 1 258px;
  min-width: 210px;
  margin-bottom: 0;
}
.feature-grid li img, .feature-grid div img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
}
.feature-grid div {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 15px 18px 12px 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 205px;
  box-shadow: var(--shadow-md);
  margin-bottom: 0;
}
.benefit-list, .skills-list, .workshop-topics, .flexibility-points {
  gap: 14px;
}
.benefit-list li, .skills-list li, .workshop-topics li, .flexibility-points li {
  padding: 10px 14px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  color: var(--primary);
  font-size: 1rem;
  box-shadow: none;
  border-left: 2.5px solid var(--secondary);
}

/* SECTION, GRID, TEXT BLOCK SPACING --- */
section + section { margin-top: 0; }
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  section { padding: 26px 7px; }
  .container { padding: 0 6px; }
}

/* ---- Text Section and Highlights ---- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: none;
  padding: 0;
}
.team-highlight, .group-work-highlight, .module-overview, .methods-description, .subject-specializations {
  padding: 19px 20px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  color: var(--primary);
  font-size: 1rem;
}
.next-steps { margin-top: 30px; }

/***** HEADER & NAVIGATION **************/
header {
  width: 100%;
  background: var(--accent);
  box-shadow: none;
  padding: 0;
  position: relative;
  z-index: 21;
}
header {
  display: flex;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid var(--gray-200);
}
.logo-link {
  display: flex;
  align-items: center;
  margin-left: 12px;
  margin-right: 18px;
}
header img {
  max-height: 52px;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.01rem;
  color: var(--primary);
  font-weight: 500;
  padding: 7px 0;
  margin: 0 4px;
  transition: color var(--transition);
  border-bottom: 2px solid transparent;
  border-radius: 0;
  letter-spacing: 0.01em;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}
.cta-button {
  background: var(--primary);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.09rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 11px 29px;
  border-radius: 999px;
  box-shadow: 0 2.5px 8px rgba(27,53,86,0.12);
  margin-left: 22px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: inline-block;
  border: none;
  outline: none;
  text-align: center;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(240,163,0,0.10);
}
/* Hide on mobile */
.main-nav, .cta-button {
  transition: all .13s;
}

/***** MOBILE MENU **********************/
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2rem;
  color: var(--primary);
  padding: 7px 11px;
  margin-left: auto;
  margin-right: 10px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: background .12s;
  z-index: 201;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--secondary);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(27,53,86,0.96);
  z-index: 2000;
  padding: 0;
  transform: translateX(100vw);
  transition: transform .26s cubic-bezier(.73, 0, .3, 1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--accent);
  font-size: 2.5rem;
  border: none;
  align-self: flex-end;
  margin: 20px 22px 10px 0;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 8px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 0 37px;
  width: 100%;
}
.mobile-nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.21rem;
  font-weight: bold;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(240,163,0,0.06);
  border-radius: 5px;
}

@media (max-width: 1100px) {
  .main-nav { gap: 14px; }
}
@media (max-width: 960px) {
  .main-nav { gap: 8px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 2px; }
}
@media (max-width: 820px) {
  .main-nav { gap: 2px; }
  .cta-button { margin-left: 6px; padding: 10px 16px; font-size: .99rem; }
}
@media (max-width: 768px) {
  .main-nav,
  header .cta-button { display: none !important; }
  .mobile-menu-toggle { display: block; }
  header { min-height: 56px; }
  .logo-link img { max-height: 40px; }
}

/* --- Main NAV and Mobile Menu layering (critical) --- */
header, .mobile-menu { z-index: 2000; }
.mobile-menu { z-index: 2010; }

/* HERO SECTION ------------------------ */
section > .container > .content-wrapper > h1 {
  font-size: 2.625rem;
  margin-top: 10px;
  margin-bottom: 16px;
  color: var(--primary);
}
section > .container > .content-wrapper > p.subheadline {
  margin-bottom: 27px;
  color: var(--gray-700);
}
section > .container > .content-wrapper > .cta-button {
  margin-top: 10px;
}

@media (max-width: 600px) {
  h1 { font-size: 1.72rem; }
  h2 { font-size: 1.21rem; }
  .main-nav a, .mobile-nav a { font-size: 1.09rem; }
  .cta-button { font-size: .96rem; padding: 10px 19px; }
}

/***** FOOTER **************************/
footer {
  width: 100%;
  background: var(--gray-100);
  padding: 0;
  box-shadow: none;
  border-top: 1px solid var(--gray-200);
}
footer .container {
  padding: 0 12px;
}
footer .content-wrapper {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 80px;
  gap: 18px;
  flex-wrap: wrap;
  padding: 24px 0;
}
.footer-menu {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-menu a {
  font-family: var(--font-display);
  font-size: .97rem;
  color: var(--primary);
  border-radius: 5px;
  padding: 5px 3px;
  transition: color .15s;
}
.footer-menu a:hover,
.footer-menu a:focus {
  color: var(--secondary);
}
.social-media-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.social-media-links a img {
  width: 28px; height: 28px;
  border-radius: 5px;
  transition: filter .15s, box-shadow .15s;
}
.social-media-links a:hover img,
.social-media-links a:focus img {
  filter: brightness(1.2);
  box-shadow: 0 2px 10px rgba(27,53,86,0.09);
}
.address-details {
  font-size: .95rem;
  color: var(--gray-700);
  margin-top: 6px;
}
@media (max-width: 700px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 0;
  }
  .footer-menu, .social-media-links { gap: 14px; }
}

/******* COMPANY LOGOS, ICONS **********/
.company-logos {
  display: flex;
  gap: 36px;
  align-items: center;
  margin: 8px 0 0 0;
}
.company-logos img {
  height: 37px;
  filter: grayscale(.2) contrast(.85);
  opacity: .9;
  transition: filter .14s, opacity .14s;
}
.company-logos img:hover,
.company-logos img:focus {
  filter: none;
  opacity: 1;
}
.feature-icons {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 17px;
  margin-top: 3px;
}
.feature-icons span {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 7px 8px;
  display: flex;
  align-items: center;
  min-width: 40px;
  box-shadow: var(--shadow-md);
}
.feature-icons img {
  width: 27px;
  height: 27px;
}

/******* FAQ & SUPPORT SECTIONS ********/
.faq, .support-options {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-top: 14px;
  box-shadow: var(--shadow-md);
}
.faq h3, .support-options h3 {
  margin-top: 0;
  font-size: 1.04rem;
  margin-bottom: 13px;
  color: var(--primary);
}
.faq ul, .support-options ul {
  margin: 0;
  padding: 0 0 0 15px;
}
.faq li, .support-options li {
  font-size: .99rem;
  margin-bottom: 11px;
}

/********* ADDRESS & MAP SECTION *******/
.address-map {
  margin: 18px 0 0 0;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 19px 20px;
  color: var(--primary);
  font-size: .98rem;
  box-shadow: var(--shadow-md);
}

/****** ANIMATIONS & MICROINTERACTIONS ********/
.cta-button, .main-nav a, .footer-menu a {
  transition: background .16s, color .16s, box-shadow .16s, border-bottom .18s;
}
.card, .testimonial-card {
  transition: box-shadow .17s, background .13s;
}
.card:hover, .testimonial-card:hover {
  background: #f3f6fb;
  box-shadow: 0 8px 32px rgba(27,53,86,0.25);
}

/******* RESPONSIVE FLEX LAYOUTS ******/
@media (max-width: 1020px) {
  .feature-grid, .service-list, .content-grid {
    flex-basis: 100%;
    gap: 13px;
  }
}
@media (max-width: 900px) {
  .feature-grid li, .feature-grid div, .service-list li {
    min-width: 48vw;
  }
}
@media (max-width: 570px) {
  .feature-grid li, .feature-grid div, .service-list li {
    min-width: 93vw;
    width: 100%;
  }
}
.text-image-section {
  flex-direction: row;
}
@media (max-width: 768px) {
  .content-wrapper { gap: 16px; }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

/***** COOKIE CONSENT BANNER & MODAL *****/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 5010;
  background: var(--primary);
  color: var(--accent);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 23px 36px;
  box-shadow: 0 -4px 24px rgba(27,53,86,0.08);
  min-height: 80px;
  font-size: 1rem;
  gap: 20px;
  animation: fadeDown .43s cubic-bezier(.45,.05,.55,.95);
}
@media (max-width: 630px) {
  .cookie-banner { flex-direction: column; align-items: stretch; padding: 13px 7px; gap: 18px; }
}
.cookie-banner__actions {
  display: flex;
  gap: 15px;
}
.cookie-btn {
  background: var(--accent);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.01rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 8px 22px;
  margin: 0;
  border: none;
  cursor: pointer;
  transition: background .13s, color .13s, box-shadow .13s;
  box-shadow: 0 1px 6px rgba(27,53,86,0.09);
}
.cookie-btn.secondary {
  background: var(--secondary);
  color: var(--primary);
  margin-left: 0;
}
.cookie-btn.reject {
  background: #DDE0E4;
  color: var(--primary);
}
.cookie-btn:hover,
.cookie-btn:focus {
  box-shadow: 0 3px 14px rgba(240,163,0,0.15);
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #F0A30055;
}
/* Cookie preferences modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  z-index: 5012;
  background: rgba(27, 53, 86, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp .33s cubic-bezier(.51,.13,.62,1);
}
.cookie-modal__content {
  background: var(--accent);
  color: var(--primary);
  max-width: 388px;
  width: 90%;
  padding: 35px 30px 31px 30px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 17px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 10px;
  right: 18px;
  color: var(--primary);
  font-size: 1.8rem;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 2px 7px;
  transition: background .09s;
}
.cookie-modal__close:hover,
.cookie-modal__close:focus {
  background: var(--gray-100);
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  margin-bottom: 7px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 18px; height: 18px;
  margin: 0 6px 0 0;
}
.cookie-category label {
  font-size: .98rem;
  cursor: pointer;
}
.cookie-category.essential label {
  font-weight: 600;
  color: var(--primary);
}
.cookie-category.essential input[type="checkbox"] {
  pointer-events: none;
  opacity: .6;
}
@keyframes fadeDown {
  from { transform: translateY(45px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeUp {
  from { transform: translateY(70px) scale(.93); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* -------------- END -------------- */
