/* ===== 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F7F9FB;
  color: #253A47;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  appearance: none;
}

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --color-primary: #253A47;
  --color-secondary: #A3B5C8;
  --color-accent: #F4E3CF;
  --color-bg: #F7F9FB;
  --color-white: #fff;
  --color-shadow: rgba(36, 52, 66, 0.11);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ===== FONT IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

/* ===== BODY & TYPOGRAPHY ===== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-bg);
  color: var(--color-primary);
  min-height: 100vh;
  transition: background 0.3s;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 14px; font-weight: 700; }
h4 { font-size: 1.15rem; }
p, ul, ol, li {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 16px;
}
ul, ol {
  list-style: none;
}
strong { font-weight: 700; }

/* ===== CONTAINER & LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.content-wrapper {
  width: 100%;
  margin: 0 auto;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 28px;
  box-shadow: 0 4px 24px var(--color-shadow);
  transition: box-shadow 0.3s;
  position: relative;
}
.section:last-child {
  margin-bottom: 0;
}
.text-section {
  margin-bottom: 16px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 24px 20px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 24px var(--color-shadow);
  transform: translateY(-2px) scale(1.012);
}

.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 {
  background: var(--color-accent);
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px var(--color-shadow);
  font-size: 1.05rem;
  transition: box-shadow 0.25s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px var(--color-shadow);
  transform: translateY(-2px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ===== MODERN GRADIENT SECTIONS ===== */
