/*
Theme Name: Astra Child Locals
Template: astra
Version: 1.4.4
Text Domain: astra-child-locals
*/

:root {
  --locals-bg: #f6f8fb;
  --locals-text: #1d2433;
  --locals-muted: #5c6578;
  --locals-primary: #154a9f;
  --locals-primary-dark: #103b7f;
  --locals-accent: #2fbb8a;
  --locals-card: #ffffff;
  --locals-border: #e5e9f1;
  --locals-selection-bg: rgba(21, 74, 159, 0.28);
}

/* Zaznaczenie tekstu — niebieskie jak paleta Locals (nadpisanie domyślnego czerwonego z Elementora / motywu). */
body ::selection {
  background-color: var(--locals-selection-bg);
  color: inherit;
}

body ::-moz-selection {
  background-color: var(--locals-selection-bg);
  color: inherit;
}

.locals-home {
  color: var(--locals-text);
  width: 100%;
}

/* Układ treści: pełna szerokość jak na stronie głównej — wszystkie widoki singular (strony + wpisy). */
body.singular .site-content > .ast-container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  display: block;
}

body.singular .site-content #primary {
  width: 100%;
  margin: 0;
}

body.singular.ast-no-sidebar .site-content #secondary {
  display: none;
}

/* Podstrony: oddech pod przezroczysty nagłówek + spójne tło ze stroną główną */
body.locals-subpage.ast-theme-transparent-header #content.site-content {
  padding-top: clamp(88px, 11vw, 112px);
}

body.locals-subpage #primary {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

body.locals-subpage .site-content {
  background: var(--locals-bg);
}

.locals-container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.locals-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 62vh, 640px);
  padding: clamp(100px, 14vw, 140px) 0 clamp(56px, 8vw, 72px);
  border-bottom: none;
  display: flex;
  align-items: center;
}

.locals-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.locals-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.locals-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(15, 27, 51, 0.88) 0%,
    rgba(15, 27, 51, 0.55) 45%,
    rgba(21, 74, 159, 0.35) 100%
  );
}

.locals-hero .locals-container {
  position: relative;
  z-index: 1;
}

.locals-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  margin-bottom: 14px;
  max-width: 900px;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.locals-hero p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Tytuł strony w hero (bez drugiego H1 — główny nagłówek treści zostaje w sekcji niżej). */
.locals-o-nas-page-hero .locals-o-nas-hero-title {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  font-family: inherit;
}

.locals-hero .locals-btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  background: transparent;
}

.locals-hero .locals-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.locals-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.locals-btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.locals-btn:focus-visible {
  outline: 3px solid rgba(33, 150, 243, 0.65);
  outline-offset: 3px;
}

.locals-btn-primary {
  background: var(--locals-primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(21, 74, 159, 0.35);
}

.locals-btn-primary:hover {
  background: var(--locals-primary-dark);
  color: #fff;
}

.locals-btn-secondary {
  border: 2px solid var(--locals-primary);
  color: var(--locals-primary);
  background: #fff;
}

.locals-btn-secondary:hover {
  background: rgba(21, 74, 159, 0.06);
}

.locals-trustbar {
  background: #fff;
  padding: 26px 0;
  border-bottom: 1px solid var(--locals-border);
}

.locals-trustbar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.locals-stat {
  background: var(--locals-bg);
  border: 1px solid var(--locals-border);
  border-radius: 12px;
  padding: 14px 16px;
}

.locals-stat strong {
  display: block;
  font-size: 1.2rem;
}

.locals-stat span {
  font-size: 0.9rem;
  color: var(--locals-muted);
}

.locals-section {
  padding: 56px 0;
}

.locals-section h2 {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  max-width: 42rem;
}

.locals-section > .locals-container > .locals-lead {
  max-width: 40rem;
}

.locals-section p.locals-lead {
  color: var(--locals-muted);
  margin-bottom: 22px;
}

.locals-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.locals-card {
  display: flex;
  flex-direction: column;
  background: var(--locals-card);
  border: 1px solid var(--locals-border);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(15, 35, 73, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.locals-card:hover {
  box-shadow: 0 18px 40px rgba(15, 35, 73, 0.1);
  transform: translateY(-2px);
}

.locals-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--locals-bg);
}

.locals-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.locals-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.locals-card-content .locals-btn-primary {
  align-self: flex-start;
  margin-top: auto;
}

.locals-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.locals-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(47, 187, 138, 0.12);
  color: #137454;
  font-size: 0.8rem;
  font-weight: 700;
}

.locals-meta {
  color: var(--locals-muted);
  font-size: 0.93rem;
  margin-bottom: 12px;
}

.locals-price {
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--locals-text);
}

.locals-process {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.locals-step {
  border: 1px solid var(--locals-border);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(15, 35, 73, 0.05);
  font-size: 0.95rem;
  line-height: 1.45;
}

.locals-step strong {
  color: var(--locals-primary);
}

/* Nasze realizacje — galeria na stronie głównej */
.locals-realizacje {
  background: var(--locals-bg);
  border-top: 1px solid var(--locals-border);
  border-bottom: 1px solid var(--locals-border);
}

.locals-realizacje h2 {
  margin-bottom: 0.65rem;
}

.locals-realizacje-note {
  margin: 0 auto 1.75rem;
  max-width: 42rem;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  font-style: italic;
  color: var(--locals-muted);
}

.locals-realizacje-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 22px);
}

