/* 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, 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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', serif, Arial, sans-serif;
  background-color: #FAFAF7;
  color: #222233;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

/* Brand Variables & Fallbacks */
:root {
  --color-primary: #12406A;
  --color-secondary: #F8B400;
  --color-accent: #FFFFFF;
  --color-muted: #EBEBE8;
  --color-border: #D0D0CB;
  --color-dark: #222233;
  --color-light: #FAFAF7;
  --font-display: 'Montserrat', Georgia, 'Times New Roman', serif;
  --font-body: 'Roboto', Georgia, 'Times New Roman', serif;
}

/* Typography hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-top: 8px;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, ul, ol, blockquote, address {
  font-family: var(--font-body);
  font-size: 1.06rem;
  color: #282823;
  margin-bottom: 14px;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
em {
  font-style: italic;
  color: var(--color-secondary);
}
blockquote {
  border-left: 4px solid var(--color-secondary);
  background: #fffde7;
  padding: 18px 24px;
  font-style: italic;
  color: var(--color-dark);
  margin-bottom: 8px;
  margin-top: 10px;
  border-radius: 6px;
  box-shadow: 0 1px 4px 0 rgba(18, 64, 106, 0.05);
}
ul, ol {
  margin-left: 20px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  font-size: 1.06rem;
}
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.18s;
  border-radius: 4px;
}
a:hover, a:focus {
  color: var(--color-secondary);
  outline: none;
}

/* Utility classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 810px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Spacing & Alignment Patterns */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
  border-radius: 16px;
  box-shadow: 0 1.2px 8px 0 rgba(18,64,106,0.04);
  display: flex;
  flex-direction: column;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1.5px 10px 0 rgba(18,64,106,0.07);
  padding: 30px 26px;
  transition: box-shadow 0.23s, transform 0.20s;
  border: 1px solid var(--color-border);
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 22px 0 rgba(18,64,106,0.11);
  transform: translateY(-2px) scale(1.012);
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1.5px 8px 0 rgba(18,64,106,0.06);
  margin-bottom: 20px;
  border-left: 6px solid var(--color-secondary);
  min-width: 0;
}
.testimonial-card blockquote {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 1.12rem;
  color: var(--color-dark);
}
.testimonial-meta {
  font-size: 0.98rem;
  color: #58584e;
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature Grid (card list with icons) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  margin-top: 18px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  padding: 28px 20px 22px 20px;
  box-shadow: 0 1.5px 10px 0 rgba(18,64,106,0.06);
  min-width: 260px;
  flex: 1 1 265px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.21s, transform 0.20s;
  margin-bottom: 20px;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 7px 24px 0 rgba(18,64,106,0.14);
  transform: translateY(-4px) scale(1.011);
}
.feature-grid img {
  height: 38px;
  width: 38px;
  margin-bottom: 14px;
}
.feature-grid h3 {
  font-size: 1.14rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}
.feature-grid a {
  margin-top: 8px;
  color: var(--color-secondary);
  font-weight: 600;
  font-family: var(--font-display);
  text-decoration: underline;
  font-size: 1rem;
  padding: 4px 0;
}
.feature-grid a:hover {
  color: var(--color-primary);
}

/* Header Navigation */
header {
  background: #fff;
  padding: 24px 0 18px 0;
  box-shadow: 0 2.5px 14px 0 rgba(18,64,106,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 90;
}
header img {
  height: 46px;
  margin-bottom: 8px;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 0;
  flex-wrap: wrap;
}
header nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1.06rem;
  padding: 8px 13px;
  border-radius: 6px;
  transition: background 0.18s, color 0.16s;
  letter-spacing: 0.01em;
}
header nav a:hover, header nav a:focus {
  background: var(--color-muted);
  color: var(--color-secondary);
}
header nav a.cta {
  color: #fff;
  background: var(--color-primary);
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 21px;
  margin-left: 14px;
  box-shadow: 0 1.5px 6px 0 rgba(18,64,106,0.12);
  transition: background 0.20s, color 0.13s, box-shadow 0.22s;
  position: relative;
}
header nav a.cta:hover, header nav a.cta:focus {
  background: var(--color-secondary);
  color: var(--color-dark);
  box-shadow: 0 7px 16px 0 rgba(18,64,106,0.14);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 7px;
  margin-left: 10px;
  transition: background 0.19s;
  z-index: 110;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-muted);
  color: var(--color-secondary);
  outline: none;
}

/* MOBILE NAVIGATION OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(18,64,106,0.97);
  z-index: 200;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(0.80,0.11,0.36,1.08);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  font-weight: 600;
  background: none;
  border: none;
  color: #fff;
  position: absolute;
  right: 25px;
  top: 25px;
  cursor: pointer;
  z-index: 220;
  border-radius: 8px;
  padding: 4px 7px;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: var(--color-dark);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 70px;
  margin-left: 38px;
  gap: 28px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.30rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 7px;
  transition: background 0.17s, color 0.15s;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-dark);
}
@media (max-width: 1080px) {
  .mobile-nav {
    margin-left: 20vw;
  }
}
@media (max-width: 600px) {
  .mobile-nav {
    margin-left: 8vw;
  }
}

/* HERO & SCALE SECTIONS */
main > section:first-child {
  background: #fff;
  box-shadow: 0 3px 20px 0 rgba(18,64,106,0.10);
  border-radius: 20px;
  margin-top: 40px;
  margin-bottom: 60px;
}
main .cta, a.cta {
  display: inline-block;
  font-family: var(--font-display);
  background: var(--color-secondary);
  color: var(--color-dark);
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  border: none;
  border-radius: 9px;
  padding: 12px 36px;
  margin-top: 8px;
  cursor: pointer;
  box-shadow: 0 1.5px 8px 0 rgba(18,64,106,0.08);
  transition: background 0.19s, color 0.18s, transform 0.18s, box-shadow 0.19s;
}
main .cta:hover, main .cta:focus, a.cta:hover, a.cta:focus {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 7px 16px 0 rgba(18,64,106,0.13);
  outline: none;
}

