/* 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,
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;
}
html {
  font-size: 16px;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F8F8F2;
  color: #222a43;
  min-height: 100vh;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.16s;
}
a:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}
ul, ol {
  list-style: none;
}

:root {
  /* Vibrant energetic brand palette */
  --primary-color: #1C366A;
  --secondary-color: #54A29E;
  --accent-color: #FFCF43;
  --background-color: #F8F8F2;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --error-color: #ec4141;
  --success-color: #43e88f;
  --gray-medium: #d6dee9;
  --gray-dark: #2c375b;
  --focus-outline: #FFCF43;
  --shadow: 0 4px 20px rgba(28,54,106,0.12);
  --shadow-hover: 0 8px 28px rgba(28,54,106,0.18);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.375rem; /* 38px */
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 16px;
}
h3 {
  font-size: 1.5rem; /* 24px */
}
h4 {
  font-size: 1.125rem; /* 18px */
}

p, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #253969;
}
.subheadline {
  font-size: 1.125rem;
  font-family: var(--font-display);
  color: var(--secondary-color);
  margin-bottom: 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.price {
  font-family: var(--font-display);
  color: var(--accent-color);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.1em;
  margin-top: 10px;
}

/* BUTTONS */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  border-radius: 28px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.75em 2em;
  margin-top: 10px;
  margin-bottom: 10px;
  letter-spacing: 0.045em;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.22s, color 0.18s, box-shadow 0.19s, transform 0.13s;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--primary-color);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary-color);
  color: var(--primary-color);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.05);
  outline: none;
}
.btn-secondary {
  background: #fff;
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--secondary-color);
  color: #fff;
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-hover);
  outline: none;
  transform: translateY(-2px) scale(1.05);
}

button {
  font-family: inherit;
  font-size: 1em;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

/* GENERAL CONTAINERS & SECTIONS */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 20px;
  box-shadow: none;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px 20px;
}

.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: 12px;
  padding: 20px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 14px rgba(28,54,106,0.09);
  min-width: 0;
  width: 100%;
}
.testimonial-card p {
  font-size: 1.1em;
  color: #212849;
  font-family: var(--font-display);
  font-weight: 500;
}
.testimonial-author {
  font-size: 0.99em;
  color: var(--secondary-color);
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 600;
}
.stars {
  color: var(--accent-color);
  font-size: 1.22em;
  margin-top: 3px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/****************************
  NAVIGATION & HEADER
****************************/
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0px 20px 0px;
  background: #fff;
  position: relative;
  z-index: 30;
  width: 100%;
}
.main-nav > a img {
  height: 42px;
  margin-right: 26px;
}
.main-nav ul {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin: 0 30px;
}
.main-nav ul li {
  list-style: none;
}
.main-nav ul li a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--primary-color);
  padding: 7px 12px;
  border-radius: 18px;
  transition: background 0.18s, color 0.15s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus, .main-nav ul li a.active {
  background: var(--secondary-color);
  color: #fff;
}
.main-nav .btn-primary {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1em;
  padding: 0.55em 1.5em;
  margin-left: 18px;
}

/**********************
  BURGER MENU (Mobile)
**********************/
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 16px;
  top: 22px;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--primary-color);
  background: #fff;
  border-radius: 50%;
  padding: 6px 10px;
  box-shadow: var(--shadow);
  z-index: 1020;
  border: none;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--accent-color);
  color: var(--primary-color);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(33, 42, 73, 0.93);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.45, 1.22, .43, 1);
  z-index: 1100;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0%);
  pointer-events: all;
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  cursor: pointer;
  margin: 30px 30px 0 0;
  z-index: 1102;
  align-self: flex-end;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent-color);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  margin-top: 34px;
  gap: 11px;
}
.mobile-nav a {
  font-size: 1.22rem;
  font-family: var(--font-display);
  color: #fff;
  padding: 18px 0px 9px 0px;
  width: 80%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  text-align: center;
  transition: background 0.17s, color 0.13s;
  border-radius: 10px;
  margin: 0 auto;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent-color);
  color: var(--primary-color);
}

@media (max-width: 1024px) {
  .main-nav ul {
    gap: 14px;
    margin: 0 10px;
  }
}

@media (max-width: 900px) {
  .main-nav ul {
    gap: 7px;
    margin: 0 0 0 8px;
  }
  .main-nav .btn-primary {
    font-size: 0.95em;
    margin-left: 8px;
  }
}

@media (max-width: 768px) {
  .main-nav ul, .main-nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .main-nav {
    padding: 14px 0 13px 0;
    min-height: 56px;
    background: #fff;
  }
  .main-nav > a img {
    height: 38px;
    margin-right: 10px;
  }
}

