/* 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; font-size: 16px; }
*, *::before, *::after { box-sizing: inherit; }
body { line-height: 1.5; }

img, picture, video, canvas, svg { display: inline-block; max-width: 100%; height: auto; }

ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* BASE COLORS & VARIABLES (with fallback) */
:root {
  --color-primary: #244264;
  --color-secondary: #F2F2F7;
  --color-accent: #E29F3F;
  --color-success: #50C177;
  --color-danger: #F45E6D;
  --color-info: #38A1F2;
  --color-bg: #fff;
  --color-dark: #232629;
  --shadow-card: 0 5px 28px 0 rgba(36,66,100,0.14);
}

body {
  min-height: 100vh;
  font-family: "Roboto", Arial, sans-serif;
  color: var(--color-primary);
  background-color: var(--color-secondary);
  font-size: 1rem;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 16px;
  margin: 0 auto;
  box-sizing: border-box;
}

/******************* TYPOGRAPHY ***************************/
h1, .hero h1 {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
  line-height: 1.08;
  text-shadow: 1px 2px 0 #e2e7fa;
  /* Playful animation */
  animation: jumpTitle 1.2s cubic-bezier(.65,.05,.36,1) 0.1s 1;
}

@keyframes jumpTitle {
  0% { transform: translateY(18px) scale(0.98) rotateZ(-1.5deg); opacity: 0.2; }
  70% { transform: translateY(-4px) scale(1.07) rotateZ(2deg); opacity: 1; }
  100% { transform: translateY(0) scale(1) rotateZ(0); opacity: 1; }
}
h2 {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
  line-height: 1.08;
  text-shadow: 0 2px 0 #ffeda7;
}
h3 {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h4, h5, h6 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}
p, li {
  font-family: "Roboto", Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 8px;
  line-height: 1.7;
}
strong { font-weight: 700; }

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: var(--color-bg);
  border-radius: 32px;
  box-shadow: 0 3px 18px -4px rgba(36,66,100,0.09);
  position: relative;
}

/********************* HEADER & NAVIGATION *******************/
header {
  background: var(--color-bg);
  box-shadow: 0 2px 16px rgba(36,66,100,0.07);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 105;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 18px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 2px #fcedbd);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-desktop a {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 9px 15px 9px 15px;
  border-radius: 14px;
  transition: background 0.18s, color 0.18s, box-shadow 0.21s;
  position: relative;
}
.nav-desktop a:hover,
.nav-desktop a:focus {
  background: var(--color-accent);
  color: #fff;
  outline: 0;
  box-shadow: 0 2px 14px 0 rgba(36,66,100,0.06);
}

.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 13px 34px;
  margin-left: 16px;
  cursor: pointer;
  outline: none;
  box-shadow: 0 7px 28px -8px #e29f3f55;
  position: relative;
  transition: background .15s, box-shadow .18s, transform .08s;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 0 #c99322;
  vertical-align: middle;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #efb74f;
  color: var(--color-primary);
  box-shadow: 0 5px 18px -6px #e29f3f88;
  transform: translateY(-2px) scale(1.03) rotateZ(-1deg);
}
.btn-secondary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 5px 18px -8px #24426485;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #436397;
  color: #fff;
  box-shadow: 0 7px 18px -8px #24426477;
  transform: translateY(-1px) scale(1.02) rotateZ(1.2deg);
}

/**************** MOBILE NAVIGATION HAMBURGER ***************/
.mobile-menu-toggle {
  background: var(--color-accent);
  border: none;
  color: #fff;
  font-size: 2.2rem;
  border-radius: 14px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .18s, transform .12s;
  z-index: 106;
  margin-left: 10px;
  box-shadow: 0 2px 10px #e29f3f22;
  position: relative;
  display: none; /* Hidden by default, visible on mobile below */
}
.mobile-menu-toggle:active {
  background: #c99322;
  transform: scale(0.96);
}

/**************** MOBILE MENU ******/
.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,66,100,0.98);
  color: #fff;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.77, .2, .15, 1);
  box-shadow: 0 5px 20px #0009;
  padding-top: 0 !important;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  padding: 18px;
  align-self: flex-end;
  cursor: pointer;
  transition: color .13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
  margin-top: 18px;
  width: 100%;
  padding-left: 32px;
}
.mobile-nav a {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  padding: 9px 0;
  border-radius: 8px;
  margin-right: 16px;
  min-width: 160px;
  transition: background .15s, color .14s, transform .16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: translateX(4px) scale(1.04);
}

