/* === RESET & BASE === */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F6F7F9;
  color: #23272F;
  line-height: 1.6;
  min-height: 100vh;
  font-size: 1rem;
  letter-spacing: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
a {
  color: #1862A7;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #F3B600;
  outline: none;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 1em;
}
li:not(:last-child) {
  margin-bottom: 0.5em;
}
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.lead {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 18px;
}
/* === SCANDINAVIAN TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #222222;
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 22px;
  line-height: 1.15;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  line-height: 1.24;
}
h4, h5, h6 {
  margin-bottom: 10px;
}
p {
  margin-bottom: 18px;
}
strong {
  font-weight: 700;
}
/* === BUTTONS === */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: #fff;
  color: #1862A7;
  box-shadow: 0 2px 10px rgba(35,39,47,0.04);
  transition: background 0.18s, color 0.18s, box-shadow 0.2s, border 0.16s;
  text-align: center;
  margin-top: 6px;
}
.button.primary {
  background: #1862A7;
  color: #fff;
}
.button.accent {
  background: #F3B600;
  color: #23272F;
}
.button:hover, .button:focus {
  box-shadow: 0 6px 32px rgba(24,98,167,0.11);
  background: #e8f0fa;
  color: #222;
}
.button.primary:hover, .button.primary:focus {
  background: #13508c;
  color: #fff;
}
.button.accent:hover, .button.accent:focus {
  background: #ffe081;
  color: #23272F;
}
/* === SECTIONS & SPACING === */
section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 20px 0 rgba(35,39,47,0.04);
  margin-bottom: 60px;
  padding: 40px 20px;
  transition: box-shadow 0.26s;
}
section:last-of-type {
  margin-bottom: 32px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* === FLEXBOX CONTAINER LAYOUTS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 1px 7px 0 rgba(35,39,47,0.08);
  position: relative;
  padding: 32px 24px;
  min-width: 260px;
}
.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;
  background: #f4f6fa;
  border-radius: 14px;
  box-shadow: 0 1px 7px 0 rgba(24,98,167,0.12);
  padding: 20px;
  color: #23272F;
  margin-bottom: 24px;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 18px rgba(24,98,167,0.13), 0 1.5px 2px rgba(243,182,0,0.08);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* === HEADER & NAVIGATION === */
