/* --- 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, 
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #212529;
  font-family: 'Roboto', Arial, sans-serif;
}
img, picture {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
button, input, select, textarea {
  font: inherit;
  outline: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

/* --- BRAND COLORS & VARIABLES --- */
:root {
  --primary: #134067;
  --secondary: #E9ECEF;
  --accent: #F5B041;
  --dark: #1d2228;
  --error: #D93939;
  --light: #fff;
  --header-height: 76px;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(19,64,103,0.08);
  --transition: 0.25s cubic-bezier(.5,.1,.1,1);
}

/* --- TYPOGRAPHY --- */
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: var(--secondary);
  color: var(--dark);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--primary);
}
h1 { font-size: 2.75rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 16px; }
h4, h5, h6 { font-size: 1.1rem; }
p, li {
  color: #222;
  font-size: 1rem;
  line-height: 1.7;
}
strong { font-weight: 700; }

/* --- GENERAL LAYOUT CLASSES --- */
.container {
  max-width: 1150px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 18px;
  min-width: 240px;
}
.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;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: none;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  background: var(--light);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(30, 48, 90, 0.11);
  min-width: 220px;
  max-width: 400px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 8px 32px rgba(30, 48, 90, 0.16);
  transform: translateY(-4px) scale(1.012);
}
.testimonial-card p {
  font-size: 1.1rem;
  font-weight: 500;
  color: #24272c;
}
.testimonial-card > div strong {
  color: var(--primary);
}

.trust-signs, .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin: 24px 0 0 0;
}
.trust-signs span, .footer-contact span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  color: var(--primary);
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  background: var(--light);
  box-shadow: 0 2px 16px rgba(15,40,64,0.06);
  min-height: var(--header-height);
  z-index: 10;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  min-height: var(--header-height);
  justify-content: space-between;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  padding: 7px 11px;
  border-radius: 6px;
  transition: background 0.14s, color 0.14s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: #222;
  outline: none;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.12rem;
  padding: 12px 36px;
  border-radius: 32px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  box-shadow: 0 2px 11px rgba(245,176,65,0.08);
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.14s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: var(--light);
  transform: translateY(-2px) scale(1.03);
  outline: none;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--light);
  border-radius: 8px;
  font-size: 2rem;
  padding: 6px 16px;
  margin-left: auto;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  z-index: 2100;
  min-width: 48px;
  min-height: 48px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--light);
  z-index: 2400;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.65,.04,.31,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 28px 28px 28px;
  box-shadow: 2px 0 18px rgba(19,64,103,0.09);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--primary);
  color: var(--light);
  border-radius: 8px;
  font-size: 2.5rem;
  border: none;
  cursor: pointer;
  margin-bottom: 26px;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--secondary);
  border-radius: 9px;
  padding: 13px 14px;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
  outline: none;
}

/* --- HERO, SECTIONS, FEATURES --- */
section {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
ul li, ol li {
  margin-bottom: 17px;
  display: flex;
  align-items: center;
  gap: 12px;
}
ul li img, .footer-contact span img, .trust-signs span img {
  width: 25px;
  height: 25px;
  display: inline-block;
  margin-right: 7px;
}
h2 ~ .content-wrapper, h2 ~ ul, h2 ~ p {
  margin-top: 12px;
}
.content-wrapper > a:not(.btn-primary), .text-section > a:not(.btn-primary) {
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2.5px solid var(--accent);
  padding-bottom: 1.5px;
  transition: color 0.15s;
}
.content-wrapper > a:not(.btn-primary):hover, .text-section > a:not(.btn-primary):hover {
  color: var(--accent);
}

/* --- BLOG SEARCH BAR --- */
.search-bar {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 14px;
}
.search-bar input {
  padding: 10px 14px;
  border-radius: 7px;
  border: 1.5px solid #d6d8db;
  background: #f8fafc;
  font-size: 1rem;
  min-width: 210px;
}
.search-bar button {
  padding: 10px 13px;
  background: var(--accent);
  border-radius: 7px;
  color: var(--primary);
  border: none;
  cursor: pointer;
  transition: background 0.16s;
  display: flex;
  align-items: center;
}
.search-bar button:disabled { filter: grayscale(60%) opacity(0.7); cursor: not-allowed; }

/* --- CTA BANNER --- */
.content-wrapper > .btn-primary, .content-wrapper .btn-primary {
  margin-top: 14px;
  align-self: flex-start;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: var(--light);
  padding: 42px 0 20px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
footer nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 8px 10px;
  background: none;
  transition: background 0.18s, color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--primary);
  background: var(--accent);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 1rem;
}
footer p, .footer-contact span {
  color: #c0cbe2 !important;
  font-size: 0.97rem;
}
footer img {
  max-height: 42px;
  margin-bottom: 11px;
}

