/* ===================================================
   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;
}
body {
  line-height: 1.5;
  background: #F3F5F9;
  color: #263068;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  padding-left: 32px;
  margin-bottom: 16px;
}
a {
  color: #1FA06B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #263068;
}
button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}
th, td {
  padding: 12px 16px;
  border: 1px solid #E0E5EF;
  font-size: 16px;
}
th {
  background: #263068;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
tr:nth-child(even) td {
  background: #F3F5F9;
}

/* ===================================================
   TYPOGRAPHY & COLORS
   =================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  color: #263068;
  line-height: 1.16;
}
h1 { font-size: 2.8rem; margin-bottom: 16px; letter-spacing: 0.02em; }
h2 { font-size: 2rem; margin-bottom: 20px; letter-spacing: 0.03em; }
h3 { font-size: 1.4rem; margin-bottom: 14px; letter-spacing: 0.03em; }
h4, h5, h6 { font-size:1.1rem; margin-bottom: 10px; }
p, li, blockquote {
  font-size: 1rem;
  color: #263068;
  line-height: 1.7;
  margin-bottom: 12px;
}
blockquote {
  margin: 0 0 12px 0;
  font-style: italic;
  color: #263068;
  background: #EDEFF6;
  padding: 18px 24px;
  border-left: 5px solid #1FA06B;
  border-radius: 8px;
}
strong { font-weight: 700; }

/* ===================================================
   LAYOUT STRUCTURE
   =================================================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(38,48,104,0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  min-width: 260px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(31,160,107,0.11);
  transform: translateY(-2px) scale(1.015);
}
.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: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(38,48,104,0.06);
  margin-bottom: 20px;
  min-width: 260px;
  position: relative;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(31,160,107,0.06);
  padding: 28px 22px;
  margin-bottom: 20px;
}

/* ===== FLEXBOX FEATURE LAYOUTS ===== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature-grid > div, .feature-grid .feature-item {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(38,48,104,.05);
  padding: 28px 18px 20px 18px;
  gap: 14px;
  position: relative;
  transition: box-shadow 0.18s;
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 26px rgba(38,48,104,0.10);
}
.feature-grid img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 8px;
}

/* ===============================
   HERO SECTIONS
   =============================== */
.hero {
  background: #263068;
  color: #fff;
  padding: 68px 0 54px 0;
  width: 100%;
  position: relative;
  box-shadow: 0 4px 30px rgba(38,48,104,0.12);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero h1, .hero h2 {
  color: #fff;
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}
.hero p {
  color: #F3F5F9;
  font-size: 1.18rem;
  margin-bottom: 24px;
}
.hero .primary-cta {
  box-shadow: 0 4px 24px rgba(31,160,107,0.19);
}

/* ===============================
   CTA SECTIONS
   =============================== */
.cta {
  background: #1FA06B;
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 35px rgba(31,160,107,0.12);
  margin: 42px 0 24px 0;
  padding: 32px 0;
  text-align: center;
}
.cta h2, .cta p {
  color: #fff;
}
.cta .primary-cta {
  margin-top: 14px;
  background: #263068;
  color: #fff;
}

/* ===============================
   BUTTONS & INTERACTIVES
   =============================== */
.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 50px;
  background: #1FA06B;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: none;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(31,160,107,0.18);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.primary-cta:hover, .primary-cta:focus {
  background: #263068;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(38,48,104,0.18);
}