/*************************
 SECTIONS: HERO & FEATURES
**************************/
.hero-section {
  background: linear-gradient(112deg, #FFCF43 0%, #54A29E 100%);
  margin-bottom: 44px;
  border-radius: 0px 0px 28px 28px;
  box-shadow: 0 6px 36px 0px rgba(28,54,106,0.12);
  padding: 56px 0 52px 0;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  padding: 0;
  max-width: 680px;
}
.hero-section h1 {
  color: #153057;
  font-size: 2.6rem;
  letter-spacing: 0.02em;
}
.hero-section .btn-primary {
  margin-top: 20px;
}

.features-section, .advantages-section {
  background: #fff;
  border-radius: 22px;
  margin-bottom: 52px;
  box-shadow: var(--shadow);
}
.features-section .feature-grid,
.advantages-section .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: flex-start;
  margin: 20px 0 8px 0;
}
.feature {
  background: var(--background-color);
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(84,162,158,0.19);
  padding: 22px 18px;
  flex: 1 1 220px;
  min-width: 215px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  transition: transform 0.14s, box-shadow 0.2s;
}
.feature:hover {
  box-shadow: 0 8px 26px rgba(28,54,106,0.16);
  transform: translateY(-3px) scale(1.025);
}
.feature img {
  width: 43px;
  height: 43px;
  margin-bottom: 2px;
}

.feature-summary {
  margin: 36px 0 4px 0;
  font-style: italic;
  font-size: 1.05rem;
  color: #222a43;
  font-weight: 500;
}

/*************************
 SERVICES / OFFERINGS CARDS
**************************/
.service-cards, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 27px 0;
}
.service-card {
  background: #fff;
  border-radius: 17px;
  box-shadow: var(--shadow);
  padding: 30px 22px 23px 22px;
  min-width: 210px;
  max-width: 330px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: box-shadow 0.17s, transform 0.16s;
}
.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px) scale(1.025);
}
.service-card h3 {
  margin-bottom: 2px;
  font-size: 1.23rem;
  color: var(--primary-color);
}
.service-card ul {
  margin: 0 0 0 0;
  padding-left: 14px;
  list-style: disc;
  color: #1B233D;
}
.service-card li {
  margin: 0 0 2px 0;
  font-size: 1em;
}
.service-card .price {
  margin-top: 10px;
  font-size: 1.07em;
}

/***************************
  TESTIMONIALS & SLIDER
***************************/

.testimonials-section {
  background: var(--background-color);
  border-radius: 18px;
  margin-bottom: 56px;
  box-shadow: none;
  padding: 40px 0;
}
.testimonials-section .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}

/**************
  ABOUT / LEGAL
***************/
.about-section, .legal-section {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 45px;
  padding: 36px 24px;
}
.about-section ul, .legal-section ul {
  margin-left: 21px;
  margin-top: 13px;
  margin-bottom: 19px;
  color: var(--primary-color);
  font-size: 1.04rem;
  line-height: 1.6;
}

/**********
  CONTACT
***********/
.kontakt-section .contact-details p {
  margin-bottom: 10px;
  font-size: 1.02em;
}
.map-snippet {
  background: #f6ecfc;
  color: #153057;
  padding: 17px 16px;
  margin: 20px 0 16px 0;
  border-radius: 13px;
  font-family: var(--font-display);
  font-size: 1.09em;
  font-style: italic;
}

/************
  FOOTER
*************/
footer {
  background: var(--primary-color);
  color: #fff;
  padding: 0;
}
footer .container {
  padding-top: 30px;
  padding-bottom: 32px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand img {
  max-height: 44px;
  margin-bottom: 19px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05em;
  opacity: 0.90;
  border-radius: 8px;
  padding: 3px 8px;
  transition: background 0.16s, color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--accent-color);
  color: var(--primary-color);
  opacity: 1;
}
.footer-contact p, .footer-contact a {
  color: #fff;
  font-size: 0.99em;
  opacity: 0.94;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}
.footer-legal a {
  color: var(--accent-color);
  font-size: 0.91em;
  opacity: 0.89;
  transition: text-decoration 0.11s, opacity 0.17s;
}
.footer-legal a:hover, .footer-legal a:focus {
  text-decoration: underline;
  opacity: 1;
}