/*********** HERO SECTION ***********/
.hero {
  background: #ffeaa7;
  background: linear-gradient(105deg,#f2f2f7 0%,#ffe9b7 60%,#fffcdc 100%);
  border-radius: 0 0 48px 48px;
  min-height: 360px;
  box-shadow: 0 8px 50px -12px #e29f3f2c;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding: 42px 0 40px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 530px;
  gap: 18px;
}
.hero h1 {
  color: var(--color-primary);
  margin-bottom: 8px;
}
.hero p {
  font-size: 1.15rem;
  color: var(--color-dark);
  margin-bottom: 13px;
}
.hero .btn-primary {
  margin-left: 0;
}

/*************** MAIN LAYOUT UTILITIES *************/
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
/***** Features grid (Proč spolupracovat...) *****/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 28px;
}
.feature-grid > div {
  flex:1 1 240px;
  min-width: 220px;
  background: #fffbe6;
  border-radius: 23px;
  box-shadow: var(--shadow-card);
  padding: 24px 20px 18px 20px;
  text-align: center;
  transition: box-shadow .18s, transform .12s;
  position: relative;
}
.feature-grid > div:hover {
  box-shadow: 0 9px 33px -7px #e29f3f45;
  transform: translateY(-4px) scale(1.025) rotateZ(-1deg);
}
.feature-grid img {
  height: 52px;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 8px #ffe7ba);
  animation: featureBounce 1.2s ease .15s 1;
}
@keyframes featureBounce {
  0% { transform: translateY(-20px) scale(0.87) rotateZ(-8deg); opacity: 0.22; }
  70% { transform: translateY(3px) scale(1.11) rotateZ(6deg); opacity: 1; }
  100% { transform: translateY(0) scale(1) rotateZ(0deg); opacity: 1; }
}
.feature-grid h3 {
  margin-bottom: 8px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.13rem;
}
/***** Services list (index) *****/
.services-list {
  margin: 0 0 24px 0;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.services-list li {
  font-size: 1.07rem;
  background: #fffde7;
  border-left: 6px solid var(--color-accent);
  border-radius: 13px 3px 3px 13px;
  padding: 11px 18px 11px 11px;
  color: var(--color-dark);
  line-height: 1.62;
  margin-bottom: 0;
  position: relative;
}
/***** Services detailed list (services.html) *****/
.services-list-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.services-list-detail li {
  flex: 1 1 285px;
  min-width: 260px;
  background: #fffbe6;
  border-radius: 23px;
  box-shadow: var(--shadow-card);
  padding: 22px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  transition: box-shadow .18s, transform .1s;
  border: 3px solid transparent;
}
.services-list-detail li:hover {
  box-shadow: 0 12px 33px -7px #e29f3f45;
  transform: translateY(-6px) scale(1.015) rotateZ(0.7deg);
  border: 3px solid #ffe9b7;
}
.services-list-detail li img {
  height: 38px;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 8px #ffecbd);
}
.services-list-detail h3 {
  color: var(--color-primary);
  font-size: 1.17rem;
  margin-bottom: 5px;
}
.services-list-detail .price {
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--color-accent);
  font-size: 1.06rem;
  font-weight: 700;
  margin-top: 7px;
}

/*********** TESTIMONIAL GRID ***********/
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 22px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: #fff;
  border: 2.5px solid #fee08a;
  border-radius: 22px;
  box-shadow: 0 2px 16px 0 #f8e29d44;
  padding: 22px 29px 17px 25px;
  min-width: 260px;
  max-width: 400px;
  flex: 1 1 270px;
  transition: box-shadow .19s, border-color .14s, transform .13s;
  color: var(--color-primary);
  font-size: 1.06rem;
  margin-bottom: 0;
}
.testimonial-card:hover {
  box-shadow: 0 7px 30px -10px #e29f3faa;
  border-color: var(--color-accent);
  transform: scale(1.025) rotateZ(-0.7deg);
}
.testimonial-card p {
  color: var(--color-dark);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.53;
  margin-bottom: 11px;
}
.testimonial-meta {
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 2px;
}
.testimonial-meta span {
  color: #f9c31c;
  font-size: 1.25em;
  margin-left: 1px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .09em;
}

