/* ========== CSS RESET & NORMALIZATION ========== */
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,
main, 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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background: #FCF6ED;
  color: #232347;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #2C2C6C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F9C86A;
  outline: none;
}
ul, ol {
  margin-left: 24px;
}

/* ========== BASE TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #2C2C6C;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 { font-size: 2.6rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.4rem; margin-bottom: 16px; }
h4 { font-size: 1.2rem; margin-bottom: 14px; }
h5, h6 { font-size: 1rem; margin-bottom: 10px; }

p {
  font-size: 1.08rem;
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
  color: #232347;
}
em {
  color: #F9C86A;
  font-style: italic;
}

/* ====== CONTAINER & LAYOUT ====== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.content-wrapper {
  background: #fff8e7;
  border-radius: 24px;
  box-shadow: 0 6px 44px 0 rgba(44,44,108,0.08), 0 1.5px 4px 0 rgba(249,200,106,0.08);
  padding: 36px 30px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 24px -4px rgba(44,44,108,0.07);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 10px 32px -2px #F9C86A33, 0 4px 48px -12px #2C2C6C40;
  transform: translateY(-3px) scale(1.03);
}

.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 32px -10px #2C2C6C0F;
  border-left: 6px solid #92C47C;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card p {
  color: #18184d;
  font-size: 1.07rem;
}
.testimonial-card strong {
  color: #2C2C6C;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
}
.testimonial-card:hover {
  border-color: #F9C86A;
  box-shadow: 0 8px 32px -8px #F9C86A33;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f8fff4;
  border-radius: 14px;
  box-shadow: 0 3px 14px 0 #92C47C14;
  padding: 18px 16px;
  margin-bottom: 20px;
}

/* ====== HEADER & NAVIGATION ====== */
header {
  background: linear-gradient(90deg, #92C47C 0%, #F9C86A 94%);
  box-shadow: 0 6px 22px -10px #2C2C6C30;
  padding: 0;
  position: relative;
  z-index: 99;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding-top: 8px;
  padding-bottom: 8px;
}
nav.main-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
nav.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #2C2C6C;
  padding: 8px 4px;
  border-radius: 7px;
  transition: background 0.19s, color 0.18s;
}
nav.main-nav a.active, nav.main-nav a:focus, nav.main-nav a:hover {
  color: #fff;
  background: #2C2C6C;
}

.btn-primary {
  background: #2C2C6C;
  color: #fff;
  border: none;
  border-radius: 11px;
  padding: 13px 32px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.11rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, color 0.18s, box-shadow 0.21s, transform 0.13s;
  box-shadow: 0 4px 18px -5px #2C2C6C33;
  margin-left: 16px;
  margin-top: 0;
  text-align: center;
  display: inline-block;
  vertical-align: middle;
}
.btn-primary:focus, .btn-primary:hover {
  background: #F9C86A;
  color: #2C2C6C;
  transform: scale(1.045);
  box-shadow: 0 8px 32px -8px #F9C86A44;
  outline: none;
}

header img {
  max-height: 52px;
  margin-right: 34px;
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #2C2C6C;
  cursor: pointer;
  margin-left: 22px;
  z-index: 2002;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: #fff8e7;
  z-index: 2001;
  padding: 56px 0 24px 0;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(0.75,0,0.2,1);
  box-shadow: 8px 0 40px -20px #2C2C6C22;
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #2C2C6C;
  cursor: pointer;
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2004;
  background: #F9C86A;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.17s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #92C47C;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  align-items: flex-start;
  padding-left: 32px;
  margin-top: 12px;
}
.mobile-nav a {
  color: #2C2C6C;
  font-size: 1.4rem;
  padding: 7px 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 7px;
  transition: background 0.21s, color 0.18s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #F9C86A;
  color: #232347;
}
.mobile-nav a.btn-primary {
  background: #2C2C6C;
  color: #fff;
  margin: 18px 0 0 0;
  padding: 12px 32px;
  border-radius: 11px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.14rem;
  font-weight: 700;
}
.mobile-nav a.btn-primary:focus, .mobile-nav a.btn-primary:hover {
  background: #F9C86A;
  color: #2C2C6C;
}

/* Hamburger Icon visibility */
@media (max-width: 1000px) {
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
  }
}
@media (min-width: 1001px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ====== FOOTER ====== */
footer {
  margin-top: 44px;
  background: #2C2C6C;
  color: #fff;
  padding: 42px 0 18px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
}
.footer-logo img {
  max-width: 72px;
  background: #fff8e7;
  border-radius: 24px;
  padding: 6px 10px;
  box-shadow: 0 2px 16px -6px #F9C86A4A;
}
.footer-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #F9C86A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  padding: 6px 10px;
}
.footer-nav a:focus, .footer-nav a:hover {
  color: #2C2C6C;
  background: #F9C86A;
}
.footer-contact {
  font-size: 0.97rem;
  color: #fff;
  background: transparent;
  padding-bottom: 4px;
}


/* ====== ARTISTIC ELEMENTS ====== */
.section::before {
  content: '';
  display: block;
  position: absolute;
  top: -18px;
  left: 0;
  width: 74px;
  height: 74px;
  background: #92C47C33;
  border-radius: 40% 45% 49% 52%/42% 55% 46% 58%;
  z-index: 0;
  filter: blur(7px);
  opacity: 0.5;
  pointer-events: none;
}
.section:nth-child(even)::before {
  left: unset;
  right: 0;
  background: #F9C86A3F;
}
.content-wrapper::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -24px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: #92C47C44;
  border-radius: 38% 62% 78% 42%/60% 40% 70% 80%;
  z-index: 0;
  filter: blur(4px);
  opacity: 0.3;
  pointer-events: none;
}