.section:nth-child(odd) {
  background: linear-gradient(120deg, #A3B5C8 0%, #F4E3CF 100%);
  color: var(--color-primary);
  box-shadow: 0 4px 28px var(--color-shadow);
}
.section:nth-child(even) {
  background: var(--color-white);
}

/* ===== BUTTONS & CTA ===== */
.cta-btn,
button[type="submit"] {
  display: inline-block;
  background: linear-gradient(90deg, var(--color-primary) 40%, var(--color-secondary) 100%);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 15px 36px;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 3px 12px var(--color-shadow);
  transition: background 0.3s, color 0.25s, transform 0.18s;
}
.cta-btn:hover,
button[type="submit"]:hover {
  background: linear-gradient(90deg, #2e4859 10%, #A3B5C8 100%);
  color: #fff;
  transform: scale(1.033);
}
.cta-btn:focus,
button[type="submit"]:focus {
  outline: 2px solid var(--color-secondary);
}

/* ===== NAVIGATION ===== */
header {
  background: var(--color-primary);
  box-shadow: 0 2px 18px rgba(0,0,0,0.03);
  padding: 0;
  z-index: 112;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
header nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
header img {
  height: 48px;
  width: auto;
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu-toggle {
  display: none;
  background: linear-gradient(91deg, var(--color-accent), var(--color-secondary));
  color: var(--color-primary);
  font-size: 2.1rem;
  border-radius: 50%;
  padding: 9px 18px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 1301;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #fff2;
  color: var(--color-secondary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(129deg, var(--color-primary) 80%, var(--color-secondary) 100%);
  z-index: 1333;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.86,0,.07,1);
  box-shadow: -4px 0 16px var(--color-shadow);
  padding: 0;
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: var(--color-accent);
  align-self: flex-end;
  margin: 20px 30px 10px 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1334;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 40px 42px 20px 36px;
  width: 100%;
  margin-top: 20px;
}
.mobile-nav a {
  color: var(--color-accent);
  font-size: 1.33rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 10px 0;
  border-radius: 9px;
  transition: background 0.18s, color 0.16s;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #f4e3cf99;
  color: var(--color-primary);
}

/* ===== FOOTER ===== */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 38px 0 18px 0;
  border-top-left-radius: 48px;
  border-top-right-radius: 48px;
  box-shadow: 0 -4px 16px var(--color-shadow);
}
footer .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}
footer nav a {
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.97rem;
  transition: color 0.19s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  text-decoration: underline;
}
footer img {
  height: 38px;
  width: auto;
}
footer p {
  font-size: 0.95rem;
  margin-bottom: 0;
  font-family: var(--font-body);
}

/* ===== FORM ELEMENTS ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 460px;
  margin-top: 12px;
}
label {
  font-family: var(--font-display);
  font-size: 1.03rem;
  margin-bottom: 2px;
  font-weight: 600;
  color: var(--color-primary);
}
input[type="text"],
input[type="email"],
textarea {
  border: 1.4px solid var(--color-secondary);
  border-radius: 8px;
  font-size: 1rem;
  padding: 10px 14px;
  background: #fff;
  color: var(--color-primary);
  font-family: var(--font-body);
  transition: border 0.22s, background 0.14s;
}
input:focus,
textarea:focus {
  border: 1.7px solid var(--color-primary);
  background: #f5f7fb;
}
button[type="submit"] {
  margin-top: 8px;
  margin-bottom: 12px;
}

/* ===== LISTS, OUTLINES, LINKS ===== */
ul li,
ol li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 0;
}
ul li:before {
  content: '';
}
.text-section ul,
.content-wrapper ul {
  margin-bottom: 12px;
}
.text-section li,
.content-wrapper li {
  margin-bottom: 9px;
}
.content-wrapper ul {
  padding-left: 0;
  margin-left: 0;
}
.content-wrapper ol {
  padding-left: 20px;
}
.content-wrapper ol li {
  margin-bottom: 8px;
}
a {
  color: var(--color-primary);
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* ===== ICONS IN LISTS & CONTACT ===== */
li img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  height: 18px;
  width: 18px;
}

/* ===== MICRO-INTERACTIONS ===== */
section a:not(.cta-btn) {
  color: var(--color-secondary);
  font-weight: 500;
  transition: color 0.18s, text-decoration 0.18s;
}
section a:not(.cta-btn):hover, section a:not(.cta-btn):focus {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ===== SPACING & FLEXBOX RULES ===== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== MEDIA QUERIES RESPONSIVE ===== */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
  }
  .content-wrapper {
    max-width: 99vw;
  }
}
@media (max-width: 900px) {
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    height: auto;
    padding: 16px 20px;
  }
  footer .container {
    align-items: center;
  }
  .section {
    padding: 32px 10px;
    margin-bottom: 40px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.51rem; }
  h3 { font-size: 1.2rem; }
  .section {
    padding: 24px 8px;
    margin-bottom: 34px;
  }
  .card, .testimonial-card {
    padding: 14px 10px;
    font-size: 1rem;
    border-radius: 13px;
  }
  .content-wrapper {
    gap: 8px;
    padding: 0;
    max-width: 100vw;
  }
  .content-grid, .card-container, .feature-list {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  header .container {
    flex-direction: row;
    height: 62px;
    padding: 8px 10px 8px 10px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-btn {
    padding: 10px 17px;
    font-size: 1rem;
    margin-left: 8px;
  }
  .mobile-menu {
    padding: 0;
    font-size: 1.2rem;
    box-shadow: -4px 0 16px var(--color-shadow);
  }
  .mobile-nav {
    padding: 38px 28px 20px 20px;
    margin-top: 0;
    min-width: 78vw;
  }
  footer {
    padding: 28px 0 10px 0;
    border-radius: 28px 28px 0 0;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 440px) {
  .section { padding: 10px 2vw; }
  .card, .testimonial-card { padding: 7px 4px; }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.04rem; }
  footer nav { gap: 12px; }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: linear-gradient(92deg,#F4E3CF 90%, #A3B5C8 100%);
  color: var(--color-primary);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  justify-content: center;
  padding: 27px 16px 22px 16px;
  z-index: 2222;
  box-shadow: 0 -3px 32px var(--color-shadow);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1), opacity 0.25s;
  opacity: 1;
}
.cookie-banner.hidden {
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 9px;
}
.cookie-banner button {
  padding: 10px 22px;
  border-radius: 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 2px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  box-shadow: 0 2px 10px var(--color-shadow);
}
.cookie-banner .accept {
  background: linear-gradient(90deg, var(--color-primary) 38%, var(--color-secondary) 100%);
  color: var(--color-accent);
}
.cookie-banner .accept:hover {
  background: linear-gradient(90deg, #2C4F63, #A3B5C8 100%);
  color: #fff;
  transform: scale(1.045);
}
.cookie-banner .reject {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.cookie-banner .reject:hover {
  background: var(--color-secondary);
  color: #fff;
  transform: scale(1.045);
}
.cookie-banner .settings {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-banner .settings:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: scale(1.045);
}
.cookie-banner p {
  margin: 0;
  font-size: 1rem;
}

/* ===== COOKIE MODAL ===== */
.cookie-modal {
  position: fixed;
  z-index: 2402;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(60,72,84, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s;
}
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 36px var(--color-shadow);
  padding: 36px 30px 26px 30px;
  min-width: 340px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  position: relative;
  z-index: 2451;
}
.cookie-modal-title {
  font-family: var(--font-display);
  font-size: 1.33rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 1.05rem;
  margin-bottom: 8px;
  gap: 14px;
}
.cookie-toggle {
  width: 43px;
  height: 24px;
  background: #ececec;
  border-radius: 22px;
  position: relative;
  transition: background 0.18s;
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-toggle.active {
  background: var(--color-secondary);
}
.cookie-toggle::after {
  content: '';
  display: block;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2.5px;
  left: 2.6px;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: left 0.2s, background 0.19s;
}
.cookie-toggle.active::after {
  left: 20px;
  background: var(--color-primary);
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  font-size: 1.9rem;
  color: var(--color-secondary);
  cursor: pointer;
  border: none;
  transition: color 0.16s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  color: var(--color-primary);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}
.cookie-modal-actions button {
  padding: 9px 22px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: var(--color-primary);
  color: var(--color-accent);
  transition: background 0.19s, color 0.19s;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: var(--color-secondary);
  color: #fff;
}

@media (max-width: 400px) {
  .cookie-modal-content {
    padding: 18px 12px 12px 12px;
    min-width: 95vw;
  }
}

/* ===== MISCELLANEOUS ==== */
::selection {
  background: var(--color-secondary);
  color: var(--color-accent);
}
::-webkit-scrollbar {
  width: 8px;
  background: #f8fafb;
}
::-webkit-scrollbar-thumb {
  background: #A3B5C8;
  border-radius: 5px;
}
::-webkit-input-placeholder { color: #A3B5C8; }
::-moz-placeholder { color: #A3B5C8; }
:-ms-input-placeholder { color: #A3B5C8; }
::placeholder { color: #A3B5C8; }

/* ===== SPECIAL CARD SHADOWS & EFFECTS ==== */
.card, .testimonial-card {
  box-shadow: 0 2px 12px var(--color-shadow);
}

/* ===== GRADIENT MODERN HERO-LIKE SECTIONS ==== */
main > section:first-of-type {
  background: linear-gradient(95deg, var(--color-secondary) 18%, var(--color-accent) 100%);
  box-shadow: 0 7px 44px var(--color-shadow);
  padding-top: 70px;
  padding-bottom: 50px;
  margin-bottom: 42px;
  color: var(--color-primary);
}
main > section:first-of-type h1, main > section:first-of-type p {
  color: var(--color-primary);
}

/* ===== ACCESSIBILITY ==== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
  }
}


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