/* Edpol template — visual system from mockup */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Medium500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-ExtraBold900.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --edpol-bg: #141414;
  --edpol-bg-elevated: #1c1c1c;
  --edpol-bg-card: #1a1a1a;
  --edpol-accent: #2f6fed;
  --edpol-accent-hover: #4580f5;
  --edpol-text: #ffffff;
  --edpol-text-muted: #b0b0b0;
  --edpol-border: rgba(47, 111, 237, 0.55);
  --edpol-border-strong: #2f6fed;
  --edpol-font: "Poppins", "Segoe UI", sans-serif;
  --edpol-font-display: var(--edpol-font);
  --edpol-container: 1180px;
  --edpol-header-h: 4.5rem;
  --edpol-radius: 2px;
  --edpol-focus: 0 0 0 3px rgba(47, 111, 237, 0.55);
  --edpol-space: clamp(1rem, 2.5vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.edpol-site {
  margin: 0;
  min-height: 100vh;
  font-family: var(--edpol-font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--edpol-text);
  background-color: var(--edpol-bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(47, 111, 237, 0.08), transparent 45%),
    linear-gradient(180deg, #121212 0%, #161616 100%);
  background-attachment: fixed;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--edpol-accent);
  text-decoration: none;
}

a:hover {
  color: var(--edpol-accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--edpol-focus);
}

.edpol-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.edpol-skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--edpol-accent);
  color: #fff;
}

.edpol-skip-link:focus {
  top: 1rem;
}

.edpol-container {
  width: min(100% - 2 * var(--edpol-space), var(--edpol-container));
  margin-inline: auto;
}

/* Header */
.edpol-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(16, 16, 16, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Homepage: header floats over full-bleed hero */
body.is-home .edpol-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(10, 10, 14, 0.72) 0%, rgba(10, 10, 14, 0) 100%);
  backdrop-filter: none;
  border-bottom: 0;
}

body.is-home .edpol-header.is-scrolled {
  position: fixed;
  background: rgba(16, 16, 16, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.edpol-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--edpol-header-h);
}

.edpol-header__logo img,
.edpol-header__logo .edpol-logo-img {
  display: block;
  max-height: 2.85rem;
  width: auto;
  height: auto;
}

.edpol-logo-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.edpol-header__logo .edpol-logo-text {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--edpol-text);
  text-transform: none;
}

.edpol-header__logo .edpol-logo-text strong,
.edpol-header__logo .edpol-logo-mark {
  color: var(--edpol-accent);
  font-weight: 700;
}

.edpol-nav-panel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.edpol-header__nav .mod-menu,
.edpol-header__nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.edpol-header__nav a {
  color: var(--edpol-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.edpol-header__nav a:hover,
.edpol-header__nav .active > a,
.edpol-header__nav li.current > a {
  color: var(--edpol-accent);
}

.edpol-header__lang {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.edpol-nav-toggle,
.edpol-nav-close {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--edpol-text);
  cursor: pointer;
  padding: 0.5rem;
}

.edpol-nav-toggle__bars,
.edpol-nav-toggle__bars::before,
.edpol-nav-toggle__bars::after {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.edpol-nav-toggle__bars::before,
.edpol-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.edpol-nav-toggle__bars::before {
  top: -7px;
}

.edpol-nav-toggle__bars::after {
  top: 7px;
}

.edpol-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.55);
  z-index: 980;
}

body.edpol-nav-open {
  overflow: hidden;
  touch-action: none;
}

/* Hero — split: copy left, full-bleed photo right */
.edpol-hero {
  position: relative;
  min-height: clamp(26rem, 62vh, 38rem);
  padding: 0;
  background: #0a0a0e;
  overflow: hidden;
}

.edpol-hero .edpol-hero-layout,
.mod-custom .edpol-hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  grid-template-rows: 1fr;
  align-items: stretch;
  gap: 0;
  min-height: clamp(26rem, 62vh, 38rem);
  width: 100%;
}

.edpol-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  min-height: inherit;
  padding:
    calc(var(--edpol-header-h) + clamp(1.1rem, 2.5vh, 1.75rem))
    clamp(1.25rem, 3vw, 2.5rem)
    clamp(1.5rem, 3.5vh, 2.5rem)
    clamp(1.5rem, 6vw, 6.5rem);
  background: linear-gradient(
    90deg,
    #0a0a0e 0%,
    #0a0a0e 78%,
    rgba(10, 10, 14, 0.55) 100%
  );
}

