/* === CSS RESET & NORMALIZE === */
html {
  box-sizing: border-box;
  height: 100%;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  min-height: 100%;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F5F6FA;
  color: #23405C;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-style: none;
}
ul, ol {
  margin-bottom: 16px;
  padding-left: 18px;
}
li {
  margin-bottom: 8px;
}
a {
  color: #23405C;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #1B2F40;
  text-decoration: underline;
  outline: none;
}
hr {
  border: none;
  border-top: 1px solid #A5B7C5;
}

/* === BRAND TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #23405C;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.16;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
strong, b {
  font-weight: 700;
}
p, .text-section p {
  margin-bottom: 18px;
  font-size: 1rem;
}
.text-section {
  margin-bottom: 16px;
}
blockquote {
  font-style: italic;
  color: #23405C;
  border-left: 4px solid #A5B7C5;
  margin: 0 0 8px 0;
  padding-left: 18px;
  font-size: 1.08rem;
  background: #F5F6FA;
}

/* === CONTAINER & LAYOUT === */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 4px 16px 0 rgba(35, 64, 92, 0.06);
  transition: box-shadow 0.2s;
}
.section:last-child {
  margin-bottom: 0;
}

/* === FLEXBOX PATTERNS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 12px;
  background: #FFF;
  box-shadow: 0 2px 10px 0 rgba(35, 64, 92, 0.05);
  transition: box-shadow .18s;
}
.card:hover {
  box-shadow: 0 6px 22px 0 rgba(35,64,92,0.08);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 30px 22px 26px;
  background: #F5F6FA;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px 0 rgba(35,64,92,0.03);
}
.testimonial-card:last-child {
  margin-bottom: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === MAIN NAVIGATION === */
header {
  background: #FFF;
  border-bottom: 1px solid #E8EBF0;
  box-shadow: 0 2px 10px 0 rgba(35,64,92,0.04);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.logo img {
  width: 128px;
  height: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.015em;
  color: #23405C;
  padding: 8px 4px;
  border-radius: 6px;
  transition: background .16s, color .16s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: #A5B7C5;
  color: #FFF;
  text-decoration: none;
}

.btn-primary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #FFF;
  background: #23405C;
  border-radius: 8px;
  padding: 10px 32px;
  margin-left: 28px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px 0 rgba(35,64,92,0.07);
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-primary:hover, .btn-primary:focus {
  background: #1B2F40;
  color: #FFF;
  box-shadow: 0 4px 14px 0 rgba(35,64,92,0.11);
}

.cta-link {
  color: #23405C;
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-bottom: 2px solid #23405C;
  padding-bottom: 2px;
  margin-top: 14px;
  display: inline-block;
  transition: color .18s, border-color .18s;
}
.cta-link:hover, .cta-link:focus {
  color: #1B2F40;
  border-color: #1B2F40;
  text-decoration: none;
}

.category-tabs, .category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.category-tabs a, .category-filter a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #23405C;
  background: #F5F6FA;
  border-radius: 6px;
  padding: 8px 18px;
  margin-bottom: 8px;
  border: 1px solid #E8EBF0;
  transition: background .16s, color .16s;
}
.category-tabs a:hover, .category-tabs a:focus,
.category-filter a:hover, .category-filter a:focus {
  background: #A5B7C5;
  color: #FFF;
  border-color: #A5B7C5;
  text-decoration: none;
}

