/* ===================== CSS RESET & NORMALIZE ===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #1A2748;
  background: #EBF0F8;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: #EBF0F8;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #E85D23;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #D9480F;
  text-decoration: underline;
}
ul,ol {
  margin-left: 1.25em;
}
ul ul, ul ol, ol ul, ol ol {
  margin-bottom: 0;
}
button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0 24px 0;
  font-size: 1rem;
}
th,
td {
  padding: 15px 10px;
  border: 1px solid #C8D6F1;
  text-align: left;
}
th {
  background: #1A2748;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
}
tr:nth-child(even) {
  background: #F4F8FB;
}

/* ===================== PLAYFUL DYNAMIC BASE COLORS ===================== */
:root {
  --color-primary: #1A2748;
  --color-secondary: #EBF0F8;
  --color-accent: #E85D23;
  --color-accent-dark: #D9480F;
  --color-playful-blue: #3BB6FF;
  --color-playful-yellow: #FFD900;
  --color-playful-pink: #FF5BAE;
  --color-light-bg: #FFF;
  --color-dark-text: #1A2748;
  --color-footer-bg: #fff;
}

/* ===================== TYPOGRAPHY PLAYFUL DYNAMIC ===================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  letter-spacing: 0.01em;
  color: var(--color-primary);
  font-weight: bold;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 16px;
  line-height: 1.17;
  font-weight: 900;
  text-shadow: 1px 2px 0px var(--color-playful-yellow);
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  font-weight: 700;
  text-shadow: 0.5px 2px 0px var(--color-playful-blue);
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
p {
  font-size: 1.15rem;
  color: var(--color-dark-text);
  margin-bottom: 18px;
}
ul li, ol li {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 7px;
}
strong {
  font-weight: bold;
  color: var(--color-accent-dark);
}

/* ===================== CONTAINER & LAYOUT SPACING ===================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light-bg);
  border-radius: 24px;
  box-shadow: 0 6px 18px 0 rgba(50,80,190,0.06), 0 1px 2px 0 rgba(53,133,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: visible;
}
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
@media (max-width: 768px) {
  .content-wrapper {
    padding: 24px 8px;
    margin-bottom: 35px;
    gap: 16px;
    border-radius: 15px;
  }
  section {
    padding: 26px 0 18px 0;
    margin-bottom: 38px;
  }
  .container {
    padding: 0 6px;
  }
}

/* ===================== FLEXBOX Patterns ===================== */
.card-container,
.card-grid,
.content-grid,
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
}
@media (max-width: 1000px) {
  .card-container,
  .card-grid,
  .content-grid,
  .features {
    gap: 18px;
  }
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 18px 0 rgba(46,37,72,0.05);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.23s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(232,93,35,0.12);
  transform: translateY(-4px) scale(1.03);
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #FFF5EC;
  border-radius: 23px 7px 23px 7px;
  margin-bottom: 20px;
  box-shadow: 0 5px 16px 0 rgba(232,93,35,0.07), 0 2px 5px 0 rgba(0,0,0,0.02);
  border-left: 6px solid var(--color-accent);
  position: relative;
  font-size: 1.13rem;
}
.testimonial-card strong {
  color: var(--color-primary);
  font-weight: 700;
}
.testimonial-card span {
  color: var(--color-accent-dark);
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 2px;
}
.testimonial-card p {
  color: #2F2839;
  font-size: 1.08rem;
}

@media (max-width: 600px) {
  .testimonial-card {
    padding: 13px 9px;
    font-size: 0.99rem;
    border-radius: 14px 6px 14px 6px;
    gap: 10px;
  }
}