.locals-realizacje-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--locals-border);
  background: linear-gradient(160deg, #eef2f8 0%, #e8ecf4 100%);
  box-shadow: 0 12px 36px rgba(15, 35, 73, 0.08);
}

.locals-realizacje-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.locals-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
}

.locals-about-content .locals-lead {
  margin-bottom: 22px;
}

.locals-about-img img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(15, 35, 73, 0.12);
  display: block;
}

.locals-about .locals-btn-secondary {
  background: #fff;
}

.locals-about {
  background: var(--locals-bg);
  border-top: 1px solid var(--locals-border);
  border-bottom: 1px solid var(--locals-border);
}

.locals-contact {
  background: linear-gradient(160deg, #0f1b33 0%, #152a50 100%);
  color: #fff;
}

.locals-contact h2 {
  color: #fff;
  max-width: none;
}

.locals-contact .locals-btn-secondary {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  background: transparent;
}

.locals-contact .locals-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.locals-contact p,
.locals-contact a {
  color: #dce6ff;
}

.locals-contact a:hover {
  color: #fff;
}

/* Transparent-header + jasna belka: wymuszamy czytelny kontrast menu i CTA (cała witryna). */
.ast-theme-transparent-header #masthead #ast-desktop-header .ast-above-header-bar {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid var(--locals-border);
}

.ast-theme-transparent-header #masthead #ast-desktop-header .ast-primary-header-bar.main-header-bar {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid var(--locals-border);
  box-shadow: 0 6px 20px rgba(15, 35, 73, 0.06);
}

.ast-theme-transparent-header #masthead .ast-builder-html-element a,
.ast-theme-transparent-header #masthead .ast-builder-html-element span {
  color: var(--locals-text) !important;
}

.ast-theme-transparent-header #masthead #primary-site-navigation-desktop .main-header-menu > .menu-item > .menu-link {
  color: var(--locals-text) !important;
}

.ast-theme-transparent-header #masthead #primary-site-navigation-desktop .main-header-menu > .menu-item:hover > .menu-link,
.ast-theme-transparent-header #masthead #primary-site-navigation-desktop .main-header-menu > .menu-item:focus-within > .menu-link {
  color: var(--locals-primary) !important;
}

.ast-theme-transparent-header #masthead #primary-site-navigation-desktop .main-header-menu .current-menu-item > .menu-link {
  color: var(--locals-primary) !important;
  font-weight: 700;
}

.ast-theme-transparent-header #masthead #primary-site-navigation-desktop .main-header-menu .sub-menu .menu-link {
  color: var(--locals-text) !important;
}

.ast-theme-transparent-header #masthead #primary-site-navigation-desktop .main-header-menu .sub-menu .menu-link:hover {
  color: var(--locals-primary) !important;
}

.ast-theme-transparent-header #masthead .custom-logo-link {
  background: transparent !important;
}

.ast-theme-transparent-header #masthead .site-logo-img .custom-logo {
  max-height: 52px;
  width: auto;
  height: auto;
}

.ast-theme-transparent-header #masthead .ast-builder-button-wrap > a.menu-link {
  display: none !important;
}

.ast-theme-transparent-header #masthead .ast-builder-button-wrap .ast-custom-button-link {
  text-decoration: none !important;
}

.ast-theme-transparent-header #masthead .ast-builder-button-wrap .ast-custom-button {
  background: var(--locals-primary) !important;
  color: #fff !important;
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none !important;
  box-shadow: 0 4px 14px rgba(21, 74, 159, 0.28);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.ast-theme-transparent-header #masthead .ast-builder-button-wrap .ast-custom-button-link:hover .ast-custom-button {
  background: var(--locals-primary-dark) !important;
}

.ast-theme-transparent-header #masthead .menu-toggle {
  color: var(--locals-text);
}

.ast-theme-transparent-header #masthead .menu-toggle .ast-mobile-svg {
  fill: currentColor;
}

.ast-theme-transparent-header #masthead #ast-mobile-header .site-primary-header-wrap,
.ast-theme-transparent-header #masthead #ast-mobile-header .ast-primary-header-bar.main-header-bar {
  background: rgba(255, 255, 255, 0.98) !important;
}

/*
 * Widok mobilny — jedna paleta z layoutem Locals (nadpisanie starego theme-color / ustawień Astry).
 * Dotyczy: przycisk hamburgera, panelu menu (off-canvas), linków i CTA „Napisz do nas”.
 */
