/* CSS RESET & BASE ==================== */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: 'Open Sans', Arial, Helvetica, sans-serif; background: #FAFAFA; color: #181818; line-height: 1.65; font-size: 1rem; min-height: 100vh; scroll-behavior: smooth; transition: background 0.3s; }

/* MONOCHROME SOPHISTICATED PALETTE ========= */
:root {
  --primary: #181818;
  --primary-contrast: #fff;
  --secondary: #49727B;
  --accent: #F6F7FA;
  --brand-blue: #203649;
  --gray-100: #FAFAFA;
  --gray-200: #F6F7FA;
  --gray-300: #E4E6EB;
  --gray-400: #BFC4CA;
  --gray-500: #82888F;
  --gray-600: #495057;
  --white: #fff;
  --black: #181818;
  --soft-shadow: 0 3px 26px 0 rgba(32, 54, 73, 0.13), 0 0.5px 0.5px 0 rgba(24,24,24,0.03);
  --border-radius: 14px;
  --radius-sm: 7px;
  --radius-xs: 4px;
  --transition: all .28s cubic-bezier(.4,0,.2,1);
}

/* TYPOGRAPHY =============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--brand-blue);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.6rem; margin-bottom: 16px; line-height: 1.13; }
h2 { font-size: 2rem; margin-bottom: 14px; line-height: 1.19; }
h3 { font-size: 1.3rem; margin-bottom: 10px; line-height: 1.24; }
h4, h5, h6 { font-size: 1.1rem; }

p, ul, ol, dd, li, address {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 14px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
a {
  color: var(--brand-blue);
  transition: var(--transition);
  text-decoration: none;
}
a:hover, a:focus {
  color: var(--primary);
  text-decoration: underline;
}
strong {
  color: var(--primary);
}

/* LAYOUT WRAPPERS ========================== */
.container {
  width: 100%;
  max-width: 1090px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--soft-shadow);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@media (max-width: 900px) {
  .section { padding: 30px 8px; }
  .container { padding: 0 6px; }
}

/* HEADER =================================== */
header {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  box-shadow: 0 2px 12px 0 rgba(32,54,73,0.04);
  z-index: 80;
  position: sticky;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  gap: 30px;
  min-height: 82px;
  justify-content: space-between;
}
header img { height: 42px; width: auto; }

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: var(--brand-blue);
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 0;
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width .28s;
  position: absolute;
  left: 0;
  bottom: 0;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  background: var(--brand-blue);
  color: var(--primary-contrast);
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 600;
  font-size: 1.14rem;
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 20px -4px rgba(32,54,73,0.08);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 18px;
  text-decoration: none;
  letter-spacing: 0.02em;
  outline: none;
}
.cta-btn:focus, .cta-btn:hover {
  background: var(--gray-600);
  color: var(--white);
  text-decoration: none;
}
.cta-btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--brand-blue);
}
.cta-btn-secondary:hover { background: var(--brand-blue); color: var(--white); }

/* MOBILE NAVIGATION ======================= */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--brand-blue);
  padding: 5px 12px;
  margin-left: 12px;
  cursor: pointer;
  z-index: 111;
  transition: background 0.22s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover { background: var(--gray-200); border-radius: var(--radius-xs); }

@media (max-width: 970px) {
  .main-nav { display: none; }
  .cta-btn { display: none; }
  .mobile-menu-toggle { display: block; }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(24,24,24,0.85);
  backdrop-filter: blur(3px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 32px 0 0 0;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.1rem;
  margin: 0 36px 0 0;
  cursor: pointer;
  transition: color 0.18s;
  padding: 8px 8px;
  z-index: 1001;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  width: 100vw;
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding: 0 32px;
}
.mobile-nav a {
  color: var(--white);
  font-size: 1.34rem;
  padding: 11px 0;
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 600;
  border-radius: var(--radius-xs);
  transition: color 0.18s, background .26s;
  width: 100%;
  text-decoration: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--secondary);
  background: rgba(255,255,255,0.09);
}

/* MAIN ==================================== */
main {
  width: 100%;
  min-height: 52vh;
  background: var(--gray-100);
  padding-bottom: 30px;
}