header {
  background: #fff;
  border-bottom: 1px solid #e9ecf1;
  box-shadow: 0 1px 9px rgba(35,39,47,0.04);
  position: sticky;
  top: 0;
  z-index: 1002;
}
nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 0;
}
nav > a img,
footer nav > a img {
  height: 36px;
  padding-right: 8px;
  display: inline-block;
}
nav ul {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}
nav ul li a {
  display: block;
  padding: 8px 14px;
  border-radius: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #23272F;
  font-weight: 500;
  transition: color 0.18s, background 0.18s;
}
nav ul li a:hover, nav ul li a:focus, nav ul li a.active {
  background: #e8f0fa;
  color: #1862A7;
}
/* === MAIN HEADER BUTTON === */
nav .button.primary {
  margin-left: 24px;
}
/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: none;
  position: relative;
  z-index: 1101;
  font-size: 2rem;
  background: none;
  border: none;
  color: #1862A7;
  padding: 10px 16px;
  margin-left: auto;
  transition: background .14s;
  border-radius: 50%;
  cursor: pointer;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:hover {
  background: #e8f0fa;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #f7f9fc;
  box-shadow: 0 16px 36px rgba(35,39,47,0.22);
  z-index: 1200;
  transform: translateX(-100vw);
  transition: transform .35s cubic-bezier(.55,.1,0,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 28px 24px 28px;
  gap: 22px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  border: none;
  color: #1862A7;
  align-self: flex-end;
  cursor: pointer;
  padding: 8px;
  margin-bottom: 8px;
  transition: background .14s;
  border-radius: 50%;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #e8f0fa;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.19rem;
  color: #23272F;
  padding: 12px 0 12px 5px;
  border-radius: 10px;
  transition: background 0.18s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e8f0fa;
  color: #1862A7;
}
/* === FOOTER === */
footer {
  background: #fff;
  border-top: 1px solid #e9ecf1;
  padding: 36px 0 16px 0;
  margin-top: 32px;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
footer nav a {
  font-size: 1rem;
  color: #23272F;
  font-family: 'Roboto', Arial, sans-serif;
  padding: 6px 2px;
  transition: color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  color: #1862A7;
}
footer p {
  font-size: .95rem;
  color: #A2ADC0;
  margin-top: 8px;
}
footer img {
  height: 36px;
}
/* === GADGET GRID (GADGETS.HTML) === */
.gadget-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 30px;
}
.gadget-grid > div {
  flex: 1 1 230px;
  background: #F7F8FA;
  border-radius: 14px;
  padding: 24px 18px 20px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 2px 8px 0 rgba(24,98,167,0.07);
  min-width: 210px;
  position: relative;
}
.badge {
  background: #F3B600;
  color: #23272F;
  border-radius: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .92rem;
  font-weight: 600;
  padding: 4px 14px;
  display: inline-block;
  margin-top: 4px;
}
/* === FEATURES LIST (INDEX & SMARTHOME & SERVICES) === */
.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  justify-content: flex-start;
}
.features-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 225px;
  flex: 1 1 230px;
  background: #F6F7F9;
  box-shadow: 0 1px 7px rgba(24,98,167,0.07);
  border-radius: 13px;
  padding: 22px 16px 20px 16px;
}
.features-list img {
  height: 38px;
}
/* === SERVICES LIST (SERVICES.HTML) === */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}
.services-list li {
  background: #F6F7F9;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 14px;
  padding: 26px 18px 22px 18px;
  min-width: 240px;
  flex: 1 1 240px;
  box-shadow: 0 1px 9px 0 rgba(35,39,47,0.04);
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
}
.services-list img {
  height: 34px;
}
.price {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #1862A7;
  background: #e8f0fa;
  border-radius: 10px;
  font-size: 1rem;
  padding: 3px 12px;
  margin-top: 2px;
}
/* === BLOG PREVIEWS === */
.article-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.article-previews article {
  background: #F6F7F9;
  border-radius: 13px;
  box-shadow: 0 1px 7px rgba(24,98,167,.08);
  padding: 24px 18px 21px 18px;
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.tag {
  font-size: 0.93rem;
  color: #fff;
  background: #1862A7;
  border-radius: 10px;
  padding: 2px 10px;
  display: inline-block;
  margin-top: 6px;
}
/* === STEPS LIST (SMART HOME) === */
.steps-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-left: 1.25em;
  margin-bottom: 1em;
}
.steps-list li {
  flex: 1 1 175px;
  margin-bottom: 20px;
}
/* === FORMS === */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 10px 0;
}
input[type='email'], input[type='text'], textarea {
  border: 1px solid #e9ecf1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  width: 100%;
  transition: border .14s;
  margin-bottom: 12px;
}
input[type='email']:focus, input[type='text']:focus, textarea:focus {
  border-color: #1862A7;
  outline: none;
}
label {
  font-size: 1rem;
  color: #1862A7;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 2px;
}
/* === DETAILS (FAQ) === */
details {
  margin-bottom: 18px;
  background: #f4f6fa;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1rem;
}
details summary {
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1862A7;
  outline: none;
  cursor: pointer;
  transition: color 0.17s;
}
details[open] summary {
  color: #23272F;
}
details div {
  margin-top: 9px;
}
/* === MAP PLACEHOLDER (CONTACT) === */
.map-placeholder {
  width: 100%;
  min-height: 120px;
  background: #f6f8fa;
  color: #A2ADC0;
  font-size: 1rem;
  border: 1.5px dashed #e4e7ee;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 12px;
  margin-top: 10px;
  margin-bottom: 22px;
}
/* === Z-INDEX HIERARCHY === */
header, .mobile-menu, .mobile-menu-toggle {z-index: 1200;}
.cookie-banner, .cookie-modal {z-index: 1300;}

/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: #23272F;
  box-shadow: 0 -2px 18px rgba(24,98,167,0.07);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 22px 14px 18px 16px;
  gap: 16px;
  font-size: 1.025rem;
  border-radius: 25px 25px 0 0;
  transition: transform 0.22s;
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-banner .button {
  font-size: 1rem;
  min-width: 108px;
  padding: 11px 14px;
}
.cookie-banner .button.primary {
  background: #1862A7;
  color: #fff;
}
.cookie-banner .button.accent {
  background: #F3B600;
  color: #23272F;
}

