/* =========================
  CSS RESET & NORMALIZATION
   ========================= */
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.5;
  background: #F6F8FA;
  color: #1C3846;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
}

/* ==== FONTS ==== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

html {
  font-size: 16px;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  background: #F6F8FA;
  min-height: 100vh;
  color: #1C3846;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1C3846;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2rem; letter-spacing: 0.01em; }
h2 { font-size: 1.5rem; letter-spacing: 0.01em; }
h3 { font-size: 1.2rem; }
.hero-subhead { font-size: 1.15rem; color: #385366; margin-bottom: 26px; }
p, ul, li, span, label {
  font-size: 1rem;
  line-height: 1.7;
}
strong { font-weight: 700; }

/* ===== COLORS ===== */
:root {
  --bc-primary: #1C3846;
  --bc-secondary: #56BFB2;
  --bc-accent: #FDB913;
  --bc-bg-light: #F6F8FA;
  --bc-gray: #E5EAF0;
  --bc-gray-dark: #B3BEC8;
  --bc-nav-hover: #223f4d;
  --bc-shadow: rgba(28, 56, 70, 0.12);
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px var(--bc-shadow);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px var(--bc-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
  flex: 1 1 270px;
  min-width: 250px;
}
.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: #F6F8FA;
  box-shadow: 0 1px 8px var(--bc-shadow);
  border-radius: 12px;
  color: #1C3846;
  margin-bottom: 20px;
  min-height: 80px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 0;
}

/* ========== HEADER ========== */
header {
  background: #fff;
  box-shadow: 0 1px 8px var(--bc-shadow);
  z-index: 20;
  width: 100%;
}
header .container {
  min-height: 74px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-left: 12px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  color: #1C3846;
  transition: background .18s, color .18s;
}
nav a:hover,
nav a:focus {
  background: var(--bc-gray);
  color: var(--bc-secondary);
}

/* ===== CTA BUTTONS ===== */
.cta {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 11px 30px;
  background: var(--bc-secondary);
  color: #fff;
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 8px var(--bc-shadow);
  transition: background .19s, box-shadow .19s, transform .13s;
  letter-spacing: .01em;
  margin-top: 12px;
}
.cta.primary {
  background: var(--bc-primary);
}
.cta:hover,
.cta:focus {
  background: var(--bc-accent);
  color: #1C3846;
  box-shadow: 0 4px 16px var(--bc-shadow);
  transform: translateY(-2px) scale(1.03);
}

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
  display: none;
  background: var(--bc-primary);
  color: #fff;
  font-size: 28px;
  border-radius: 7px;
  width: 47px;
  height: 47px;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 99;
  transition: background .2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--bc-secondary);
  color: #fff;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(28, 56, 70, 0.94);
  z-index: 2000;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  transition: transform .36s cubic-bezier(.4,0,.2,1);
  transform: translateX(100%);
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 32px;
  right: 32px;
  background: transparent;
  font-size: 2rem;
  color: #fff;
  border: none;
  z-index: 2101;
  cursor: pointer;
  transition: color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--bc-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 80px 0 0 38px;
  width: 80vw;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  padding: 10px 0;
  border-radius: 4px;
  transition: background .16s, color .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--bc-secondary);
  color: #1C3846;
}

/* ========== FOOTER ========== */
footer {
  background: #fff;
  color: #1C3846;
  border-top: 1px solid var(--bc-gray);
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 32px;
  padding-bottom: 36px;
  gap: 32px;
}
footer a img {
  height: 40px;
  margin-bottom: 10px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  font-size: .97rem;
  color: #385366;
  padding: 2px 0;
  transition: color .14s;
}
footer nav a:hover {
  color: var(--bc-accent);
}
footer .text-section p {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .98rem;
  color: #385366;
  margin-bottom: 7px;
}
footer img[alt^='Adres'],
footer img[alt^='Telefon'],
footer img[alt^='Mail'] {
  width: 18px; height: 18px;
}

/* ====== LISTS & ICONS ====== */
ul li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 12px;
  color: #223f4d;
}
ul li strong {
  color: #1C3846;
  font-weight: 700;
}
ul li img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F6F8FA;
  color: #1C3846;
  font-size: 1.07rem;
  box-shadow: 0 2px 16px var(--bc-shadow);
  border-radius: 12px;
  padding: 20px 28px;
  margin-bottom: 20px;
  min-height: 80px;
  transition: box-shadow .18s, background .18s;
}
.testimonial-card:hover {
  background: #E5EAF0;
  box-shadow: 0 6px 22px var(--bc-shadow);
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .98rem;
  color: #385366;
  font-weight: 600;
  margin-left: 10px;
}

/* ===== ANIMATION ===== */
.cta, .cta.primary, .mobile-menu, .mobile-menu-close, .testimonial-card {
  transition: all .2s cubic-bezier(.4,0,.2,1);
}

