/* --- CSS RESET & BASE TYPOGRAPHY --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #171717;
  background: #fff;
  min-height: 100vh;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  background-color: #fff;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  padding-left: 1.25em;
  margin-bottom: 1em;
}
ul {
  list-style: disc;
}
ol {
  list-style: decimal;
}
li {
  margin-bottom: 0.5em;
}
a {
  color: #174663;
  text-decoration: none;
  transition: color 0.16s;
}
a:hover, a:focus {
  color: #111;
  text-decoration: underline;
}

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}
@media (min-width: 900px) {
  .content-wrapper {
    gap: 36px;
  }
  .section {
    padding: 60px 0 60px 0;
  }
}

/* --- TYPOGRAPHY SCALE --- */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.15rem;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  line-height: 1.18;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.62rem;
  font-weight: 600;
  color: #232323;
  letter-spacing: -0.2px;
  margin-bottom: 12px;
  line-height: 1.22;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  font-weight: 500;
  color: #222831;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
}
p, .p {
  font-size: 1rem;
  color: #222;
}
strong {
  font-weight: 600;
}

@media (min-width: 900px) {
  h1, .h1 { font-size: 3rem; }
  h2, .h2 { font-size: 2.1rem; }
  h3, .h3 { font-size: 1.35rem; }
  p, .p { font-size: 1.07rem; }
}

/* --- HEADER --- */
header {
  background: #fff;
  border-bottom: 1px solid #ededed;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 16px;
  padding: 12px 0;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #232323;
  padding: 7px 0;
  letter-spacing: 0.01em;
  transition: color 0.18s;
  position: relative;
}
header nav a::after {
  display: block;
  content: "";
  height: 2px;
  width: 0;
  background: #232323;
  transition: width 0.15s;
}
header nav a:hover, header nav a:focus {
  color: #174663;
}
header nav a:focus::after,
header nav a:hover::after {
  width: 100%;
  background: #174663;
}
.cta-btn {
  background: #111;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 10px 32px;
  border: none;
  border-radius: 26px;
  font-size: 1.01rem;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(30,35,40,0.045);
  transition: background 0.22s, color 0.19s, box-shadow 0.19s, transform 0.17s;
  cursor: pointer;
  outline: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #174663;
  color: #fff;
  box-shadow: 0 4px 18px rgba(23,70,99,0.07);
  transform: translateY(-2px) scale(1.025);
}

/* --- BURGER MENU MOBILE --- */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: #232323;
  color: #fff;
  border-radius: 50%;
  border: none;
  width: 48px;
  height: 48px;
  margin-left: 10px;
  box-shadow: 0 2px 10px rgba(20, 20, 20, 0.04);
  cursor: pointer;
  transition: background 0.18s, color 0.14s, box-shadow 0.17s;
  position: relative;
  z-index: 105;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #174663;
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17,17,17, 0.92);
  box-shadow: 0 8px 32px rgba(17,24,28, 0.18);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.4,.65,0,1), opacity 0.28s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  appearance: none;
  background: #fff;
  color: #111;
  font-size: 2rem;
  border-radius: 50%;
  border: none;
  width: 44px;
  height: 44px;
  margin: 24px 26px 8px 0;
  box-shadow: 0 2px 10px rgba(48, 48, 48, 0.1);
  cursor: pointer;
  align-self: flex-end;
  transition: background 0.18s, color 0.17s;
  z-index: 1201;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #232323;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 36px 0 0 0;
  gap: 10px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  padding: 16px 32px 16px 42px;
  border-bottom: 1px solid rgba(255,255,255, 0.08);
  transition: background 0.2s, color 0.13s;
  outline: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #49b88f;
  background: rgba(41,41,41, 0.16);
}

@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}
@media (max-width: 900px) {
  .header-flex nav {
    display: none !important;
  }
  .cta-btn {
    font-size: 1rem;
    padding: 12px 24px;
  }
}
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

