/* RESET & BASE ----------------------- */
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,
main, 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-family: 'Roboto', Arial, sans-serif;
  background: #FFFFFF;
  color: #1C415C;
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #FFFBF6;
  color: #1C415C;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.7;
}
a {
  text-decoration: none;
  color: #177255;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #27A07D;
  outline: none;
}
ul, ol {
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
  border-radius: 8px;
}

/* BRAND COLORS ---------------------- */
:root {
  --brand-primary: #1C415C;
  --brand-secondary: #EDEEF0;
  --brand-white: #FFFFFF;
  --brand-accent: #27A07D;
  --brand-accent-dark: #177255;
  --brand-gold: #F6D683;
  --brand-warm1: #FFD7AC;
  --brand-warm2: #F4E5D6;
  --shadow-elevate: 0 2px 16px rgba(28,65,92,0.07), 0 1.5px 6px rgba(39,160,125,0.06);
}

/* TYPOGRAPHY ------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #1C415C;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, li {
  font-size: 1rem;
  margin-bottom: 12px;
}
strong, b {
  font-weight: 600;
  color: #177255;
}
.text-section {
  margin-bottom: 24px;
}

/* LAYOUT CONTAINERS ----------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 32px;
  box-shadow: var(--shadow-elevate);
}
@media (max-width:767px) {
  .section {
    padding: 24px 6px;
    margin-bottom: 36px;
    border-radius: 18px;
  }
}

/* FLEX LAYOUTS (MANDATORY PATTERNS) -- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #FFF;
  border-radius: 16px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: var(--shadow-elevate);
  padding: 24px;
  flex: 1 1 250px;
  min-width: 220px;
  transition: box-shadow 0.2s, transform 0.14s;
}
.card:hover, .card:focus-visible {
  box-shadow: 0 8px 32px rgba(28,65,92,0.14), 0 2px 12px rgba(39,160,125,0.05);
  transform: translateY(-4px) scale(1.02);
}
.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: 20px;
  padding: 20px;
  background: #FFF;
  border-radius: 18px;
  box-shadow: var(--shadow-elevate);
  min-width: 240px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.testimonial-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 4px;
  color: #253F50;
}
.testimonial-card .testimonial-meta {
  font-size: 0.97rem;
  color: #177255;
  font-weight: 500;
}
.testimonial-card:hover {
  box-shadow: 0 10px 36px rgba(28,65,92,0.16), 0 2px 12px rgba(27,160,150,0.08);
  transform: translateY(-2px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* RESPONSIVE FLEX DIRECTION --------- */
@media (max-width: 768px) {
  .content-wrapper,
  .feature_grid,
  .services_list,
  .services_categories,
  .step-by-step,
  .testimonial-list,
  .content-grid,
  .text-image-section {
    flex-direction: column !important;
    align-items: stretch;
    gap: 18px;
  }
}

@media (min-width: 769px) {
  .feature_grid,
  .services_list,
  .services_categories,
  .step-by-step,
  .testimonial-list,
  .testimonials_slider {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    justify-content: flex-start;
  }
}

/* HEADER & NAVIGATION --------------- */
header {
  background: #FFF;
  box-shadow: 0 6px 23px -8px rgba(28,65,92,0.05);
  border-bottom: 1px solid #F4E5D6;
  min-height: 72px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
header nav {
  display: flex;
  gap: 22px;
}
header nav a {
  padding: 7px 0 6px 0;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: #1C415C;
  font-size: 1rem;
  border-radius: 6px;
  transition: color 0.17s, background 0.21s;
}
header nav a:hover, header nav a:focus {
  background: #F6D68333;
  color: #177255;
}
header img[alt="Przekład Notarialny"] {
  height: 48px;
  max-width: 165px;
  border-radius: 12px;
}
/* CTA BUTTON ------------------------ */
.cta-btn {
  display: inline-block;
  padding: 13px 28px;
  background: linear-gradient(90deg,#FFD7AC 0,#F6D683 100%);
  color: #1C415C;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  border: none;
  border-radius: 25px;
  box-shadow: 0 1px 8px rgba(246,214,131,0.15), 0 2px 12px rgba(28,65,92,0.06);
  cursor: pointer;
  text-align: center;
  margin-left: 12px;
  margin-bottom: 0;
  transition: box-shadow 0.19s, transform 0.12s, background 0.2s, color 0.17s;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FFD7AC;
  color: #177255;
  box-shadow: 0 6px 22px rgba(246,214,131,0.22),0 2px 10px rgba(28,65,92,0.11);
  transform: scale(1.028);
}

/* HAMBURGER (MOBILE MENU) ----------- */
.mobile-menu-toggle {
  display: none;
  background: #FFD7AC;
  color: #1C415C;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  box-shadow: 0 2px 10px rgba(246,214,131,0.13);
  transition: background 0.19s, color 0.18s;
  z-index: 901;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F6D683;
  color: #177255;
}
@media (max-width:1080px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* MOBILE MENU ---------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #FFF7EE;
  box-shadow: 0 0 80px 0 rgba(28,65,92,0.11);
  z-index: 1100;
  transform: translateX(-110%);
  transition: transform 0.37s cubic-bezier(.74,.28,.3,.94);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0) !important;
}
.mobile-menu-close {
  background: #FFD7AC;
  color: #1C415C;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  align-self: flex-end;
  margin: 22px 22px 8px 0;
  cursor: pointer;
  transition: background 0.16s, color 0.14s;
  z-index: 1002;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F6D683;
  color: #27A07D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 36px 0;
  width: 100%;
  height: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #1C415C;
  background: #FFD7AC33;
  border-radius: 16px;
  font-size: 1.25rem;
  padding: 17px 0;
  width: 92vw;
  text-align: center;
  font-weight: 500;
  margin-bottom: 6px;
  user-select: none;
  transition: background 0.13s, color 0.14s;
}
.mobile-nav a:active,
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #27A07D22;
  color: #27A07D;
}

