/* ==========================================================================
   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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.65;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F8F9FB;
  color: #2D3142;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #2D3142;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #F4A259;
  outline: none;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
:focus-visible {
  outline: 2px solid #F4A259;
  outline-offset: 2px;
}

/* ==========================================================================
   BRAND TYPE & COLORS
   ========================================================================== */
:root {
  --color-primary: #2D3142;
  --color-secondary: #BFC0C0;
  --color-accent: #F4A259;
  --color-bg: #F8F9FB;
  --color-white: #fff;
  --color-dark: #222433;
  --color-border: #E4E7ED;
}

h1, h2, h3, h4 {
  font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

/* Typography scale adjustments */
@media (min-width: 600px){
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
}
@media (min-width: 900px){
  h1 { font-size: 3.2rem; }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
  background: var(--color-white);
  box-shadow: 0 2px 6px rgba(45,49,66, 0.04);
  position: sticky;
  top: 0;
  z-index: 1050;
  width: 100%;
}
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
}
header nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 1rem;
}
header nav a {
  position: relative;
  color: var(--color-primary);
  padding: 6px 2px;
  transition: color 0.18s;
  font-weight: 500;
}
header nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--color-accent);
  transition: width 0.2s;
  margin-top: 3px;
}
header nav a:hover:after,
header nav a:focus:after {
  width: 100%;
}
.cta-btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white) !important;
  border-radius: 28px;
  padding: 12px 28px;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.07rem;
  margin-left: 16px;
  box-shadow: 0 2px 8px rgba(244, 162, 89, 0.10);
  transition: background 0.18s, box-shadow 0.18s, transform 0.16s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #da8726;
  box-shadow: 0 4px 16px rgba(244, 162, 89, 0.18);
  transform: translateY(-2px) scale(1.04);
  color: #fff;
}
.header-wrapper img {
  height: 44px;
}
header nav, .cta-btn {
  display: none;
}
@media (min-width:768px) {
  .header-wrapper nav, .cta-btn {
    display: flex;
  }
  .cta-btn {
    display: inline-block;
  }
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */
.mobile-menu-toggle {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 2000;
  background: var(--color-accent);
  color: var(--color-white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  box-shadow: 0 4px 16px rgba(45,49,66,.06);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:hover {
  background: #da8726;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(45,49,66,0.93);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.87,.03,.24,1.06);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  margin: 28px 0 0 26px;
  background: none;
  color: var(--color-accent);
  font-size: 2.2rem;
  border: none;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  margin: 48px 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-white);
  font-size: 1.3rem;
  font-family: 'Merriweather', Georgia, serif;
  padding: 10px 0;
  letter-spacing: 0.02em;
  font-weight: 700;
  transition: color 0.17s, background 0.17s;
  border-radius: 4px;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: rgba(255,255,255,0.04);
}
@media (min-width:768px){
  .mobile-menu,.mobile-menu-toggle {
    display:none !important;
  }
  header nav, .cta-btn {
    display: flex;
  }
}

/* ==========================================================================
   LAYOUT STRUCTURE & FLEXBOX
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(45,49,66, 0.08);
  padding: 28px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.21s, transform 0.18s;
}
.card:hover { box-shadow: 0 4px 36px 0 rgba(45,49,66,0.13); transform: translateY(-3px) scale(1.01); }

.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;
  width: 100%;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}
.features-grid > div {
  flex: 1 1 240px;
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(45,49,66,0.05);
  padding: 26px 18px;
  min-width: 220px;
  transition: box-shadow 0.16s, transform 0.14s;
  margin-bottom: 0;
}
.features-grid > div:hover {
  box-shadow: 0 6px 24px rgba(45,49,66,0.12);
  transform: translateY(-2px);
}
.features-grid img {
  height: 40px;
  width: 40px;
  margin-bottom: 9px;
}
@media (max-width: 900px) {
  .features-grid {
    flex-direction: column;
    gap: 24px;
  }
  .features-grid > div {
    min-width: 0;
    width: 100%;
  }
}

/* ==========================================================================
   TESTIMONIAL CARDS
   ========================================================================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f6f7fa;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px 0 rgba(45,49,66,0.06);
  color: var(--color-primary); /* Ensure readability */
  position: relative;
  transition: box-shadow 0.18s;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-dark);
  line-height: 1.54;
}
.testimonial-card span {
  font-weight: 500;
  color: var(--color-secondary);
  font-size: 0.98rem;
}
.testimonial-card:hover {
  box-shadow: 0 4px 16px 0 rgba(45,49,66,0.10);
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 14px 10px;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0;
  font-size: 0.98rem;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 38px 0 24px 0;
}
.footer-wrapper > div, .footer-wrapper nav {
  margin-bottom: 0;
}
.footer-wrapper img {
  height: 36px;
}
.footer-nav, .footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact p a,
.footer-nav a, .footer-menu a {
  color: var(--color-secondary);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.16s;
  padding: 2px 0;
}
.footer-nav a:hover, .footer-menu a:hover {
  color: var(--color-accent);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--color-white);
  font-size: 0.95rem;
}
.footer-contact img {
  vertical-align: middle;
  margin-right: 7px;
  height: 17px;
  width: 17px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 15px;
}
.footer-social a img {
  height: 22px;
  width: 22px;
  opacity: 0.7;
  transition: opacity 0.18s, transform 0.18s;
}
.footer-social a:hover img {
  opacity: 1;
  transform: scale(1.12);
}
.newsletter {
  background: #232537;
  border-radius: 12px;
  margin: 18px auto 0 auto;
  padding: 20px 26px;
  max-width: 430px;
  color: var(--color-white);
  box-shadow: 0 2px 14px 0 rgba(45,49,66,0.12);
}
.newsletter h4 {
  margin-bottom: 0.5em;
  color: var(--color-accent);
  font-family: 'Merriweather', serif;
  font-size: 1.15rem;
}
.newsletter p {
  color: var(--color-secondary);
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 26px;
    align-items: stretch;
    padding: 28px 0 18px 0;
  }
  .newsletter {
    margin-top: 28px;
  }
}