@media (max-width: 921px) {
  #masthead [data-section='section-header-mobile-trigger'] .ast-button-wrap .menu-toggle.ast-mobile-menu-trigger-fill {
    background: var(--locals-primary) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(21, 74, 159, 0.22);
  }

  #masthead [data-section='section-header-mobile-trigger'] .ast-button-wrap .menu-toggle.ast-mobile-menu-trigger-outline {
    background: transparent !important;
    border-color: var(--locals-primary) !important;
    color: var(--locals-primary) !important;
  }

  #masthead [data-section='section-header-mobile-trigger'] .ast-button-wrap .menu-toggle.ast-mobile-menu-trigger-minimal {
    color: var(--locals-text) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  #masthead [data-section='section-header-mobile-trigger'] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
    fill: currentColor !important;
  }

  #masthead [data-section='section-header-mobile-trigger'] .ast-button-wrap .menu-toggle.ast-mobile-menu-trigger-fill .mobile-menu-toggle-icon .ast-mobile-svg {
    fill: #fff !important;
  }

  .ast-mobile-popup-drawer .ast-mobile-popup-inner {
    box-shadow: -12px 0 48px rgba(15, 27, 51, 0.12);
  }

  .ast-mobile-popup-drawer .ast-mobile-popup-header .menu-toggle-close {
    color: var(--locals-text) !important;
  }

  .ast-mobile-popup-drawer .ast-builder-menu-mobile .main-header-menu .menu-item > .menu-link,
  .ast-mobile-header-wrap .ast-builder-menu-mobile .main-header-menu .menu-item > .menu-link {
    color: var(--locals-text) !important;
  }

  .ast-mobile-popup-drawer .ast-builder-menu-mobile .main-header-menu .menu-item:hover > .menu-link,
  .ast-mobile-header-wrap .ast-builder-menu-mobile .main-header-menu .menu-item:hover > .menu-link {
    color: var(--locals-primary) !important;
    background-color: rgba(21, 74, 159, 0.06) !important;
  }

  .ast-mobile-popup-drawer .ast-builder-menu-mobile .main-header-menu .menu-item.current-menu-item > .menu-link,
  .ast-mobile-popup-drawer .ast-builder-menu-mobile .main-header-menu .menu-item.current-menu-ancestor > .menu-link,
  .ast-mobile-header-wrap .ast-builder-menu-mobile .main-header-menu .menu-item.current-menu-item > .menu-link,
  .ast-mobile-header-wrap .ast-builder-menu-mobile .main-header-menu .menu-item.current-menu-ancestor > .menu-link {
    color: var(--locals-primary) !important;
    font-weight: 700;
    background-color: transparent !important;
  }

  .ast-mobile-popup-drawer .ast-builder-menu-mobile .main-header-menu .menu-item > .ast-menu-toggle,
  .ast-mobile-header-wrap .ast-builder-menu-mobile .main-header-menu .menu-item > .ast-menu-toggle {
    color: var(--locals-muted) !important;
  }

  .ast-mobile-popup-drawer .ast-builder-button-wrap .ast-custom-button,
  .ast-mobile-header-wrap .ast-builder-button-wrap .ast-custom-button {
    background: var(--locals-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(21, 74, 159, 0.28);
  }

  .ast-mobile-popup-drawer .ast-builder-button-wrap .ast-custom-button-link:hover .ast-custom-button,
  .ast-mobile-header-wrap .ast-builder-button-wrap .ast-custom-button-link:hover .ast-custom-button {
    background: var(--locals-primary-dark) !important;
  }

  /* Czytelniejsze odstępy i separatory jak na stronie głównej */
  .ast-mobile-popup-drawer .ast-builder-menu-mobile .main-header-menu > .menu-item + .menu-item > .menu-link,
  .ast-mobile-header-wrap .ast-builder-menu-mobile .main-header-menu > .menu-item + .menu-item > .menu-link {
    border-top: 1px solid var(--locals-border) !important;
  }

  .ast-mobile-popup-drawer .ast-builder-menu-mobile .main-header-menu .menu-item > .menu-link,
  .ast-mobile-header-wrap .ast-builder-menu-mobile .main-header-menu .menu-item > .menu-link {
    padding-top: 0.95rem !important;
    padding-bottom: 0.95rem !important;
  }

  .ast-mobile-popup-drawer .ast-builder-button-wrap {
    width: 100%;
    max-width: 100%;
  }

  .ast-mobile-popup-drawer .ast-builder-button-wrap .menu-link {
    display: block;
    width: 100%;
  }

  .ast-mobile-popup-drawer .ast-builder-button-wrap .ast-custom-button {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

.site-footer {
  background: #0f1b33;
  color: #d7e3ff;
}

.site-footer .site-primary-footer-wrap,
.site-footer .site-below-footer-wrap {
  background: transparent;
}

.site-footer .widget-title,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
  color: #ffffff;
}

.site-footer a,
.site-footer .menu-link,
.site-footer p,
.site-footer li,
.site-footer .ast-footer-copyright {
  color: #d7e3ff;
}

.site-footer a:hover,
.site-footer .menu-link:hover {
  color: #7fb0ff;
}

.site-footer .site-primary-footer-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .site-below-footer-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Ukryj linki/ikony social w stopce (Astra Footer Builder + Elementor + blok WP). */
.site-footer [data-section^='section-fb-social-icons-'] {
  display: none !important;
}

.site-footer .elementor-widget-social-icons,
.site-footer .wp-block-social-links {
  display: none !important;
}

.site-footer .ast-footer-copyright .locals-footer-copy {
  margin: 0;
}

/* Dane firmy — pierwsza kolumna górnej stopki (primary, sekcja 1). */
.site-footer .site-footer-primary-section-1 .locals-footer-firma-column {
  margin-top: 1rem;
}

.site-footer .site-footer-primary-section-1 .locals-footer-firma-lines {
  margin: 0;
  line-height: 1.65;
  font-size: 0.9375rem;
}

.site-footer .site-footer-primary-section-1 .locals-footer-firma-lines a {
  color: inherit;
}

/* Dolny rząd: prawa kolumna (np. HTML z podpisem realizacji). */
.site-footer .site-footer-below-section-2 .ast-builder-html-element {
  text-align: right;
}

@media (max-width: 980px) {
  .locals-trustbar-grid,
  .locals-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .locals-realizacje-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .locals-about-grid {
    grid-template-columns: 1fr;
  }

  .locals-about-img {
    order: -1;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .locals-card {
    transition: none;
  }

  .locals-card:hover {
    transform: none;
  }

  .locals-btn {
    transition: none;
  }
}

@media (max-width: 640px) {
  .locals-trustbar-grid,
  .locals-cards {
    grid-template-columns: 1fr;
  }

  .locals-realizacje-grid {
    grid-template-columns: 1fr;
  }

  .locals-hero {
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 48px;
  }
}

/*
 * Podstrony — dopasowanie Elementor / HFE / treści do palety Locals (jak strona główna).
 * Zmienne --e-global-* część widżetów bierze z dziedziczenia — nadpisujemy je na scope podstron.
 */
body.locals-subpage {
  --e-global-color-primary: var(--locals-primary);
  --e-global-color-secondary: var(--locals-text);
  --e-global-color-text: var(--locals-muted);
  --e-global-color-accent: var(--locals-accent);
}

body.locals-subpage .elementor-widget-heading .elementor-heading-title,
body.locals-subpage .elementor-widget-theme-post-title .elementor-heading-title {
  color: var(--locals-text) !important;
}

body.locals-subpage .elementor-widget-text-editor,
body.locals-subpage .elementor-widget-text-editor p,
body.locals-subpage .elementor-widget-text-editor li {
  color: var(--locals-muted);
}

body.locals-subpage .elementor-widget-text-editor a {
  color: var(--locals-primary);
  text-underline-offset: 3px;
}

body.locals-subpage .elementor-widget-text-editor a:hover {
  color: var(--locals-primary-dark);
}

body.locals-subpage .elementor-button {
  border-radius: 10px !important;
  font-weight: 600 !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.locals-subpage .elementor-button:focus-visible {
  outline: 3px solid rgba(33, 150, 243, 0.55);
  outline-offset: 3px;
}

body.locals-subpage .elementor-button:not(.elementor-button-link):not(.elementor-bg-transparent) {
  background-color: var(--locals-primary) !important;
  border-color: var(--locals-primary) !important;
  color: #fff !important;
}

body.locals-subpage .elementor-button:not(.elementor-button-link):not(.elementor-bg-transparent):hover {
  background-color: var(--locals-primary-dark) !important;
  border-color: var(--locals-primary-dark) !important;
  color: #fff !important;
}

body.locals-subpage .elementor-button.elementor-button-link {
  background: transparent !important;
  color: var(--locals-primary) !important;
  border-color: transparent !important;
}

body.locals-subpage .elementor-icon-list-item .elementor-icon-list-text {
  color: var(--locals-text) !important;
}

body.locals-subpage .elementor-icon-list-icon i,
body.locals-subpage .elementor-icon-list-icon svg {
  color: var(--locals-primary) !important;
  fill: var(--locals-primary) !important;
}

body.locals-subpage .elementor-widget-divider .elementor-divider-separator {
  border-color: var(--locals-border) !important;
}

body.locals-subpage .elementor-widget-icon-box .elementor-icon-box-title,
body.locals-subpage .elementor-widget-icon-box .elementor-icon-box-title a {
  color: var(--locals-text) !important;
}

body.locals-subpage .elementor-widget-icon-box .elementor-icon-box-description {
  color: var(--locals-muted) !important;
}

body.locals-subpage .elementor-widget-icon-box .elementor-icon {
  color: var(--locals-primary) !important;
  fill: var(--locals-primary) !important;
}

body.locals-subpage .elementor-widget-image-box .elementor-image-box-title {
  color: var(--locals-text) !important;
}

body.locals-subpage .elementor-widget-image-box .elementor-image-box-description {
  color: var(--locals-muted) !important;
}

body.locals-subpage .elementor-tab-title {
  color: var(--locals-text) !important;
}

body.locals-subpage .elementor-tab-title.elementor-active,
body.locals-subpage .elementor-tab-title:hover {
  color: var(--locals-primary) !important;
}

body.locals-subpage .elementor-accordion .elementor-tab-title {
  color: var(--locals-text) !important;
}

body.locals-subpage .elementor-accordion .elementor-tab-title.elementor-active {
  color: var(--locals-primary) !important;
}

body.locals-subpage .elementor-counter .elementor-counter-number-wrapper {
  color: var(--locals-primary) !important;
}

body.locals-subpage .elementor-counter .elementor-counter-title {
  color: var(--locals-text) !important;
}

/* Header Footer Elementor (infokarty itp.) */
body.locals-subpage .hfe-infocard-title {
  color: var(--locals-text) !important;
}

body.locals-subpage .hfe-infocard-text,
body.locals-subpage .hfe-infobox-description {
  color: var(--locals-muted) !important;
}

/* Treść poza Elementorem (np. zwykły edytor bloków) */
body.locals-subpage .entry-content {
  color: var(--locals-muted);
}

body.locals-subpage .entry-content h1,
body.locals-subpage .entry-content h2,
body.locals-subpage .entry-content h3,
body.locals-subpage .entry-content h4 {
  color: var(--locals-text);
}

body.locals-subpage .entry-content a {
  color: var(--locals-primary);
}

body.locals-subpage .entry-content a:hover {
  color: var(--locals-primary-dark);
}

/* Przyciski Locals w treści (np. Oferta): link w .entry-content nie może mieć koloru „link” — ginie na tle primary. */
body.locals-subpage .entry-content a.locals-btn-primary,
body.locals-subpage .entry-content a.locals-btn-primary:hover {
  color: #fff !important;
}

body.locals-subpage .entry-content a.locals-btn-secondary,
body.locals-subpage .entry-content a.locals-btn-secondary:hover {
  color: var(--locals-primary) !important;
}

/* WPForms na podstronach — spójne pola z resztą UI */
body.locals-subpage .wpforms-container input[type='text'],
body.locals-subpage .wpforms-container input[type='email'],
body.locals-subpage .wpforms-container input[type='tel'],
body.locals-subpage .wpforms-container textarea {
  border-radius: 10px !important;
  border-color: var(--locals-border) !important;
}

body.locals-subpage .wpforms-container button[type='submit'],
body.locals-subpage .wpforms-container .wpforms-submit {
  background-color: var(--locals-primary) !important;
  border-color: var(--locals-primary) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
}

body.locals-subpage .wpforms-container button[type='submit']:hover,
body.locals-subpage .wpforms-container .wpforms-submit:hover {
  background-color: var(--locals-primary-dark) !important;
  border-color: var(--locals-primary-dark) !important;
}

/*
 * Pierwszy kontener hero na podstronach Elementor (Flex / klasyka):
 * zostawiamy zdjęcie z Elementora (np. Dom-tyl-1.png), rozjaśniamy przez słabszy overlay niż domyślny.
 */
body.locals-subpage #primary .elementor-section-wrap > .elementor-section:first-child,
body.locals-subpage #primary .elementor .elementor-top-section:first-of-type,
body.locals-subpage #primary .elementor-inner > .e-con.e-parent:first-child,
body.locals-subpage #primary .elementor > .e-con.e-parent:first-child {
  position: relative;
  isolation: isolate;
  --overlay-opacity: 0 !important;
}

/* Lekko rozjaśniona warstwa tła z Elementora (motion-effects — tylko warstwa obrazu, nie tekst) */
body.locals-subpage #primary .elementor-section-wrap > .elementor-section:first-child > .elementor-motion-effects-container > .elementor-motion-effects-layer,
body.locals-subpage #primary .elementor .elementor-top-section:first-of-type > .elementor-motion-effects-container > .elementor-motion-effects-layer,
body.locals-subpage #primary .elementor-inner > .e-con.e-parent:first-child > .elementor-motion-effects-container > .elementor-motion-effects-layer,
body.locals-subpage #primary .elementor > .e-con.e-parent:first-child > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  filter: brightness(1.14) contrast(1.02) saturate(1.05);
}

body.locals-subpage #primary .elementor-section-wrap > .elementor-section:first-child > .elementor-background-overlay,
body.locals-subpage #primary .elementor .elementor-top-section:first-of-type > .elementor-background-overlay,
body.locals-subpage #primary .elementor-inner > .e-con.e-parent:first-child > .elementor-background-overlay,
body.locals-subpage #primary .elementor > .e-con.e-parent:first-child > .elementor-background-overlay {
  opacity: 0 !important;
}