.edpol-hero-copy h1,
.edpol-hero-copy .edpol-hero-title {
  margin: 0;
  font-family: var(--edpol-font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--edpol-text);
}

.edpol-hero-copy .edpol-brand {
  color: var(--edpol-accent);
}

.edpol-hero-rule {
  display: block;
  width: 3.25rem;
  height: 2px;
  margin: 1.1rem 0 1.25rem;
  background: var(--edpol-accent);
}

.edpol-hero-copy p {
  margin: 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.92rem, 1.25vw, 1.02rem);
  line-height: 1.6;
  font-weight: 400;
}

.edpol-hero-media {
  position: relative;
  z-index: 0;
  align-self: stretch;
  min-height: 100%;
  height: 100%;
  background: #0a0a0e;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  pointer-events: none;
}

.edpol-hero-media::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(2.5rem, 7vw, 6rem);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, #0a0a0e 0%, rgba(10, 10, 14, 0.65) 45%, transparent 100%);
}

.edpol-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 10, 14, 0.12) 0%, transparent 28%, transparent 72%, rgba(10, 10, 14, 0.35) 100%);
}

.edpol-hero-media picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.edpol-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0;
  object-fit: cover;
  object-position: 58% 42%;
  transform: none;
  background: #0a0a0e;
}

/* Large desktop — taller hero, photo fills right column */
@media (min-width: 1025px) {
  .edpol-hero,
  .edpol-hero .edpol-hero-layout,
  .mod-custom .edpol-hero-layout {
    min-height: clamp(34rem, 74vh, 46rem);
  }

  .edpol-hero .edpol-hero-layout,
  .mod-custom .edpol-hero-layout {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  }

  .edpol-hero-copy {
    padding:
      calc(var(--edpol-header-h) + clamp(1.5rem, 3vh, 2.25rem))
      clamp(2rem, 4vw, 3.5rem)
      clamp(2rem, 4vh, 3rem)
      clamp(2rem, 9vw, 9rem);
    background: linear-gradient(
      90deg,
      #0a0a0e 0%,
      #0a0a0e 72%,
      rgba(10, 10, 14, 0.45) 100%
    );
  }

  .edpol-hero-copy h1,
  .edpol-hero-copy .edpol-hero-title {
    font-size: clamp(2.75rem, 3.6vw, 3.85rem);
  }

  .edpol-hero-copy p {
    max-width: 32rem;
    font-size: 1.05rem;
  }

  .edpol-hero-media img {
    object-position: 55% 40%;
  }
}

@media (min-width: 1440px) {
  .edpol-hero,
  .edpol-hero .edpol-hero-layout,
  .mod-custom .edpol-hero-layout {
    min-height: clamp(36rem, 76vh, 48rem);
  }

  .edpol-hero-copy {
    padding-left: clamp(2.5rem, 10vw, 11rem);
  }
}

