/* RESET & BASE TYPOGRAPHY */
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,table,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%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
  display: block;
}
body {
  line-height: 1.4;
}
ol,ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
  height: auto;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* INDUSTRIAL MODERN COLORS */
:root {
  --primary: #296391;           /* brand deep blue */
  --secondary: #6DCFF6;         /* brand light blue */
  --accent: #F5F7FA;            /* brand near-white */
  --industrial-metal: #51555A;  /* industrial gray */
  --industrial-dark: #23272A;   /* urban dark */
  --industrial-bg: #181B1F;     /* base background */
  --industrial-light: #3B4147;  /* cards background */
  --shadow: rgba(25, 30, 35, 0.18);
  --border: #31343a;
  --success: #68be46;
  --danger: #bf272d;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background-color: var(--industrial-bg);
  color: #F5F7FA;
  font-size: 16px;
  transition: background 0.3s;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
h1 {font-size: 2.5rem; margin-bottom: 18px;}
h2 {font-size: 2rem; margin-bottom: 16px;}
h3 {font-size: 1.3rem; margin-bottom: 8px; color: var(--secondary);}
h4,h5,h6 { font-size: 1.1rem; }
p {font-size: 1rem; margin-bottom: 14px; color: #eaeaea;}
strong { color: var(--secondary); font-weight: bold; }

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(27, 30, 33, 0.980);
  border-radius: 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* HEADER */
header {
  width: 100%;
  background: linear-gradient(90deg, var(--industrial-dark) 70%, var(--industrial-metal) 100%);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 3px 12px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 900;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 18px;
  position: relative;
}
header img {
  height: 48px;
  width: auto;
}
header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.14s, color 0.14s;
  letter-spacing: 0.02em;
}
header nav a:hover,
header nav a:focus {
  background: var(--secondary);
  color: #15181c;
}
.cta-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: linear-gradient(90deg, var(--secondary) 80%, #b2e8fd 100%);
  color: var(--industrial-bg);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 11px 30px;
  border-radius: 30px;
  border: none;
  box-shadow: 0 5px 20px rgba(46,106,146,0.11);
  cursor: pointer;
  margin-left: 12px;
  letter-spacing: 0.03em;
  outline: none;
  transition: background 0.19s, box-shadow 0.19s, color 0.13s;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #3796d1 70%, var(--secondary) 100%);
  color: var(--accent);
  box-shadow: 0 8px 28px var(--shadow);
}

/* Burger menu icon */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--secondary);
  cursor: pointer;
  margin-left: 16px;
  padding: 2px 12px;
  transition: color 0.14s;
  z-index: 1101;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--secondary);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(96deg, var(--industrial-dark) 80%, var(--industrial-metal) 100%);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.37s cubic-bezier(.72,0,.32,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 52px 32px 48px 32px;
  min-width: 260px;
  width: 100vw;
  box-shadow: -8px 0 28px rgba(23, 26, 29, 0.45);
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2rem;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 22px;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 12px 6px;
  border-radius: 6px;
  transition: background 0.11s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--industrial-dark);
}

/* HERO SECTION */
.hero {
  background: linear-gradient(105deg, var(--industrial-dark) 75%, var(--industrial-metal) 95%);
  border-bottom: 2px solid var(--secondary);
  box-shadow: 0 6px 32px var(--shadow);
  padding: 70px 0 52px 0;
  margin-bottom: 42px;
}
.hero .container {
  padding-left: 0;
  padding-right: 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  text-align: left;
  gap: 18px;
  max-width: 570px;
}
.hero h1 {
  font-size: 2.8rem;
  color: var(--secondary);
  margin-bottom: 7px;
}
.hero p {
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 21px;
}

/* FEATURE GRID & CARDS */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 12px;
}
.feature-grid > div {
  background: rgba(52,55,60,0.93);
  border-radius: 16px;
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 22px var(--shadow);
  padding: 26px 22px;
  flex: 1 1 220px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px; /* Icon, title, desc */
  position: relative;
  transition: box-shadow 0.22s, border-color 0.22s, background 0.19s;
}
.feature-grid > div:hover,
.feature-grid > div:focus-within {
  box-shadow: 0 7px 30px rgba(61,183,241,0.13);
  border-color: var(--secondary);
  background: rgba(76,82,97,0.99);
}
.feature-grid img {
  width: 36px;
  height: auto;
  margin-bottom: 10px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--industrial-light);
  border-radius: 12px;
  box-shadow: 0 3px 18px var(--shadow);
  border: 1px solid var(--border);
  padding: 28px 19px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.19s, border-color 0.19s;
}
.card:focus-within, .card:hover {
  border-color: var(--secondary);
  box-shadow: 0 8px 28px rgba(109,207,246,0.09);
}

