/* === RESET & BASE === */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #181818;
  background: #fff;
  line-height: 1.55;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #27367A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #181818;
}
main {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #101010;
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 24px;
  color: #181818;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, ul li, ol li {
  margin-bottom: 14px;
}
blockquote {
  font-style: italic;
  border-left: 4px solid #1a1a1a;
  color: #4a4a4a;
  padding-left: 14px;
  margin-bottom: 16px;
  background: #f3f3f3;
}
strong {
  font-weight: 700;
}
em {
  font-style: italic;
}

/* === CONTAINERS === */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
}

/* === HEADER & NAV === */
header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1001;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}
header img {
  height: 44px;
  margin-right: 28px;
}
.main-nav {
  display: flex;
  gap: 27px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #232323;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 2px;
  border-radius: 5px;
  transition: color 0.2s, background 0.22s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #27367A;
  background: #ECECEC;
}
.btn-primary {
  display: inline-block;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: #181818;
  border-radius: 30px;
  padding: 11px 34px;
  box-shadow: 0 2px 10px rgba(29,29,29,0.08);
  border: none;
  cursor: pointer;
  margin-left: 16px;
  transition: background 0.2s, color 0.2s, box-shadow 0.17s;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #27367A;
  color: #fff;
  box-shadow: 0 4px 18px rgba(40,40,40,0.13);
}
.btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #181818;
  background: #fff;
  border: 1.7px solid #232323;
  border-radius: 26px;
  padding: 9px 28px;
  cursor: pointer;
  margin-top: 14px;
  transition: background 0.18s, color 0.18s, border 0.15s;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #232323;
  color: #fff;
  border-color: #27367A;
}

/* Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2rem;
  color: #232323;
  border: none;
  margin-left: 22px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #27367A;
}

/* === MOBILE MENU === */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  z-index: 2001;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 8px 36px rgba(40,40,40,0.19);
  padding: 32px 28px 22px 28px;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.67,.01,.3,1);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  color: #232323;
  border: none;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 14px;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #27367A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 10px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #232323;
  padding: 13px 0px;
  border-radius: 4px;
  transition: background 0.18s, color 0.17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F3F3F3;
  color: #181818;
}

/* === HERO SECTION === */
.hero {
  background: #f7f7f7;
  border-bottom: 1.5px solid #e0e0e0;
  margin-bottom: 60px;
  padding: 60px 0 0 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 780px;
  padding: 40px 0 38px 0;
  text-align: center;
  gap: 18px;
}
.hero h1 {
  color: #181818;
  font-size: 2.3rem;
  margin-bottom: 14px;
}
.hero p {
  color: #363636;
  font-size: 1.12rem;
}

/* === FLEX LAYOUTS & PATTERNS === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(30,30,30,0.07);
  position: relative;
  overflow: hidden;
}
.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: center;
  gap: 10px;
  background: #fff;
  padding: 28px 26px 18px 26px;
  margin-bottom: 24px;
  border-radius: 20px;
  box-shadow: 0 2px 18px rgba(35, 35, 35, 0.12);
  border-left: 6px solid #181818;
  max-width: 640px;
}
.testimonial-card p {
  color: #252525;
  font-size: 1.13rem;
  margin-bottom: 4px;
}
.testimonial-card span {
  color: #454545;
  font-size: 1rem;
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 22px 16px 18px 16px;
  background: #fafbfc;
  border-radius: 13px;
  min-width: 220px;
  box-shadow: 0 1px 8px rgba(40,40,40,0.08);
}
.feature-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  filter: grayscale(1) brightness(0.12);
}
.feature-item h3 {
  color: #181818;
}
.feature-grid {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 12px;
  margin-bottom: 16px;
}

/* === CARDS & SERVICES === */
.service-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 18px;
}
.service-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px 26px 20px 24px;
  box-shadow: 0 2px 20px rgba(30,30,30,0.08);
  flex: 1 1 255px;
  min-width: 250px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.service-card h3 {
  margin-bottom: 10px;
  color: #181818;
}
.service-card .price {
  font-size: 1.08rem;
  color: #101010;
  font-weight: 700;
  margin-bottom: 4px;
  margin-top: 4px;
}