/* --- TRANSITIONS & HOVER EFFECTS --- */
a, button, .btn-primary, .testimonial-card, .card {
  transition: background 0.21s, color 0.21s, box-shadow 0.23s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px rgba(19,64,103,0.14);
  transform: translateY(-3px) scale(1.01);
}

/* --- TABLES (for privacy, legal) --- */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 28px 0;
}
th, td {
  padding: 14px 18px;
  border-bottom: 2px solid #dfebfa;
  text-align: left;
  font-size: 1rem;
}
th {
  background: var(--accent);
  color: var(--primary);
}

/* --- COOKIE BANNER & COOKIE DIALOG --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20000;
  background: var(--light);
  color: var(--primary);
  box-shadow: 0 -4px 20px rgba(19, 64, 103, 0.13);
  padding: 22px 20px 18px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 22px;
  padding: 8px 22px;
  border: none;
  cursor: pointer;
  margin-left: 0;
  transition: background 0.16s, color 0.16s, box-shadow 0.2s;
  background: var(--secondary);
  color: var(--primary);
  box-shadow: none;
}
.cookie-btn.accept {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn.reject {
  background: #e74c3c;
  color: #fff;
}
.cookie-btn.settings {
  background: var(--primary);
  color: var(--accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: var(--light);
  box-shadow: 0 2px 10px rgba(19,64,103,0.10);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 23000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(30,48,90,0.22);
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadeInModal 0.27s cubic-bezier(.48,.01,.42,1);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: var(--light);
  color: var(--primary);
  border-radius: 18px;
  min-width: 330px;
  max-width: 98vw;
  box-shadow: 0 4px 40px rgba(19,64,103,0.19);
  padding: 36px 24px 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.23rem;
  margin-bottom: 6px;
  color: var(--primary);
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}
.cookie-modal input[type="checkbox"]:not(:checked):not([disabled]) + label {
  opacity: 0.7;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px; height: 18px;
  border-radius: 5px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 17px;
  margin-top: 10px;
}
.cookie-modal .cookie-btn {
  min-width: 110px;
}
.cookie-modal .cookie-close {
  position: absolute;
  right: 18px; top: 18px;
  font-size: 1.6rem;
  color: var(--primary);
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.11s;
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus {
  background: var(--accent);
  color: var(--primary);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1150px) {
  .container { max-width: 96vw; padding: 0 8px; }
}
@media (max-width: 950px) {
  .container { max-width: 100vw; }
  .content-wrapper, .content-grid, .card-container, .card-grid, .trust-signs, .footer-contact {
    gap: 14px;
  }
  .testimonial-card, .card {
    min-width: 180px;
    font-size: 0.97rem;
    padding: 18px 8px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.35rem; }
  .section, section {
    margin-bottom: 36px;
    padding: 21px 7px;
    border-radius: 10px;
  }
  header .container {
    flex-direction: row;
    gap: 12px;
    padding: 0 7px;
  }
  header nav, header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper, .content-grid, .card-container, .card-grid {
    flex-direction: column;
    gap: 11px;
  }
  .testimonial-card, .card {
    max-width: 100vw;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .trust-signs, .footer-contact {
    flex-direction: column;
    gap: 8px;
  }
  .search-bar { flex-direction: column; gap: 6px; }
  .cookie-banner { flex-direction: column; gap: 14px; text-align: left; align-items: flex-start; }
  .cookie-modal { min-width: 84vw; }
  footer .container { gap: 11px; }
}

@media (max-width: 470px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.05rem; }
  .section, section { padding: 10px 2px; }
  .testimonial-card, .card {
    padding: 14px 3px;
    font-size: 0.91rem;
  }
  .mobile-nav a { font-size: 1.075rem; padding: 10px 6px; }
  .cookie-modal { padding: 18px 6px 19px 6px; }
}

/* --- ACCESSIBILITY: FOCUS STYLES --- */
a:focus, .btn-primary:focus, button:focus, .cookie-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* END OF STYLE.CSS */