/* TESTIMONIAL STYLES */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  background: #F5F7FA;
  color: #20272F;
  border-radius: 16px;
  border-left: 5px solid var(--secondary);
  box-shadow: 0 4px 21px var(--shadow);
  padding: 20px 28px;
  margin-bottom: 20px;
  font-size: 1.12rem;
  position: relative;
  transition: box-shadow 0.17s, border-color 0.14s;
}
.testimonial-card p {
  color: #222931;
  font-size: 1.08rem;
  margin-bottom: 9px;
}
.testimonial-card strong {
  color: var(--primary);
}
.testimonial-card:after {
  content: '\201C';
  position: absolute;
  left: 14px;
  top: 14px;
  color: var(--secondary);
  font-size: 2.5rem;
  opacity: 0.13;
  pointer-events: none;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(41,99,145,0.11);
}

/* BLOG TAGS */
.post-tag {
  background: var(--secondary);
  color: var(--industrial-dark);
  border-radius: 7px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 4px 13px;
  margin-right: 6px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px var(--shadow);
}

/* LISTS */
ul, ol {
  margin-left: 1.1em;
  margin-bottom: 16px;
  font-size: 1rem;
}
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 0;
  color: #d2dae7;
}
ul li strong, ol li strong {
  color: var(--secondary);
  font-weight: 700;
}
ol li {
  counter-increment: step;
  position: relative;
  padding-left: 25px;
}
ol li:before {
  content: counter(step) '.';
  position: absolute;
  left: 0; top: 0;
  color: var(--primary);
  font-weight: 700;
}

/* FOOTER */
footer {
  background: linear-gradient(90deg, var(--industrial-metal) 0%, var(--industrial-bg) 100%);
  border-top: 2px solid var(--border);
  box-shadow: 0 -3px 18px var(--shadow);
  padding: 44px 0 28px 0;
  margin-top: 60px;
  color: #d3d8df;
}
footer .container {
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
footer nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: 4px;
  transition: background 0.13s, color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--secondary);
  color: var(--industrial-dark);
}
.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 7px;
  margin-bottom: 7px;
  align-items: center;
}
.footer-contacts > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.03rem;
}
.footer-contacts img {
  width: 23px;
  height: 23px;
  opacity: 0.75;
}
footer small {
  color: #92979e;
  margin-top: 12px;
  font-size: 0.96rem;
}

/* CONTENT GRIDS & FLEX PATTERNS PER SPECIFICATION */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  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;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}

/* BUTTONS */
button, .cta-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  outline: none;
  border: none;
  transition: background 0.17s, color 0.14s, box-shadow 0.14s;
  cursor: pointer;
}
button:active, .cta-btn:active {
  transform: scale(0.97);
}

/* ANIMATIONS */
@keyframes fade-in-up {
  0% {opacity:0;transform:translateY(32px);}
  100%{opacity:1;transform:translateY(0);}
}
.hero, .feature-grid > div, .testimonial-card, .card, .cta-btn, .mobile-menu {
  animation: fade-in-up 0.8s cubic-bezier(.33,1.21,.68,1) both;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1400;
  background: linear-gradient(90deg,var(--industrial-metal) 70%, var(--industrial-bg) 100%);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 30px 22px 24px;
  box-shadow: 0 -4px 20px var(--shadow);
  font-size: 1rem;
  border-top: 2px solid var(--secondary);
  animation: fade-in-up 0.8s 0.1s;
}
.cookie-banner p {color: var(--accent);margin-bottom:0;}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.04rem;
  font-weight: 600;
  padding: 7px 21px;
  border-radius: 20px;
  border: 2px solid var(--secondary);
  background: var(--industrial-dark);
  color: var(--secondary);
  box-shadow: 0 2px 9px var(--shadow);
  margin-left: 0;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.cookie-banner button.accept {
  background: var(--secondary);
  color: var(--industrial-bg);
  border-color: var(--secondary);
}
.cookie-banner button.accept:hover, .cookie-banner button.accept:focus {
  background: var(--primary);
  color: var(--accent);
  border-color: var(--primary);
}
.cookie-banner button.reject {
  background: var(--danger);
  color: var(--accent);
  border-color: var(--danger);
}
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus {
  background: #a01934;
  border-color: #8c152c;
}
.cookie-banner button.settings {
  background: none;
  color: var(--secondary);
  border-color: var(--secondary);
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: var(--industrial-dark);
  color: var(--accent);
}