/* --- HERO SECTION --- */
.hero {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding-top: 32px;
  padding-bottom: 38px;
}
.hero h1 {
  color: #111111;
  font-size: 2.3rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero p {
  color: #232323;
  font-size: 1.17rem;
  margin-bottom: 32px;
  max-width: 650px;
}
.hero .cta-btn {
  margin-top: 12px;
}
@media (min-width: 900px) {
  .hero {
    padding-top: 80px;
    padding-bottom: 80px;
    min-height: 340px;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero p {
    font-size: 1.19rem;
  }
}

/* --- FLEXBOX LAYOUTS (MANDATORY PATTERNS) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 5px 20px rgba(21, 21, 21, 0.12);
  padding: 32px 24px;
  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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #f8f8f8;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(41,41,41,0.11);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 195px;
  max-width: 445px;
}
.testimonial-card p {
  font-size: 1.13rem;
  color: #171717;
  line-height: 1.58;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #686868;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- FEATURE GRID --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin: 0;
  padding: 0;
  list-style-type: none;
}
.feature-grid li {
  flex: 1 1 240px;
  min-width: 210px;
  max-width: 320px;
  background: #f6f6f6;
  padding: 28px 24px 20px 24px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(23,70,99,0.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
  border: 1px solid #eaeaea;
  margin-bottom: 20px;
}
.feature-grid li img {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  opacity: 0.93;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: 0 4px 24px rgba(41,41,41,0.18);
  background: #fff;
  transform: translateY(-2px) scale(1.025);
}
.feature-grid h3 {
  margin-bottom: 4px;
}

/* --- BLOG POST LIST --- */
.blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style-type: none;
}
.blog-post-list li {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(41,41,41,0.07);
  padding: 26px 18px 20px 22px;
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 345px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-post-list h3 {
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #232323;
  margin-bottom: 7px;
  font-weight: 600;
}
.cta-link {
  color: #174663;
  font-weight: 500;
  font-size: 1.04rem;
  display: inline-block;
  margin-top: 6px;
  transition: color 0.21s;
}
.cta-link:hover, .cta-link:focus {
  color: #111;
  text-decoration: underline;
}

/* --- TEXT SECTION --- */
.text-section {
  max-width: 650px;
  font-size: 1.08rem;
}
.text-section h2, .text-section h3, .text-section h4 {
  margin-top: 24px;
}
.text-section ul, .text-section ol {
  margin-bottom: 18px;
}

/* --- CHECKLIST & FAQ LISTS --- */
.faq-list {
  margin-bottom: 28px;
  list-style-type: none;
  padding: 0;
  gap: 16px;
  display: flex;
  flex-direction: column;
}
.checklist {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 0;
}
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
.checklist li::before {
  content: "✓";
  color: #174663;
  position: absolute;
  left: 0;
  top: 0.1em;
  font-weight: 700;
  font-size: 1.07em;
  opacity: 0.9;
}

/* --- CONTACT INFO BLOCK --- */
.contact-info-block ul,
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info-block ul li,
.contact-info li {
  font-size: 1.05rem;
  color: #232323;
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-info-block ul img,
.contact-info img {
  width: 22px;
  height: 22px;
}

.map-block {
  background: #f2f2f2;
  border-radius: 12px;
  padding: 18px 18px 10px 18px;
  max-width: 440px;
}

/* --- CTA BLOCK --- */
.cta {
  margin-top: 18px;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- FOOTER --- */
footer {
  background: #181818;
  color: #ededed;
  padding: 22px 0 28px 0;
  margin-top: 60px;
  border-top: 1px solid #232323;
}
.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
footer nav a {
  color: #ededed;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.82;
  transition: color 0.2s, opacity 0.13s;
}
footer nav a:hover, footer nav a:focus {
  color: #49b88f;
  opacity: 1;
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ededed;
  font-size: 0.98rem;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  filter: grayscale(0.7) brightness(1.12);
}

@media (max-width: 900px) {
  .footer-flex {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  footer nav {
    gap: 14px;
  }
}

/* --- COOKIES BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #181818;
  color: #fff;
  padding: 22px 16px;
  z-index: 1400;
  box-shadow: 0 -3px 18px rgba(11,11,11,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: fadeBannerIn 0.32s cubic-bezier(.65,.1,0,1);
}
@keyframes fadeBannerIn { from { opacity: 0; transform: translateY(32px);} to { opacity: 1; transform: translateY(0);} }
.cookie-banner p {
  color: #fff;
  font-size: 1.08rem;
  max-width: 750px;
  text-align: center;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
  justify-content: center;
}
.cookie-btn {
  border-radius: 22px;
  border: none;
  padding: 9px 24px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.19s, color 0.13s, box-shadow 0.16s, border 0.17s;
}
.cookie-btn.accept {
  background: #49b88f;
  color: #111;
  border: 1.5px solid #49b88f;
  box-shadow: 0 2px 7px rgba(41,184,143,0.08);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #3ca87e;
  color: #fff;
  border-color: #3ca87e;
}
.cookie-btn.reject {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #232323;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: #181818;
  border: 1.5px solid #232323;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #ededed;
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(41,41,41,0.78);
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.23s;
  opacity: 1;
  pointer-events: auto;
  animation: fadeBannerIn 0.37s cubic-bezier(.65,.1,0,1);
}
.cookie-modal {
  background: #fff;
  color: #232323;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(11,11,11,0.14);
  padding: 34px 22px 22px 22px;
  max-width: 420px;
  width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 23px;
  position: relative;
  animation: modalIn 0.34s cubic-bezier(.5,.03,0,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px);} to { opacity: 1; transform: translateY(0);} }
.cookie-modal h2 {
  font-size: 1.45rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 7px;
  color: #111;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-modal .category-label {
  font-size: 1.02rem;
  font-weight: 500;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-modal .category-toggle {
  margin-left: auto;
  background: #eaeaea;
  padding: 5px 18px;
  border-radius: 17px;
  font-size: 1rem;
  min-width: 64px;
  border: none;
  transition: background 0.17s;
  outline: none;
  color: #111;
  cursor: pointer;
}
.cookie-modal .category-toggle.enabled {
  background: #49b88f;
  color: #fff;
}
.cookie-modal .category-toggle.disabled {
  background: #c6c6c6;
  color: #111;
  opacity: 0.72;
}
.cookie-modal .category-toggle:active {
  background: #232323;
  color: #fff;
}
.cookie-modal .cookie-modal-buttons {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  border-radius: 20px;
  font-size: 1rem;
  padding: 8px 22px;
}
.cookie-modal .cookie-btn.accept {
  background: #49b88f;
  color: #111;
}
.cookie-modal .cookie-btn.reject {
  background: transparent;
  color: #111;
  border: 1.5px solid #111;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 8px; top: 10px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #232323;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.14s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: #e5e5e5;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding: 0 10px;
  }
  .hero h1 {
    font-size: 1.45rem;
  }
  .hero {
    padding: 22px 0 28px 0;
  }
  .feature-grid {
    gap: 16px 0;
  }
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .section {
    margin-bottom: 32px;
    padding: 18px 0;
  }
}
@media (max-width: 768px) {
  .content-wrapper {
    gap: 16px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 15px;
  }
  .feature-grid li {
    min-width: unset;
    max-width: unset;
    width: 100%;
  }
  .card-container, .blog-post-list, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    min-width: unset;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* --- VISUAL HIERARCHY & EFFECTS --- */
h1, h2, h3, h4 {
  text-rendering: optimizeLegibility;
  margin-bottom: 18px;
}
section {
  background: #fff;
  border-radius: 0px;
}

/* --- MICROINTERACTIONS & TRANSITIONS --- */
.feature-grid li, .card, .testimonial-card, .blog-post-list li {
  transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
}
.card:hover, .testimonial-card:hover, .blog-post-list li:hover {
  box-shadow: 0 6px 28px rgba(23, 70, 99, 0.11);
  transform: translateY(-3px) scale(1.021);
}

button, .cta-btn, .cookie-btn {
  transition: background 0.18s, color 0.19s, box-shadow 0.17s, transform 0.16s;
}

/* --- ACCESSIBILITY --- */
:focus-visible {
  outline: 2px solid #49b88f;
  outline-offset: 2px;
}

/* --- UTILITY --- */
.d-none {
  display: none !important;
}
.hide-mobile {
  display: block;
}
@media (max-width: 900px) {
  .hide-mobile {
    display: none !important;
  }
}

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