/* ========= HEADER & NAV ========== */
header {
  background: #fff;
  border-bottom: 2px solid #E0E5EF;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  min-height: 72px;
}
header a img {
  max-height: 50px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 19px;
  align-items: center;
  flex-wrap: wrap;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 12px;
  color: #263068;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.01em;
}
header nav a:hover, header nav a:focus {
  background: #1FA06B;
  color: #fff;
}
header .primary-cta {
  margin-left: auto;
  margin-right: 12px;
}
.mobile-menu-toggle {
  display: none;
  background: #1FA06B;
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 1.7rem;
  margin-left: 0;
  transition: background 0.18s;
  z-index: 100;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #263068;
}
/* ===============================
   MOBILE MENU
   =============================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(38,48,104, 0.98);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  visibility: hidden;
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.68, 0.01, 0.2, 1.02), opacity 0.24s;
  z-index: 1200;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 36px 32px 8px 0;
  font-size: 2.4rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.22s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #1FA06B; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
  width: 100%;
}
.mobile-nav a {
  display: block;
  font-size: 1.45rem;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 16px 40px;
  border-radius: 10px;
  background: none;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #1FA06B;
  color: #fff;
}

@media (max-width: 1024px) {
  header nav {
    gap: 11px;
  }
  .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .container {
    padding: 0 8px;
  }
  .feature-grid > div { min-width: 180px; }
}
@media (max-width: 768px) {
  .container { padding: 0 6px; }
  .content-wrapper { gap: 18px; }
  .section { margin-bottom: 36px; padding: 22px 6px; }
  .card-container { gap: 16px; }
  .feature-grid { gap: 8px; }
  .cta { border-radius: 12px; padding: 18px 0; }
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; }
  .feature-grid > div, .feature-item { padding: 20px 10px 11px 10px; min-width: 140px; max-width: 100%; font-size:1rem; }
  .card { padding: 16px 8px; }
  .hero { padding: 40px 0 25px 0; }
  .hero h1 { font-size: 1.65rem; }
  .hero p { font-size: 1rem; }
  header .primary-cta { display: none; }
  header nav { display: none; }
  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
    font-size: 2.0rem;
    padding: 10px 18px;
  }
}
@media (max-width: 576px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.08rem; }
  .container { padding: 0 4px; }
  .cta { border-radius: 6px; }
  .section { padding: 14px 2px; }
}
@media (max-width: 530px) {
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 8px;
  }
  .feature-grid > div, .feature-item, .card, .testimonial-card {
    min-width: 0;max-width: 100%;
  }
}

/* ========== FOOTER ============ */
footer {
  background: #fff;
  border-top: 2px solid #E0E5EF;
  margin-top: 32px;
  color: #263068;
  font-size: 1rem;
  width: 100%;
  padding-top: 10px;
}
footer section { padding: 0 0 18px 0; }
footer .container { padding-top: 18px; padding-bottom: 14px; }
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: #1FA06B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  font-weight: 700;
  margin-bottom: 2px;
}
footer nav a:hover, footer nav a:focus {
  color: #263068;
  text-decoration: underline;
}
footer .company-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.99rem;
}
footer .social-links {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #F3F5F9;
  width: 40px; height: 40px;
  transition: background 0.18s,border 0.18s;
  border: 1.5px solid #E0E5EF;
}
footer .social-links a:hover {
  background: #1FA06B;
}
footer img[alt="Freelansfera"] {
  width: 60px; height: auto; margin-bottom: 12px;
}

@media (max-width: 900px) {
  footer .content-wrapper,
  footer .content-wrapper .company-details,
  footer nav {
    flex-direction: column;
    gap: 15px;
  }
  footer .content-wrapper {
    gap: 15px;
  }
}
@media (max-width: 600px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 10px;
  }
}

/* ========== TEXT SECTIONS & TABLE ========== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(38,48,104,0.039);
  padding: 25px 18px;
  margin-bottom: 22px;
}
.text-section img {
  vertical-align: middle;
  margin-right: 8px;
}
table {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1.5px 8px rgba(38,48,104, 0.045);
}

/* ========== SPACING RULES (MANDATORY) ========== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
  background: #fff;
  color: #263068;
  border-radius: 11px;
  box-shadow: 0 2px 12px rgba(31,160,107,0.08);
  border-left: 7px solid #1FA06B;
  margin-bottom: 20px;
  padding: 20px 24px;
  transition: box-shadow 0.13s;
}
.testimonial-card blockquote {
  color: #263068;
  background: none;
  padding: 0;
  border-left: none;
  margin: 0 0 3px 0;
  font-style: italic;
}
.testimonial-card p {
  margin: 0; font-size: 1rem;
}
.testimonial-card strong {
  color: #1FA06B;
}

/* ========== TABLES ========== */
table {
  margin-top: 12px;
}
thead tr {
  border-radius: 0;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #263068;
  color: #fff;
  border: none;
  text-align: left;
  padding: 14px 10px;
}
td {
  background: #fff;
  color: #263068;
}