/* Jaśniejszy gradient niż wcześniej + lekki „lift” od bieli — zdjęcie z Elementora widać wyraźniej */
body.locals-subpage #primary .elementor-section-wrap > .elementor-section:first-child::before,
body.locals-subpage #primary .elementor .elementor-top-section:first-of-type::before,
body.locals-subpage #primary .elementor-inner > .e-con.e-parent:first-child::before,
body.locals-subpage #primary .elementor > .e-con.e-parent:first-child::before,
body.locals-subpage #primary .elementor-inner > .e-con.e-parent:first-child > .elementor-motion-effects-container > .elementor-motion-effects-layer::before,
body.locals-subpage #primary .elementor > .e-con.e-parent:first-child > .elementor-motion-effects-container > .elementor-motion-effects-layer::before {
  background-color: transparent !important;
  background-image: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.06) 38%,
      transparent 62%
    ),
    linear-gradient(
      115deg,
      rgba(15, 27, 51, 0.38) 0%,
      rgba(15, 27, 51, 0.2) 48%,
      rgba(21, 74, 159, 0.14) 100%
    ) !important;
  opacity: 1 !important;
  z-index: 1;
}

/* Rozjaśnienie zdjęcia pod gradientem (gdy tło jest na samym kontenerze, bez motion layer) */
body.locals-subpage #primary .elementor-section-wrap > .elementor-section:first-child::after,
body.locals-subpage #primary .elementor .elementor-top-section:first-of-type::after,
body.locals-subpage #primary .elementor-inner > .e-con.e-parent:first-child::after,
body.locals-subpage #primary .elementor > .e-con.e-parent:first-child::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.16);
  mix-blend-mode: soft-light;
}