/* ==========================================================================
   MISCELLANEOUS & SECTIONS
   ========================================================================== */
.tagline {
  font-size: 1.12rem;
  color: var(--color-secondary);
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 13px;
  letter-spacing: 0.01em;
}
.feature-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 10px 0;
}
.feature-icons span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--color-secondary);
  font-size: 0.98rem;
}
.featured-article {
  background: #f5f6fa;
  border-left: 4px solid var(--color-accent);
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 18px;
  box-shadow: 0 4px 10px 0 rgba(45,49,66,0.07);
}
.text-section {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(45,49,66, 0.07);
  padding: 22px 18px;
  color: var(--color-dark);
}
.text-section ul{
  margin-left: 1.5em;
  margin-bottom: 0.8em;
  list-style: disc;
  color: var(--color-primary);
}
.text-section li {
  margin-bottom: 6px;
  font-size: 0.98rem;
}

/* Contacts in kontakt page */
.footer-contact strong{color:var(--color-accent);}

/* ==========================================================================
   BUTTONS & FORMS
   ========================================================================== */
button, .cta-btn {
  cursor: pointer;
  border: none;
  font-family: inherit;
  outline: none;
  transition: filter 0.13s, background 0.13s;
}

.btn,
.cookie-btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 22px;
  padding: 10px 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-right: 10px;
  min-width: 108px;
  text-align: center;
  box-shadow: 0 1px 6px rgba(244,162,89,0.07);
  font-size: 1.02rem;
  transition: background 0.18s, transform 0.15s;
}
.btn:last-child, .cookie-btn:last-child {
  margin-right: 0;
}
.cookie-btn:hover,
.cookie-btn:focus,
.btn:hover, .btn:focus {
  background: #da8726;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
.cookie-btn.secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #a5a6a6;
  color: var(--color-primary);
}
.cookie-btn.ghost {
  background: transparent;
  border: 2px solid var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.ghost:hover, .cookie-btn.ghost:focus {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  border-radius: 7px;
  padding: 11px 12px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  margin-bottom: 18px;
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 1px 4px 0 rgba(45,49,66,0.04);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--color-accent);
}

