/* RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #212934;
  background: #F1F7FA;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #174C72;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #488A7B;
}
ul, ol {
  padding-left: 1.25rem;
  margin-bottom: 1.5em;
}
li {
  margin-bottom: 0.5em;
}
img {
  max-width: 100%;
  display: block;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  outline: none;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #174C72;
  margin-bottom: 20px;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 18px;
}
strong {
  font-weight: 600;
}

/* LAYOUT CONTAINER */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 16px;
}

/* HEADER */
header {
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(23, 76, 114, 0.08);
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.logo img {
  height: 52px;
  width: auto;
  margin-right: 0.75em;
}

/* NAVIGATION */
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #174C72;
  background: none;
  padding: 8px 0;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F1F7FA;
  color: #488A7B;
}
.main-nav .cta-button{color:#174C72 !important;}
.main-nav .cta-button:hover {
  color: #488A7B !important;
}
/* CTA button in nav */
.cta-button {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff !important;
  background: #174C72;
  padding: 10px 28px;
  border-radius: 24px;
  box-shadow: 0 1px 4px rgba(23, 76, 114, 0.08);
  margin-left: 8px;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  border: 2px solid #174C72;
}
.cta-button:hover, .cta-button:focus {
  background: #488A7B;
  color: #fff !important;
  border-color: #488A7B;
  box-shadow: 0 4px 18px rgba(72, 138, 123, 0.10);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: #174C72;
  color: #fff;
  font-size: 1.9rem;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1201;
  margin-left: 18px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #488A7B;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #F1F7FA;
  box-shadow: 0 0 32px rgba(23,76,114,0.13);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.73,0.01,0.16,1);
  z-index: 1200;
  padding: 38px 22px 22px 22px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: #174C72;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  border: none;
  margin-bottom: 24px;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #488A7B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: #174C72;
  padding: 16px 10px 16px 0;
  border-radius: 4px;
  transition: background 0.2s, color 0.16s;
  font-family: 'Roboto', Arial, sans-serif;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e8f2f8;
  color: #488A7B;
}