/* Sections */
.edpol-section {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.edpol-section-title,
.edpol-section-heading,
.edpol-offer .page-header h1,
.edpol-offer h2.moduletitle,
.edpol-applications h2.moduletitle,
.edpol-offer .edpol-section-heading,
.edpol-applications .edpol-section-heading,
.edpol-applications-module .edpol-section-heading {
  margin: 0 0 clamp(1.75rem, 3.5vw, 2.75rem);
  text-align: center;
  font-family: var(--edpol-font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--edpol-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.edpol-section-heading::after,
.edpol-section-title::after,
.edpol-offer h2.moduletitle::after,
.edpol-applications h2.moduletitle::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 2px;
  background: var(--edpol-accent);
}

/* Offer / application cards shared */
.edpol-cards,
.edpol-offer-grid,
.edpol-apps-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
  margin: 0 !important;
  float: none !important;
}

/* Flatten HikaShop wrappers so cards become the only grid items */
.edpol-offer-module .hikashop_category_information,
.edpol-offer-module .hikashop_categories,
.edpol-offer-module .hikashop_products,
.edpol-offer-module .hikashop_subcategories,
.edpol-offer-module .hikashop_subcategories_listing,
.edpol-offer-module .hk-row-fluid,
.edpol-offer-module .hikashop_container,
.edpol-offer-module .hikashop_subcontainer,
.edpol-offer-module .hikashop_subcontainer_border,
.edpol-offer-module .hikashop_category,
.edpol-offer-module .hikashop_product,
.edpol-offer-module [class*="hkc-"],
.edpol-offer-module .hikashop_rtop,
.edpol-offer-module .hikashop_rbottom {
  display: contents !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
}

/* OFERTA cards — equal height; schema padded; photo full-bleed on hover */
.edpol-offer-module .edpol-offer-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.edpol-offer-module .edpol-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  position: relative !important;
  height: 100%;
  min-height: 0 !important;
  aspect-ratio: 3 / 4.2;
  padding: 0 !important;
  overflow: hidden !important;
  isolation: isolate;
  background: #12151c !important;
  border: 1px solid rgba(47, 111, 237, 0.28) !important;
  border-radius: 6px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.edpol-offer-module .edpol-card--offer-swap:hover,
.edpol-offer-module .edpol-card--offer-swap:focus-within {
  border-color: var(--edpol-border-strong) !important;
  box-shadow: 0 0 0 1px rgba(47, 111, 237, 0.45);
  transform: none;
}

.edpol-offer-module .edpol-card__media,
.edpol-offer-module .hikashop_category_image.edpol-card__media {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  flex: none !important;
  background: #12151c !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  z-index: 0;
}

.edpol-offer-module .edpol-card__media img,
.edpol-offer-module .edpol-card__media .edpol-card__img,
.edpol-offer-module .edpol-card--offer-swap .edpol-card__img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.edpol-offer-module .edpol-card--offer-swap .edpol-card__img--schema {
  opacity: 1;
  z-index: 1;
  background: transparent !important;
  /* Smaller default icons — more padding around the graphic */
  inset: auto !important;
  top: 38% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: 52% !important;
  height: 42% !important;
  max-width: 52% !important;
  max-height: 42% !important;
  transform: translate(-50%, -50%);
  object-fit: contain !important;
}

.edpol-offer-module .edpol-card--offer-swap .edpol-card__img--photo {
  opacity: 0;
  z-index: 2;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  background-color: #12151c !important;
  transform: none;
  pointer-events: none;
}

.edpol-offer-module .edpol-card--offer-swap:hover .edpol-card__media,
.edpol-offer-module .edpol-card--offer-swap:focus-within .edpol-card__media,
.edpol-offer-module .edpol-card--offer-swap:active .edpol-card__media {
  background: #12151c !important;
}

.edpol-offer-module .edpol-card--offer-swap:hover,
.edpol-offer-module .edpol-card--offer-swap:focus-within,
.edpol-offer-module .edpol-card--offer-swap:active {
  background: #12151c !important;
}

.edpol-offer-module .edpol-card--offer-swap:hover .edpol-card__img--schema,
.edpol-offer-module .edpol-card--offer-swap:focus-within .edpol-card__img--schema,
.edpol-offer-module .edpol-card--offer-swap:active .edpol-card__img--schema {
  opacity: 0;
}

.edpol-offer-module .edpol-card--offer-swap:hover .edpol-card__img--photo,
.edpol-offer-module .edpol-card--offer-swap:focus-within .edpol-card__img--photo,
.edpol-offer-module .edpol-card--offer-swap:active .edpol-card__img--photo {
  opacity: 1;
  object-fit: cover !important;
  background-color: transparent !important;
}

.edpol-offer-module .edpol-card__title,
.edpol-offer-module .edpol-card__arrow {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
  background: transparent;
  transition: text-shadow 0.25s ease;
}

.edpol-offer-module .edpol-card__title {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0.85rem;
  min-height: 3.1rem;
  display: flex;
  align-items: flex-end;
}

.edpol-offer-module .edpol-card__arrow {
  margin-top: 0.75rem;
  margin-bottom: 1.05rem;
  padding-bottom: 0.15rem;
}

.edpol-offer-module .edpol-card--offer-swap:hover .edpol-card__title,
.edpol-offer-module .edpol-card--offer-swap:focus-within .edpol-card__title,
.edpol-offer-module .edpol-card--offer-swap:active .edpol-card__title,
.edpol-offer-module .edpol-card--offer-swap:hover .edpol-card__arrow,
.edpol-offer-module .edpol-card--offer-swap:focus-within .edpol-card__arrow,
.edpol-offer-module .edpol-card--offer-swap:active .edpol-card__arrow {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
}

/* Soft scrim so title stays readable over full-bleed photo */
.edpol-offer-module .edpol-card--offer-swap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to top, rgba(8, 10, 14, 0.88) 0%, rgba(8, 10, 14, 0.35) 55%, transparent 100%);
  transition: opacity 0.3s ease;
}