/*********** CTA SECTIONS (KONZULTACE, ETC) ***********/
.content-wrapper[style*='text-align:center'] {
  align-items: center !important;
  text-align: center !important;
}
.content-wrapper[style*='text-align:center'] h2,
.content-wrapper[style*='text-align:center'] p {
  text-align: center !important;
}

/********** PRICING TABLE (CENIK) **********/
.pricing-table {
  overflow-x: auto;
  margin-bottom: 32px;
}
.pricing-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fffbe6;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 3px 12px #e29f3f19;
  min-width: 600px;
}
.pricing-table th, .pricing-table td {
  padding: 17px 18px;
  text-align: left;
  font-size: 1.07rem;
}
.pricing-table th {
  background: #ffe08a;
  color: var(--color-primary);
  font-weight: 900;
  font-family: "Montserrat", Arial, sans-serif;
}
.pricing-table tbody tr:nth-child(even) { background: #fffdfa; }
.pricing-table tbody tr:nth-child(odd) { background: #fffbe6; }
.pricing-table tr:hover td { background: #fff6d1; }
.pricing-notes {
  margin: 24px 0 24px 0;
  color: var(--color-dark);
  font-size: 1.05rem;
}

/******** ARTICLE LIST (CLANKY) *********/
.article-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 18px;
}
.article-list li {
  background: #fffbe6;
  border-radius: 23px;
  box-shadow: var(--shadow-card);
  padding: 24px 18px 18px 22px;
  transition: box-shadow .14s, transform .13s;
  position: relative;
}
.article-list li:hover {
  box-shadow: 0 7px 31px -7px #e29f3f55;
  transform: translateY(-3px) scale(1.01) rotateZ(1.5deg);
}
.article-list h3 {
  color: var(--color-primary);
  font-size: 1.17rem;
  margin-bottom: 6px;
}
.article-meta {
  color: var(--color-primary);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.04rem;
  margin-top: 5px;
}
.article-tag {
  background: var(--color-accent);
  color: #fff;
  border-radius: 7px;
  padding: 2px 8px;
  font-size: 1.02em;
  margin-left: 7px;
  font-weight: 700;
}

/********* CONTACT INFO GRID (KONTAKT) ************/
.contact-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 22px;
}
.contact-block {
  flex: 1 1 280px;
  min-width: 220px;
  background: #fffbe6;
  border-radius: 20px;
  box-shadow: 0 2px 12px #e29f3f1a;
  padding: 18px 24px 18px 24px;
  font-size: 1.07rem;
}
.contact-block h2 {
  margin-bottom: 11px;
  color: var(--color-primary);
}
.contact-block p {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.contact-block img {
  height: 24px;
  width: 24px;
  margin-right: 6px;
}
.contact-map {
  flex: 1 1 160px;
  min-width: 150px;
  align-self: flex-start;
  background: #f8f9fd;
  border-radius: 16px;
  box-shadow: 0 1px 7px #2442640a;
  padding: 18px;
  font-size: 1.01rem;
}

/********** FOOTER ************/
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 34px 0 20px 0;
  margin-top: 50px;
  position: relative;
  box-shadow: 0 -8px 40px -7px #e29f3f11;
  border-radius: 48px 48px 0 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand img {
  height: 54px;
  display: block;
  margin-bottom: 14px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  transition: color .15s;
  opacity: 0.9;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--color-accent);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 1.029rem;
}
.footer-contact p {
  color: #fff;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.55;
}
.footer-contact img {
  height: 21px; width: 21px;
  margin-right: 4px;
}

/*********** TEXT-IMAGE & FLEX UTILS ***********/
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fffbe6;
  border-radius: 19px;
  box-shadow: 0 2px 12px 0 #e29f3f13;
  padding: 16px 20px;
  margin-bottom: 20px;
  position: relative;
  min-width: 200px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/********* MODALS & OVERLAYS (COOKIE) ************/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fffbe6;
  color: var(--color-primary);
  border-top: 2.5px solid #ffe08a;
  box-shadow: 0 -6px 24px -6px #fee08a55;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 18px 18px 16px;
  z-index: 100000;
  font-size: 1.06rem;
  font-family: "Roboto", Arial, sans-serif;
  animation: cookie-slide-up 0.88s cubic-bezier(.47,1.64,.41,.82) 1;
}
@keyframes cookie-slide-up {
  0% { transform: translateY(80px); opacity: 0; }
  80% { transform: translateY(-9px); opacity: 1; }
  100% { transform: translateY(0); }
}
.cookie-banner .cookie-banner-message {
  flex: 1 1 220px;
  margin-right: 9px;
}
.cookie-banner .cookie-btn {
  margin-left: 7px;
  margin-right: 7px;
  min-width: 122px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
  border-radius: 11px;
  border: none;
  padding: 10px 22px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: background .13s, color .13s, transform .09s;
  box-shadow: 0 2px 8px #e29f3f23;
}
.cookie-banner .cookie-btn.accept {
  background: var(--color-success);
  color: #fff;
}
.cookie-banner .cookie-btn.accept:hover,
.cookie-banner .cookie-btn.accept:focus {
  background: #35a95b;
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: var(--color-danger);
  color: #fff;
}
.cookie-banner .cookie-btn.reject:hover,
.cookie-banner .cookie-btn.reject:focus {
  background: #ef3249;
  color: #fff;
}
.cookie-banner .cookie-btn.settings {
  background: var(--color-info);
  color: #fff;
}
.cookie-banner .cookie-btn.settings:hover,
.cookie-banner .cookie-btn.settings:focus {
  background: #197cc3;
  color: #fff;
}