hr {
  border: none;
  border-top: 2px dashed #F9C86A;
  margin: 40px 0 30px 0;
}

/* ========== LISTS ========== */
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.6;
  position: relative;
  padding-left: 28px;
}
ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 13px;
  height: 13px;
  background: #F9C86A;
  border-radius: 50% 20% 50% 50% / 60%;
  display: inline-block;
  margin-right: 13px;
}

ol li {
  padding-left: 6px;
  margin-bottom: 10px;
}

/* Highlight for important lines */
ul li strong {
  color: #92C47C;
}

/* Inline icons in features */
ul img {
  display: inline-block;
  vertical-align: middle;
  height: 26px;
  margin-right: 10px;
}

/* ========== FORMS & BUTTONS ========== */
input, select, textarea {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  border: 1.5px solid #2C2C6C33;
  border-radius: 7px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 1.07rem;
  transition: border-color 0.18s, box-shadow 0.17s;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px -6px #F9C86A22;
}
input:focus, textarea:focus, select:focus {
  border-color: #F9C86A;
  box-shadow: 0 0 4px 1px #F9C86A44;
  outline: none;
}

/* ========== COLORED ELEMENTS & ACCENT ========== */
::-selection {
  background: #F9C86A;
  color: #18184d;
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 2100;
  background: #fff8e7;
  color: #2C2C6C;
  box-shadow: 0 -4px 24px -10px #2C2C6C22;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 24px 20px;
  gap: 18px;
  font-size: 1.04rem;
  animation: cookie-slide-in 0.55s cubic-bezier(0.77,0,0.22,1);
}
@keyframes cookie-slide-in {
  from {transform: translateY(110%);opacity:0;}
  to {transform: translateY(0);opacity:1;}
}
.cookie-banner p {
  flex: 1;
  margin: 0 8px 0 0;
}
.cookie-banner .cookie-btn {
  margin-left: 10px;
  margin-right: 2px;
}
.cookie-btn, .cookie-btn:visited {
  background: #2C2C6C;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 23px;
  margin: 0 0 0 8px;
  cursor: pointer;
  transition: background 0.19s, color 0.12s, transform 0.13s;
  box-shadow: 0 2px 12px -6px #2C2C6C33;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #F9C86A;
  color: #2C2C6C;
  transform: scale(1.05);
  outline: none;
}
.cookie-btn.settings {
  background: #92C47C;
  color: #2C2C6C;
}
.cookie-btn.settings:hover {
  background: #2C2C6C;
  color:#fff;
}
.cookie-btn.reject {
  background: #fff;
  border: 2px solid #2C2C6C;
  color: #2C2C6C;
}
.cookie-btn.reject:hover {
  background: #fff8e7;
}

/* Cookie Preferences MODAL */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2112;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 44, 108, 0.33);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s;
}
.cookie-modal.open {
  visibility: visible;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff8e7;
  border-radius: 18px;
  box-shadow: 0 8px 36px -8px #2C2C6C44;
  padding: 36px 30px 28px 32px;
  width: 96%;
  max-width: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.cookie-modal-content h3 {
  font-size: 1.3rem;
  color: #2C2C6C;
  font-weight: 700;
  margin-bottom: 14px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-modal-content .modal-section {
  margin-bottom: 17px;
}
.cookie-toggle-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  margin-bottom: 9px;
}
.cookie-toggle-group label {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  color: #2C2C6C;
  cursor: pointer;
}
.cookie-toggle {
  width: 40px;
  height: 24px;
  border-radius: 50px;
  background: #F9C86A;
  border: none;
  position: relative;
  outline: none;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.18s;
}
.cookie-toggle[aria-checked='true'] {
  background: #92C47C;
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
  box-shadow: 0 0 4px #2C2C6C33;
}
.cookie-toggle[aria-checked='true']::before {
  left: 19px;
}

.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 1.6rem;
  color: #2C2C6C;
  background: none;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F9C86A;
  color: #232347;
}

/* ========== RESPONSIVE ADAPTATION ========== */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
  }
  .content-wrapper {
    padding-left: 15px; padding-right: 15px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
  }
  .content-wrapper {
    padding: 28px 8px;
  }
  .footer-nav {
    gap: 10px;
  }
  header .container, footer .container {
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 6px;
  }
  .section {
    padding: 28px 4px;
  }
  .content-wrapper {
    padding: 22px 5px;
    border-radius: 12px;
  }
  .card-container, .content-grid {
    gap: 11px;
  }
  .card {
    min-width: 170px;
    padding: 14px 8px;
  }
  .testimonial-card, .feature-item {
    padding: 13px 7px;
    border-radius: 11px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
  }
  footer .container {
    flex-direction: column;
    align-items: center;
    gap: 11px;
  }
  .footer-contact {
    margin-top: 8px;
    font-size: 0.95rem;
    text-align: center;
  }
}
@media (max-width:480px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.13rem; }
  h3 {
    font-size: 1.02rem;
  }
  .section {
    margin-bottom: 32px;
  }
}

/* ========== MICRO-INTERACTIONS ========== */
.btn-primary, .cookie-btn, .footer-nav a, nav.main-nav a, .card, .testimonial-card {
  transition: background 0.21s, color 0.13s, box-shadow 0.2s, transform 0.15s;
}
.card:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* ========== ADDITIONAL FLEX UTILITIES ========== */
.flex-row {
  display: flex;
  flex-direction: row;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.gap-20 {
  gap: 20px;
}
.align-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}

/* ========== ACCESSIBILITY ========== */
:focus-visible {
  outline: 3px dashed #F9C86A;
  outline-offset: 1.5px;
}

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