/* === CSS RESET & NORMALIZE === */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  margin: 0;
  background: #FFFDF6;
  color: #413331;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 18px;
  color: #1B263B;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2rem; }
@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
}
h2 { font-size: 1.5rem; }
@media (min-width: 768px) {
  h2 { font-size: 2rem; }
}
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p {
  margin-bottom: 16px;
}
ul, ol {
  margin-left: 20px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
a {
  color: #1B263B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #39A9DB;
  text-decoration: underline;
}
strong, b {
  color: #1B263B;
}
blockquote {
  background: #FFE06633;
  border-left: 5px solid #FFE066;
  padding: 16px 24px;
  border-radius: 16px;
  font-style: italic;
  margin-bottom: 24px;
  color: #633B1B;
}

/* === UTILITY CLASSES === */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
@media (min-width: 992px) {
  .content-wrapper {
    gap: 24px;
  }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* === HEADER === */
header {
  background: #FFE066;
  box-shadow: 0 2px 12px 0 rgba(27,38,59,0.06);
  border-bottom: 2px solid #F6B93B22;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  border-radius: 10px;
  padding: 6px 13px;
  transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a:focus {
  background: #FFE066bb;
  color: #1B263B;
  text-decoration: none;
}
.btn.primary {
  background: #FFB347;
  color: #1B263B;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 12px 28px;
  border-radius: 32px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  box-shadow: 0 3px 15px 0 rgba(255,176,70,0.10), 0 2px 8px 0 rgba(27,38,59,0.07);
  transition: background 0.15s, transform 0.12s, box-shadow 0.2s;
  cursor: pointer;
  margin-left: 16px;
  outline: none;
  display: inline-block;
}
.btn.primary:hover,
.btn.primary:focus {
  background: #FFC977;
  color: #1B263B;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 5px 20px 0 rgba(255,226,102,0.17);
}

.mobile-menu-toggle {
  display: none;
  background: #FFE066;
  color: #1B263B;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.2s;
  z-index: 102;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #FFDC85;
  box-shadow: 0 4px 16px rgba(255,224,102,0.17);
}
@media (max-width: 992px) {
  nav {
    display: none;
  }
  .btn.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
/* -- MOBILE MENU -- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 88vw;
  max-width: 350px;
  height: 100vh;
  background: #FFFDF6;
  box-shadow: -4px 0 22px #1B263B22, 0 2px 16px #FFE06644;
  transform: translateX(110%);
  transition: transform 0.27s cubic-bezier(.47,1.64,.41,.8);
  z-index: 110;
  display: flex;
  flex-direction: column;
  padding-top: 32px;
  padding-bottom: 32px;
  gap: 16px;
}
.mobile-menu.active {
  transform: translateX(0);
  transition: transform 0.29s cubic-bezier(.47,1.64,.41,.8);
}
.mobile-menu-close {
  background: none;
  color: #1B263B;
  border: none;
  font-size: 2rem;
  align-self: flex-end;
  margin-right: 20px;
  cursor: pointer;
  padding: 0 6px;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #39A9DB;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 23px;
  margin-top: 24px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  color: #1B263B;
  padding: 10px 0 10px 18px;
  border-radius: 15px;
  width: 100%;
  transition: background 0.18s, color 0.16s, padding 0.12s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #FFE066;
  color: #39A9DB;
  padding-left: 25px;
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}
/* -- END MOBILE NAV -- */

/* === HERO SECTIONS === */
.hero {
  background: #FFFDF6;
  padding: 60px 0 40px 0;
  margin-bottom: 0px;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 650px;
  gap: 22px;
}
.hero h1 {
  color: #D28100;
  font-size: 2.4rem;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.hero p {
  font-size: 1.18rem;
  color: #604C25;
}
@media (min-width: 768px) {
  .hero {
    padding: 80px 0 60px 0;
  }
  .hero h1 {
    font-size: 3rem;
  }
}

/* === FEATURES === */
.features {
  background: #FFF7E1;
  border-radius: 0 0 46px 46px;
  padding-top: 38px;
  padding-bottom: 45px;
  margin-bottom: 60px;
  box-shadow: 0 7px 32px 0 #FFF3B0cc;
}
.features h2 {
  text-align: left;
  color: #876705;
  margin-bottom: 32px;
}
.features ul {
  list-style: none;
  padding-left: 0;
}
.features ul li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
}
/* Feature grid with flex, never grid */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FFFFFF;
  border-radius: 23px;
  box-shadow: 0 2px 13px 0 rgba(100, 75, 25, 0.07);
  padding: 32px 26px 28px 26px;
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 340px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.feature-item img {
  width: 36px;
  height: 36px;
}
.feature-item h3 {
  font-size: 1.13rem;
  color: #8C6200;
  margin-bottom: 3px;
}
.feature-item p {
  font-size: 1rem;
  color: #5A4421;
}
.feature-item:hover,
.feature-item:focus {
  box-shadow: 0 7px 30px #FFE06655;
  transform: translateY(-4px) scale(1.025);
}

@media (max-width: 1024px) {
  .feature-grid {
    gap: 16px;
  }
  .feature-item {
    min-width: 180px;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-item {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

/* PLAN GRID (PLANY TRENINGOWE) */
.plan-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.plan-card {
  flex: 1 1 285px;
  min-width: 240px;
  max-width: 370px;
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 6px 24px rgba(27,38,59,0.07);
  padding: 32px 22px 26px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.19s;
}
.plan-card h3 {
  color: #967105;
}
.plan-card ul {
  margin-left: 18px;
  margin-bottom: 10px;
}
.plan-card:hover,
.plan-card:focus {
  box-shadow: 0 10px 36px #FFE06644;
  transform: translateY(-3px) scale(1.02);
}
@media (max-width: 900px) {
  .plan-grid {
    flex-direction: column;
    gap: 16px;
  }
  .plan-card {
    width: 100%;
    min-width: 0;
  }
}

/* === TESTIMONIALS === */
.testimonials {
  background: #FFFCE7;
  border-radius: 29px;
  padding-top: 36px;
  padding-bottom: 36px;
  margin-bottom: 60px;
}
.testimonials h2 {
  margin-bottom: 30px;
  color: #B78100;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #FFF7E1;
  border-radius: 21px;
  box-shadow: 0 2px 16px #FFE06660;
  padding: 20px 28px;
  margin-bottom: 20px;
  color: #3C2712;
  max-width: 500px;
  font-size: 1.05rem;
  transition: box-shadow 0.17s, transform 0.17s;
}
.testimonial-card p {
  color: #57412A;
  font-style: italic;
  margin-bottom: 2px;
}
.testimonial-card b { color: #1B263B; }
.testimonial-card:hover,
.testimonial-card:focus {
  box-shadow: 0 8px 30px #FFE06677;
  transform: translateY(-2px) scale(1.025);
}

@media (min-width: 900px) {
  .testimonials .content-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex: 1 1 300px;
    max-width: 380px;
  }
}
@media (max-width: 768px) {
  .testimonial-card {
    padding: 18px 14px;
    max-width: 100%;
  }
  .testimonials .content-wrapper {
    gap: 16px;
  }
}

/* === CARDS (GENERAL) === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 3px 23px #FFE06633;
  padding: 20px;
  transition: box-shadow 0.22s, transform 0.16s;
}
.card:hover, .card:focus {
  box-shadow: 0 7px 35px #FFE06655;
  transform: translateY(-3px) scale(1.015);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* === BLOG and POSTS === */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.blog-post {
  background: #FFF7E1;
  border-radius: 18px;
  box-shadow: 0 2px 13px #FFE06633;
  padding: 24px 22px 18px 22px;
  flex: 1 1 270px;
  min-width: 200px;
  max-width: 360px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.15s, transform 0.13s;
}
.blog-post h3 {
  color: #876705;
  font-size: 1.1rem;
}
.blog-post span {
  background: #FFE066;
  border-radius: 7px;
  color: #744A06;
  padding: 1px 8px;
  font-size: 0.95em;
}
.blog-post:hover,
.blog-post:focus {
  box-shadow: 0 8px 20px #FFE06655;
  transform: translateY(-2px) scale(1.017);
}
@media (max-width: 840px) {
  .blog-list {
    flex-direction: column;
    gap: 14px;
  }
  .blog-post {
    width: 100%;
    min-width: 0;
  }
}

/* === CTA SECTION === */
.cta {
  background: #FFE066;
  border-radius: 36px;
  box-shadow: 0 4px 42px 0 #FFD16618;
  text-align: left;
  margin-bottom: 60px;
  padding-bottom: 60px;
  padding-top: 42px;
}
.cta h2 {
  color: #1B263B;
}
.cta p {
  color: #5A4421;
  font-size: 1.12rem;
}

/* === ABOUT, TERMS, PRIVACY, COOKIE POLICY ETC. === */
.about, .privacy-policy, .cookie-policy, .rodo, .terms-of-service {
  background: #FFFCF4;
  border-radius: 19px;
  padding-top: 35px;
  padding-bottom: 40px;
  margin-bottom: 60px;
  box-shadow: 0 2px 12px #FFE06633;
}
.about ul, .privacy-policy ul, .cookie-policy ul, .rodo ul, .terms-of-service ul {
  margin-bottom: 20px;
}
.about ul li, .privacy-policy ul li, .cookie-policy ul li, .rodo ul li, .terms-of-service ul li {
  color: #876705;
}
@media (max-width: 680px) {
  .about, .privacy-policy, .cookie-policy, .rodo, .terms-of-service {
    padding-left: 9px;
    padding-right: 9px;
  }
}

/* === CONTACT SECTION === */
.contact {
  background: #FFF7E1;
  border-radius: 19px;
  box-shadow: 0 3px 15px #FFE06633;
  padding-top: 25px;
  padding-bottom: 28px;
  margin-bottom: 60px;
}
.contact img {
  width: 20px;
  height: 20px;
  margin-right: 7px;
  vertical-align: middle;
}

/* === FOOTER === */
footer {
  background: #1B263B;
  color: #FFE066;
  padding: 38px 0 32px 0;
  border-radius: 39px 39px 0 0;
  box-shadow: 0 -12px 44px #1B263B11;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-direction: row;
}
.footer-menu {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-menu a {
  color: #FFFDF6;
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: 10px;
  transition: background 0.16s, color 0.15s;
}
.footer-menu a:hover,
.footer-menu a:focus {
  background: #FFE066;
  color: #1B263B;
}
.footer-contact p,
.footer-contact img {
  color: #FFFDF6;
  font-size: 0.98rem;
  margin-bottom: 6px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.footer-social a {
  background: #FFE066;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px #FFE06635;
  transition: background 0.15s;
}
.footer-social a:hover {
  background: #FFC84D;
}
.footer-social img {
  width: 20px;
  height: 20px;
}
.footer-newsletter p {
  color: #FFE066;
  font-size: 1rem;
  margin-top: 12px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-menu {
    gap: 10px;
    margin-bottom: 8px;
  }
}

/* === COOKIE CONSENT === */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: #FFE066;
  color: #1B263B;
  box-shadow: 0 -2px 22px #1B263B24;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  z-index: 140;
  gap: 18px;
  animation: cookieIn 0.39s cubic-bezier(.59,1.39,.43,.88);
}
@keyframes cookieIn {
  from {
    transform: translateY(70px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.cookie-consent-banner p {
  margin: 0;
  font-size: 1rem;
  color: #513612;
  flex: 1 1 auto;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  background: #1B263B;
  color: #FFE066;
  padding: 9px 22px;
  border-radius: 21px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.12s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #39A9DB;
  color: #FFE066;
}
.cookie-btn.settings {
  background: #FFE066;
  color: #1B263B;
  border: 1px solid #1B263B33;
  font-weight: 400;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #FFC84D;
  color: #1B263B;
}
@media (max-width: 768px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 9px;
  }
  .cookie-buttons {
    flex-direction: row;
    gap: 8px;
  }
}
/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(27, 38, 59, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 145;
  animation: fadeIn 0.18s linear;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #FFFDF6;
  border-radius: 22px;
  padding: 38px 28px 28px 28px;
  max-width: 390px;
  box-shadow: 0 7px 45px #1B263B22;
  color: #1B263B;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 200;
  animation: modalPop 0.21s cubic-bezier(.47,1.64,.41,.8);
}
@keyframes modalPop {
  from {
    transform: scale(0.95);
    opacity: 0.6;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.cookie-modal h3 {
  margin-bottom: 9px;
  font-size: 1.23rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.cookie-category label {
  font-size: 1rem;
  color: #604C25;
}
.cookie-category input[type="checkbox"] {
  accent-color: #39A9DB;
  width: 20px;
  height: 20px;
}
.cookie-category input[disabled] {
  accent-color: #FFE066;
  opacity: 0.51;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 10px;
}
.cookie-modal .cookie-btn {
  width: auto;
}
.cookie-modal .cookie-btn.settings {
  background: #FFE066;
  color: #1B263B;
  border: 1px solid #1B263B33;
}
.cookie-modal .cookie-btn.settings:hover {
  background: #FFC84D;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 10px;
  top: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #1B263B;
  cursor: pointer;
}
.cookie-modal .close-modal:hover {
  color: #39A9DB;
}

@media (max-width: 430px) {
  .cookie-modal {
    padding: 15px 4px 20px 10px;
    min-width: 220px;
  }
}

/* === BUTTONS === */
.btn, .cookie-btn {
  transition: background 0.17s, color 0.14s, transform 0.18s, box-shadow 0.17s;
}
.btn:active, .cookie-btn:active {
  transform: scale(0.98);
  box-shadow: 0 1px 5px #FFE06666;
}

/* === GENERAL RESPONSIVENESS === */
@media (max-width: 620px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  .section, .about, .features, .cta, .contact, .services, .privacy-policy, .cookie-policy {
    padding: 28px 6px;
  }
}

/* === MISCELLANEOUS === */
::-webkit-scrollbar {
  width: 11px;
  background: #FFE06622;
}
::-webkit-scrollbar-thumb {
  background: #FFE066;
  border-radius: 8px;
}

/* === FOCUS VISIBILITY === */
:focus {
  outline: 2px solid #39A9DB88;
  outline-offset: 3px;
}

/* === HIDE ELEMENTS FOR DEMO/NO FORM === */
input, textarea, select, form {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}

/* === END OF STYLE.CSS === */