/* Footer */
footer {
  background: #12151D;
  padding: 40px 0 22px 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.97rem;
}
footer nav {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-bottom: 21px;
  flex-wrap: wrap;
}
footer nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.01rem;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.18s, color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-secondary);
  color: var(--color-dark);
}
.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 0;
  color: #f1f1ef;
  max-width: 930px;
}
.footer-contacts span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.96rem;
  margin-bottom: 4px;
}
.footer-contacts img {
  height: 18px;
  width: 18px;
  filter: brightness(89%) sepia(0.2);
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fffdf5;
  color: #222233;
  box-shadow: 0 -3.5px 22px 0 rgba(18,64,106,0.15);
  border-top: 2.5px solid var(--color-secondary);
  padding: 22px 20px 18px 20px;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  animation: cookie-banner-in 0.5s cubic-bezier(0.82,0.01,0.40,0.97);
}
@keyframes cookie-banner-in {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-consent-text {
  max-width: 640px;
  font-size: 1.01rem;
  margin-right: 8px;
}
.cookie-btn-group {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 8px 18px;
  border-radius: 7px;
  border: 1px solid var(--color-primary);
  background: #fff;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: var(--color-dark);
  border-color: var(--color-secondary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.reject {
  border-color: #CC4444;
  color: #CC4444;
  background: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ffeaea;
}
.cookie-btn.settings {
  border-style: dashed;
  border-color: var(--color-primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-primary);
  color: #fff;
}

/* Cookie Preferences Modal */
.cookie-modal-wrapper {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(30, 45, 70, 0.80);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-in 0.30s cubic-bezier(0.82,0.01,0.48,0.97);
}
@keyframes cookie-modal-in {
  0% { opacity:0; }
  100% { opacity:1; }
}
.cookie-modal {
  background: #fff;
  color: #222233;
  border-radius: 13px;
  box-shadow: 0 5px 44px 0 rgba(18,64,106,0.17);
  padding: 38px 24px 30px;
  min-width: 330px;
  max-width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
}
.cookie-modal h3 {
  margin-bottom: 20px;
  font-size: 1.33rem;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 14px;
}
.cookie-modal input[type='checkbox'] {
  appearance: none;
  width: 23px; height: 23px;
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  background: #F7F4E8;
  margin-right: 9px;
  cursor: pointer;
  position: relative;
  transition: border 0.16s;
}
.cookie-modal input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  left: 6px; top: 3.5px;
  width: 7px; height: 13px;
  border: solid var(--color-secondary);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.cookie-modal input[type='checkbox']:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.cookie-modal-close {
  position: absolute;
  top: 19px;
  right: 22px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--color-primary);
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-muted);
  color: var(--color-secondary);
  outline: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

/* Forms & Address */
address {
  display: block;
  background: #f6f5ef;
  border-radius: 7px;
  padding: 18px 16px;
  font-size: 0.98rem;
  margin: 10px 0 22px 0;
}

/* Miscellaneous Styles */
main {
  flex: 1 1 auto;
}

/* Responsive ------------------- */
@media (max-width: 1100px) {
  .feature-grid {
    justify-content: flex-start;
    gap: 14px;
  }
  .card {
    padding: 22px 11px;
  }
}
@media (max-width: 900px) {
  .feature-grid > div {
    min-width: 220px;
    max-width: 100%;
  }
  .footer-contacts {
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  header nav {
    gap: 9px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 34px;
    padding: 24px 8px;
  }
  .card-container, .content-grid, .feature-grid {
    flex-direction: column;
    gap: 16px !important;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 16px 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-top: 2px;
    align-self: flex-end;
  }
  header {
    align-items: flex-start;
    padding: 18px 0 12px 0;
  }
}

@media (max-width: 450px) {
  body {
    font-size: 0.97rem;
  }
  h1 {
    font-size: 1.51rem;
  }
  h2 {
    font-size: 1.14rem;
  }
  .cookie-consent-banner {
    flex-direction: column;
    gap: 11px;
    padding: 16px 5px 11px 9px;
  }
  .footer-contacts {
    gap: 8px;
  }
  .container {
    padding-left: 2px;
    padding-right: 10px;
  }
}

/* Hide mobile menu overlay by default */
.mobile-menu {
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
  display: flex;
}

/* Card/Section Spacing improvement */
.card, .feature-grid > div, .testimonial-card, .section, .main {
  margin-bottom: 20px;
}

/* Hide scrollbars on overlays - aesthetic */
.mobile-menu, .cookie-modal-wrapper {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mobile-menu::-webkit-scrollbar, .cookie-modal-wrapper::-webkit-scrollbar {
  display: none;
}

/* Subtle Shadow/hover for all cards */
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.17s;
}
.card:focus-within, .feature-grid > div:focus-within, .testimonial-card:focus-within {
  box-shadow: 0 4px 18px 0 rgba(18,64,106,0.11);
}

/* Microinteractions */
.cta:active, .cookie-btn:active {
  transform: scale(0.98);
}

/* Prevent overlap & ensure margin between cards */
.card + .card, .testimonial-card + .testimonial-card, .feature-grid > div + div {
  margin-top: 20px;
}

/* Accessibility: focus indicator */
a:focus, button:focus, .cta:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* End of stylesheet */
