/* CSS RESET & NORMALIZE */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
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,
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;
  background: none;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F7F7F8;
  color: #1D3557;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
a { color: inherit; text-decoration: none; transition: color 0.18s; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* BRAND COLORS AND FONTS */
:root {
  --primary: #1D3557;
  --secondary: #457B9D;
  --accent: #F7F7F8;
  --card-bg: #FFFFFF;
  --border-color: #E5E8EB;
  --box-shadow: 0 1px 12px rgba(29,53,87,0.05);
  --shadow-hover: 0 2px 18px rgba(29,53,87,0.08);
  --text-dark: #1D3557;
  --text-body: #2a3c52;
  --text-light: #4F6D7A;
  --cta-bg: #457B9D;
  --cta-bg-hover: #1D3557;
  --cta-text: #fff;
  --radius: 16px;
  --transition: .18s cubic-bezier(.44, .13, .48, .87);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* CONTAINERS AND LAYOUT */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 800px) {
  .section { padding: 26px 10px; }
  .content-wrapper { gap: 20px; }
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
}
h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 4px;
}
h4, h5 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}
p, ul li, ol li, span, td, th {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-body);
}
p { margin-bottom: 1em; }
ul, ol { margin-bottom: 1em; }
blockquote {
  color: var(--secondary);
  background: #EEF3F6;
  border-left: 4px solid var(--secondary);
  margin: 16px 0;
  padding: 16px 28px 16px 16px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  border-radius: var(--radius);
}

/* BUTTONS & CTA */
.cta, .cookie-accept, .cookie-reject, .cookie-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  background: var(--cta-bg);
  color: var(--cta-text);
  border-radius: 32px;
  box-shadow: 0 1px 8px rgba(29,53,87,0.07);
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
}
.cta:hover, .cta:focus,
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--cta-bg-hover);
  color: #fff;
  box-shadow: var(--shadow-hover);
}
.cookie-reject {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--secondary);
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #E5E8EB;
  color: var(--secondary);
}
.cookie-settings {
  background: var(--secondary);
  color: #fff;
  margin-right: 14px;
}
.cookie-settings:hover,
.cookie-settings:focus {
  background: var(--primary);
}

/* MAIN NAVIGATION (DESKTOP) */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 12px rgba(29,53,87,.07);
  position: sticky;
  top: 0;
  z-index: 50;
}
header > .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 74px;
}
header img {
  height: 46px;
  width: auto;
  margin-right: 24px;
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-dark);
  padding: 8px 10px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
nav a:hover, nav a:focus {
  background: #EEF3F6;
  color: var(--secondary);
}
nav .cta {
  margin-left: 18px;
}
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 1023px) {
  header nav { display: none; }
  .mobile-menu-toggle {
    display: flex;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--secondary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    margin-left: auto;
    transition: color var(--transition), background var(--transition);
    border-radius: 14px;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #EEF3F6;
    color: var(--primary);
  }
}

/* MOBILE NAVIGATION (SLIDE MENU) */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(30,38,48,0.45);
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.44,.13,.48,.87);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  width: 82vw;
  max-width: 330px;
  min-height: 100vh;
  padding: 38px 20px 20px 32px;
  box-shadow: 0 0 40px 0 rgba(29,53,87,.20);
  align-items: flex-start;
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1101;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #EEF3F6;
  color: var(--secondary);
}
.mobile-nav a {
  width: 100%;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary);
  padding: 14px 6px 10px 0;
  border-radius: 10px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F7F7F8;
  color: var(--secondary);
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* MAIN SECTIONS & CARDS */
.features-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.features-grid > div, .card, .card-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--box-shadow);
  padding: 28px 20px 22px 20px;
  flex: 1 1 240px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), border var(--transition);
}
.features-grid > div:hover, .card:hover, .card-content:hover {
  border: 1.5px solid var(--secondary);
  box-shadow: var(--shadow-hover);
}
.card-container { gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { gap: 20px; justify-content: space-between; }

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .features-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }
}

/* TESTIMONIAL CARDS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #FEFEFE;
  border: 1px solid #E8EAED;
  border-left: 4px solid var(--secondary);
  border-radius: 14px;
  box-shadow: 0 1px 10px rgba(0,0,0,0.056);
  padding: 20px;
  margin-bottom: 20px;
  max-width: 560px;
  min-width: 0;
  color: var(--text-dark);
}
.testimonial-card p {
  color: var(--text-dark);
  font-size: 1rem;
  font-family: var(--font-body);
  line-height: 1.8;
}
.testimonial-card span {
  color: var(--secondary);
  font-size: 0.98rem;
  font-family: var(--font-display);
  font-weight: 500;
  margin-left: 2px;
}

/* FEATURE ITEMS */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FORMS & TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(29,53,87,0.04);
}
thead {
  background: #EEF3F6;
}
th, td {
  padding: 16px 14px;
  border-bottom: 1px solid #E5E8EB;
  text-align: left;
  font-size: 1rem;
}
tr:last-child td { border-bottom: none; }
caption {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-dark);
}