/* === TEAM/LIST === */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.team-member {
  background: #fafbfc;
  border-radius: 12px;
  padding: 24px 20px 16px 20px;
  min-width: 240px;
  box-shadow: 0 1px 7px rgba(25,25,25,0.09);
  flex: 1 1 220px;
  margin-bottom: 20px;
}
.team-member h3 {
  color: #181818;
}
.team-member blockquote {
  margin-top: 11px;
  color: #454545;
  border-left: 3px solid #232323;
}

/* === CTA SECTION === */
.cta-section {
  background: #181818;
  color: #fff;
  padding: 56px 0 60px 0;
  border-radius: 22px;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-section .content-wrapper {
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cta-section h2 {
  color: #fff;
}
.cta-section p {
  color: #ececec;
}
.cta-section .btn-primary {
  margin-top: 18px;
  background: #fff;
  color: #181818;
}
.cta-section .btn-primary:hover {
  background: #27367A;
  color: #fff;
}

/* .accent: for variants */
.accent {
  background: #fff;
  color: #181818;
  border: 2px solid #181818;
}

/* === SERVICE TABLE === */
.service-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  margin-bottom: 30px;
  background: #fafbfc;
  box-shadow: 0 2px 24px rgba(25,25,25,0.07);
  border-radius: 16px;
  overflow: hidden;
}
.service-table th,
.service-table td {
  padding: 18px 16px;
  text-align: left;
}
.service-table th {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  background: #232323;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
}
.service-table tr {
  border-bottom: 1.2px solid #ececec;
}
.service-table tr:last-child {
  border-bottom: none;
}
.service-table td {
  color: #181818;
  font-size: 1rem;
}
.service-table a.btn-secondary {
  margin: 0;
  padding: 6px 18px;
}

/* === FEATURE LIST === */
.feature-list {
  margin-top: 10px;
  margin-bottom: 18px;
  padding-left: 18px;
}
.feature-list li {
  padding-left: 0;
  margin-bottom: 10px;
  position: relative;
  color: #181818;
}
.feature-list li::before {
  content: '\2022';
  color: #27367A;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* === TEXT SECTION (GENERIC) === */
.text-section {
  max-width: 740px;
  margin: 0 auto;
  text-align: left;
}
.text-section ul {
  margin-bottom: 12px;
}
.text-section ul li {
  margin-bottom: 9px;
  color: #232323;
}

/* === FOOTER === */
footer {
  background: #232323;
  color: #fff;
  padding: 44px 0 25px 0;
  border-top: 3px solid #181818;
  margin-top: 70px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.footer-navigation {
  display: flex;
  gap: 19px;
  flex-wrap: wrap;
  font-size: 1rem;
  margin-bottom: 8px;
}
.footer-navigation a {
  color: #fff;
  opacity: 0.85;
  transition: color 0.18s, opacity 0.18s;
}
.footer-navigation a:hover {
  color: #fff;
  opacity: 1;
  text-decoration: underline;
}
.footer-contact {
  color: #BABABA;
  font-size: 0.98rem;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-cta {
  margin-top: 10px;
}
.footer-cta .btn-primary {
  background: #fff;
  color: #232323;
}
.footer-cta .btn-primary:hover {
  background: #27367A;
  color: #fff;
}

/* === COOKIE CONSENT === */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #232323;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5000;
  padding: 24px 19px 22px 19px;
  box-shadow: 0 -2px 18px rgba(30,30,30,0.12);
  animation: slideUpCookie 0.45s cubic-bezier(.77,.08,.27,1);
}
@keyframes slideUpCookie {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #ECECEC;
  font-size: 1.07rem;
  margin-bottom: 17px;
  text-align: center;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.cookie-banner button {
  min-width: 135px;
  font-size: 1rem;
  border-radius: 24px;
  padding: 9px 20px;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  margin-top: 0;
  cursor: pointer;
  border: none;
  transition: background 0.19s, color 0.16s;
}
.btn-cookie-accept {
  background: #27367A;
  color: #fff;
}
.btn-cookie-accept:hover,
.btn-cookie-accept:focus {
  background: #181818;
}
.btn-cookie-reject {
  background: #fff;
  color: #232323;
  border: 1.5px solid #232323;
}
.btn-cookie-reject:hover,
.btn-cookie-reject:focus {
  background: #232323;
  color: #fff;
}
.btn-cookie-settings {
  background: #181818;
  color: #fff;
}
.btn-cookie-settings:hover,
.btn-cookie-settings:focus {
  background: #27367A;
  color: #fff;
}

/* === COOKIE MODAL === */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 5050;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,32,32,0.36);
}
.cookie-modal {
  position: fixed;
  z-index: 5100;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  min-width: 335px;
  max-width: 94vw;
  background: #fff;
  color: #181818;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.22);
  padding: 36px 22px 21px 22px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: fadeInModal 0.35s cubic-bezier(.71,.19,.3,1);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translate(-50%, -44%) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.45rem;
  margin-bottom: 10px;
  color: #27367A;
}
.cookie-category {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-size: 1.04rem;
  color: #181818;
  display: flex;
  align-items: center;
  gap: 9px;
}
.cookie-category input[type=checkbox] {
  accent-color: #27367A;
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.cookie-modal .btn-cookie-accept, .cookie-modal .btn-cookie-reject {
  min-width: 110px;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1100px) {
  .container {
    max-width: 940px;
  }
  .service-card,
  .team-member {
    min-width: 175px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
  .service-cards, .feature-grid, .team-list, .content-grid {
    gap: 14px;
  }
  .hero .content-wrapper {
    padding: 28px 0 25px 0;
  }
  .cta-section {
    padding: 36px 0 36px 0;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .main-nav,
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero h1 {
    font-size: 1.55rem;
  }
  .feature-grid, .content-grid, .service-cards, .team-list {
    flex-direction: column;
    gap: 19px;
  }
  .section, .cta-section {
    padding: 20px 8px;
    margin-bottom: 33px;
    border-radius: 15px;
  }
  .testimonial-card {
    padding: 13px 12px 10px 12px;
  }
  .cookie-modal {
    min-width: 98vw;
    max-width: 99vw;
    padding: 20px 6vw 16px 6vw;
  }
  footer {
    padding: 25px 0 19px 0;
  }
  .footer-contact {
    flex-direction: column;
    gap: 2px;
    font-size: 0.95rem;
  }
}
@media (max-width: 540px) {
  html {
    font-size: 14px;
  }
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .btn-primary, .btn-secondary {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 0.94rem;
  }
}
@media (max-width: 420px) {
  .hero h1 {
    font-size: 1.10rem;
  }
  .service-card {
    min-width: 140px;
    padding-left: 4px;
    padding-right: 4px;
  }
  .feature-item {
    padding-left: 4px;
    padding-right: 4px;
  }
  .team-member {
    padding-left: 3px;
    padding-right: 3px;
  }
}

/* === MICRO-INTERACTIONS & TRANSITIONS === */
.card, .service-card, .feature-item, .team-member, .testimonial-card {
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover, .service-card:hover, .feature-item:hover, .team-member:hover, .testimonial-card:hover {
  box-shadow: 0 6px 32px 0 rgba(30,30,30,0.13);
  transform: translateY(-3px) scale(1.012);
  z-index: 2;
}
.cta-section, .accent {
  transition: background 0.18s, border 0.18s;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 9px;
  background: #dedede;
}
::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 6px;
}

/* === HIGHLIGHT JS-BUTTONS (FOCUS) === */
.btn-primary:focus, .btn-secondary:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .cookie-banner button:focus, .cookie-modal button:focus {
  outline: 2.5px solid #27367A;
  outline-offset: 2px;
}

/* === MISC UTILITIES === */
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.text-center { text-align: center; }