/* ===================== NAVBAR & HEADER ===================== */
header {
  background: #fff;
  box-shadow: 0 1px 10px 0 rgba(60, 65, 95, 0.05);
  width: 100%;
  position: relative;
  z-index: 10;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 18px;
  position: relative;
}
.logo-link img {
  height: 44px;
  min-width: 44px;
  transition: transform 0.22s;
}
.logo-link:hover img {
  transform: scale(1.085) rotate(-7deg);
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  align-items: center;
  margin-left: 18px;
  margin-right: 8px;
}
.main-nav ul li a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.03rem;
  color: #1A2748;
  font-weight: 500;
  border-radius: 6px;
  padding: 7px 13px;
  transition: background 0.19s, color 0.19s, box-shadow 0.19s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  background: var(--color-playful-yellow);
  color: var(--color-accent-dark);
  text-decoration: none;
  box-shadow: 0 3px 8px 0 rgba(255,217,0,0.09);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1.08rem;
  font-weight: bold;
  padding: 12px 33px;
  background: linear-gradient(98deg, #E85D23 60%, #FFD900 100%);
  color: #fff;
  border-radius: 26px 9px 23px 12px;
  box-shadow: 0 4px 18px 0 rgba(217,72,15,0.12);
  transition: background 0.22s, box-shadow 0.25s, transform 0.11s;
  border: 2px solid transparent;
  outline: none;
  margin-left: 16px;
  margin-top: 0;
  margin-bottom: 0;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(0,0,0,0.11);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(87deg, #FFD900 45%, #E85D23 100%);
  color: #1A2748;
  box-shadow: 0 6px 26px 0 rgba(255,217,0,0.15);
  transform: translateY(-2px) scale(1.045) rotate(-1.5deg);
  border: 2px solid #FFD900;
}
@media (max-width: 1000px) {
  .btn-primary {
    padding: 10px 20px;
    font-size: 1rem;
    margin-left: 6px;
  }
}

/* ===================== MOBILE MENU (BURGER) ===================== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 12px;
  top: 19px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 8px;
  font-size: 2.2rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 102;
  border: none;
  transition: background 0.25s, transform 0.09s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: #FFD900;
  transform: scale(1.09) rotate(-5deg);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 98vw;
  max-width: 410px;
  height: 100vh;
  background: #1A2748;
  box-shadow: -4px 0 28px 0 rgba(29,50,101,0.21);
  transform: translateX(102%);
  transition: transform 0.36s cubic-bezier(.45,.56,.23,.99);
  z-index: 2005;
  display: flex;
  flex-direction: column;
  padding: 27px 33px 20px 27px;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  color: #fff;
  background: var(--color-playful-pink);
  border-radius: 8px;
  border: none;
  font-size: 2rem;
  height: 44px;
  width: 44px;
  align-self: flex-end;
  margin-bottom: 16px;
  position: relative;
  z-index: 2007;
  box-shadow: 0 2px 12px 0 rgba(255,91,174,0.13);
  transition: background 0.2s,
              color 0.2s,
              transform 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-playful-yellow);
  color: #E85D23;
  transform: scale(1.065) rotate(2deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 9px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.7px;
  border-radius: 7px;
  padding: 13px 14px;
  transition: background 0.18s, color 0.18s;
  min-width: 65vw;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-playful-blue);
  color: #FFD900;
}

@media (max-width: 1024px) {
  .main-nav ul {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--color-footer-bg);
  border-top: 2px solid #E85D23;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 13px;
  padding: 18px 0 6px 0;
  font-size: 1rem;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--color-accent);
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 600;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s, box-shadow 0.15s;
  padding: 6px 9px;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-playful-yellow);
  color: #1A2748;
  box-shadow: 0 2px 7px 0 rgba(255,217,0,0.09);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 22px 0;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.025rem;
  flex-wrap: wrap;
}
.footer-brand img {
  height: 35px;
  min-width: 35px;
  margin-right: 5px;
}

/* ===================== CARDS, SECTIONS, FEATURE ITEMS ===================== */
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 17px 21px 13px 21px;
  box-shadow: 0 3px 11px rgba(59,182,255,0.09);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.17s;
  border-left: 4px solid var(--color-playful-blue);
}
.card:hover {
  box-shadow: 0 8px 30px 0 rgba(59,182,255,0.16);
  transform: translateY(-3px) scale(1.03) rotate(-1deg);
  border-left: 4px solid var(--color-accent);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .content-grid {
    gap: 14px;
  }
  .card-container, .card-grid {
    gap: 14px;
  }
}
@media (max-width: 720px) {
  .content-grid, .card-grid, .card-container {
    flex-direction: column;
    gap: 9px;
  }
}

/* ===================== TABLE STYLES ===================== */
table thead tr {
  background: var(--color-primary);
  color: #fff;
}
table th {
  color: #fff;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.03rem;
}
table td {
  background: #fff;
  color: #1A2748;
  font-size: 1rem;
  vertical-align: middle;
}
table tr:nth-child(even) td {
  background: #EBF0F8;
}
@media (max-width: 660px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  tr {
    margin-bottom: 20px;
    border-bottom: 2px solid #D2DEFD;
    box-shadow: 0 2px 8px rgba(26,39,72,0.04);
  }
  td, th {
    padding: 12px 9px;
  }
}

/* ===================== FORM & INPUTS ===================== */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: 7px;
  border: 1.5px solid #DEDEFA;
  margin-bottom: 13px;
  background: #F4F7FE;
  outline: none;
  color: #1A2748;
  transition: border-color 0.19s, box-shadow 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #E85D23;
  box-shadow: 0 2px 9px rgba(232,93,35,0.09);
}
label {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: #1A2748;
  margin-bottom: 4px;
}