/* UL/OL for regular content */
ul, ol {
  padding-left: 18px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 7px;
  color: var(--text-body);
  font-size: 1rem;
}
ul li img {
  height: 1.1em;
  vertical-align: middle;
  margin-right: 7px;
}

/* DETAILS */
details {
  background: #F4F5F7;
  border-radius: 10px;
  padding: 12px 20px;
  margin-bottom: 18px;
}
details[open] {
  box-shadow: 0 2px 8px rgba(69,123,157,0.09);
}
summary {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 7px;
  outline: none;
}

/* FOOTER */
footer {
  background: #F7F7F8;
  margin-top: 66px;
  border-top: 1px solid #E5E8EB;
}
footer > .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 38px 20px 34px 20px;
}
footer img {
  height: 38px;
  width: auto;
  margin-bottom: 12px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
}
footer nav a {
  color: var(--text-body);
  font-size: 1rem;
  padding: 0;
  background: none;
  border-radius: 0;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
}
footer .text-section {
  max-width: 420px;
  font-size: 0.96rem;
  color: var(--text-light);
}
@media (max-width: 800px) {
  footer > .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 23px 12px 20px 12px;
  }
  section {
    padding: 18px 2px 20px 2px;
  }
}

/* COOKIES BANNER */
.cookie-banner {
  position: fixed;
  z-index: 3000;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1.5px solid #E4E7EB;
  box-shadow: 0 -2px 18px rgba(29,53,87,0.08);
  padding: 24px 20px 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  transition: transform .38s cubic-bezier(.44,.13,.48,.87), opacity .22s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner p {
  font-size: 1rem;
  color: var(--text-body);
  margin-bottom: 2px;
}
.cookie-buttons {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}

/* COOKIES MODAL */
.cookie-modal {
  position: fixed;
  z-index: 4000;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,38,48,0.41);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity .16s;
}
.cookie-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 36px 28px 28px 28px;
  min-width: 95vw;
  max-width: 430px;
  box-shadow: 0 4px 28px rgba(29,53,87,0.12);
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.cookie-modal-content h2 {
  font-size: 1.32rem;
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  width: 21px; height: 21px;
  accent-color: var(--secondary);
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 1.4rem;
  position: absolute;
  top: 30px;
  right: 32px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal-close:hover { background: #EEF3F6; color: var(--primary); }

/* ACCESSIBILITY FOCUS */
a:focus, button:focus { outline: 2px solid var(--secondary); outline-offset: 2px; }

/* MICRO-INTERACTIONS & TRANSITIONS */
a, button, summary, .cta, .mobile-menu-toggle, .mobile-menu-close {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.card, .testimonial-card, .features-grid > div {
  transition: box-shadow var(--transition), border var(--transition), transform var(--transition);
}
.card:hover, .testimonial-card:hover, .features-grid > div:hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow: var(--shadow-hover);
}

/* RESPONSIVE RULES */
@media (max-width: 550px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.2rem; }
  .features-grid > div, .card, .card-content, .testimonial-card {
    padding: 16px 10px 14px 10px;
    font-size: 0.97rem;
  }
  .cookie-modal-content {
    padding: 22px 7px 18px 7px;
    min-width: 98vw;
  }
}
@media (max-width: 460px) {
  footer > .container { padding: 12px 5px 12px 5px; }
  .section { padding: 11px 2px; }
}

/* UTILITIES */
.hide-on-mobile { display: block; }
.show-on-mobile { display: none; }
@media (max-width: 768px) {
  .hide-on-mobile { display: none; }
  .show-on-mobile { display: block; }
}

/* Z-INDEX RULES */
.mobile-menu { z-index: 1000; }
.mobile-menu nav { z-index: 1010; }
.mobile-menu-close { z-index: 1101; }
.cookie-banner { z-index: 3000; }
.cookie-modal { z-index: 4000; }

/* PREVENT OVERLAPPING */
.section, .card-container, .card, .testimonial-card, .features-grid > div, .content-wrapper, .content-grid, .text-image-section {
  margin-bottom: 20px;
}

/* END OF STYLE */