/* === HERO, GRID, BLOCKS === */
.feature-grid,
.category-grid,
.blog-post-grid,
.mini-catalog-list,
.case-study-list,
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 24px;
}
.feature-grid > div,
.category-grid > .category-card,
.blog-post-grid > .blog-post,
.case-study-list > .case-study-card,
.contact-details > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: #FFF;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(35,64,92,0.05);
  padding: 22px 18px;
  text-align: left;
  transition: box-shadow .2s;
}
.feature-grid > div:hover,
.category-grid > .category-card:hover,
.blog-post-grid > .blog-post:hover,
.case-study-list > .case-study-card:hover {
  box-shadow: 0 6px 18px 0 rgba(35,64,92,0.10);
}
.mini-catalog-list {
  flex-direction: column;
  gap: 12px;
  margin-left: 0;
  padding-left: 0;
}
.mini-catalog-list li {
  background: #F5F6FA;
  padding: 10px 16px 10px 18px;
  border-radius: 6px;
  margin: 0 0 8px 0;
  position: relative;
  font-size: .96rem;
  color: #23405C;
  list-style: none;
}
.mini-catalog-list li:before {
  content: '\25A0';
  color: #A5B7C5;
  font-size: 0.8em;
  vertical-align: middle;
  margin-right: 8px;
}

/* === STEP LIST, BLOCKS, MAP === */
.step-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0;
  margin: 28px 0 16px 0;
}
.step-list li {
  flex: 1 1 180px;
  background: #F5F6FA;
  border-radius: 10px;
  padding: 18px 14px 18px 16px;
  margin-bottom: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .98rem;
}
.step-list img {
  width: 30px;
  margin-right: 12px;
  flex-shrink: 0;
}

/* === BLOG POSTS === */
.blog-post-grid {
  gap: 24px;
}
.blog-post {
  background: #FFF;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(35,64,92,0.05);
  padding: 18px 20px 22px 20px;
  min-width: 220px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  margin-bottom: 20px;
}
.blog-post span {
  font-size: 0.9rem;
  color: #A5B7C5;
  margin-top: 8px;
}