body.locals-subpage #primary .elementor-section-wrap > .elementor-section:first-child > .elementor-container,
body.locals-subpage #primary .elementor .elementor-top-section:first-of-type > .elementor-container,
body.locals-subpage #primary .elementor-inner > .e-con.e-parent:first-child > .e-con-inner,
body.locals-subpage #primary .elementor > .e-con.e-parent:first-child > .e-con-inner {
  position: relative;
  z-index: 2;
}

body.locals-subpage #primary .elementor-section-wrap > .elementor-section:first-child .elementor-widget-heading .elementor-heading-title,
body.locals-subpage #primary .elementor .elementor-top-section:first-of-type .elementor-widget-heading .elementor-heading-title,
body.locals-subpage #primary .elementor-inner > .e-con.e-parent:first-child .elementor-widget-heading .elementor-heading-title,
body.locals-subpage #primary .elementor > .e-con.e-parent:first-child .elementor-widget-heading .elementor-heading-title,
body.locals-subpage #primary .elementor-section-wrap > .elementor-section:first-child .elementor-widget-theme-post-title .elementor-heading-title,
body.locals-subpage #primary .elementor .elementor-top-section:first-of-type .elementor-widget-theme-post-title .elementor-heading-title,
body.locals-subpage #primary .elementor-inner > .e-con.e-parent:first-child .elementor-widget-theme-post-title .elementor-heading-title,
body.locals-subpage #primary .elementor > .e-con.e-parent:first-child .elementor-widget-theme-post-title .elementor-heading-title {
  color: #fff !important;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