/* ========== MICRO-INTERACTIONS & ANIMATIONS ========== */
.primary-cta, .feature-grid > div, .card, .testimonial-card, .feature-item, .mobile-menu {
  transition: box-shadow 0.18s, background 0.18s, color 0.13s, transform 0.19s, opacity 0.18s;
}
a:focus, button:focus, .primary-cta:focus {
  outline: 2.5px solid #1FA06B;
  outline-offset: 2px;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #263068;
  box-shadow: 0 -3px 24px rgba(38,48,104,0.13);
  padding: 18px 24px 18px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  z-index: 9999;
  border-top: 2px solid #E0E5EF;
  font-size: 1rem;
  border-radius: 14px 14px 0 0;
  animation: ccbannerIn 0.72s cubic-bezier(.77,.00,.18,1.00);
  will-change: opacity, transform;
}
@keyframes ccbannerIn {
  0% { opacity: 0; transform: translateY(100%); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner__text {
  flex: 1;
  font-size: 1rem;
  margin-right: 18px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}
.cookie-btn {
  padding: 9px 20px;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.cookie-btn.accept {
  background: #1FA06B;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus { background: #263068; color: #fff; }
.cookie-btn.reject {
  background: #E0E5EF;
  color: #263068;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus { background: #263068; color: #fff; }
.cookie-btn.settings {
  background: #fff;
  border: 1.5px solid #263068;
  color: #263068;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus { background: #263068; color: #fff; }
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 9px;
    font-size: 0.99rem;
  }
  .cookie-banner__actions { flex-wrap: wrap; gap: 7px; }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(38,48,104,.84);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 40px rgba(31,160,107,0.21);
  max-width: 420px;
  min-width: 240px;
  width: 90vw;
  padding: 32px 28px 32px 28px;
  color: #263068;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  animation: cookiemodalIn 0.55s cubic-bezier(.77,.00,.18,1.00);
}
@keyframes cookiemodalIn {
  0% { opacity: 0; transform: scale(0.8) translateY(32px); }
  100% { opacity: 1; transform: scale(1) translateY(0);}
}
.cookie-modal h2 {
  font-size: 1.33rem;
  margin-bottom: 10px;
  font-weight: 800;
  color: #263068;
}
.cookie-modal label {
  font-size: 1.08rem;
  color: #1FA06B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
}
.cookie-category-toggle {
  width: 36px;
  height: 20px;
  border-radius: 12px;
  background: #E0E5EF;
  margin-left: 9px;
  position: relative;
  transition: background 0.18s;
}
.cookie-category-toggle input {
  opacity: 0;
  width: 36px;
  height: 20px;
  cursor: pointer;
  margin: 0;
  position: absolute;
}
.cookie-category-toggle .slider {
  position: absolute;
  left: 2px;
  top: 2px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #263068;
  transition: left 0.18s, background 0.18s;
}
.cookie-category-toggle input:checked + .slider {
  background: #1FA06B;
  left: 18px;
}
.cookie-modal .cookie-btn {
  padding: 10px 22px;
  margin-top: 10px;
}
.cookie-modal .close-cookie-modal {
  align-self: flex-end;
  background: none;
  color: #263068;
  font-size: 1.4rem;
  margin-bottom: -20px;
  padding: 0 3px;
  border-radius: 6px;
}
.cookie-modal .close-cookie-modal:hover, .cookie-modal .close-cookie-modal:focus {
  color: #1FA06B;
  background: #E0E5EF;
}

@media (max-width: 480px) {
  .cookie-modal {
    padding: 18px 6px 18px 10px;
    min-width: 0;
  }
}

/* ========== UTILS & MISC ========== */
::-webkit-scrollbar {
  width:7px;background:#E0E5EF;border-radius:6px;
}
::-webkit-scrollbar-thumb {
  background:#1FA06B; border-radius:6px;
}

/* GEOMETRIC/STRUCTURED DECORATIVE ACCENTS */
.feature-grid > div:after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  margin-top: 13px;
  background: #1FA06B;
  border-radius: 2px;
}
.feature-grid > div:last-child:after {
  background: #263068;
}
.hero:before {
  content: "";
  position: absolute;
  top: -38px;
  right: -54px;
  width: 122px;
  height: 122px;
  background: #1FA06B;
  border-radius: 18px 8px 42px 12px;
  z-index: 1;
  opacity: 0.14;
  pointer-events: none;
  transform: rotate(10deg);
}
.cta:after {
  content: "";
  display: block;
  position: absolute;
  left: -32px;
  bottom: -20px;
  width: 56px; height: 6px;
  background: #1FA06B;
  border-radius: 3px;
  opacity: 0.07;
  z-index: 0;
}

/* ========== FORM ELEMENTS ========== */
input, textarea, select {
  border: 1.5px solid #E0E5EF;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #263068;
  margin-bottom: 12px;
  width: 100%;
  background: #fff;
  transition: border 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #1FA06B;
  outline: none;
}

/* ========== OVERRIDES FOR RESPONSIVENESS ========== */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

/* ========== Z-INDEX FOR MODALS AND MENU ========== */
.mobile-menu {
  z-index: 2000;
}
.cookie-modal-overlay {
  z-index: 3000;
}

/* ======= PRINT ========== */
@media print {
  nav, .mobile-menu-toggle, .mobile-menu, .primary-cta, .cta, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  header, footer, .container, section, .content-wrapper, .card, .feature-grid, .testimonial-card {
    box-shadow: none !important;
    background: #fff !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #000 !important;
  }
  html, body { background: #fff !important; color: #000 !important; }
}

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