/* ==========================================================================
   COOKIE CONSENT BANNER & MODAL
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 -2px 14px 0 rgba(45,49,66, 0.11);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 12px 22px 12px;
  transition: transform 0.35s cubic-bezier(.87,.03,.24,1.06), opacity 0.2s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide { opacity: 0; pointer-events: none; transform: translateY(110%); }
.cookie-banner-text { max-width: 640px; text-align: center; margin-bottom: 8px; font-size: 1rem; }
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Cookie modal popup */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; width:100vw; height:100vh;
  background: rgba(45,49,66,0.82);
  z-index: 12000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.hide{opacity: 0; pointer-events: none;}
.cookie-modal {
  background: var(--color-white);
  border-radius: 18px;
  max-width: 500px;
  width: 98vw;
  padding: 36px 32px 24px 32px;
  color: var(--color-dark);
  box-shadow: 0 4px 44px 0 rgba(45,49,66, 0.17);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  animation: popup-bounce 0.4s cubic-bezier(.5,1.35,.36,.89);
}
@keyframes popup-bounce {
  0%{ transform: scale(.8); opacity: 0; }
  60%{ transform: scale(1.07); opacity: 1; }
  100%{ transform: scale(1); opacity:1;}
}
.cookie-modal h3 { font-size:1.22rem; margin-bottom: 14px; color: var(--color-primary); }
.cookie-modal .cookie-category {
  display:flex; align-items:center; gap:15px; margin-bottom:10px;
}
.cookie-modal .cookie-toggle {
  width:46px; height:24px; border-radius:12px; background:var(--color-secondary);
  position:relative; cursor:pointer;  flex-shrink:0;
}
.cookie-modal .cookie-toggle input {
  opacity:0; width:0; height:0; position:absolute; left:0; top:0;
}
.cookie-modal .cookie-toggle-slider {
  position:absolute; top:2px; left:2px; width:20px; height:20px;
  background:var(--color-white); border-radius:50%; transition: left 0.17s, background 0.14s;
  box-shadow:0 1px 3px rgba(45,49,66,0.08);
}
.cookie-modal .cookie-toggle input:checked + .cookie-toggle-slider {
  left:24px; background:var(--color-accent);
}
.cookie-modal-actions {
  display: flex; gap:15px; margin-top:8px;
}
.cookie-modal-close {
  position: absolute; right:18px; top:16px;
  background:none; border:none; color:var(--color-secondary);
  font-size:1.9rem; padding: 0 0 3px 0; cursor:pointer;
  transition: color 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus{ color:var(--color-accent); }
.cookie-category strong { color:var(--color-primary); margin-right: 3px; }
.cookie-category .desc{ font-size:0.99rem; color:#666;}


/* ==========================================================================
   RESPONSIVE & GENERAL
   ========================================================================== */
@media (max-width: 600px){
  .header-wrapper {
    flex-direction: row;
    gap: 6px;
    padding: 10px 8px;
  }
  .section {
    padding: 28px 7px;
    margin-bottom: 38px;
  }
  main, .container {
    padding: 0 1px;
  }
  h1,h2,h3 {margin-bottom:12px;}
}

@media (max-width: 480px){
  .features-grid>div{padding:13px 6px;}
}

@media (max-width: 350px){
  .footer-wrapper, .card-container, .content-grid, .features-grid,.feature-item{gap:8px !important;}
  .cta-btn,.btn,.cookie-btn{padding:8px 12px;font-size:0.93rem;}
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* END ===================================================================== */