/* CARDS & FLEX GRIDS ======================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--soft-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px 22px 22px;
  min-width: 220px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s;
}
.card:hover { box-shadow: 0 6px 22px 0 rgba(32,54,73,0.17); }

.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;
}

.testimonials-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 16px 0 rgba(32,54,73,0.08);
  min-width: 245px;
  flex: 1 1 320px;
  max-width: 370px;
  color: var(--primary);
  border-left: 4px solid var(--brand-blue);
}
.testimonial-card p {
  color: var(--black);
  font-size: 1.04rem;
  font-style: italic;
}
.testimonial-card span {
  color: var(--gray-600);
  font-size: 0.98rem;
}

.feature-grid, .feature-list, .service-grid, .service-list, .service-highlighted, .articles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.feature-grid > div, .service-grid > div, .service-list > div, .service-highlighted > div, .articles-list > article {
  background: var(--white);
  border-radius: var(--radius-xs);
  box-shadow: var(--soft-shadow);
  padding: 20px 16px;
  min-width: 210px;
  flex: 1 1 268px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow .22s;
}
.feature-grid > div:hover, .service-grid > div:hover, .service-list > div:hover, .articles-list > article:hover {
  box-shadow: 0 4px 22px 0 rgba(32,54,73,0.14);
}
.feature-grid img, .feature-list img {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  filter: grayscale(1) contrast(1.1);
}

.service-highlighted {
  gap: 24px;
}
.service-highlighted > div {
  border: 2px solid var(--brand-blue);
  background: var(--gray-200);
  color: var(--primary);
}
.service-highlighted > div:hover { background: var(--white); }

.service-price {
  color: var(--brand-blue);
  font-weight: 700;
  margin-top: 10px;
  font-size: 1.08rem;
}

.articles-list > article a {
  display: inline-block;
  margin-top: 8px;
  color: var(--brand-blue);
  font-weight: 600;
  transition: color .18s;
}
.articles-list > article a:hover { color: var(--secondary); }

/* FAQ LIST ================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 16px 0 12px 0;
}
.faq-list dt {
  font-weight: 700;
  color: var(--brand-blue);
  font-size: 1.16rem;
  margin-bottom: 2px;
}
.faq-list dd {
  margin: 0 0 10px 0;
  color: var(--gray-600);
  font-size: 1.01rem;
}

/* PRICING TABLE ============================ */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--soft-shadow);
  margin: 24px 0 10px 0;
  overflow: hidden;
  font-size: 1.07rem;
}
.pricing-table thead tr { background: var(--gray-200); }
.pricing-table th, .pricing-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--gray-300);
  color: var(--brand-blue);
  text-align: left;
}
.pricing-table th {
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 700;
}
.pricing-table td {
  color: var(--gray-600);
  font-family: 'Open Sans','Montserrat',Arial,sans-serif;
}
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tr:hover td { background: var(--gray-200); }

/* FOOTER =================================== */
footer {
  background: var(--brand-blue);
  color: var(--white);
  padding: 30px 0 0 0;
  border-top: 1.5px solid var(--gray-300);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 44px;
  flex-wrap: wrap;
  padding: 0 18px 20px 18px;
}
.footer-brand img {
  height: 34px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 18px;
}
.footer-nav a {
  color: var(--accent);
  font-size: .97rem;
  text-decoration: none;
  padding-bottom: 1.5px;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .99rem;
}
.footer-contact a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--secondary); }
footer address {
  font-style: normal;
  color: var(--accent);
}

