/* =============================
   Magnet Wind Akademia Językowa
   gradient_modern CSS Framework
   ============================= */

/* 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;
}

html {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  color: #222;
  background: linear-gradient(135deg, #fdfdfd 0%, #eaf6fa 100%);
  background-color: #fdfdfd;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

ul, ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: #005681;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #058cd6;
}

/* SCROLLBAR (Chrome, Edge, Safari) */
::-webkit-scrollbar { width: 8px; background: #eaf6fa; }
::-webkit-scrollbar-thumb { background: #6bc1d6; border-radius: 8px; }

/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  color: #005681;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.65rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
}
p, li, .text-section {
  font-size: 1rem;
  color: #222;
}
p {
  margin-bottom: 18px;
}
strong, b {
  font-weight: bold;
  color: #005681;
}

.text-section {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.15rem; }
}

/* ==================================
   LAYOUT CONTAINERS & SECTION SPACING
   ================================== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: rgba(255,255,255,0.85);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(108,193,214,0.09);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 24px 8px;
    border-radius: 16px;
  }
  .container {
    padding: 0 4px;
  }
}

/* ==================================
   NAVIGATION / HEADER
   ================================== */
header {
  width: 100%;
  background: linear-gradient(90deg, #eaf6fa 60%, #fdfdfd 90%);
  box-shadow: 0 2px 14px rgba(0,86,129,0.04);
  z-index: 30;
  position: sticky;
  top: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 72px;
  min-height: 64px;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 0 24px;
  font-size: 1rem;
}
.main-nav > a {
  display: flex;
  align-items: center;
  height: 44px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #005681;
  opacity: 0.95;
  letter-spacing: 0.01em;
  transition: color 0.16s, opacity 0.16s;
  font-weight: 500;
  position: relative;
  margin-bottom: 0;
  padding: 0 10px;
  border-radius: 5px;
}
.main-nav > a:hover,
.main-nav > a:focus {
  color: #045076;
  background: #f3fbff;
  opacity: 1;
}
.main-nav .cta-btn {
  background: linear-gradient(90deg,#005681 60%, #6bc1d6 100%);
  color: #fff;
  border-radius: 25px;
  padding: 0 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  margin-left: 14px;
  margin-right: 0;
  letter-spacing: 0.03em;
  transition: background 0.22s,color 0.22s,box-shadow 0.22s;
  box-shadow: 0 2px 8px rgba(108,193,214,0.12);
  border: none;
  cursor: pointer;
  height: 44px;
  display: flex;
  align-items: center;
}
.main-nav .cta-btn:hover,
.main-nav .cta-btn:focus {
  background: linear-gradient(90deg, #058cd6 10%, #005681 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,86,129,0.16);
}
.main-nav a img {
  width: 44px;
  height: 44px;
  margin-right: 4px;
}

/* HIDE mobile menu toggle (burger) on desktop */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 8px;
    font-size: 0.97rem;
    padding: 0 8px;
  }
}
@media (max-width: 830px) {
  .main-nav {
    flex-wrap: wrap;
    gap: 2px;
    padding: 0 4px;
    font-size: 0.95rem;
  }
  .main-nav .cta-btn {
    font-size: 0.97rem;
    padding: 0 12px;
  }
}
@media (max-width: 740px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 14px;
    right: 18px;
    padding: 6px 15px;
    z-index: 52;
    background: linear-gradient(90deg,#005681 60%, #6bc1d6 100%);
    color: #fff;
    font-size: 2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background .25s, color .25s;
    box-shadow: 0 2px 12px rgba(0,86,129,0.13);
  }
  .mobile-menu-toggle:active {
    background: #005681;
  }
}

/* =====================
   MOBILE SLIDE MENU
   ===================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 375px;
  height: 100vh;
  background: linear-gradient(135deg,#fdfdfd 90%, #eaf6fa 100%);
  box-shadow: -2px 0 32px rgba(0,86,129,0.10);
  transform: translateX(105%);
  transition: transform .38s cubic-bezier(.67,0,.27,1), opacity .2s;
  z-index: 1200;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 0 0 0 0;
  will-change: transform, opacity;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  display: block;
  align-self: flex-end;
  background: #005681;
  color: #fff;
  font-size: 2.3rem;
  border-radius: 8px;
  margin: 24px 30px 8px 0;
  padding: 0 18px;
  height: 44px;
  width: 44px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,86,129,.12);
  transition: background .2s;
}
.mobile-menu-close:hover {
  background: #058cd6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 0 36px;
  margin-top: 8px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  color: #005681;
  font-weight: 500;
  padding: 14px 8px;
  width: 100%;
  border-radius: 8px;
  transition: background .14s, color .18s;
  margin-bottom: 4px;
  letter-spacing: 0.015em;
  display: flex;
  align-items: center;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #e2f0f5;
  color: #058cd6;
}

@media (max-width: 740px) {
  .mobile-menu {
    display: flex;
  }
}

/* Overlay for mobile menu - for anims, could be handled by JS if needed */
.mobile-menu:before {
  content: '';
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(40,72,102,.14);
  z-index: 1050;
  pointer-events: none;
  opacity: 0;
  transition: opacity .28s;
}
.mobile-menu.open:before {
  opacity: 1;
  pointer-events: auto;
}

/* ==================================
   HERO & STANDARD SECTION STYLES
   ================================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  background: none;
  border-radius: 0;
}
section:first-of-type {
  margin-top: 20px;
  background: linear-gradient(108deg, #6BC1D6 18%, #fff 68%);
  border-radius: 24px;
  box-shadow: 0 6px 20px rgba(108,193,214,0.17);
}

@media (max-width: 768px) {
  section,
  section:first-of-type {
    margin-bottom: 32px;
    padding: 22px 7px;
    border-radius: 12px;
  }
}

/* ==================================
   FLEXBOX PATTERNS
   ================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px rgba(33,169,191,.11);
  position: relative;
  padding: 24px 24px 16px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  min-height: 164px;
  transition: box-shadow .22s, transform .13s;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(108,193,214,.22);
  transform: translateY(-2px) scale(1.015);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width:768px){
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* Testimonials / Cards / Section Components */
.testimonial-card {
  background: #f6fbfc;
  border-radius: 16px;
  box-shadow: 0 2px 9px rgba(108,193,214,.13);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  transition: box-shadow .18s, transform .13s;
  min-width: 200px;
}
.testimonial-card p {
  font-size: 1.07rem;
  color: #212d36;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.95rem;
  color: #005681;
  margin-left: auto;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(0,86,129,0.14);
  transform: translateY(-2px) scale(1.012);
}

.feature-item,
.content-wrapper ul li,
.content-wrapper ol li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
  font-size: 1em;
  color: #20506a;
  line-height: 1.6;
}
.content-wrapper ul li img, .content-wrapper ol li img {
  margin-right: 10px;
  width: 28px; height: 28px;
  vertical-align: middle;
  display: inline-block;
}
.content-wrapper ul li,
.content-wrapper ol li {
  flex-direction: row;
  gap: 11px;
  align-items: center;
  background: none;
  padding: 0;
  border-radius: 0;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 14px;
}