/********* COOKIE MODAL **********/
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,66,100,0.70);
  z-index: 102000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .22s;
}
.cookie-modal {
  background: #fff;
  color: var(--color-primary);
  border-radius: 22px;
  box-shadow: 0 11px 36px #24426438;
  padding: 36px 30px 24px 30px;
  max-width: 440px;
  width: 97vw;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 1.05rem;
  position: relative;
  animation: cookie-modal-appear 0.55s cubic-bezier(.5,1.64,.41,1.02) 1;
  text-align: left;
}
@keyframes cookie-modal-appear {
  0% { opacity: 0; transform: scale(0.6) translateY(70px); }
  70% { transform: scale(1.02) translateY(-8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  margin-top: 0;
  margin-bottom: 13px;
}
.cookie-modal .cookie-modal-group {
  margin: 14px 0 21px 0;
  padding: 0 0 9px 0;
  border-bottom: 1px solid #f8e2ab;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.cookie-modal .cookie-modal-toggle {
  margin-top: 3px;
  margin-right: 9px;
  accent-color: var(--color-accent);
}
.cookie-modal .cookie-modal-group:last-child {
  border-bottom: none;
}
.cookie-modal .cookie-modal-footer {
  display: flex;
  gap: 11px;
  margin-top: 25px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 9px; right: 11px;
  background: transparent;
  border: none;
  font-size: 1.7rem;
  color: var(--color-primary);
  cursor: pointer;
  outline: none;
  transition: color .14s;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  color: var(--color-accent);
}
/***** Cookie Toggles ******/
input[type='checkbox'].cookie-toggle {
  width: 21px; height: 21px;
  accent-color: var(--color-accent);
  margin-right: 5px;
}
input[type='checkbox'][disabled] {
  opacity: 0.6;
  pointer-events: none;
}
.cookie-modal label {
  font-weight: 600;
  margin-left: 2px;
}

/********** ANIMATIONS & PLAYFUL EFFECTS ***********/
a, .btn-primary, .btn-secondary, .cookie-btn {
  transition: background .18s, color .18s, box-shadow .16s, transform .13s;
}
/**** Playful Card Animation on Appearing ****/
.card, .feature-grid > div, .testimonial-card, .article-list li, .services-list-detail li {
  animation: cardAppear 0.77s cubic-bezier(.44,1.34,.41,.93) forwards;
}
@keyframes cardAppear {
  0% { opacity: 0.15; transform: scale(0.86) translateY(49px) rotateZ(-3.5deg); }
  70% { opacity: 1; transform: scale(1.02) translateY(-8px) rotateZ(1.2deg); }
  100% { opacity: 1; transform: scale(1) translateY(0) rotateZ(0); }
}

/************** FORM ELEMENTS **************/
input, textarea, select {
  border-radius: 12px;
  border: 2px solid #ffe08a;
  background: #fffbe9;
  color: var(--color-primary);
  padding: 12px 14px;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px #e29f3f0d;
  transition: border-color .16s;
  width: 100%;
  max-width: 440px;
  margin-bottom: 16px;
  outline: none;
}
input:focus, textarea:focus {
  border-color: var(--color-accent);
}
label { font-weight: 600; margin-bottom: 6px; display: inline-block; color: var(--color-primary); }

/********** SECTION STYLES & SPACING **********/
section {
  margin-bottom: 60px;
}

/********* MISC PLAYFUL/DECORATIVE *********/
.feature-grid > div::after {
  content: '';
  display: block;
  position: absolute;
  right: 14px; bottom: 13px;
  width: 35px; height: 18px;
  background: #ffe08a55;
  border-radius: 60% 40% 40% 70%;
  z-index: 1;
  opacity: 0.45;
}
.services-list-detail li::after {
  content: '';
  position: absolute;
  top: -13px; left: 25px;
  width: 33px; height: 9px;
  background: #e29f3f22;
  border-radius: 45% 80%;
  z-index: 1;
}

/************** RESPONSIVE/MOBILE FIRST ***********/
@media (max-width: 1040px) {
  .feature-grid, .services-list-detail, .testimonial-grid, .content-grid, .card-container, .contact-info-grid, .footer .container {
    gap: 16px;
  }
  .footer .container { gap: 20px; }
}
@media (max-width: 900px) {
  .feature-grid,
  .services-list-detail,
  .testimonial-grid,
  .footer .container,
  .content-grid,
  .card-container,
  .contact-info-grid {
    flex-direction: column;
    gap: 20px;
  }
  .footer .container { align-items: stretch; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  header .container {
    flex-direction: row;
    gap: 9px;
  }
  .hero .container,
  .content-wrapper,
  .footer .container,
  .content-grid,
  .card-container,
  .feature-grid,
  .services-list-detail,
  .testimonial-grid,
  .article-list,
  .contact-info-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature-grid > div,
  .services-list-detail li,
  .testimonial-card,
  .article-list li,
  .card {
    min-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
  }
  .pricing-table table {
    min-width: 520px;
    font-size: 1em;
  }
  footer {
    padding: 22px 0 16px 0;
    border-radius: 38px 38px 0 0;
  }
}
@media (max-width: 650px) {
  h1, .hero h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .logo img { height: 36px; }
  .footer-brand img { height: 40px; }
  .footer-contact { font-size: 0.98rem; }
}
@media (max-width: 560px) {
  .container { padding: 0 5px; }
  .section, section { padding: 22px 3px; border-radius: 19px; }
  .testimonial-card, .article-list li { padding: 15px 10px 14px 8px; }
}
/********** NAVIGATION VISIBILITY ADAPTIVE *******/
@media (max-width: 930px) {
  .nav-desktop {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}
@media (min-width: 931px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  .nav-desktop {
    display: flex !important;
  }
}

/********* Misc classes for padding/margin if needed */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.pt-40 { padding-top: 40px !important; }
.pb-40 { padding-bottom: 40px !important; }

/******** SPACING ENFORCEMENT BETWEEN CARDS/SECTIONS ******/
.card, .feature-grid > div, .testimonial-card, .article-list li, .services-list-detail li, section, .section {
  margin-bottom: 20px;
}
/********** PREVENT ABSOLUTE ON CONTENT CARDS (Only decorative) ******/
/***** Already handled above - only ::after or ::before use position:absolute for visual blobs *****/

/***** Z-INDEX FOR LAYERS ******/
.mobile-menu { z-index: 999999 !important; }
.cookie-banner { z-index: 100000 !important; }
.cookie-modal-overlay { z-index: 102000 !important; }

/************* GENERAL MICRO-INTERACTIONS *************/
.btn-primary:active, .btn-secondary:active, a:active, .cookie-btn:active {
  filter: brightness(0.95) contrast(1.08);
  transform: scale(0.97) translateY(1.5px);
}

/************* PLAYFUL FONT (Montserrat weights) *************/
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/***************************************************
* END OF PASCU PERPE CENTRUM 'playful_dynamic' CSS *
****************************************************/