body.locals-subpage #primary .elementor-section-wrap > .elementor-section:first-child .elementor-widget-text-editor,
body.locals-subpage #primary .elementor .elementor-top-section:first-of-type .elementor-widget-text-editor,
body.locals-subpage #primary .elementor-inner > .e-con.e-parent:first-child .elementor-widget-text-editor,
body.locals-subpage #primary .elementor > .e-con.e-parent:first-child .elementor-widget-text-editor,
body.locals-subpage #primary .elementor-section-wrap > .elementor-section:first-child .elementor-widget-text-editor p,
body.locals-subpage #primary .elementor .elementor-top-section:first-of-type .elementor-widget-text-editor p,
body.locals-subpage #primary .elementor-inner > .e-con.e-parent:first-child .elementor-widget-text-editor p,
body.locals-subpage #primary .elementor > .e-con.e-parent:first-child .elementor-widget-text-editor p,
body.locals-subpage #primary .elementor-section-wrap > .elementor-section:first-child .elementor-widget-text-editor li,
body.locals-subpage #primary .elementor .elementor-top-section:first-of-type .elementor-widget-text-editor li,
body.locals-subpage #primary .elementor-inner > .e-con.e-parent:first-child .elementor-widget-text-editor li,
body.locals-subpage #primary .elementor > .e-con.e-parent:first-child .elementor-widget-text-editor li {
  color: rgba(255, 255, 255, 0.94) !important;
}

body.locals-subpage #primary .elementor-section-wrap > .elementor-section:first-child .elementor-widget-text-editor a,
body.locals-subpage #primary .elementor .elementor-top-section:first-of-type .elementor-widget-text-editor a,
body.locals-subpage #primary .elementor-inner > .e-con.e-parent:first-child .elementor-widget-text-editor a,
body.locals-subpage #primary .elementor > .e-con.e-parent:first-child .elementor-widget-text-editor a {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.locals-subpage #primary .elementor-section-wrap > .elementor-section:first-child .elementor-widget-text-editor a:hover,
body.locals-subpage #primary .elementor .elementor-top-section:first-of-type .elementor-widget-text-editor a:hover,
body.locals-subpage #primary .elementor-inner > .e-con.e-parent:first-child .elementor-widget-text-editor a:hover,
body.locals-subpage #primary .elementor > .e-con.e-parent:first-child .elementor-widget-text-editor a:hover {
  color: rgba(255, 255, 255, 0.88) !important;
}

