:root{--ed-red:#c8202f;--ed-deep:#8e1722;--ed-dark:#242121;--ed-ivory:#fbf8f4;--ed-sand:#ede2d8;--ed-gold:#b99a6a}
body.esteticadent-premium{background:var(--ed-ivory);color:var(--ed-dark)}
body.esteticadent-premium h1,body.esteticadent-premium h2,body.esteticadent-premium h3{font-family:Georgia,"Times New Roman",serif;font-weight:400;line-height:1.12}
#main-header{background:rgba(251,248,244,.96);box-shadow:0 1px 20px rgba(25,20,18,.08);backdrop-filter:blur(14px)}
#main-header .logo_container img#logo{max-height:72%;width:auto}.et-fixed-header#main-header{background:rgba(251,248,244,.98)}
#top-menu a{color:#292524;font-weight:600;letter-spacing:.02em}#top-menu li.current-menu-item>a,#top-menu a:hover{color:var(--ed-red)!important}
.et_pb_button,.et_pb_more_button{border:0!important;border-radius:999px!important;background:var(--ed-red)!important;color:#fff!important;font-weight:700!important;letter-spacing:.04em!important;padding:.8em 1.6em!important}
.et_pb_button:hover,.et_pb_more_button:hover{background:var(--ed-deep)!important;padding:.8em 1.9em .8em 1.6em!important}
.et_pb_section{background-color:transparent}.et_pb_section.ed-sand{background:var(--ed-sand)}.et_pb_section.ed-white{background:#fff}
.et_pb_module.ed-card{background:#fff;border:1px solid rgba(35,35,35,.07);border-radius:22px;padding:32px;box-shadow:0 16px 50px rgba(55,35,25,.07)}
.ed-photo img{border-radius:22px;box-shadow:0 24px 70px rgba(35,20,15,.15)}
.ed-kicker{text-transform:uppercase;letter-spacing:.16em;color:var(--ed-red);font-size:.78rem;font-weight:700}
.ed-luxury-hero{min-height:72vh;display:flex;align-items:center;background-position:center;background-size:cover}.ed-luxury-hero h1{font-size:clamp(2.8rem,6vw,5.7rem);color:#fff;text-shadow:0 4px 30px #0005}.ed-luxury-hero p{color:#fff;font-size:clamp(1.1rem,2vw,1.5rem)}
#main-footer{background:#211f1e}#footer-bottom{background:#171514}.footer-widget,.footer-widget a,#footer-info{color:#eee}
@media(max-width:980px){#main-header .container{width:92%}.mobile_menu_bar:before{color:var(--ed-red)}.et_mobile_menu{border-top-color:var(--ed-red)}.ed-luxury-hero{min-height:620px}}

/* Menu glowne: pionowe czerwone separatory miedzy pozycjami */
@media (min-width: 981px) {
  #top-menu > li {
    position: relative;
    padding-right: 18px;
    margin-right: 18px;
  }
  #top-menu > li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 2px;
    height: 20px;
    background: var(--ed-red);
    transform: translateY(-50%);
    border-radius: 2px;
    opacity: .95;
  }
  #top-menu > li:last-child {
    padding-right: 0;
    margin-right: 0;
  }
  #top-menu > li > a { padding-bottom: 0; }
}
@media (max-width: 980px) {
  .et_mobile_menu li:not(:last-child) {
    border-bottom: 1px solid rgba(200, 32, 47, .22);
  }
}

/* Rozwijane menu: stylistyka zgodna z menu glownym */
@media (min-width: 981px) {
  #top-menu li ul,
  .nav li ul {
    width: 280px;
    padding: 10px 0;
    background: rgba(251, 248, 244, .98) !important;
    border-top: 3px solid var(--ed-red) !important;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 18px 45px rgba(35, 25, 20, .14);
    backdrop-filter: blur(14px);
  }

  #top-menu li li,
  .nav li li {
    width: 100%;
    padding: 0 18px;
    margin: 0;
  }

  #top-menu li li:not(:last-child),
  .nav li li:not(:last-child) {
    border-bottom: 1px solid rgba(200, 32, 47, .42);
  }

  #top-menu li li a,
  .nav li li a {
    width: 100%;
    padding: 13px 8px;
    color: var(--ed-dark) !important;
    background: transparent !important;
    font-weight: 600;
    line-height: 1.35;
    transition: color .2s ease, padding-left .2s ease, background .2s ease;
  }

  #top-menu li li a:hover,
  .nav li li a:hover,
  #top-menu li li.current-menu-item > a,
  .nav li li.current-menu-item > a {
    color: var(--ed-red) !important;
    background: rgba(200, 32, 47, .055) !important;
    padding-left: 13px;
    opacity: 1;
  }

  #top-menu li li.menu-item-has-children > a:first-child::after,
  .nav li li.menu-item-has-children > a:first-child::after {
    color: var(--ed-red);
    right: 8px;
  }
}

/* Stopka premium: spójna z jasną identyfikacją Esteticadent */
#main-footer {
  background: linear-gradient(180deg, #f5eee8 0%, #fbf8f4 100%) !important;
  color: var(--ed-dark) !important;
  border-top: 1px solid rgba(200, 32, 47, .22);
  box-shadow: inset 0 10px 30px rgba(185, 154, 106, .06);
}
#main-footer .container { padding-top: 54px; }
#main-footer .footer-widget,
#main-footer .footer-widget p,
#main-footer .footer-widget li,
#main-footer .footer-widget .textwidget { color: #4c4542 !important; }
#main-footer .footer-widget h4,
#main-footer .footer-widget .title {
  color: var(--ed-dark) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
#main-footer .footer-widget a {
  color: #4c4542 !important;
  transition: color .2s ease;
}
#main-footer .footer-widget a:hover { color: var(--ed-red) !important; }
#main-footer .footer-widget li:not(:last-child) {
  border-bottom: 1px solid rgba(200, 32, 47, .22);
  padding-bottom: 9px;
  margin-bottom: 9px;
}
#footer-bottom {
  background: #eee3da !important;
  border-top: 1px solid rgba(200, 32, 47, .18);
  color: #5d5450 !important;
}
#footer-info,
#footer-info a,
#footer-bottom .et-social-icon a { color: #5d5450 !important; }
#footer-info a:hover,
#footer-bottom .et-social-icon a:hover { color: var(--ed-red) !important; opacity: 1; }