/* ===================== ANIMATIONS FOR PLAYFUL DYNAMIC ===================== */
@keyframes bounceIn {
  0%   { transform: scale(0.85); opacity: 0.4; }
  50%  { transform: scale(1.045); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes funWiggle {
  0% { transform: rotate(-1deg); }
 33% { transform: rotate(2.5deg); }
 67% { transform: rotate(-3deg); }
100% { transform: rotate(0deg); }
}
@keyframes fadeInUp {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.btn-primary, .main-nav ul li a, .footer-nav a, .mobile-nav a {
  animation: bounceIn 0.7s cubic-bezier(.55,1.51,.46,1.01);
}
.logo-link img:hover {
  animation: funWiggle 0.4s;
}
section, .testimonial-card, .card {
  animation: fadeInUp 0.75s cubic-bezier(.55,1.51,.46,1.01);
}

/* ===================== COOKIE CONSENT BANNER ===================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 3000;
  background: #fff;
  border-top: 5px solid var(--color-accent);
  box-shadow: 0 -4px 24px 0 rgba(26,39,72,0.12);
  padding: 23px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  animation: fadeInUp 0.7s cubic-bezier(.45,.99,.56,1.13);
}
.cookie-banner p {
  color: #1A2748;
  font-size: 1.1rem;
  margin-bottom: 7px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.cookie-btn {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: bold;
  font-size: 1rem;
  padding: 10px 27px;
  border-radius: 22px 7px 17px 8px;
  border: none;
  margin: 0 3px;
  outline: none;
  box-shadow: 0 2px 10px 0 rgba(232,93,35,0.10);
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
  cursor: pointer;
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-playful-blue);
  color: #1A2748;
}
.cookie-btn.reject {
  background: #DEE7EF;
  color: #1A2748;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #FFD900;
  color: var(--color-accent-dark);
}
.cookie-btn.settings {
  background: #FFF5EC;
  color: var(--color-accent);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-playful-pink);
  color: #fff;
}

/* ========== COOKIE MODAL ========== */
.cookie-modal {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: 97vw;
  max-width: 430px;
  background: #fff;
  border-radius: 28px 28px 0 0;
  z-index: 3003;
  box-shadow: 0 0px 43px 0 rgba(26,39,72,0.21);
  padding: 38px 23px 28px 23px;
  border-top: 7px solid #E85D23;
  transition: transform 0.43s cubic-bezier(.68,1.13,.56,1.12), opacity 0.19s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal h3 {
  font-size: 1.08rem;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 13px;
}
.cookie-category label {
  color: #1A2748;
  font-weight: 600;
}
.toggle-switch {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.toggle-switch input[type="checkbox"] {
  display: none;
}
.toggle-slider {
  width: 36px;
  height: 22px;
  border-radius: 11px;
  background: #DEDEFA;
  position: relative;
  margin-right: 7px;
  transition: background 0.18s;
}
.toggle-switch input:checked + .toggle-slider {
  background: #E85D23;
}
.toggle-slider::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 100%;
  position: absolute;
  left: 3px;
  top: 3px;
  transition: transform 0.18s;
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(14px);
  background: #FFD900;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 12px;
}

/* ===================== RESPONSIVE ADJUSTMENTS ===================== */
@media (max-width: 990px) {
  h1 {
    font-size: 2.13rem;
  }
  h2 {
    font-size: 1.42rem;
  }
}
@media (max-width: 700px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.04rem;
  }
}
@media (max-width: 560px) {
  .footer-brand {
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
  }
}

/* ======= GENERAL ACCESSIBILITY IMPROVEMENTS ======= */
:focus {
  outline: 2.5px solid #E85D23;
  outline-offset: 2.5px;
}

/* ===================== BODY & INTERACTIONS ===================== */
::-webkit-scrollbar {
  width: 10px;
  background: #DEE7EF;
}
::-webkit-scrollbar-thumb {
  background: #E85D23;
  border-radius: 8px;
}

/* ===================== MISC DECO ELEMENTS ===================== */
hr {
  border: none;
  border-top: 2px solid #E85D23;
  margin: 30px 0;
}

/* ===================== UTILITY CLASSES ===================== */
.mt-2 { margin-top: 18px; }
.mb-2 { margin-bottom: 18px; }
.mt-4 { margin-top: 30px; }
.mb-4 { margin-bottom: 30px; }
.py-2 { padding-top: 18px; padding-bottom: 18px; }
.px-2 { padding-left: 18px; padding-right: 18px; }

/* ===================== PRINT STYLES ===================== */
@media print {
  header, footer, .btn-primary, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal {
    display: none !important;
  }
}
