/* RESET & BASELINE ------------------------------ */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  background: #183249;
  color: #F5F6FA;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  min-height: 100vh;
  position: relative;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #F5F6FA;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus,
a:hover {
  color: #717A6A;
  outline: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #F5F6FA;
  font-weight: 700;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: -0.2px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p {
  margin-bottom: 16px;
  font-size: 1.13rem;
  line-height: 1.7;
}
ul, ol {
  margin-bottom: 20px;
  padding-left: 1em;
}
li {
  margin-bottom: 8px;
  font-size: 1.05rem;
}
strong {
  color: #F5F6FA;
  font-weight: 600;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  background: #172835;
  border-radius: 10px;
  overflow: hidden;
  color: #F5F6FA;
}
th, td {
  padding: 16px 14px;
  border-bottom: 1px solid #2C506F;
}
th {
  background: #183249;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
}
td ul {
  margin: 0;
  padding-inline-start: 1.1em;
}
details {
  background: #1b364f;
  color: #F5F6FA;
  border-radius: 8px;
  margin-bottom: 24px;
  padding: 18px 18px 10px 18px;
  font-size: 1.09rem;
  box-shadow: 0 2px 10px rgba(11,14,22,0.12);
  border-left: 3px solid #717A6A;
}
summary {
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.14rem;
  color: #F5F6FA;
}
dt {
  font-weight: 700;
  margin-top: 10px;
  color: #F5F6FA;
}
dd {
  margin-left: 0;
  margin-bottom: 10px;
  color: #dbe6eb;
}


/* LAYOUT CONTAINERS ------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  margin-bottom: 26px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 340px;
  background: #23384e;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(24,50,73,0.10);
  transition: box-shadow 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  border: 1px solid #384e64;
}
.card:hover {
  box-shadow: 0 4px 22px 0 rgba(60,80,110,0.24);
  background: #222d38;
}

.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: #F5F6FA;
  color: #192835;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(24,50,73,0.09);
  font-size: 1.12rem;
  font-style: italic;
  transition: box-shadow 0.19s, transform 0.18s;
  border-left: 5px solid #717A6A;
}
.testimonial-card span {
  color: #717A6A;
  font-style: normal;
  font-size: 1rem;
  padding-left: 15px;
  font-weight: 600;
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px rgba(24,50,73,0.15);
  transform: translateY(-4px);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #203447;
  padding: 30px 22px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(24,50,73,0.13);
  margin-bottom: 20px;
  flex: 1 1 240px;
  min-width: 200px;
  border-left: 4px solid #717A6A;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.feature-item:hover {
  box-shadow: 0 4px 22px 0 rgba(60,80,110,0.19);
  border-color: #F5F6FA;
}
.feature-item img {
  width: 42px;
  height: 42px;
  filter: grayscale(1) brightness(2) contrast(0.8);
  margin-bottom: 7px;
}
.feature-item h3 {
  color: #F5F6FA;
  font-size: 1.12rem;
}
.feature-price {
  font-size: 1.07rem;
  font-weight: 700;
  color: #F5F6FA;
  background: #717A6A;
  border-radius: 5px;
  padding: 4px 13px;
  letter-spacing: 0.04em;
  position: absolute;
  bottom: 16px;
  right: 20px;
  box-shadow: 0 1px 4px rgba(24,50,73,0.12);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  margin-top: 18px;
}

.footer-nav {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}
footer .text-section p {
  color: #8791ad;
  font-size: 0.98rem;
  text-align: center;
}

/* HEADER & NAVIGATION ------------------------------ */
header {
  width: 100%;
  background: #172835;
  border-bottom: 1.5px solid #203447;
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}
header img {
  height: 46px;
  margin-right: 20px;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  color: #F5F6FA;
  padding: 7px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.17s, border-bottom 0.16s;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.main-nav a:focus,
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom: 2.5px solid #717A6A;
  color: #717A6A;
}
.btn-primary {
  background: linear-gradient(93deg, #717A6A 0%, #56634a 100%);
  color: #F5F6FA;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 11px 28px;
  border-radius: 8px;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(60,80,110,0.14);
  border: none;
  outline: none;
  margin-left: 24px;
  transition: background 0.16s, color 0.14s, transform 0.15s, box-shadow 0.13s;
  position: relative;
}
.btn-primary:focus,
.btn-primary:hover {
  background: linear-gradient(93deg, #2F4A3C 0%, #8791ad 100%);
  color: #183249;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 20px 0 rgba(60,80,110,0.19);
}

/* MOBILE MENU -------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #F5F6FA;
  font-size: 2.3rem;
  padding: 4px 14px;
  border: none;
  cursor: pointer;
  z-index: 101;
  position: absolute;
  top: 18px;
  right: 20px;
  border-radius: 5px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #23384e;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: #172835fa;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.85,-0.34,.27,1.22), box-shadow 0.22s;
  z-index: 2000;
  box-shadow: 0 0 60px 1px rgba(20,28,34,0.49);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 24px;
  top: 24px;
  background: none;
  color: #F5F6FA;
  border: none;
  font-size: 2.1rem;
  z-index: 2100;
  cursor: pointer;
  padding: 3px 13px;
  border-radius: 6px;
  transition: background 0.15s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #23384e;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  margin-top: 84px;
  margin-left: 35px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  color: #F5F6FA;
  font-weight: 500;
  padding: 9px 0;
  width: 100%;
  border-bottom: 1.2px solid transparent;
  transition: color 0.18s, border-bottom 0.16s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: #717A6A;
  border-bottom: 1.2px solid #717A6A;
}
/* Hide menu on desktop */
@media (min-width: 1025px){
  .mobile-menu-toggle, .mobile-menu {
    display:none!important;
  }
}

/* Show burger on mobile */
@media (max-width: 1024px){
  .main-nav,
  .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}


/* SECTIONS, GRIDS & CARDS -------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 0 10px 0;
}
@media (max-width: 768px){
  section {
    margin-bottom: 36px;
    padding: 24px 0 2px 0;
  }
}

/* HERO / INTRO ------------------------------------- */
section:first-of-type {
  padding-top: 28px;
  margin-bottom: 60px;
}

/* Responsive content grids */
@media (max-width: 950px){
  .feature-grid, .content-grid, .card-container {
    gap: 16px;
  }
}
@media (max-width: 768px){
  .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item, .card {
    width: 100%;
    min-width: 0;
  }
}

.text-image-section {
  flex-direction: row;
}
@media (max-width: 768px){
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* Typo hierarchy for page titles on mobile */
@media (max-width: 600px){
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.44rem;
  }
  h3 {
    font-size: 1.09rem;
  }
}

/* BUTTONS & MICRO-INTERACTIONS --------------------- */
.btn-primary:active {
  background: #717A6A;
  color: #fff;
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 2px 5px rgba(60,80,110,0.15);
}

button, .btn-primary, input[type="submit"], .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.12s, transform 0.15s, box-shadow 0.13s;
  outline: none;
}


/* FORMS, INPUTS ------------------------------------ */
input, select, textarea {
  background: #1b364f;
  color: #F5F6FA;
  border: 1.2px solid #28394d;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 6px;
  padding: 11px 16px;
  margin-bottom: 17px;
  width: 100%;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #717A6A;
  background: #223a55;
  outline: none;
}

/* FOOTER ------------------------------------------- */
footer {
  background: #172835;
  padding: 26px 0 10px 0;
  border-top: 1.5px solid #203447;
  margin-top: 44px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}


/* COOKIE CONSENT BANNER ---------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #203447;
  color: #F5F6FA;
  box-shadow: 0 -2px 24px rgba(0,0,0,0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 14px 19px 14px;
  z-index: 3100;
  gap: 19px;
  animation: slideInCookie 0.5s cubic-bezier(.79,-0.52,.42,1.46) 0.2s backwards;
}
@keyframes slideInCookie {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-banner p {
  color: #F5F6FA;
  font-size: 1.12rem;
  text-align: center;
  margin-bottom: 3px;
}
.cookie-btn {
  background: #717A6A;
  color: #fff;
  font-size: 1.03rem;
  margin: 2px 7px 0 7px;
  border-radius: 7px;
  padding: 9px 19px;
  min-width: 120px;
  display: inline-block;
  box-shadow: 0 1px 8px rgba(24,50,73,0.13);
  transition: background 0.17s, color 0.11s, box-shadow 0.15s;
}
.cookie-btn:focus,
.cookie-btn:hover {
  background: #F5F6FA;
  color: #183249;
  box-shadow: 0 4px 14px 0 rgba(60,80,110,0.18);
}
.cookie-btn.reject {
  background: #23384e;
  color: #F5F6FA;
}
.cookie-btn.reject:focus,
.cookie-btn.reject:hover {
  background: #8791ad;
  color: #183249;
}
.cookie-btn.settings {
  background: #203447;
  color: #F5F6FA;
  border: 1.1px solid #717A6A;
  box-sizing: border-box;
}
.cookie-btn.settings:focus,
.cookie-btn.settings:hover {
  background: #717A6A;
  color: #fff;
}

/* Cookie modal (preference center) */
.cookie-modal {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%,50%) scale(0.98);
  min-width: 320px;
  max-width: 98vw;
  background: #22384b;
  color: #F5F6FA;
  border-radius: 18px;
  box-shadow: 0 14px 100px 10px rgba(5,10,22,0.16);
  z-index: 4200;
  padding: 35px 26px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, box-shadow .18s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  animation: cookiePopIn 0.36s cubic-bezier(.59,1.8,.36,0.82) 0.09s both;
}
@keyframes cookiePopIn {
  0% { transform: translate(-50%,80%) scale(.94); opacity: 0; }
  100% { transform: translate(-50%,50%) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  color: #F5F6FA;
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.cookie-modal .category-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-modal .category {
  background: #23384e;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 1.03rem;
  color: #F5F6FA;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-modal label {
  font-size: 1rem;
  color: #F5F6FA;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal input[type=checkbox] {
  accent-color: #717A6A;
  width: 21px;
  height: 21px;
  margin-right: 3px;
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  min-width: 100px;
  padding: 8px 12px;
}
.cookie-modal .always-on {
  background: #56634a;
  color: #fff;
  border-radius: 3px;
  font-size: 0.89rem;
  padding: 2px 7px;
  margin-left: 8px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #F5F6FA;
  font-size: 2rem;
  cursor: pointer;
}

/* RESPONSIVE QUERIES ------------------------------- */
@media (max-width: 1050px){
  header .container {
    height: auto;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 14px;
  }
}
@media (max-width: 768px){
  .container {
    padding: 0 9px;
  }
  header .container {
    flex-direction: row;
    height: 56px;
    gap: 3px;
    padding: 3px 8px 3px 12px;
  }
  header img {
    height: 38px;
    margin-right: 10px;
  }
}

@media (max-width: 600px){
  .cookie-modal {
    min-width: 0;
    padding: 22px 6vw 21px 6vw;
  }
}

/* INDUSTRIAL/MODERN DECOR -------------------------- */
.feature-item, .card, .testimonial-card, .cookie-banner, .cookie-modal {
  box-shadow: 0 2px 12px rgba(24,50,73,0.13), 0 1.5px 0 #384e64 inset;
}
.card, .feature-item, .testimonial-card {
  border-radius: 12px;
}
.btn-primary, .cookie-btn {
  box-shadow: 0 2px 10px rgba(60,80,110,0.14);
  text-shadow: 0 1px 1px rgba(0,0,0,0.09);
}

.feature-item, .card {
  border-top: 1.2px solid #303f50;
  border-right: 1.2px solid #28394d;
  box-shadow: 0 2px 14px rgba(24,50,73,0.13), 0 2px 0 #384e64 inset;
}

/* Utility classes */
.d-none { display: none !important; }
.flex { display: flex !important; }
.align-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }

/* Accessibility: focus outlines for interactive elements */
a:focus, button:focus, .btn-primary:focus, .cookie-btn:focus, input:focus {
  outline: 2px dashed #717A6A;
  outline-offset: 3px;
}

/* Custom scrollbar for dark background */
::-webkit-scrollbar {
  width: 10px; background: #23384e;
}
::-webkit-scrollbar-thumb {
  background: #56634a; border-radius: 5px;
}

/* PRINT -------------------------------------------- */
@media print {
  body, section, header, footer {
    background: #fff !important;
    color: #222 !important;
  }
  a, .btn-primary, .cookie-btn {
    color: #222 !important;
    background: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
  }
  .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
}