.edpol-offer-module .edpol-card--offer-swap:hover::after,
.edpol-offer-module .edpol-card--offer-swap:focus-within::after,
.edpol-offer-module .edpol-card--offer-swap:active::after {
  opacity: 1;
}

.edpol-offer-module br,
.edpol-offer-module div[style*="clear"] {
  display: none !important;
}

/* Kill Hikashop white plate styles inside homepage OFERTA */
.edpol-offer-module div.hikashop_subcontainer,
.edpol-offer-module .hikashop_rtop *,
.edpol-offer-module .hikashop_rbottom *,
.edpol-offer-module div.hikashop_container {
  background: transparent !important;
  text-align: left !important;
}

.edpol-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 26rem;
  padding: 1.15rem 1.1rem 1.15rem;
  background: #12151c !important;
  border: 1px solid rgba(47, 111, 237, 0.35) !important;
  border-radius: 6px;
  color: var(--edpol-text) !important;
  text-align: left !important;
  text-decoration: none !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.edpol-card:hover,
.edpol-card:focus-within {
  border-color: var(--edpol-border-strong) !important;
  box-shadow: 0 0 0 1px rgba(47, 111, 237, 0.35);
  transform: translateY(-2px);
  color: var(--edpol-text) !important;
}

.edpol-card__media {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 12.5rem;
  margin-bottom: 1.1rem;
  padding: 0.5rem;
  background: transparent !important;
  border-radius: 0;
  overflow: hidden;
}

.edpol-card__media picture,
.edpol-card__media img,
.edpol-card__media svg,
.edpol-card__img {
  display: block;
  max-height: 11rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: transparent !important;
}

@media (prefers-reduced-motion: reduce) {
  .edpol-card--offer-swap .edpol-card__img {
    transition: none;
  }
}

.edpol-card__title {
  margin: 0 0 auto;
  font-family: var(--edpol-font-display);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--edpol-text) !important;
  text-align: left !important;
}

.edpol-card__arrow {
  display: inline-flex;
  align-items: center;
  margin-top: 1.1rem;
  color: var(--edpol-accent);
  transition: transform 0.2s ease;
}

.edpol-card__arrow svg {
  display: block;
}

.edpol-card:hover .edpol-card__arrow {
  transform: translateX(5px);
}

/* Applications cards — framed tiles like mockup */
.edpol-app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(180, 190, 210, 0.28);
  border-radius: 10px;
  background: transparent;
  color: var(--edpol-text);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.edpol-app-card:hover,
.edpol-app-card:focus-within {
  border-color: rgba(47, 111, 237, 0.55);
  transform: translateY(-2px);
  color: var(--edpol-text);
}

.edpol-app-card__media {
  display: block;
  overflow: hidden;
  border-radius: 9px 9px 0 0;
  aspect-ratio: 3 / 4;
  background: #0d1016;
}

.edpol-app-card__media > img,
.edpol-app-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  min-height: 0;
  transition: transform 0.35s ease;
}

.edpol-app-card__placeholder {
  background: var(--edpol-bg-elevated);
  min-height: 14rem;
}

.edpol-app-card:hover .edpol-app-card__media > img {
  transform: scale(1.03);
}

.edpol-app-card__label {
  position: static;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.05rem 1.25rem;
  background: transparent;
  min-height: 4.25rem;
}