@media (min-width:1081px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* HERO ----------------------------- */
section:first-of-type {
  margin-top: 14px;
}
section .cta-btn {
  margin-top: 14px;
}

/* FEATURES AND ICON GRIDS ----------- */
.feature_grid > div,
.services_list > div,
.services_categories > div,
.step-by-step > div {
  background: #FFF7EE;
  border-radius: 22px;
  box-shadow: 0 2px 16px rgba(246,214,131,0.13);
  padding: 28px 16px;
  flex: 1 1 230px;
  min-width: 210px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: box-shadow 0.18s, transform 0.12s;
}
.feature_grid > div:hover, .services_list > div:hover, .services_categories > div:hover, .step-by-step > div:hover {
  background: #FFD7AC22;
  box-shadow: 0 8px 28px rgba(246,214,131,0.27), 0 1px 8px rgba(39,160,125,0.03);
  transform: translateY(-2px) scale(1.014);
}
.feature_grid img, .services_list img, .services_categories img, .step-by-step img {
  height: 43px;
  width: 43px;
  border-radius: 12px;
  margin-bottom: 4px;
  background: #F6D68322;
}

/* TRUST BADGES AND MINI LOGOS ------- */
.trust-badges {
  display: flex;
  align-items: center;
  gap: 16px;
}
.trust-badges img {
  width: 38px;
  height: 38px;
  background: #F6D68355;
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 1px 6px rgba(246,214,131,0.24);
}

/* PRICING TABLE --------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(39,160,125,0.10);
  overflow: hidden;
  margin-bottom: 30px;
  font-size: 1rem;
}
table th, table td {
  padding: 16px 12px;
  border-bottom: 1px solid #F4E5D6;
  text-align: left;
}
table th {
  background: #FFD7AC22;
  color: #1C415C;
  font-size: 1.03rem;
}
table tr:last-child td {
  border-bottom: none;
}
table tr:hover td {
  background: #FFF7EE;
}

/* TESTIMONIALS ---------------------- */
.testimonials_slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
@media (max-width: 768px) {
  .testimonials_slider, .testimonial-list {
    flex-direction: column;
    gap: 18px;
  }
}

/* SECTION & CTA SECTION ------------- */
.cta-section {
  background: linear-gradient(90deg,#FFD7AC 0,#F4E5D6 100%);
  border-radius: 28px;
  box-shadow: 0 4px 18px rgba(39,160,125,0.11);
  align-items: center;
  text-align: center;
}
.cta-section h2,
.cta-section p {
  color: #1C415C;
  margin: 8px 0;
}

/* FOOTER ---------------------------- */
footer {
  background: #1C415C;
  color: #FFF;
  padding: 54px 0 18px 0;
  font-size: 1rem;
  margin-top: 54px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 170px;
}
.footer-main img {
  height: 38px;
  margin-bottom: 5px;
}
.footer-main nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-main nav a {
  color: #FFF;
  opacity: 0.85;
  font-size: 0.97rem;
  border-radius: 8px;
  padding: 3px 0 3px 0;
  transition: background 0.14s, color 0.13s;
}
.footer-main nav a:hover, .footer-main nav a:focus {
  color: #FFD7AC;
  background: #27A07D15;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 220px;
}
.footer-contact p, .footer-contact a {
  color: #FFF;
  font-size: 0.97rem;
}
.footer-contact img {
  height: 17px;
  width: 17px;
  vertical-align: middle;
  margin-right: 5px;
}
@media (max-width: 870px) {
  footer .container {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
}

/* GENERAL CARDS --------------------- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* TABLET & MOBILE RESPONSIVENESS ---- */
@media (max-width:600px) {
  h1 {
    font-size: 1.44rem;
  }
  h2 {
    font-size: 1.18rem;
  }
  .container {
    padding: 0 7px;
  }
  .cta-btn {
    font-size: 1rem;
    padding: 11px 16px;
  }
  .feature_grid > div,
  .services_list > div,
  .services_categories > div,
  .step-by-step > div {
    min-width: unset;
    padding: 17px 7px;
  }
  .testimonial-card {
    padding: 14px 8px;
  }
}

/* COOKIE CONSENT BANNER ------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  background: rgba(253,247,238,0.99);
  box-shadow: 0 -2px 24px rgba(28,65,92,0.11);
  padding: 26px 10px 22px 10px;
  border-top: 2px solid #FFD7AC;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1rem;
  transition: transform 0.32s cubic-bezier(.82,.04,.34,1), opacity 0.15s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0.72;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  flex: 1 1 230px;
  color: #1C415C;
  font-size: 1rem;
  margin-right: 14px;
}
.cookie-banner .cookie-btn {
  padding: 10px 24px;
  border-radius: 22px;
  background: #FFD7AC;
  color: #1C415C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  margin-right: 7px;
  margin-bottom: 2px;
  transition: background 0.14s, color 0.13s, box-shadow 0.1s;
  box-shadow: 0 1px 5px rgba(246,214,131,0.06);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #F6D683;
  color: #177255;
}
.cookie-banner .cookie-btn.settings {
  background: #1C415C;
  color: #FFD7AC;
  border: 1px solid #FFD7AC;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #FFD7AC;
  color: #1C415C;
}

/* COOKIE SETTINGS MODAL ------------- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1211;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(28,65,92,0.27);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.21s;
  opacity: 1;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #FFF7EE;
  border-radius: 22px;
  box-shadow: 0 6px 40px rgba(28,65,92,0.17);
  padding: 34px 28px;
  max-width: 410px;
  width: 94vw;
  text-align: left;
  color: #1C415C;
  position: relative;
}
.cookie-modal h3 {
  color: #177255;
  font-size: 1.11rem;
  margin-bottom: 19px;
}
.cookie-modal label,
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 1rem;
}
.cookie-modal .category-desc {
  font-size: 0.93rem;
  color: #606974;
  margin-top: 2px;
  margin-left: 9px;
}
.cookie-modal input[type=checkbox] {
  accent-color: #27A07D;
  width: 20px;
  height: 20px;
  border-radius: 6px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 16px; right: 20px;
  border: none;
  background: #FFD7AC;
  color: #1C415C;
  border-radius: 50%;
  font-size: 1.3rem;
  width: 38px;
  height: 38px;
  cursor: pointer;
  transition: background 0.16s, color 0.14s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: #F4E5D6;
  color: #27A07D;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 19px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  padding: 10px 0.9em;
  border-radius: 22px;
  background: #FFD7AC;
  color: #1C415C;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  margin-right: 0;
  transition: background 0.13s, color 0.11s;
  box-shadow: 0 1px 6px rgba(246,214,131,0.08);
}
.cookie-modal .cookie-btn:hover, .cookie-modal .cookie-btn:focus {
  background: #F6D683;
  color: #177255;
}

/* LISTS ----------------------------- */
ul, ol {
  margin-left: 18px;
  margin-bottom: 14px;
}
ul li, ol li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 19px;
  color: #253F50;
}
ul li::before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0;
  top: 10px;
  width: 9px;
  height: 9px;
  background: #FFD7AC;
  border-radius: 50%;
  margin-right: 8px;
  transform: translateY(-50%);
}

/* FORMS (if used) ------------------- */
input, textarea, select, button {
  font-family: inherit;
  font-size: 1em;
  border-radius: 9px;
  border: 1px solid #EDEEF0;
  padding: 11px 14px;
  transition: border 0.18s, box-shadow 0.17s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #27A07D;
  box-shadow: 0 2px 7px #27A07D22;
  outline: none;
}

/* ANIMATIONS ----------------------- */
@media (prefers-reduced-motion: no-preference) {
  .cta-btn,
  .card,
  .feature_grid > div,
  .services_list > div,
  .services_categories > div,
  .step-by-step > div,
  .testimonial-card,
  .cookie-banner .cookie-btn {
    transition: box-shadow 0.18s, transform 0.16s, background 0.18s, color 0.16s;
  }
  .mobile-menu,
  .cookie-banner {
    transition: transform 0.37s cubic-bezier(.74,.28,.3,.94), opacity 0.15s;
  }
}

/* Z-INDEX FOR OVERLAYS ------------- */
.mobile-menu {
  z-index: 1100;
}
.cookie-banner {
  z-index: 1200;
}
.cookie-modal-overlay {
  z-index: 1211;
}

/* MISCELLANEOUS --------------------- */
::-webkit-scrollbar {
  width: 8px;
  background: #FFD7AC22;
}
::-webkit-scrollbar-thumb {
  background: #FFD7AC;
  border-radius: 7px;
}

/* ENSURE NO OVERLAPPING --------- */
.card, .testimonial-card, .section, .feature_grid > div, .services_list > div, .services_categories > div, .step-by-step > div {
  margin-bottom: 20px;
}

/* Prevent content overlap on small screens */
@media (max-width:700px) {
  .card, .testimonial-card, .section {
    margin-bottom: 15px;
  }
}

/* EDGE FIX FOR LAST SECTION -------- */
section:last-of-type {
  margin-bottom: 20px;
}