/* Artykuły, aktualności i archiwa */
body.single-post #main-content,
body.blog #main-content,
body.archive #main-content,
body.search #main-content { background: var(--ed-ivory); }
body.single-post #main-content .container,
body.blog #main-content .container,
body.archive #main-content .container,
body.search #main-content .container { padding-top: 64px; }
body.single-post #left-area,
body.blog #left-area,
body.archive #left-area,
body.search #left-area { padding-bottom: 80px; }
body.single-post article.et_pb_post,
body.blog article.et_pb_post,
body.archive article.et_pb_post,
body.search article.et_pb_post {
  background: #fff;
  border: 1px solid rgba(35,35,35,.07);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 46px);
  box-shadow: 0 18px 55px rgba(55,35,25,.075);
  overflow: hidden;
}
body.blog article.et_pb_post,
body.archive article.et_pb_post,
body.search article.et_pb_post { margin-bottom: 34px; }
body.single-post .entry-title,
body.blog .entry-title,
body.archive .entry-title,
body.search .entry-title {
  color: var(--ed-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.12;
}
body.blog .entry-title,
body.archive .entry-title,
body.search .entry-title { font-size: clamp(1.65rem, 3vw, 2.6rem); }
body.single-post .post-meta,
body.blog .post-meta,
body.archive .post-meta,
body.search .post-meta {
  color: #82736c !important;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .78rem;
}
body.single-post .post-meta a,
body.blog .post-meta a,
body.archive .post-meta a,
body.search .post-meta a { color: var(--ed-red) !important; }
article.et_pb_post .entry-featured-image-url img,
body.single-post .et_post_meta_wrapper img {
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(35,20,15,.12);
}
body.single-post .entry-content { color: #49413e; font-size: 1.06rem; line-height: 1.85; }
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4 {
  color: var(--ed-dark);
  margin-top: 1.35em;
}
body.single-post .entry-content blockquote {
  margin: 2em 0;
  padding: 22px 28px;
  border-left: 4px solid var(--ed-red);
  background: var(--ed-sand);
  border-radius: 0 16px 16px 0;
  color: #463d39;
}
body.single-post .entry-content a { color: var(--ed-red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
body.single-post .entry-content ul li::marker,
body.single-post .entry-content ol li::marker { color: var(--ed-red); }
.more-link,
.pagination a,
.form-submit .et_pb_button {
  display: inline-block;
  margin-top: 14px;
  color: #fff !important;
  background: var(--ed-red);
  border-radius: 999px;
  padding: 10px 19px;
  font-weight: 700;
}
.more-link:hover,
.pagination a:hover { background: var(--ed-deep); }
#sidebar .et_pb_widget {
  background: #fff;
  border: 1px solid rgba(35,35,35,.07);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(55,35,25,.06);
}
#sidebar .et_pb_widget h4 { color: var(--ed-dark); font-family: Georgia, "Times New Roman", serif; }
#sidebar .et_pb_widget li:not(:last-child) { border-bottom: 1px solid rgba(200,32,47,.18); padding-bottom: 8px; margin-bottom: 8px; }
#sidebar .et_pb_widget a { color: #4c4542; }
#sidebar .et_pb_widget a:hover { color: var(--ed-red); }
@media (max-width: 980px) {
  body.single-post #main-content .container,
  body.blog #main-content .container,
  body.archive #main-content .container,
  body.search #main-content .container { padding-top: 38px; }
}

/* 2.4.0 BALANCED: czerwien tylko jako akcent, bez globalnego nadpisywania linkow */
:root {
  --ed-red: #b72532;
  --ed-red-hover: #8e1722;
  --ed-charcoal: #292524;
  --ed-body: #514946;
  --ed-ivory: #fbf8f4;
  --ed-cream: #f5eee8;
  --ed-sand: #eee3da;
  --ed-line: rgba(142, 23, 34, .24);
}

/* Menu glowne: neutralne, aktywna pozycja tylko subtelnie czerwona */
#main-header #top-menu > li > a,
#main-header.et-fixed-header #top-menu > li > a {
  color: var(--ed-charcoal) !important;
  background: transparent !important;
}
#main-header #top-menu > li > a:hover,
#main-header #top-menu > li.current-menu-item > a,
#main-header #top-menu > li.current-menu-ancestor > a,
#main-header #top-menu > li.current_page_item > a,
#main-header #top-menu > li.current_page_ancestor > a,
#main-header.et-fixed-header #top-menu > li.current-menu-item > a,
#main-header.et-fixed-header #top-menu > li.current-menu-ancestor > a {
  color: var(--ed-red-hover) !important;
  background: transparent !important;
}
@media (min-width:981px) {
  #top-menu > li:not(:last-child)::after { background: rgba(183,37,50,.70) !important; width:1px !important; }
  #top-menu > li.current-menu-item > a::before,
  #top-menu > li.current-menu-ancestor > a::before,
  #top-menu > li.current_page_item > a::before,
  #top-menu > li.current_page_ancestor > a::before {
    background: var(--ed-red) !important;
    height: 2px !important;
  }
}