body.locals-subpage #primary .elementor-section-wrap > .elementor-section:first-child .elementor-icon-list-text,
body.locals-subpage #primary .elementor .elementor-top-section:first-of-type .elementor-icon-list-text,
body.locals-subpage #primary .elementor-inner > .e-con.e-parent:first-child .elementor-icon-list-text,
body.locals-subpage #primary .elementor > .e-con.e-parent:first-child .elementor-icon-list-text {
  color: rgba(255, 255, 255, 0.95) !important;
}

body.locals-subpage #primary .elementor-section-wrap > .elementor-section:first-child .elementor-icon-list-icon i,
body.locals-subpage #primary .elementor .elementor-top-section:first-of-type .elementor-icon-list-icon i,
body.locals-subpage #primary .elementor-inner > .e-con.e-parent:first-child .elementor-icon-list-icon i,
body.locals-subpage #primary .elementor > .e-con.e-parent:first-child .elementor-icon-list-icon i,
body.locals-subpage #primary .elementor-section-wrap > .elementor-section:first-child .elementor-icon-list-icon svg,
body.locals-subpage #primary .elementor .elementor-top-section:first-of-type .elementor-icon-list-icon svg,
body.locals-subpage #primary .elementor-inner > .e-con.e-parent:first-child .elementor-icon-list-icon svg,
body.locals-subpage #primary .elementor > .e-con.e-parent:first-child .elementor-icon-list-icon svg {
  color: #fff !important;
  fill: #fff !important;
}

/* -------------------------------------------------------------------------
 * Strona „O nas” (szablon page-o-nas.php) — layout + typografia skanowalna
 * ------------------------------------------------------------------------- */
body.page-o-nas .locals-o-nas {
  width: 100%;
  color: var(--locals-text);
}

.locals-o-nas-intro {
  background: #fff;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--locals-border);
}

.locals-o-nas-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.locals-o-nas-intro__figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 27, 51, 0.12);
  background: var(--locals-border);
}

.locals-o-nas-intro__img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
  object-fit: cover;
}

.locals-o-nas-kicker {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--locals-primary);
}

.locals-o-nas-h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 38rem;
}

.locals-o-nas-lead {
  margin-bottom: 1.75rem;
}

.locals-o-nas-lead p {
  margin: 0 0 0.85rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--locals-muted);
  max-width: 40rem;
}

.locals-o-nas-lead p:last-child {
  margin-bottom: 0;
}

.locals-o-nas-benefits {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.locals-o-nas-benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--locals-bg);
  border: 1px solid var(--locals-border);
  border-radius: 12px;
}

.locals-o-nas-benefit__icon {
  flex-shrink: 0;
  font-size: 1.35rem;
  line-height: 1;
  margin-top: 2px;
}

.locals-o-nas-benefit__title {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 4px;
  color: var(--locals-text);
}

.locals-o-nas-benefit__desc {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--locals-muted);
}

.locals-o-nas-intro-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.locals-o-nas-founder {
  padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(180deg, #fff 0%, var(--locals-bg) 100%);
}

.locals-o-nas-founder__inner {
  max-width: min(920px, 92vw);
}

.locals-o-nas-founder__name {
  margin: 0 0 4px;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  letter-spacing: -0.02em;
}

.locals-o-nas-founder__role {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--locals-primary);
}

.locals-o-nas-founder__quote {
  margin: 0 0 1.25rem;
  padding: 0 0 0 1rem;
  border-left: 4px solid var(--locals-primary);
}

.locals-o-nas-founder__quote p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--locals-muted);
}

.locals-o-nas-founder__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.locals-o-nas-founder__contact a {
  color: var(--locals-primary);
  text-decoration: none;
}

.locals-o-nas-founder__contact a:hover {
  color: var(--locals-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.locals-o-nas-founder__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .locals-o-nas-intro__grid {
    grid-template-columns: 1fr;
  }

  .locals-o-nas-intro__visual {
    order: -1;
  }

  .locals-o-nas-benefits {
    grid-template-columns: 1fr;
  }

  .locals-o-nas-founder__inner {
    text-align: center;
  }

  .locals-o-nas-founder__quote {
    border-left: none;
    border-top: 4px solid var(--locals-primary);
    padding: 1rem 0 0;
    text-align: left;
  }

  .locals-o-nas-founder__contact {
    justify-content: center;
  }

  .locals-o-nas-founder__cta {
    justify-content: center;
  }
}

/* -------------------------------------------------------------------------
 * Oferta — pod cennikiem (Elementor + locals_oferta_after_pricing_markup)
 * ------------------------------------------------------------------------- */
.locals-oferta-after {
  clear: both;
  margin-top: clamp(2.5rem, 6vw, 3.75rem);
  padding-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.locals-oferta-fortress {
  margin-bottom: clamp(2.25rem, 5vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--locals-border);
}

.locals-oferta-fortress__heading {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--locals-text);
}

.locals-oferta-fortress__lead {
  margin: 0 0 clamp(1.75rem, 4vw, 2.35rem);
  max-width: 46rem;
}

.locals-oferta-fortress__lead p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--locals-muted);
}