/* COOKIE MODAL */
.cookie-modal {position:fixed;left:0;top:0;right:0;bottom:0;z-index:1600;background:rgba(24,27,31,0.96);display:flex;align-items:center;justify-content:center;animation:fade-in-up 0.3s;} .cookie-modal .modal-content{background:var(--industrial-metal);color:var(--accent);border-radius:18px;box-shadow:0 9px 40px var(--shadow);padding:36px 30px 28px 30px;min-width:320px;max-width:96vw;display:flex;flex-direction:column;gap:22px;position:relative;} .cookie-modal h2{font-size:1.45rem;color:var(--secondary);} .cookie-modal .close-modal{position:absolute;top:18px;right:22px;background:none;border:none;color:var(--accent);font-size:1.8rem;cursor:pointer;} .cookie-modal .cookie-category{margin-bottom:15px;display:flex;align-items:center;gap:10px;} .cookie-modal label.switch{position:relative;display:inline-block;width:44px;height:24px;} .cookie-modal input[type=checkbox]{opacity:0;width:0;height:0;} .cookie-modal .slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background:#a5a5a7;border-radius:24px;transition:.3s;} .cookie-modal input:checked+.slider{background:var(--secondary);} .cookie-modal .slider:before{position:absolute;content:"";height:18px;width:18px;left:3px;bottom:3px;background:var(--industrial-bg);border-radius:50%;transition:.3s;} .cookie-modal input:checked+.slider:before{transform:translateX(20px);} .cookie-modal .category-info{font-size:.97em;font-weight:500;} .cookie-modal .category-disabled{color:var(--success);font-weight:600;} .cookie-modal .cookie-actions{display:flex;flex-direction:row;gap:15px;justify-content:flex-end;}

/*---- RESPONSIVE ----*/
@media (max-width: 1024px) {
  .container { max-width: 100%; }
  header .container { gap: 8px; }
  .footer-contacts { gap: 24px; }
}
@media (max-width: 900px) {
  .feature-grid { gap: 16px; }
  .footer-contacts { flex-direction: column; gap: 15px; }
}
@media (max-width: 768px) {
  header nav, .cta-btn { display: none; }
  .mobile-menu-toggle { display: block; margin-left: auto; }
  .container { padding: 0 10px; }
  .content-wrapper { gap: 12px; }
  .feature-grid, .card-container, .footer-contacts { flex-direction: column; gap: 20px; }
  .feature-grid > div { min-width: unset; width: 100%; }
  .testimonial-card { padding: 16px 14px; }
  .hero { padding: 44px 0 35px 0; }
  .hero .content-wrapper { max-width: none; }
}
@media (max-width: 600px) {
  .hero h1 {font-size:2.1rem;}
  h2{font-size:1.3rem;}
  .section{padding:25px 7px;margin-bottom:28px;}
}
@media (max-width: 510px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 11px; padding: 13px 10px 13px 10px; font-size: 0.96rem;}
  .cookie-banner .cookie-actions {flex-direction:column;gap: 8px;}
  .cookie-modal .modal-content{padding:21px 10px 18px 10px;}
}
@media (max-width:420px) {
  .hero h1{font-size:1.18rem;}
  .footer-contacts img { width: 18px; height: 18px; }
}

/* UTILITIES */
.muted { color: #8a939e; opacity: 0.85; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-2 { margin-top: 14px; }
.mt-3 { margin-top: 21px; }
.mb-2 { margin-bottom: 14px; }
.mb-3 { margin-bottom: 22px; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 18px; }

/* PROGRESSIVE ENHANCEMENT: Fallbacks for system fonts */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  src: local('Montserrat'), local('Montserrat-Regular'), local('Arial'), local('Helvetica'), sans-serif;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 700;
  src: local('Open Sans'), local('Arial'), local('Helvetica'), sans-serif;
}

/* FOCUS STATES & ACCESSIBILITY */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Hide scroll on body when mobile menu open */
body.menu-open {
  overflow: hidden;
}