/* Podmenu: bez czerwonego zalania */
#top-menu li ul,
.nav li ul {
  background: rgba(251,248,244,.99) !important;
  border-top: 2px solid var(--ed-red) !important;
}
#top-menu li li a,
.nav li li a { color: var(--ed-charcoal) !important; background: transparent !important; }
#top-menu li li:not(:last-child),
.nav li li:not(:last-child) { border-bottom: 1px solid var(--ed-line) !important; }
#top-menu li li a:hover,
.nav li li a:hover,
#top-menu li li.current-menu-item > a,
.nav li li.current-menu-item > a {
  color: var(--ed-red-hover) !important;
  background: rgba(183,37,50,.045) !important;
}

/* Przyciski: jeden spokojny wzorzec */
body .et_pb_button,
body .et_pb_more_button,
body .et_pb_promo_button,
body .et_pb_contact_submit,
body .et_pb_newsletter_button,
body input[type="submit"],
body button[type="submit"] {
  color: #fff !important;
  background: var(--ed-red) !important;
  border: 1px solid var(--ed-red) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  letter-spacing: .02em !important;
}
body .et_pb_button:hover,
body .et_pb_more_button:hover,
body .et_pb_promo_button:hover,
body .et_pb_contact_submit:hover,
body .et_pb_newsletter_button:hover,
body input[type="submit"]:hover,
body button[type="submit"]:hover {
  color: #fff !important;
  background: var(--ed-red-hover) !important;
  border-color: var(--ed-red-hover) !important;
}
body .et_pb_button::after,
body .et_pb_more_button::after,
body .et_pb_promo_button::after,
body .et_pb_contact_submit::after,
body .et_pb_newsletter_button::after { color:#fff !important; }

/* Cennik i zwykle podstrony: spokojne karty, bez niebieskich i czerwonych plam */
body.page #main-content { background: var(--ed-ivory); color:var(--ed-body); }
body.page #main-content .entry-title { color:var(--ed-charcoal); }
body.page .et_pb_section:not(.et_pb_with_background) { background: transparent; }
body.page .et_pb_toggle,
body.page .et_pb_accordion_item,
body.page .et_pb_pricing_table,
body.page .et_pb_text_align_left.et_pb_module {
  border-color: rgba(41,37,36,.10) !important;
}
body.page .et_pb_pricing_heading,
body.page .et_pb_pricing_content_top { background: var(--ed-cream) !important; color:var(--ed-charcoal) !important; }
body.page .et_pb_pricing_table_wrap { gap:22px; }
body.page .et_pb_pricing_table {
  background:#fff !important;
  border:1px solid rgba(41,37,36,.10) !important;
  border-radius:18px !important;
  box-shadow:0 14px 40px rgba(55,35,25,.06) !important;
  overflow:hidden;
}

/* Dol strony glownej: zamiast czerni jasna sekcja premium */
body.home .ed-final-cta,
body.home .esteticadent-final-cta,
body.home #esteticadent-final-cta {
  background: linear-gradient(135deg,var(--ed-cream),var(--ed-ivory)) !important;
  color:var(--ed-charcoal) !important;
  border-top:1px solid var(--ed-line);
}
body.home .ed-final-cta h1,
body.home .ed-final-cta h2,
body.home .ed-final-cta h3,
body.home .ed-final-cta p,
body.home .esteticadent-final-cta h2,
body.home .esteticadent-final-cta p { color:var(--ed-charcoal) !important; }