.edpol-app-card__title {
  font-family: var(--edpol-font-display);
  font-size: clamp(0.98rem, 1.25vw, 1.15rem);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.edpol-app-card__arrow {
  color: var(--edpol-accent);
  flex-shrink: 0;
  display: inline-flex;
  margin-top: 0.15rem;
  transition: transform 0.2s ease;
}

.edpol-app-card:hover .edpol-app-card__arrow {
  transform: translateX(4px);
}

/* Main / inner pages */
.edpol-main-wrap {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.edpol-main-wrap--home {
  padding-top: 0;
  padding-bottom: 0;
}

.is-home .edpol-main-wrap--home .edpol-content:empty,
.is-home .edpol-main-wrap--home .edpol-content > :only-child:empty {
  display: none;
}

.is-home .edpol-main-wrap--home {
  display: none;
}

.is-home.has-component-output .edpol-main-wrap--home {
  display: block;
}

.edpol-main-grid--sidebar {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.edpol-content {
  min-width: 0;
}

.edpol-content .page-header h1,
.edpol-content h1 {
  color: var(--edpol-text);
  font-weight: 600;
}

.edpol-content p,
.edpol-content li {
  color: var(--edpol-text-muted);
}

.edpol-content .item-page,
.edpol-content .blog,
.edpol-sidebar .moduletable {
  background: transparent;
}

.edpol-sidebar .moduletable {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--edpol-bg-elevated);
}

.edpol-sidebar h3,
.edpol-sidebar .moduletitle {
  margin-top: 0;
  color: var(--edpol-text);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Footer — 3-column layout matching mockup */
.edpol-footer {
  margin-top: auto;
  padding: clamp(3rem, 6vw, 4.5rem) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a0c10;
}

.edpol-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  align-items: start;
}

.edpol-footer__about p,
.edpol-footer-lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 22rem;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.edpol-footer__about img,
.edpol-footer__about .edpol-logo-img {
  display: block;
  max-height: 4rem;
  width: auto;
  height: auto;
  margin-bottom: 0;
}

.edpol-footer-logo {
  margin: 0 0 1.15rem;
}

.edpol-footer-logo a {
  display: inline-flex;
}

.edpol-footer__contact h2,
.edpol-footer__contact h3,
.edpol-footer__contact .edpol-footer-heading {
  margin: 0 0 1.15rem;
  color: var(--edpol-accent);
  font-family: var(--edpol-font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.edpol-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.edpol-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--edpol-text);
  font-size: 0.95rem;
  line-height: 1.45;
}

.edpol-contact-list a {
  color: var(--edpol-text);
}

.edpol-contact-list a:hover {
  color: var(--edpol-accent);
}

.edpol-contact-list svg,
.edpol-contact-list .edpol-icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--edpol-accent);
  margin-top: 0.15rem;
}

.edpol-contact-list img.edpol-icon {
  width: 1.15rem;
  height: 1.15rem;
  filter: invert(37%) sepia(98%) saturate(1800%) hue-rotate(205deg) brightness(95%) contrast(95%);
}

.edpol-footer__social {
  padding-top: 0.15rem;
}

.edpol-social {
  display: flex;
  gap: 0.75rem;
}

.edpol-social__btn,
.edpol-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(47, 111, 237, 0.65);
  background: transparent;
  color: var(--edpol-accent);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.edpol-social__btn:hover,
.edpol-social a:hover {
  background: rgba(47, 111, 237, 0.12);
  border-color: var(--edpol-accent);
  color: var(--edpol-accent-hover);
}

.edpol-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.1rem 0 1.35rem;
  color: #7a7a7a;
  font-size: 0.85rem;
}

.edpol-footer__legal .edpol-container,
.edpol-legal-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.edpol-footer__legal a {
  color: #7a7a7a;
}

.edpol-footer__legal a:hover {
  color: var(--edpol-text);
}

/* Forms */
.edpol-content input[type="text"],
.edpol-content input[type="email"],
.edpol-content input[type="tel"],
.edpol-content input[type="password"],
.edpol-content textarea,
.edpol-content select {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--edpol-radius);
  background: var(--edpol-bg-elevated);
  color: var(--edpol-text);
}

.edpol-content .btn,
.edpol-content button[type="submit"],
.edpol-content .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: var(--edpol-radius);
  background: var(--edpol-accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.edpol-content .btn:hover,
.edpol-content button[type="submit"]:hover {
  background: var(--edpol-accent-hover);
  color: #fff;
}

/* System messages */
#system-message-container .alert {
  border-radius: var(--edpol-radius);
}