/* === TESTIMONIALS & CASE CARDS === */
.testimonial-carousel {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.case-study-list {
  gap: 24px;
}
.case-study-card {
  background: #F5F6FA;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(35,64,92,0.04);
  padding: 22px 28px 18px 24px;
  margin-bottom: 20px;
}
.case-study-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

/* === CONTACT PAGE === */
.contact-details {
  margin-bottom: 26px;
}
.contact-details > div {
  background: #F5F6FA;
  border-radius: 10px;
  box-shadow: 0 1px 6px 0 rgba(35,64,92,0.05);
  align-items: center;
  gap: 10px;
  display: flex;
  flex-direction: row;
}
.contact-details img {
  width: 36px;
  margin-right: 12px;
  flex-shrink: 0;
}
.contact-map {
  margin-top: 10px;
  background: #F5F6FA;
  border-radius: 13px;
  padding: 18px 20px;
  font-size: 1rem;
  box-shadow: 0 1px 6px rgba(35,64,92,0.06);
}

/* === FOOTER === */
footer {
  background: #23405C;
  color: #FFF;
  padding: 32px 0 12px 0;
  font-size: 0.99rem;
  border-top: 2px solid #A5B7C5;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #FFF;
  margin-bottom: 18px;
}
.footer-brand img {
  width: 40px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.footer-nav a {
  color: #FFF;
  opacity: 0.88;
  transition: color .18s, opacity .14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #A5B7C5;
  opacity: 1;
}
.footer-contact a {
  color: #A5B7C5;
  text-decoration: underline;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: #FFF;
}
.footer-contact p {
  margin-bottom: 8px;
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: #23405C;
  color: #FFF;
  border: none;
  font-size: 2.2rem;
  padding: 6px 14px;
  border-radius: 6px;
  margin-left: 10px;
  cursor: pointer;
  z-index: 1041;
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #A5B7C5;
}
.mobile-menu {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35, 64, 92, 0.98);
  color: #FFF;
  z-index: 1040;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.7,.3,.2,1);
  padding: 32px 24px 24px 24px;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  color: #FFF;
  border: none;
  font-size: 2rem;
  align-self: flex-end;
  margin-bottom: 14px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background .16s, color .16s;
}
.mobile-menu-close:focus {
  background: #A5B7C5;
  color: #23405C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 8px;
}
.mobile-nav a {
  color: #FFF;
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 10px 6px;
  border-radius: 7px;
  transition: background .14s, color .14s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #A5B7C5;
  color: #23405C;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .container {
    max-width: 960px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 790px;
  }
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  .section {
    padding: 25px 6px;
    margin-bottom: 40px;
  }
  .content-grid, .feature-grid, .category-grid, .blog-post-grid, .case-study-list, .contact-details {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-carousel, .step-list {
    flex-direction: column;
    gap: 18px;
  }
  .card {
    margin-bottom: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .footer-brand {
    margin-bottom: 10px;
  }
  .footer-nav, .footer-contact {
    margin-bottom: 10px;
  }
  footer .container {
    flex-direction: column;
    gap: 14px;
  }
  .btn-primary {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
  .category-tabs, .category-filter {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 700px) {
  .main-nav, .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .logo img {
    width: 110px;
  }
}

/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFF;
  color: #23405C;
  box-shadow: 0 -2px 18px 0 rgba(35,64,92,0.08);
  z-index: 9999;
  width: 100vw;
  max-width: 100vw;
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  font-size: .96rem;
  border-radius: 14px 14px 0 0;
  animation: cookie-slidein .5s;
}
@keyframes cookie-slidein {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-msg {
  flex: 2 1 180px;
  margin-right: 20px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border-radius: 7px;
  padding: 8px 20px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background .12s, color .12s;
  margin-left: 0;
  background: #A5B7C5;
  color: #FFF;
}
.cookie-banner button.cookie-acceptall {
  background: #23405C;
}
.cookie-banner button.cookie-acceptall:hover, .cookie-banner button:not(.cookie-acceptall):hover {
  background: #27517D;
}
.cookie-banner button.cookie-settings {
  background: #E8EBF0;
  color: #23405C;
  border: 1px solid #A5B7C5;
}
.cookie-banner button.cookie-settings:hover {
  background: #A5B7C5;
  color: #FFF;
}

/* === COOKIE PREFERENCES MODAL === */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,64,92,0.64);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: cookie-modal-in .34s;
}
.cookie-modal.open {
  display: flex;
}
@keyframes cookie-modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #FFF;
  color: #23405C;
  max-width: 430px;
  width: 90vw;
  border-radius: 16px;
  padding: 32px 26px 24px 26px;
  box-shadow: 0 12px 36px rgba(35,64,92,0.13);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.cookie-modal-content .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 8px;
}
.cookie-modal-content .cookie-category label {
  flex: 1 1 0;
}
.cookie-modal-content input[type="checkbox"] {
  accent-color: #23405C;
  margin-right: 8px;
  width: 18px;
  height: 18px;
}
.cookie-modal-content .cookie-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.cookie-modal-content .cookie-close-modal {
  position: absolute;
  top: 16px;
  right: 22px;
  background: none;
  border: none;
  color: #23405C;
  font-size: 1.7rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 5px;
  transition: background .13s;
}
.cookie-modal-content .cookie-close-modal:hover {
  background: #F5F6FA;
}
.cookie-modal-content .cookie-switch {
  margin-left: 8px;
  vertical-align: middle;
}
.cookie-modal-content .cookie-switch[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

/* === HOVERS, SHADOWS, ACCESSIBILITY === */
.card, .feature-grid > div, .category-grid > .category-card, .blog-post {
  transition: box-shadow .16s, border-color .16s;
}
.card:focus-within, .feature-grid > div:focus-within, .category-grid > .category-card:focus-within {
  outline: 2px solid #A5B7C5;
}

button, [tabindex]:not([tabindex='-1']) {
  outline: none;
}
button:focus-visible {
  outline: 2px solid #A5B7C5;
}

/* === UTILITIES === */
.text-center {
  text-align: center;
}
.mt-0 { margin-top: 0 !important; }
.mt-24 { margin-top: 24px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-24 { margin-bottom: 24px !important; }

/* === END OF STYLE.CSS === */