/* Avoid last item extra margin */
.content-wrapper ul li:last-child,
.content-wrapper ol li:last-child {
  margin-bottom: 0;
}

/* For overall bold/strong in headings */
.content-wrapper ul li strong {
  color: #005681;
}

@media (max-width:768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 12px;
  }
}

/* ==================================
   BUTTONS, CTAS & INTERACTIONS
   ================================== */
.cta-btn, .cookie-btn, .cookie-settings-btn {
  background: linear-gradient(90deg,#005681 60%, #6bc1d6 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 11px 28px;
  border-radius: 24px;
  font-size: 1.10rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 14px rgba(0,86,129,0.13);
  margin-top: 18px;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  transition: background .21s, color .21s, box-shadow .18s, transform 0.13s;
  outline: none;
  letter-spacing: 0.03em;
  gap: 3px;
}
.cta-btn:hover,
.cta-btn:focus,
.cookie-btn:hover,
.cookie-btn:focus,
.cookie-settings-btn:hover,
.cookie-settings-btn:focus {
  background: linear-gradient(90deg,#058cd6 12%, #005681 100%);
  color: #fff;
  box-shadow: 0 4px 26px rgba(33,169,191,0.21);
  transform: translateY(-2px) scale(1.018);
}

/* ==================================
   FOOTER
   ================================== */
footer {
  background: linear-gradient(90deg,#eaf6fa 80%, #fdfdfd 100%);
  border-top: 3px solid #00568111;
  padding: 0 0 0 0;
  margin-top: 26px;
}
.footer-top {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 36px 8px 12px 8px;
  border-bottom: 1px solid #6bc1d611;
}
.footer-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.98rem;
}
.footer-top a {
  color: #005681; font-family: 'Montserrat', Arial, sans-serif; opacity: 0.96; transition: color .2s, opacity .2s;
}
.footer-top a:hover {
  color: #058cd6; opacity: 1;
}
.footer-contact {
  min-width: 210px;
  font-size: 0.97rem;
  color: #1a4256;
}
.footer-contact p {
  display: flex; align-items: center;
  gap: 6px; margin-bottom: 5px;
}
.footer-contact img {
  width: 19px; height: 19px;
  margin-right: 6px;
}
.footer-bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 8px 20px 8px;
  font-size: 0.95rem;
}
.footer-legal-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #005681;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-legal-links a {
  color: #005681; transition: color .1s;
}
.footer-legal-links a:hover { color: #058cd6; }

@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 28px 8px 8px 8px;
  }
  .footer-top nav {
    gap: 8px;
  }
  .footer-contact { min-width: 135px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ==================================
   COOKIE CONSENT BANNER & MODAL
   ================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  z-index: 2000;
  background: linear-gradient(90deg,#005681 60%, #6bc1d6 100%);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 20px 20px 24px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 28px rgba(0,86,129,0.13);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.03rem;
  letter-spacing: 0.01em;
  transition: bottom .29s, box-shadow .21s,opacity .26s;
  opacity: 1;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-btn, .cookie-banner .cookie-settings-btn {
  margin-top: 0;
  margin-bottom: 0;
  padding: 9px 22px;
  font-size: 1rem;
  border-radius: 18px;
}
.cookie-banner .cookie-btn {
  background: #fff;
  color: #005681;
  font-weight: 600;
  margin-right: 6px;
}
.cookie-banner .cookie-btn.reject {
  background: #eaf6fa;
  color: #005681;
  font-weight: 600;
}
.cookie-banner .cookie-settings-btn {
  background: #6bc1d6;
  color: #fff;
  font-weight: 600;
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-settings-btn:hover {
  background: #058cd6;
  color: #fff;
}

@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    font-size: 0.98rem;
    padding: 14px 8px 14px 8px;
    border-radius: 12px 12px 0 0;
  }
}

/* Cookie Consent Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(22,43,71,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2050;
  opacity: 0;
  pointer-events: none;
  transition: opacity .23s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fdfdfd;
  color: #005681;
  max-width: 390px;
  border-radius: 16px;
  box-shadow: 0 6px 42px rgba(0,86,129,0.20);
  padding: 34px 28px 18px 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 19px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.03rem;
  position: relative;
  animation: showModalOn .31s cubic-bezier(.69,.11,.21,.94);
}
@keyframes showModalOn {
  from { transform: translateY(64px) scale(.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  color: #005681;
  margin-bottom: 7px;
}
.cookie-modal-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-modal-category label {
  font-weight: 600;
  color: #005681;
  font-size: 1rem;
}
.cookie-modal-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #6bc1d6;
  cursor: pointer;
  margin-right: 5px;
}
.cookie-modal-category input[disabled] {
  accent-color: #b8cad0;
  cursor: not-allowed;
}
.cookie-modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 9px;
  margin-top: 5px;
  align-items: flex-end;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #eaf6fa;
  color: #005681;
  border-radius: 8px;
  font-size: 1.5rem;
  padding: 3px 12px;
  border: none;
  cursor: pointer;
  transition: background .13s;
}
.cookie-modal-close:hover {
  background: #6bc1d6;
  color: #fff;
}

@media(max-width:500px){
  .cookie-modal{max-width:99vw;padding:18px 5vw 6px 5vw;}
}

/* ==================================
   UTILS & ANIMATIONS
   ================================== */
.fade-in { animation: fadeIn .25s linear; }
@keyframes fadeIn { from { opacity: 0;} to { opacity:1;}}

/* ===============
   MISC
   =============== */
::selection { background: #6bc1d6; color: #fff; }

/* Links inside .text-section or .content-wrapper */
.text-section a, .content-wrapper a:not(.cta-btn):not(.cookie-btn):not(.cookie-settings-btn) {
  color: #058cd6;
  text-decoration: underline;
  font-weight: 500;
}
.text-section a:hover, .content-wrapper a:not(.cta-btn):not(.cookie-btn):not(.cookie-settings-btn):hover {
  color: #005681;
}

/* Responsive fix for long text in cards and lists */
.card, .testimonial-card { word-break: break-word; }

/* Accordions, toggle, etc (if any) */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

/* ===============
   PRINT
   =============== */
@media print {
  header,footer,.mobile-menu,.cookie-banner,.cookie-modal-overlay { display: none !important; }
  body, section, .container { background: #fff !important; color: #000 !important; }
}

/* ===============
   END OF CSS
   =============== */