/********************
  COOKIE CONSENT BANNER
*********************/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 2000;
  width: 100vw;
  background: #222a43;
  color: #fff;
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  box-shadow: 0px -4px 24px rgba(28,54,106,0.18);
  font-family: var(--font-body);
  font-size: 1.03em;
  animation: banner-slide-in 0.34s cubic-bezier(.4,1.3,.45,1.0) 1;
}
@keyframes banner-slide-in {
  from {transform: translateY(100%); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn {
  border: none;
  padding: 8px 18px;
  border-radius: 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.16s, color 0.13s, transform 0.17s;
}
.cookie-btn.accept {
  background: var(--success-color);
  color: #222a43;
}
.cookie-btn.reject {
  background: var(--error-color);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--secondary-color);
  color: var(--primary-color);
}
.cookie-btn:hover, .cookie-btn:focus {
  transform: translateY(-1px) scale(1.04);
  opacity: 0.96;
  outline: none;
}

/*****************
 COOKIE PREF MODAL
*****************/
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(28,54,106,0.74);
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-backdrop-in 0.2s;
}
@keyframes modal-backdrop-in {
  from {opacity: 0;}
  to {opacity: 1;}
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 46px rgba(28,54,106,0.27);
  padding: 32px 26px 24px 26px;
  min-width: 320px;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modal-in 0.23s cubic-bezier(.52,1.2,.43,1.0);
}
@keyframes modal-in {
  from {transform: scale(0.88) translateY(40px); opacity: 0;}
  to {transform: scale(1) translateY(0); opacity: 1;}
}
.cookie-modal h2 {
  margin-bottom: 6px;
  color: var(--primary-color);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-category label {
  font-family: var(--font-body);
  font-weight: 500;
}
.cookie-toggle {
  appearance: none;
  background: #d6dee9;
  width: 37px;
  height: 20px;
  border-radius: 11px;
  position: relative;
  outline: none;
  transition: background 0.16s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--secondary-color);
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-toggle:checked::before {
  transform: translateX(17px);
}
.cookie-category.essential label {
  color: var(--gray-dark);
}
.cookie-modal-btns {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 17px;
  justify-content: flex-end;
}

/*****************************
  CARD GRIDS & FLEX LAYOUTS!  
*****************************/
/* NO CSS GRID, only flex */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 21px;
}

/****** CONFIRMATION SECTION ******/
.confirmation-section {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(94deg, #54A29E 13%, #FFCF43 93%);
  border-radius: 0 0 28px 28px;
  padding: 62px 0 50px 0;
  margin-bottom: 24px;
}
.confirmation-section h1 {
  color: #153057;
  text-shadow: 0px 3px 15px rgba(28,54,106,0.06);
}

/**********************
  RESPONSIVE DESIGN
***********************/
@media (max-width: 900px) {
  .content-wrapper, .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .service-cards, .service-list {
    gap: 15px;
  }
  .advantages-section .feature-grid, .features-section .feature-grid {
    gap: 18px;
  }
  .content-grid {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.37rem; }
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .content-wrapper {
    padding: 0 2px !important;
  }
  .section, .about-section, .legal-section, .features-section, .testimonials-section {
    padding: 28px 7px;
    margin-bottom: 37px;
  }
  .hero-section {
    border-radius: 0 0 16px 16px;
    padding: 33px 0 26px 0;
  }
  .features-section, .advantages-section, .about-section, .legal-section {
    border-radius: 13px;
  }
  .service-cards, .service-list, .testimonial-slider, .footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature-grid {
    flex-direction: column;
    gap: 13px;
    align-items: stretch;
  }
  .content-grid {
    flex-direction: column;
    gap: 13px;
    align-items: stretch;
  }
  .testimonial-card {
    margin-bottom: 16px;
    min-width: 0;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer .content-wrapper {
    gap: 23px;
  }
}
@media (max-width: 560px) {
  h1 { font-size: 1.34rem; }
  h2 { font-size: 1.08rem; }
  .btn-primary, .btn-secondary {
    padding: 0.6em 1.3em;
    font-size: 0.97em;
  }
  .hero-section {
    padding-top: 21px;
    padding-bottom: 14px;
  }
  footer .container {
    padding-top: 18px;
    padding-bottom: 17px;
  }
  .cookie-banner {
    padding: 13px 8px;
    font-size: 0.99em;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .cookie-banner .cookie-btns {
    gap: 8px;
  }
  .cookie-modal {
    min-width: 0;
    padding: 20px 7px 16px 7px;
  }
}

/*********************
 MICRO-INTERACTIONS & TRANSITIONS
**********************/
p, li, a, input, button {
  transition: color 0.15s, background 0.17s;
}
.feature, .service-card, .testimonial-card {
  transition: transform 0.17s, box-shadow 0.21s;
}
section, .card, .content-wrapper, .footer-brand {
  transition: box-shadow 0.2s;
}

/**********
  ACCESSIBILITY
***********/
:focus {
  outline: 2px dashed var(--focus-outline);
  outline-offset: 2px;
  z-index: 101;
}

/*********
 Z-INDEX LAYERS
**********/
.mobile-menu, .cookie-banner, .cookie-modal-overlay {
  z-index: 2000;
}

/*********
 PRINT
**********/
@media print {
  .main-nav, .footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
}