@media (max-width: 1024px) {
  .main-nav a:not(.cta-button) {
    font-size: 0.97rem;
    padding: 8px 0;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .header .container {
    padding: 16px 10px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* FOOTER */
footer {
  background: #174C72;
  color: #fff;
  padding-top: 44px;
  margin-top: 60px;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.logo-area img {
  width: 132px;
  height: auto;
  margin-bottom: 10px;
}
.footer-nav, .legal-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-right: 30px;
}
.footer-nav a, .legal-nav a {
  color: #F1F7FA;
  font-size: 1rem;
  transition: color 0.19s;
  font-family: 'Roboto', Arial, sans-serif;
}
.footer-nav a:hover, .legal-nav a:hover, .footer-nav a:focus, .legal-nav a:focus {
  color: #85c1e9;
}
.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.social-links img {
  width: 36px;
  height: 36px;
  filter: grayscale(52%) contrast(1.2);
  opacity: 0.82;
  transition: filter 0.15s, opacity 0.17s;
}
.social-links a:hover img {
  filter: grayscale(0%) contrast(1.5);
  opacity: 1;
}
.footer-bottom {
  border-top: 1px solid rgba(241,247,250,0.13);
  margin: 0 -20px;
  padding: 18px 0 8px 0;
  font-size: 0.97rem;
  color: #F1F7FA;
  text-align: center;
}

@media (max-width: 900px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .logo-area img {
    width: 110px;
  }
}
@media (max-width: 600px) {
  footer {
    padding-top: 28px;
  }
  .footer-wrapper {
    gap: 14px;
  }
  .footer-nav, .legal-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-right: 0;
  }
  .social-links img {
    width: 28px;
    height: 28px;
  }
}

/* MAIN & SECTIONS */
main {
  width: 100%;
}
.section, .hero, .features, .services, .about, .testimonials, .contact, .cta {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 14px rgba(23,76,114,0.08);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero {
  background: #174C72;
  color: #fff;
  box-shadow: 0 8px 34px 0 rgba(23, 76, 114, 0.085);
  border-radius: 0 0 32px 32px;
  margin-bottom: 52px;
  padding: 52px 20px 44px 20px;
}
.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero h5,
.hero h6 {
  color: #fff;
}
.hero p {
  color: #F1F7FA;
}

.cta {
  background: #488A7B;
  color: #fff;
  box-shadow: 0 1px 18px rgba(72, 138, 123, 0.08);
  border-radius: 26px;
  margin-bottom: 52px;
}
.cta h2,
.cta h3 {
  color: #fff;
}
.cta a.cta-button {
  margin: 16px 0 0 0;
  background: #fff;
  color: #174C72 !important;
  border-color: #fff;
}
.cta a.cta-button:hover {
  background: #F1F7FA;
  color: #174C72 !important;
  border: 2px solid #488A7B;
}

.notice {
  font-size: 1.01rem;
  color: #174C72;
  margin-top: 14px;
  font-style: italic;
}

/* CARDS & FLEX CONTAINERS */
.card-container,
.card-grid,
.feature-grid,
.service-list,
.domek-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 22px;
}
.card,
.feature-grid li,
.service-list li,
.domek-list li {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(23,76,114,0.05);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 275px;
  min-width: 240px;
  transition: box-shadow 0.2s, transform 0.16s;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.card:hover,
.feature-grid li:hover,
.service-list li:hover,
.domek-list li:hover {
  box-shadow: 0 6px 24px 0 rgba(23, 76, 114, 0.11);
  transform: translateY(-3px) scale(1.015);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

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

.services .service-list,
.services .domek-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 16px 0;
}
.services .service-list li,
.services .domek-list li {
  flex: 1 1 290px;
  min-width: 270px;
}

.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.features .feature-grid li {
  flex: 1 1 240px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.features .feature-grid img {
  width: 48px;
  height: 48px;
}

/* TESTIMONIALS */
.testimonials {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 60px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #e8f2f8;
  color: #174C72;
  padding: 20px 28px;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 1px 9px 0 rgba(23,76,114,0.06);
  font-size: 1.08rem;
}
.testimonial-card p {
  margin-bottom: 0;
  color: #212934;
  font-style: italic;
}
.testimonial-card span {
  color: #488A7B;
  font-size: 1rem;
}
.ratings-summary {
  margin-top: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #F1F7FA;
  border-radius: 12px;
  padding: 20px 32px;
  color: #174C72;
  font-size: 1.15rem;
  box-shadow: 0 1px 7px 0 rgba(23,76,114,0.07);
  max-width: 340px;
}
.ratings-summary h3 {
  margin: 0 0 8px 0;
}
.ratings-summary span {
  color: #488A7B;
  font-size: 1.08em;
}

/* CONTACT */
.contact ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  margin-bottom: 26px;
  padding-left: 0;
}
.contact ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.contact img {
  width: 22px;
  height: 22px;
}

/* ABOUT LEGAL SECTIONS */
.about ul {
  list-style: disc inside;
  margin-bottom: 22px;
}
.about ul li {
  font-size: 1rem;
  margin-bottom: 6px;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: #174C72;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  z-index: 2000;
  box-shadow: 0 -4px 22px 0 rgba(23, 76, 114, 0.13);
  gap: 24px;
  font-size: 1rem;
  animation: cookieBannerIn 0.4s cubic-bezier(0.65,0,0.38,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.cookie-banner p {
  margin: 0;
  color: #F1F7FA;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.cookie-banner button {
  border: none;
  border-radius: 22px;
  font-size: 1rem;
  padding: 8px 22px;
  margin: 0;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.13s, color 0.13s;
}
.cookie-banner .cookie-accept {
  background: #488A7B;
  color: #fff;
}
.cookie-banner .cookie-accept:hover,
.cookie-banner .cookie-accept:focus {
  background: #38a391;
}
.cookie-banner .cookie-reject {
  background: #fff;
  color: #174C72;
  border: 1.6px solid #488A7B;
}
.cookie-banner .cookie-reject:hover,
.cookie-banner .cookie-reject:focus {
  background: #f6fafd;
  color: #488A7B;
  border-color: #174C72;
}
.cookie-banner .cookie-settings {
  background: #174C72;
  color: #fff;
  border: 1.4px solid #fff;
}
.cookie-banner .cookie-settings:hover,
.cookie-banner .cookie-settings:focus {
  background: #488A7B;
  border-color: #F1F7FA;
  color: #fff;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 10px;
    gap: 12px;
  }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 2100;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(34,47,62,0.45);
  justify-content: center;
  align-items: center;
  animation: modalFadeIn 0.34s;
}
.cookie-modal-overlay.active {
  display: flex;
}
@keyframes modalFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #174C72;
  border-radius: 18px;
  box-shadow: 0 8px 38px 0 rgba(23, 76, 114, 0.17);
  min-width: 320px;
  max-width: 430px;
  width: 98vw;
  padding: 36px 34px 28px 34px;
  animation: modalPopIn 0.35s cubic-bezier(0.73,0.01,0.16,1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
@keyframes modalPopIn {
  from { transform: scale(0.94) translateY(28px); opacity: 0; }
  to   { transform: scale(1) translateY(0);   opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  color: #488A7B;
  font-size: 1.7rem;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #174C72;
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 2px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  color: #212934;
}
.cookie-category label {
  font-weight: 600;
}
.cookie-toggle {
  position: relative;
  width: 46px;
  height: 24px;
}
.cookie-toggle input[type='checkbox'] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-switch {
  position: absolute;
  cursor: pointer;
  background: #e8f2f8;
  border-radius: 22px;
  height: 100%; width: 100%;
  transition: background .17s;
}
.cookie-toggle input[type='checkbox']:checked + .cookie-switch {
  background: #488A7B;
}
.cookie-switch::before {
  content: '';
  position: absolute;
  left: 4px; top: 4px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(23,76,114,0.09);
  transition: transform .17s;
}
.cookie-toggle input[type='checkbox']:checked + .cookie-switch::before {
  transform: translateX(22px);
}
.cookie-category.essential label {
  color: #488A7B;
  opacity: 0.75;
}
.cookie-category.essential .cookie-toggle {
  opacity: 0.5;
  pointer-events: none;
}
.cookie-modal .cookie-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.cookie-modal button {
  border: none;
  border-radius: 22px;
  font-size: 1rem;
  padding: 8px 22px;
  margin: 0;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 1150px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  section, .section, .hero, .features, .services, .about, .testimonials, .contact, .cta {
    padding: 30px 6px;
    border-radius: 12px;
    margin-bottom: 36px;
  }
  .card-container, .card-grid, .feature-grid, .service-list, .domek-list {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 4px;
  }
  h1 {
    font-size: 1.38rem;
    margin-bottom: 18px;
  }
  h2 { font-size: 1.18rem; }
  .section, .hero, .features, .services, .about, .testimonials, .contact, .cta {
    margin-bottom: 22px;
    padding: 16px 2px;
    border-radius: 8px;
    box-shadow: 0 1px 9px rgba(23,76,114,0.05);
  }
  .card-container, .card-grid, .feature-grid, .service-list, .domek-list {
    flex-direction: column;
    gap: 10px;
  }
  .card, .feature-grid li, .service-list li, .domek-list li {
    min-width: 0;
    padding: 16px 10px;
  }
  .footer-bottom {
    font-size: 0.91rem;
    padding: 10px 0 5px 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* UTILITY/GENERIC */
.hidden {
  display: none !important;
}
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }

/* ========== MISC & MICRO-INTERACTIONS ========== */
button, .cta-button, .cookie-banner button,
.mobile-menu-toggle, .mobile-menu-close, .cookie-modal button {
  transition: background 0.18s, color 0.18s, box-shadow 0.16s, border-color 0.17s, transform 0.13s;
}
button:active, .cta-button:active {
  transform: scale(0.97);
}
input[type="submit"]:hover, input[type="submit"]:focus {
  background: #488A7B;
  color: #fff;
}

/* DARK TEXT ON LIGHT BACKGROUND FOR TESTIMONIALS */
.testimonial-card,
.ratings-summary {
  color: #174C72;
  background: #e8f2f8;
}
.testimonial-card strong, .ratings-summary strong {
  color: #174C72;
}

/* FOCUS STYLES ACCESSIBILITY */
:focus {
  outline: 2px solid #85c1e9;
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 9px;
  background: #F1F7FA;
}
::-webkit-scrollbar-thumb {
  background: #d3e4ef;
  border-radius: 20px;
}

/* END OF STYLE SHEET */