/* RESPONSIVE: MOBILE FIRST ================= */
@media (max-width: 900px) {
  .section { padding: 26px 5px; margin-bottom: 40px; }
  .container { padding: 0 6px; }
  .content-grid, .testimonials-flex, .feature-grid, .service-grid, .service-list, .service-highlighted, .articles-list {
    flex-direction: column;
    gap: 18px;
  }
  .footer-nav { margin: 22px 0 0 0; flex-direction: row; gap: 16px; }
  .footer-contact { margin: 16px 0 0 0; }
  .card, .feature-grid > div, .service-grid > div, .service-list > div, .service-highlighted > div, .articles-list > article, .testimonial-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .testimonials-flex, .card-container { gap: 18px; }
}
@media (max-width: 768px) {
  body { font-size: 0.97rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .content-grid, .feature-grid, .service-grid, .service-list, .service-highlighted, .articles-list, .testimonials-flex {
    gap: 15px;
  }
  .section { padding: 16px 2px; margin-bottom: 25px; }
  .container { padding: 0 2px; }
  .footer-nav { flex-direction: column; gap: 8px; margin: 8px 0 0 0; }
}
@media (max-width: 610px) {
  .header .container { flex-direction: column; gap: 10px; min-height: 54px; }
  .footer-brand img { height: 28px; }
}

/* MOBILE FLEX LAYOUTS ENFORCED ============ */
@media (max-width: 880px) {
  .footer-contact, .footer-brand, .footer-nav { align-items: flex-start; }
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .main-nav { display: none !important; }
  .cta-btn { display: none !important; }
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* BUTTONS & INPUTS ======================== */
button, input[type="submit"] {
  font-family: inherit;
  background: var(--primary);
  color: var(--primary-contrast);
  padding: 9px 23px;
  border-radius: var(--radius-xs);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(32,54,73,0.04);
  transition: var(--transition);
}
button:hover, button:focus, input[type="submit"]:hover, input[type="submit"]:focus {
  background: var(--brand-blue);
  color: var(--white);
}

input, textarea, select {
  font-family: inherit;
  padding: 7px 11px;
  border-radius: var(--radius-xs);
  border: 1.2px solid var(--gray-400);
  background: var(--white);
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .17s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 2px 6px 0 rgba(32,54,73,0.08);
}

/* SPACING ENFORCEMENT ===================== */
.card-container, .content-grid, .feature-grid, .service-grid, .service-list, .service-highlighted, .articles-list, .testimonials-flex {
  gap: 20px;
}
.card, .card-container > *, .feature-grid > div, .service-grid > div, .service-list > div, .service-highlighted > div, .articles-list > article, .testimonial-card {
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* VISUAL HIERARCHY ======================== */
h1, .cta-btn {
  letter-spacing: -0.02em;
}
.section h2 {
  border-left: 6px solid var(--brand-blue);
  padding-left: 16px;
  margin-bottom: 18px;
}

/* EFFECTS, SHADOWS, MICRO-INTERACTIONS ==== */
.card, .feature-grid > div, .service-grid > div, .service-list > div, .service-highlighted > div, .testimonial-card {
  box-shadow: var(--soft-shadow);
  transition: box-shadow 0.19s;
}
.card:hover, .feature-grid > div:hover, .service-grid > div:hover, .service-list > div:hover, .service-highlighted > div:hover, .testimonial-card:hover {
  box-shadow: 0 6px 22px 0 rgba(32,54,73,0.15);
}
.cta-btn, .cta-btn-secondary {
  transition: background 0.17s, color 0.17s, box-shadow 0.18s;
}

/* COOKIE CONSENT BANNER =================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 1999;
  background: var(--white);
  box-shadow: 0 -5px 32px 0 rgba(32,54,73,0.13);
  border-top: 2.5px solid var(--brand-blue);
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  min-height: 74px;
  font-size: 1.1rem;
  animation: fadeInUp .6s cubic-bezier(.38,.84,.36,1) both;
}
.cookie-banner p {
  color: var(--brand-blue);
  margin: 0;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button {
  background: var(--brand-blue);
  color: var(--white);
  border-radius: var(--radius-xs);
  padding: 9px 20px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Montserrat','Open Sans',Arial,sans-serif;
  font-weight: 600;
  font-size: 1rem;
}
.cookie-banner button.cookie-reject {
  background: var(--gray-400);
  color: var(--primary);
}
.cookie-banner button.cookie-settings {
  background: var(--white);
  color: var(--brand-blue);
  border: 1.3px solid var(--brand-blue);
}
.cookie-banner button:focus,
.cookie-banner button:hover {
  background: var(--secondary);
  color: var(--white);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 7px;
    font-size: 1.01rem;
  }
  .cookie-banner .cookie-buttons { flex-wrap: wrap; gap: 8px; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(55px); }
  to { opacity: 1; transform: translateY(0); }
}

/* COOKIE MODAL ============================ */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  min-width: 310px;
  max-width: 95vw;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 40px 0 rgba(32,54,73,0.24);
  padding: 40px 36px 34px 36px;
  z-index: 2000;
  transform: translate(-50%, -50%) scale(1.06);
  animation: fadeInModal .5s cubic-bezier(.38,.84,.36,1) both;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translate(-50%, -45%) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}
.cookie-modal h3 {
  margin-bottom: 9px;
  color: var(--brand-blue);
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 13px;
}
.cookie-modal .modal-buttons {
  display: flex; gap: 13px; margin-top: 23px; }
.cookie-modal .close-modal {
  position: absolute; top: 20px; right: 24px; background: none; border: none; color: var(--brand-blue); font-size: 1.7rem; cursor: pointer; }

@media (max-width: 480px) {
  .cookie-modal { padding: 18px 6px 16px 12px; min-width: 0; }
}

/* COOKIE TOGGLE SWITCH ==================== */
.cookie-switch {
  position: relative;
  width: 41px;
  height: 22px;
  display: inline-block;
}
.cookie-switch input { display: none; }
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: var(--gray-400);
  border-radius: 18px;
  transition: .31s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--secondary);
}
.cookie-slider:before {
  position: absolute;
  content: '';
  height: 16px;
  width: 16px;
  left: 2.5px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: .31s;
  box-shadow: 0 1px 4px rgba(32,54,73,.12);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(17px);
}

/* MISC: POLICIES ========================= */
main section ul, main section ol {
  margin-bottom: 18px; margin-left: 19px;
}
main section ul li, main section ol li {
  margin-bottom: 8px;
  font-size: 1.02rem;
}
main section address {
  font-style: normal;
  color: var(--gray-600);
  margin-bottom: 6px;
}

/* ACCESSIBILITY ============================ */
:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  z-index: 2;
}
.skip-link {
  position: absolute;
  left: -1500px;
  top: 10px;
  background: var(--brand-blue);
  color: var(--white);
  padding: 8px 12px;
  z-index: 1100;
  transition: left .2s;
}
.skip-link:focus { left: 10px; }

/* PRINT =================================== */
@media print {  
  header, footer, .cookie-banner, .cookie-modal, .mobile-menu { display: none !important; }
  main { padding: 0; }
}