/* GTranslate — approximate PL | EN look */
.edpol-header__lang .switcher,
.edpol-header__lang .gtranslate_wrapper,
.edpol-header__lang select {
  color: var(--edpol-text);
  background: transparent;
  border: 0;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edpol-header__lang a,
.edpol-header__lang .gt-current-lang {
  color: var(--edpol-text-muted);
  margin: 0 0.15rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.edpol-header__lang a:hover,
.edpol-header__lang a.glink.gt-current-lang,
.edpol-header__lang .gt-current-lang {
  color: var(--edpol-accent);
}

.edpol-header__lang a + a::before {
  content: "|";
  margin-right: 0.45rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
  pointer-events: none;
}

/* Tablet / laptop */
@media (max-width: 1024px) {
  .edpol-cards,
  .edpol-offer-grid,
  .edpol-apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .edpol-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .edpol-footer__social {
    grid-column: 1 / -1;
  }

  .edpol-main-grid--sidebar {
    grid-template-columns: 1fr;
  }
}

/* Tablet — stacked hero (image above copy) */
@media (max-width: 1024px) and (min-width: 768px) {
  .edpol-hero {
    min-height: auto;
  }

  .edpol-hero .edpol-hero-layout,
  .mod-custom .edpol-hero-layout {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .edpol-hero-media {
    position: relative;
    inset: auto;
    order: -1;
    width: 100%;
    height: clamp(15rem, 40vh, 22rem);
    min-height: 15rem;
    flex-shrink: 0;
    pointer-events: auto;
  }

  .edpol-hero-media::before {
    content: none;
  }

  .edpol-hero-media::after {
    content: none;
  }

  .edpol-hero-media img {
    object-position: 55% 45%;
    transform: none;
  }

  .edpol-hero-copy {
    order: 1;
    max-width: none;
    min-height: auto;
    padding:
      1.5rem
      clamp(1.25rem, 5vw, 2rem)
      1.75rem;
    background: #0a0a0e;
  }

  .edpol-hero-copy .edpol-hero-title {
    font-size: clamp(2rem, 7vw, 2.75rem);
  }

  .edpol-app-card__media {
    aspect-ratio: 3 / 3.6;
  }
}

/* Phone */
@media (max-width: 767px) {
  :root {
    --edpol-header-h: 3.75rem;
    --edpol-space: 1rem;
  }

  .edpol-header__inner {
    min-height: var(--edpol-header-h);
    gap: 0.75rem;
  }

  .edpol-header__logo .edpol-logo-text {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .edpol-header__logo img,
  .edpol-header__logo .edpol-logo-img {
    max-height: 2.15rem;
  }

  .edpol-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    min-width: 2.75rem;
    min-height: 2.75rem;
    z-index: 960;
  }

  body.edpol-nav-open .edpol-nav-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .edpol-nav-panel {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    margin: 0;
    padding: 4.5rem 1.5rem 2rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2rem;
    background: #0a0a0e;
    border: 0;
    box-sizing: border-box;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.25s ease, visibility 0.25s ease;
    visibility: hidden;
    pointer-events: none;
    z-index: 1000;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.edpol-nav-open .edpol-nav-panel {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .edpol-nav-close {
    display: none;
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    line-height: 1;
    z-index: 2;
  }

  body.edpol-nav-open .edpol-nav-close {
    display: inline-flex;
  }

  .edpol-nav-close[hidden] {
    display: none !important;
  }

  .edpol-header__nav {
    width: 100%;
  }

  .edpol-header__nav .mod-menu,
  .edpol-header__nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .edpol-header__nav li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .edpol-header__nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.16em;
  }

  .edpol-header__lang {
    padding-top: 0.75rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .edpol-header__lang a {
    display: inline-block;
    padding: 0.4rem 0.15rem;
  }

  .edpol-hero {
    min-height: clamp(24rem, 58vh, 32rem);
    background: #0a0a0e;
  }

  .edpol-hero .edpol-hero-layout,
  .mod-custom .edpol-hero-layout {
    display: block;
    position: relative;
    min-height: clamp(24rem, 58vh, 32rem);
  }

  .edpol-hero-media {
    position: absolute;
    inset: 0;
    order: unset;
    width: 100%;
    height: 100%;
    min-height: 100%;
    pointer-events: none;
  }

  .edpol-hero-media::before {
    content: none;
  }

  .edpol-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(10, 10, 14, 0.15) 0%,
      rgba(10, 10, 14, 0.2) 28%,
      rgba(10, 10, 14, 0.55) 52%,
      rgba(10, 10, 14, 0.88) 72%,
      rgba(10, 10, 14, 0.97) 100%
    );
  }

  .edpol-hero-media img {
    object-fit: cover;
    object-position: 62% 38%;
    transform: none;
    height: 100%;
  }

  .edpol-hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    order: unset;
    min-height: clamp(24rem, 58vh, 32rem);
    max-width: none;
    padding:
      calc(var(--edpol-header-h) + 0.35rem)
      1.25rem
      1.5rem;
    background: transparent;
  }

  .edpol-hero-copy .edpol-hero-title {
    font-size: clamp(2.05rem, 9.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 0;
  }

  .edpol-hero-rule {
    width: 2.75rem;
    margin: 1.15rem 0 1.2rem;
  }

  .edpol-hero-copy p {
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 22rem;
    color: rgba(255, 255, 255, 0.9);
  }

  .edpol-section {
    padding: 2rem 0;
  }

  .edpol-section-heading,
  .edpol-offer .edpol-section-heading,
  .edpol-applications .edpol-section-heading {
    letter-spacing: 0.14em;
    margin-bottom: 1.25rem;
  }

  .edpol-cards,
  .edpol-offer-grid,
  .edpol-apps-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .edpol-card {
    min-height: 0;
    padding: 1.15rem;
  }

  .edpol-card__media {
    min-height: 7rem;
  }

  .edpol-app-card__media {
    aspect-ratio: 4 / 3.4;
  }

  .edpol-app-card__label {
    padding: 1rem 0.95rem 1.1rem;
  }

  .edpol-app-card__title {
    font-size: 1rem;
  }

  .edpol-footer {
    padding-top: 2.25rem;
  }

  .edpol-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-bottom: 1.75rem;
  }

  .edpol-footer__social {
    grid-column: auto;
  }

  .edpol-footer__legal .edpol-container,
  .edpol-legal-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .edpol-main-wrap {
    padding: 1.25rem 0 2.5rem;
  }
}

/* Narrow phones: 2-col offer optional at mid-small — keep 1 col for clarity */
@media (min-width: 480px) and (max-width: 767px) {
  .edpol-cards,
  .edpol-offer-grid,
  .edpol-apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .edpol-app-card__media {
    aspect-ratio: 1 / 1;
  }
}

@media (min-width: 768px) {
  .edpol-nav-panel {
    position: fixed;
    top: 0;
    left: 50%;
    right: auto;
    bottom: auto;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    width: min(100% - 2 * var(--edpol-space), var(--edpol-container));
    max-width: min(100% - 2 * var(--edpol-space), var(--edpol-container));
    height: var(--edpol-header-h);
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    transform: translateX(-50%) !important;
    visibility: visible !important;
    pointer-events: none;
    overflow: visible;
    z-index: 902;
  }

  .edpol-nav-panel > * {
    pointer-events: auto;
  }

  .edpol-nav-panel .edpol-header__nav .mod-menu,
  .edpol-nav-panel .edpol-header__nav ul {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
  }

  .edpol-nav-panel .edpol-header__nav li {
    width: auto;
    border-bottom: 0;
  }

  .edpol-nav-panel .edpol-header__nav a {
    display: inline;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
  }

  .edpol-nav-panel .edpol-header__lang {
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
  }

  .edpol-nav-close {
    display: none !important;
  }
}

/* Contact page — map + details, analogous to edpol.eu/kontakt.html */
.edpol-contact-page {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
  margin: 0.5rem 0 1rem;
}

.edpol-contact-page__brand,
.edpol-contact-page__title {
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--edpol-text);
  font-family: var(--edpol-font);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.edpol-contact-page__map-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(47, 111, 237, 0.45);
  background: var(--edpol-bg-elevated);
  aspect-ratio: 4 / 3;
  min-height: 280px;
}

.edpol-contact-page__map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 280px;
}

.edpol-contact-page__info {
  display: grid;
  gap: 1.35rem;
}

.edpol-contact-page__block {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
}

.edpol-contact-page__icon {
  display: inline-flex;
  color: var(--edpol-accent);
  margin-top: 0.15rem;
}

.edpol-contact-page__label {
  display: block;
  margin: 0 0 0.35rem;
  color: var(--edpol-text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.edpol-contact-page__label--sub {
  margin-top: 1rem;
}

.edpol-contact-page__value {
  margin: 0;
  color: var(--edpol-text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.edpol-contact-page__value a {
  color: var(--edpol-accent);
}

.edpol-contact-page__value a:hover {
  color: var(--edpol-accent-hover);
}

.edpol-contact-page__note {
  color: var(--edpol-text-muted);
  font-size: 0.9em;
}

.item-page:has(.edpol-contact-page) .page-header {
  display: none;
}

@media (max-width: 899px) {
  .edpol-contact-page {
    grid-template-columns: 1fr;
  }

  .edpol-contact-page__map-frame {
    aspect-ratio: 16 / 10;
  }
}