/* ===== SECTION HEADINGS ===== */
.section h2 {
  font-size: 1.5rem;
  color: var(--bc-primary);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
.section h3 {
  font-size: 1.18rem;
  color: var(--bc-primary);
  margin-bottom: 18px;
}

/* ===== SERVICE PRICES ===== */
ul li span {
  background: var(--bc-secondary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .96rem;
  border-radius: 8px;
  padding: 4px 14px;
  margin-left: 16px;
  font-weight: 500;
}

/* ========== GENERAL CARDS ========== */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--bc-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 30px 20px 30px 24px;
  display: flex;
  flex-direction: column;
  min-width: 220px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* ======= TEXT SECTIONS ======== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

/* === ICONS IN TEXT SECTIONS === */
.text-section img {
  width: 22px;
  height: 22px;
  margin-right: 7px;
  flex-shrink: 0;
}

/* === HERO / MAIN HEADINGS === */
.content-wrapper h1 {
  font-size: 2.2rem;
  color: var(--bc-primary);
  font-weight: 700;
  margin-bottom: 18px;
}

/* === TYPOGRAPHY SCALE === */
@media (min-width: 480px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.64rem; }
  .hero-subhead { font-size: 1.2rem; }
}
@media (min-width: 768px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.23rem; }
  p, ul, li, span { font-size: 1.07rem; }
  .hero-subhead { font-size: 1.22rem; }
}
@media (min-width: 992px) {
  h1 { font-size: 2.9rem; }
  h2 { font-size: 2rem; }
}

/* ========== SPACING ========== */
.section:not(:last-child) {
  margin-bottom: 60px;
}
.card:not(:last-child) {
  margin-bottom: 20px;
}
.content-grid > * {
  margin-bottom: 20px;
}

/* ===== INPUTS, FORMS, LABELS ===== */
input, textarea {
  padding: 11px 12px;
  border: 1.5px solid var(--bc-gray-dark);
  border-radius: 7px;
  background: #fff;
  font-family: inherit;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  color: #223f4d;
  transition: border .15s;
}
input:focus, textarea:focus {
  outline: 2px solid var(--bc-secondary);
  border-color: var(--bc-secondary);
}
label {
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
  color: #1C3846;
}

/* ======= RESPONSIVE FLEX LAYOUTS ======= */
@media (max-width: 992px) {
  .footer .container { flex-direction: column; gap: 32px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  header .container { flex-direction: row; gap: 14px; }
  nav { display: none; }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cta.primary {
    display: none;
  }
  .footer .container { flex-direction: column; gap: 22px; }
  .container, main .container { padding-left: 12px; padding-right: 12px; }
  .section { padding: 26px 8px; margin-bottom: 40px; }
  .testimonial-card { padding: 16px 10px; gap: 12px; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 16px; }
  .content-grid { flex-direction: column; gap: 14px; }
  .card-container { flex-direction: column; gap: 14px; }
}

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

/* ===== TABLE & FAQ (for policy pages) ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  font-size: 1rem;
}
th, td {
  padding: 13px 10px;
  border: 1.5px solid var(--bc-gray);
  text-align: left;
}
th {
  background: var(--bc-secondary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}

/* ========= COOKIE CONSENT BANNER ========= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -4px 14px var(--bc-shadow);
  border-top: 1.5px solid var(--bc-secondary);
  padding: 22px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 5100;
  animation: cookieBannerFadeIn .7s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieBannerFadeIn {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-text {
  flex: 1 1 230px;
  color: #1C3846;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .99rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 6px;
  outline: none;
  border: none;
  background: var(--bc-primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 1px 6px var(--bc-shadow);
  transition: background .16s, color .16s, box-shadow .15s, transform .12s;
}
.cookie-btn.accept {
  background: var(--bc-secondary);
  color: #fff;
}
.cookie-btn.reject {
  background: #D43F3A;
}
.cookie-btn.settings {
  background: var(--bc-accent);
  color: #1C3846;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #385366;
  color: #fff;
  box-shadow: 0 4px 16px var(--bc-shadow);
  transform: translateY(-1px) scale(1.03);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--bc-secondary);
  color: #fff;
}

/* ===== COOKIE MODAL ===== */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(28,56,70,.82);
  z-index: 5200;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn .4s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 430px;
  width: 93vw;
  padding: 38px 30px 30px;
  box-shadow: 0 14px 40px rgba(28,56,70,.18);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal-content h4 {
  font-size: 1.25rem;
  color: var(--bc-primary);
  margin-bottom: 10px;
  font-weight: 700;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #385366;
  cursor: pointer;
  transition: color .14s;
}
.cookie-modal-close:hover { color: var(--bc-accent); }
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cookie-category label {
  font-size: 1rem;
  color: #223f4d;
}
.cookie-toggle {
  width: 38px; height: 20px;
  border-radius: 11px;
  background: #E5EAF0;
  position: relative;
  cursor: pointer;
  transition: background .17s;
}
.cookie-toggle input {
  opacity: 0; width: 0; height: 0;
}
.cookie-toggle .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #c3cfd9;
  transition: .2s;
}
.cookie-toggle input:checked + .slider {
  left: 20px;
  background: var(--bc-secondary);
}
.cookie-category .desc {
  font-size: .95rem;
  color: #385366;
  margin-top: 3px;
}
.cookie-info {
  font-size: .97rem;
  color: #495f70;
  margin-bottom: 12px;
}

/* ==== Misc Small Elements ==== */
::-webkit-scrollbar {
  width: 11px;
  background: #E5EAF0;
}
::-webkit-scrollbar-thumb {
  background: #B3BEC8;
  border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
  background: #56BFB2;
}

/* === Utility Classes === */
.hide-mobile {
  display: block;
}
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .mobile-menu { display: flex; }
}

/* ========== END OF CSS ========== */