.locals-oferta-fortress-perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.locals-oferta-fortress-perk {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--locals-card);
  border: 1px solid var(--locals-border);
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(15, 35, 73, 0.06);
}

.locals-oferta-fortress-perk__icon {
  flex-shrink: 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

.locals-oferta-fortress-perk__body {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--locals-muted);
}

.locals-oferta-fortress-perk__body strong {
  color: var(--locals-text);
  font-weight: 600;
}

@media (max-width: 640px) {
  .locals-oferta-fortress-perks {
    grid-template-columns: 1fr;
  }
}

.locals-oferta-after-cta {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 2.75rem);
}

.locals-oferta-after-cta__btn.locals-btn-primary {
  padding: 14px 26px;
  font-size: 1rem;
}

.locals-oferta-why {
  background: var(--locals-card);
  border: 1px solid var(--locals-border);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.35rem);
  box-shadow: 0 10px 40px rgba(15, 35, 73, 0.07);
}

.locals-oferta-why__title {
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--locals-text);
  text-align: center;
}

.locals-oferta-why__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.25rem);
}

@media (min-width: 768px) {
  .locals-oferta-why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.locals-oferta-why__col {
  margin: 0;
}

.locals-oferta-why__subtitle {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--locals-text);
}

.locals-oferta-why__icon {
  flex-shrink: 0;
  line-height: inherit;
}

.locals-oferta-why__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.locals-oferta-why__list li {
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--locals-muted);
}

.locals-oferta-why__list li:last-child {
  margin-bottom: 0;
}

.locals-oferta-why__list strong {
  color: var(--locals-text);
  font-weight: 600;
}

.locals-oferta-why__lead {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--locals-muted);
}

@media (max-width: 767px) {
  .locals-oferta-why__title {
    text-align: left;
  }
}

/* -------------------------------------------------------------------------
 * Materiały do pobrania (page-materialy-do-pobrania.php)
 * ------------------------------------------------------------------------- */
.locals-dl-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(300px, 48vh, 420px);
  display: flex;
  align-items: center;
  padding: clamp(5rem, 12vw, 6.5rem) 0 clamp(2.5rem, 6vw, 3.5rem);
}

.locals-dl-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.locals-dl-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.locals-dl-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(15, 27, 51, 0.82) 0%,
    rgba(15, 27, 51, 0.45) 55%,
    rgba(21, 74, 159, 0.35) 100%
  );
}

.locals-dl-hero__inner {
  position: relative;
  z-index: 1;
}

.locals-dl-hero__title {
  margin: 0 0 12px;
  max-width: 52rem;
  font-size: clamp(2rem, 4vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.locals-dl-hero__lead {
  margin: 0;
  max-width: 44rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
}

.locals-dl-body {
  padding: clamp(2.25rem, 5vw, 3.25rem) 0 clamp(3rem, 7vw, 4.5rem);
  background: var(--locals-bg);
}

.locals-dl-section {
  margin-bottom: clamp(2.5rem, 6vw, 3.75rem);
}

.locals-dl-section:last-child {
  margin-bottom: 0;
}

.locals-dl-section__title {
  margin: 0 0 10px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--locals-primary);
  display: inline-block;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  letter-spacing: -0.02em;
  color: var(--locals-text);
}

.locals-dl-section__intro {
  margin: 0 0 1.5rem;
  max-width: 46rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--locals-muted);
}

.locals-dl-group {
  margin-bottom: 2rem;
}

.locals-dl-group:last-child {
  margin-bottom: 0;
}

.locals-dl-group__label {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--locals-primary-dark);
  letter-spacing: -0.01em;
}

.locals-dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(14px, 3vw, 22px);
}

.locals-dl-grid--general {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  max-width: 520px;
}

.locals-dl-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--locals-border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 28px rgba(15, 27, 51, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.locals-dl-card:hover {
  border-color: rgba(21, 74, 159, 0.35);
  box-shadow: 0 14px 40px rgba(21, 74, 159, 0.15);
  transform: translateY(-3px);
}

.locals-dl-card:focus-visible {
  outline: 3px solid rgba(21, 74, 159, 0.45);
  outline-offset: 3px;
}

.locals-dl-card__thumb {
  aspect-ratio: 16 / 10;
  background: var(--locals-bg);
  overflow: hidden;
}

.locals-dl-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.locals-dl-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 16px 18px 18px;
}

.locals-dl-card__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--locals-text);
}

.locals-dl-card__excerpt {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--locals-muted);
  flex: 1;
}

.locals-dl-card__meta {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--locals-primary);
  letter-spacing: 0.02em;
}

.locals-dl-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--locals-primary);
  color: #fff !important;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(21, 74, 159, 0.25);
}

.locals-dl-card:hover .locals-dl-card__btn {
  background: var(--locals-primary-dark);
}

.locals-dl-card__btn-arrow {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 600px) {
  .locals-dl-grid--general {
    max-width: none;
  }
}