/* Mobile menu spójne i neutralne */
@media (max-width:980px) {
  .mobile_menu_bar::before { color:var(--ed-red-hover) !important; }
  .et_mobile_menu { background:var(--ed-ivory) !important; border-top:2px solid var(--ed-red) !important; }
  .et_mobile_menu li a { color:var(--ed-charcoal) !important; background:transparent !important; border-bottom:1px solid var(--ed-line) !important; }
  .et_mobile_menu li.current-menu-item > a,
  .et_mobile_menu li.current-menu-ancestor > a,
  .et_mobile_menu li a:hover { color:var(--ed-red-hover) !important; background:rgba(183,37,50,.04) !important; }
}

/* Logo naglowka: proporcje i responsywnosc */
#main-header #logo,
#main-header .logo_container img,
.custom-logo-link img,
img.custom-logo {
  width: auto !important;
  height: auto !important;
  max-width: min(260px, 42vw) !important;
  max-height: 64px !important;
  object-fit: contain;
}
@media (max-width: 980px) {
  #main-header #logo,
  #main-header .logo_container img,
  .custom-logo-link img,
  img.custom-logo {
    max-width: 190px !important;
    max-height: 52px !important;
  }
}

/* Panel dostepnosci inspirowany funkcjami WCAGbot, bez zewnetrznej uslugi */
:root{--ed-text-scale:1}html{font-size:calc(100% * var(--ed-text-scale))}.ed-skip-link{position:fixed;left:12px;top:-100px;z-index:100000;background:#fff;color:#242121!important;border:3px solid #8e1722;padding:12px 18px;border-radius:8px}.ed-skip-link:focus{top:12px}.ed-a11y{position:fixed;right:18px;bottom:18px;z-index:99999;font-family:Arial,sans-serif}.ed-a11y-toggle{width:52px;height:52px;border:0;border-radius:50%;background:#292524;color:#fff;font-weight:700;font-size:18px;box-shadow:0 8px 28px rgba(0,0,0,.2);cursor:pointer}.ed-a11y-panel{position:absolute;right:0;bottom:62px;width:min(330px,calc(100vw - 32px));background:#fbf8f4;color:#242121;border:2px solid #8e1722;border-radius:16px;padding:18px;box-shadow:0 16px 45px rgba(0,0,0,.22)}.ed-a11y-panel h2{margin:0 0 12px;color:#242121;font-size:22px}.ed-a11y-group{display:grid;grid-template-columns:1fr;gap:8px;margin:10px 0}.ed-a11y-panel button{min-height:44px;border:1px solid #82736c;border-radius:10px;background:#fff;color:#242121;font-weight:600;cursor:pointer}.ed-a11y-panel button:hover,.ed-a11y-panel button:focus-visible,.ed-a11y-panel button[aria-pressed="true"]{border-color:#8e1722;background:#eee3da;color:#242121}.ed-a11y-reset{width:100%;margin-top:6px}.ed-a11y-status{min-height:1.5em;margin:10px 0 0;font-size:14px}.ed-contrast-high body,.ed-contrast-high #page-container{background:#fff!important;color:#000!important}.ed-contrast-high body *:not(img):not(video):not(svg){border-color:#000!important}.ed-contrast-high body a{color:#8e1722!important;text-decoration:underline!important}.ed-contrast-high body .et_pb_button,.ed-contrast-high body button[type="submit"]{background:#000!important;color:#fff!important}.ed-contrast-dark body,.ed-contrast-dark #page-container,.ed-contrast-dark #main-content,.ed-contrast-dark .et_pb_section{background:#111!important;color:#fff!important}.ed-contrast-dark body h1,.ed-contrast-dark body h2,.ed-contrast-dark body h3,.ed-contrast-dark body h4,.ed-contrast-dark body p,.ed-contrast-dark body li,.ed-contrast-dark body label{color:#fff!important}.ed-contrast-dark body a{color:#ffd5d8!important;text-decoration:underline!important}.ed-contrast-dark body input,.ed-contrast-dark body textarea,.ed-contrast-dark body select{background:#222!important;color:#fff!important;border-color:#fff!important}.ed-grayscale body #page-container{filter:grayscale(1)}@media(max-width:600px){.ed-a11y{right:10px;bottom:10px}.ed-a11y-toggle{width:48px;height:48px}.ed-a11y-panel{bottom:56px}}

/* Filtry wspomagajace odbior barw. Nie zastepuja zasady WCAG 1.4.1. */
.ed-cvd-filters{position:absolute;width:0;height:0;overflow:hidden}.ed-a11y-panel label{color:#242121;font-weight:700}.ed-a11y-panel select{min-height:44px;width:100%;border:1px solid #82736c;border-radius:10px;background:#fff;color:#242121;padding:8px}.ed-a11y-hint{margin:4px 0 0;color:#514946;font-size:13px;line-height:1.45}.ed-cvd-protan body #page-container{filter:url(#ed-filter-protan)}.ed-cvd-deutan body #page-container{filter:url(#ed-filter-deutan)}.ed-cvd-tritan body #page-container{filter:url(#ed-filter-tritan)}.ed-cvd-protan.ed-grayscale body #page-container,.ed-cvd-deutan.ed-grayscale body #page-container,.ed-cvd-tritan.ed-grayscale body #page-container{filter:grayscale(1)}
/* Linki i stany maja dodatkowy sygnal poza kolorem. */
.entry-content a,.et_pb_text a{text-decoration:underline;text-underline-offset:3px}.et-pb-contact-message::before,.et_pb_contact_error_text::before{content:"Uwaga: ";font-weight:700}.et_mobile_menu li.current-menu-item>a,#top-menu li.current-menu-item>a{font-weight:700!important}