/* === COOKIE MODAL === */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(24,98,167, 0.11);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 6px 25px rgba(24,98,167,0.18);
  width: 97%;
  max-width: 410px;
  margin: 0 auto 18px;
  padding: 28px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-slide-in .36s cubic-bezier(.56,.84,.4,1.3);
}
@keyframes cookie-slide-in {
  from {transform: translateY(64px); opacity: 0;}
  to   {transform: translateY(0);  opacity: 1;}
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.17rem;
  color: #1862A7;
  font-weight: 700;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #1862A7;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  padding: 6px;
  transition: background .14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #e8f0fa;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f6f8fa;
  border-radius: 10px;
  padding: 12px 11px 12px 14px;
  margin-bottom: 7px;
  color: #23272F;
}
.cookie-category label {
  margin-bottom: 0;
  font-size: 1.015rem;
}
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 22px;
  background: #e8f0fa;
  border-radius: 12px;
  position: relative;
  outline: none;
  transition: background .19s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #1862A7;
}
.cookie-toggle::after {
  content: '';
  position: absolute;
  top: 2.5px; left: 2.5px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #fff;
  transition: left .18s;
  box-shadow: 0 1px 5px rgba(24,98,167,0.06);
}
.cookie-toggle:checked::after {
  left: 16.5px;
}
.cookie-modal-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.cookie-modal-btns .button {
  width: 100%;
  min-width: 108px;
  font-size: 1rem;
}
.cookie-desc {
  font-size: .99rem;
  color: #818798;
  margin-top: 1px;
  margin-bottom: 2px;
}
.cookie-category[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}
/* === RESPONSIVE LAYOUTS === */
@media (max-width: 1200px) {
  .container { max-width: 990px; }
}
@media (max-width: 990px) {
  nav ul { gap: 8px; }
  .container { max-width: 96vw; }
  .content-wrapper { gap: 16px; }
  .section, section { padding: 32px 7px; }
}
@media (max-width: 768px) {
  .container { max-width: 99vw; }
  nav ul, nav .button.primary { display: none !important; }
  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  nav { gap: 13px; }
  .footer-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  section, .section {
    margin-bottom: 36px;
    padding: 25px 7px 22px 7px;
  }
  .content-wrapper {
    gap: 11px;
  }
  .card-container, .gadget-grid, .features-list, .services-list, .content-grid, .article-previews {
    flex-direction: column;
    gap: 16px;
  }
  .gadget-grid > div, .features-list li, .services-list li, .article-previews article {
    min-width: 0;
    width: 100%;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 17px 10px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
}
@media (max-width: 540px) {
  .container { padding: 0 6px; }
  .footer-wrapper { gap: 14px; }
  section, .section { padding: 19px 2px 15px 2px; }
  .mobile-menu {
    padding: 22px 10px 14px 10px;
    font-size: 1rem;
  }
}
/* === MICRO-INTERACTIONS & EFFECTS === */
.card, .gadget-grid > div, .features-list li, .services-list li, .article-previews article {
  transition: box-shadow 0.22s, transform 0.2s;
}
.card:hover, .gadget-grid > div:hover, .features-list li:hover, .services-list li:hover,
.article-previews article:hover {
  box-shadow: 0 7px 26px 0 rgba(24,98,167,0.07), 0 1px 2px 0 rgba(243,182,0,0.06);
  transform: translateY(-2.5px) scale(1.012);
}
.button:active {
  transform: translateY(2px) scale(0.97); }
input:focus, textarea:focus, select:focus {
  outline: 2px solid #1862A7;
  outline-offset: 1.5px;
}
nav ul li a.active {
  background: #F3B600; color: #23272F;
}
/* === UTILITIES === */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mb-8 { margin-bottom: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
/* === DARK TEXT FOR TESTIMONIALS === */
.testimonial-card, .testimonial-card * {
  color: #23272F !important;
}
/* === MISC FIXES === */
::-webkit-input-placeholder { color: #A2ADC0; }
::-moz-placeholder { color: #A2ADC0; }
:-ms-input-placeholder { color: #A2ADC0; }
::placeholder { color: #A2ADC0; }
