@charset "utf-8";
/* ==========================================================================
   EXTRA PONYVA — ep design system v2 (2026-08-18)
   --------------------------------------------------------------------------
   Visual reference: the KLDENT visual system (composition logic, spacing
   rhythm, card/CTA/footer thinking, responsive behaviour). Nothing is copied
   from it — no KLDENT/PrimeDental/Bootstrap markup, selector, class name or
   rule is present here. This file is written from scratch in the `ep-` space
   and carries Extra Ponyva's own brand: navy/steel palette, own logo, own
   photography, own copy.

   Character brief: industrial and precise rather than clinical. Squarer radii
   than the reference, blueprint-style rules on eyebrows and headings, a steel
   secondary, no mint/teal anywhere.
   ========================================================================== */

@layer reset, tokens, base, layout, components, utilities, responsive;

/* -------------------------------------------------------------- reset --- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased;
         -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
  body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
  ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
  a { color: inherit; text-decoration: none; }
  img, svg, video { display: block; max-width: 100%; }
  img { height: auto; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { background: none; border: 0; cursor: pointer; }
  address { font-style: normal; }
  ::selection { background: var(--ep-accent); color: #fff; }
}

/* ------------------------------------------------------------- tokens --- */
@layer tokens {
  :root {
    /* Extra Ponyva brand */
    --ep-navy:         #202c46;
    --ep-ink:          #172238;
    --ep-accent:       #2d4a7f;
    --ep-accent-deep:  #1f3a68;
    --ep-accent-soft:  #eaf0f8;
    --ep-steel:        #798fa7;
    --ep-steel-deep:   #5e739b;

    /* text */
    --ep-body:   #47566d;
    --ep-muted:  #6c7a90;

    /* surfaces */
    --ep-surface:     #ffffff;
    --ep-surface-alt: #f2f6fa;
    --ep-line:        #dde5ee;
    --ep-line-soft:   #eaeff6;

    /* shape — squarer than the reference, for an industrial read */
    --ep-r-s: 10px;
    --ep-r:   14px;
    --ep-r-l: 20px;

    /* elevation */
    --ep-shadow-s: 0 4px 14px rgba(23, 34, 56, .06);
    --ep-shadow:   0 14px 38px rgba(23, 34, 56, .10);
    --ep-shadow-l: 0 26px 68px rgba(23, 34, 56, .16);

    /* type — Extra Ponyva's existing pair */
    --ep-font-body: 'Montserrat', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    --ep-font-head: 'Red Hat Display', 'Montserrat', system-ui, Arial, sans-serif;

    /* structure */
    --ep-container: 1240px;
    --ep-measure:   992px;
    --ep-gutter:    clamp(20px, 4vw, 40px);
    --ep-nav-h:     84px;
    --ep-section:   clamp(56px, 3rem + 3.5vw, 108px);

    --ep-ease: cubic-bezier(.4, 0, .2, 1);
  }
}

/* --------------------------------------------------------------- base --- */
@layer base {
  body {
    font-family: var(--ep-font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ep-body);
    background: var(--ep-surface);
    overflow-x: hidden;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--ep-font-head);
    color: var(--ep-ink);
    line-height: 1.16;
    letter-spacing: -.015em;
  }
  h1 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.3rem); font-weight: 800; }
  h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.45rem); font-weight: 800; }
  h3 { font-size: clamp(1.3rem, 1.1rem + .95vw, 1.85rem); font-weight: 700; }
  h4 { font-size: clamp(1.15rem, 1.05rem + .55vw, 1.45rem); font-weight: 700; }
  h5 { font-size: 1.08rem; font-weight: 700; }
  h6 { font-size: 1rem; font-weight: 700; }

  p { color: var(--ep-body); }
  strong { color: var(--ep-ink); font-weight: 700; }
  a { color: var(--ep-accent); text-underline-offset: 3px; transition: color .2s ease; }
  a:hover { color: var(--ep-accent-deep); }

  :focus-visible { outline: 3px solid var(--ep-accent); outline-offset: 3px; border-radius: 6px; }
}

/* ------------------------------------------------------------- layout --- */
@layer layout {
  .ep-container { width: 100%; max-width: var(--ep-container);
                  margin-inline: auto; padding-inline: var(--ep-gutter); }
  .ep-measure   { max-width: var(--ep-measure); margin-inline: auto; }

  .ep-section        { padding-block: var(--ep-section); }
  .ep-section--tint  { background: var(--ep-surface-alt); position: relative; }
  .ep-section--dark  { background: var(--ep-navy); }
  .ep-section--flush-top { padding-top: 0; }

  /* faint blueprint hairlines on tinted bands — an industrial texture cue */
  .ep-section--tint::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: repeating-linear-gradient(135deg,
      rgba(121, 143, 167, .07) 0 1px, transparent 1px 22px);
  }
  .ep-section--tint > * { position: relative; }

  .ep-grid { display: grid; gap: clamp(20px, 1.4rem + 1vw, 32px); }
  .ep-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .ep-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .ep-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .ep-split   { display: grid; grid-template-columns: 1.05fr .95fr;
                gap: clamp(28px, 2rem + 2.5vw, 64px); align-items: center; }
}

/* --------------------------------------------------------- components --- */
@layer components {

  .ep-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

  /* --- section heads ---------------------------------------------------- */
  /* eyebrow with a short measure-rule: blueprint annotation, not a label chip */
  .ep-eyebrow {
    display: inline-flex; align-items: center; gap: .7rem;
    font-family: var(--ep-font-body); font-weight: 700; font-size: .78rem;
    letter-spacing: .18em; text-transform: uppercase; color: var(--ep-accent);
    margin-bottom: .7rem;
  }
  .ep-eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--ep-steel); flex: 0 0 auto; }

  .ep-lead { font-size: clamp(1rem, .96rem + .28vw, 1.16rem); color: var(--ep-muted); max-width: 66ch; }
  .ep-head { max-width: 720px; }
  .ep-head--center { text-align: center; margin-inline: auto; }
  .ep-head--center .ep-lead { margin-inline: auto; }
  .ep-head--center .ep-eyebrow { justify-content: center; }
  .ep-head + * { margin-top: clamp(28px, 2rem + 1vw, 48px); }

  /* two-segment rule above a heading — a scale marking, EP's own motif */
  .ep-ruled { position: relative; padding-top: 1.5rem; }
  .ep-ruled::before { content: ''; position: absolute; top: 0; left: 0;
                      width: 30px; height: 3px; border-radius: 2px; background: var(--ep-accent); }
  .ep-ruled::after  { content: ''; position: absolute; top: 0; left: 36px;
                      width: 10px; height: 3px; border-radius: 2px; background: var(--ep-steel); }
  .ep-head--center .ep-ruled::before { left: 50%; transform: translateX(-23px); }
  .ep-head--center .ep-ruled::after  { left: 50%; transform: translateX(13px); }
  /* centered heads carry the rule on the heading only, not twice */
  .ep-head--center .ep-eyebrow::before { display: none; }

  /* --- buttons ---------------------------------------------------------- */
  .ep-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    font-family: var(--ep-font-body); font-weight: 600; font-size: .96rem;
    padding: .82rem 1.6rem; border-radius: var(--ep-r-s);
    border: 1.5px solid transparent; white-space: nowrap; line-height: 1.3;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease,
                border-color .2s ease, color .2s ease;
  }
  .ep-btn svg { width: 18px; height: 18px; flex: 0 0 auto; transition: transform .2s ease; }
  .ep-btn:hover svg { transform: translateX(3px); }
  .ep-btn--lg { padding: .98rem 2rem; font-size: 1.02rem; }

  .ep-btn--primary { background: var(--ep-accent); color: #fff; border-color: var(--ep-accent);
                     box-shadow: 0 10px 24px rgba(45, 74, 127, .26); }
  .ep-btn--primary svg, .ep-btn--primary svg * { fill: #fff; }
  .ep-btn--primary:hover { background: var(--ep-accent-deep); border-color: var(--ep-accent-deep);
                           color: #fff; transform: translateY(-2px);
                           box-shadow: 0 16px 32px rgba(45, 74, 127, .32); }

  .ep-btn--ghost { background: transparent; color: var(--ep-ink); border-color: var(--ep-line); }
  .ep-btn--ghost svg, .ep-btn--ghost svg * { fill: var(--ep-accent); }
  .ep-btn--ghost:hover { background: var(--ep-accent-soft); border-color: var(--ep-steel);
                         color: var(--ep-ink); transform: translateY(-2px); }

  .ep-btn--light { background: #fff; color: var(--ep-navy); box-shadow: var(--ep-shadow-s); }
  .ep-btn--light svg, .ep-btn--light svg * { fill: var(--ep-accent); }
  .ep-btn--light:hover { background: var(--ep-accent-soft); color: var(--ep-navy); transform: translateY(-2px); }

  .ep-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
  .ep-actions--center { justify-content: center; }

  .ep-textlink { display: inline-flex; align-items: center; gap: .45rem;
                 font-weight: 600; color: var(--ep-accent); font-size: .95rem; }
  .ep-textlink svg { width: 16px; height: 16px; transition: transform .2s ease; }
  .ep-textlink svg * { fill: currentColor; }
  .ep-textlink:hover { color: var(--ep-accent-deep); }
  .ep-textlink:hover svg { transform: translateX(4px); }

  /* --- header ----------------------------------------------------------- */
  .ep-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
    backdrop-filter: saturate(150%) blur(12px);
    border-bottom: 1px solid rgba(221, 229, 238, .9);
    transition: box-shadow .25s ease, background-color .25s ease;
  }
  .ep-header.is-scrolled { background: rgba(255, 255, 255, .97);
                           box-shadow: 0 10px 30px rgba(23, 34, 56, .08); }
  .ep-header__bar { display: flex; align-items: center; gap: 1.2rem;
                    min-height: var(--ep-nav-h); padding-block: .55rem; }

  .ep-brand { flex: 0 0 auto; display: inline-flex; align-items: center; }
  .ep-brand svg { height: 42px; width: auto; aspect-ratio: 619.2 / 439.54; }
  .ep-brand--invert svg * { fill: #fff !important; }

  .ep-nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
  .ep-nav__item { position: relative; }
  .ep-nav__link { display: inline-flex; align-items: center; gap: .3rem;
                  font-family: var(--ep-font-body); font-weight: 600; font-size: .9rem;
                  color: var(--ep-ink); padding: .5rem .68rem; border-radius: var(--ep-r-s);
                  white-space: nowrap; position: relative;
                  transition: color .18s ease, background-color .18s ease; }
  .ep-nav__link:hover { color: var(--ep-accent); background: var(--ep-accent-soft); }
  .ep-nav__chev { width: 11px; height: 11px; transition: transform .25s var(--ep-ease); }
  .ep-nav__chev * { fill: var(--ep-steel); }
  .ep-nav__item.is-current > .ep-nav__link { color: var(--ep-accent); }
  .ep-nav__item.is-current > .ep-nav__link::after {
    content: ''; position: absolute; left: .68rem; right: .68rem; bottom: .18rem;
    height: 2px; border-radius: 2px; background: var(--ep-accent);
  }

  .ep-drop { position: absolute; top: calc(100% + .5rem); left: 0; min-width: 288px;
             background: #fff; border: 1px solid var(--ep-line); border-radius: var(--ep-r);
             box-shadow: var(--ep-shadow); padding: .5rem; z-index: 60;
             opacity: 0; visibility: hidden; transform: translateY(6px);
             transition: opacity .18s ease, transform .18s ease, visibility .18s; }
  .ep-nav__item--drop:hover .ep-drop,
  .ep-nav__item--drop:focus-within .ep-drop,
  .ep-nav__item--drop.is-open .ep-drop { opacity: 1; visibility: visible; transform: none; }
  .ep-nav__item--drop:hover .ep-nav__chev,
  .ep-nav__item--drop.is-open .ep-nav__chev { transform: rotate(180deg); }
  .ep-drop a { display: block; padding: .55rem .8rem; border-radius: 8px;
               color: var(--ep-ink); font-size: .92rem; font-weight: 500; }
  .ep-drop a:hover { background: var(--ep-accent-soft); color: var(--ep-accent); }

  .ep-burger { display: none; width: 46px; height: 44px; border: 1px solid var(--ep-line);
               border-radius: var(--ep-r-s); align-items: center; justify-content: center;
               flex: 0 0 auto; margin-left: auto; }
  .ep-burger span { position: relative; width: 22px; height: 2px; border-radius: 2px;
                    background: var(--ep-navy); display: block; }
  .ep-burger span::before, .ep-burger span::after {
    content: ''; position: absolute; left: 0; width: 22px; height: 2px;
    border-radius: 2px; background: var(--ep-navy); }
  .ep-burger span::before { top: -7px; }
  .ep-burger span::after  { top: 7px; }

  /* --- drawer ----------------------------------------------------------- */
  .ep-scrim { position: fixed; inset: 0; background: rgba(9, 16, 28, .5); z-index: 110;
              opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
  .ep-scrim.is-open { opacity: 1; visibility: visible; }
  .ep-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); z-index: 120;
               background: #fff; transform: translateX(100%); transition: transform .3s var(--ep-ease);
               display: flex; flex-direction: column; overflow-y: auto; }
  .ep-drawer.is-open { transform: none; }
  .ep-drawer__head { display: flex; align-items: center; justify-content: space-between;
                     padding: 1rem 1.25rem; border-bottom: 1px solid var(--ep-line); }
  .ep-drawer__close { width: 44px; height: 44px; border: 1px solid var(--ep-line);
                      border-radius: var(--ep-r-s); display: grid; place-items: center; }
  .ep-drawer__close svg { width: 18px; height: 18px; }
  .ep-drawer__close svg * { fill: var(--ep-navy); }
  .ep-drawer__nav { padding: 1rem 1.25rem 2rem; }
  .ep-drawer__link { display: flex; align-items: center; justify-content: space-between;
                     padding: .78rem .25rem; font-weight: 600; font-size: 1.02rem;
                     color: var(--ep-ink); border-bottom: 1px solid var(--ep-line); }
  .ep-drawer__link:hover { color: var(--ep-accent); }
  .ep-drawer__toggle { width: 100%; display: flex; align-items: center; justify-content: space-between;
                       padding: .78rem .25rem; font-family: var(--ep-font-body); font-weight: 600;
                       font-size: 1.02rem; color: var(--ep-ink); border-bottom: 1px solid var(--ep-line); }
  .ep-drawer__toggle svg { width: 14px; height: 14px; transition: transform .25s var(--ep-ease); }
  .ep-drawer__toggle svg * { fill: var(--ep-steel); }
  .ep-drawer__toggle.is-open svg { transform: rotate(180deg); }
  .ep-drawer__sub { max-height: 0; overflow: hidden; transition: max-height .3s var(--ep-ease); }
  .ep-drawer__sub a { display: block; padding: .55rem .25rem .55rem 1.1rem; font-size: .93rem;
                      color: var(--ep-muted); border-bottom: 1px solid var(--ep-line); }
  .ep-drawer__sub a:hover { color: var(--ep-accent); }
  .ep-drawer__meta { margin-top: 1.4rem; display: grid; gap: .55rem; }
  .ep-drawer__meta a { display: flex; align-items: center; gap: .6rem; font-weight: 600;
                       font-size: .94rem; color: var(--ep-ink); }
  .ep-drawer__meta svg { width: 17px; height: 17px; flex: 0 0 auto; }
  .ep-drawer__meta svg * { fill: var(--ep-accent); }
  .ep-drawer__cta { margin-top: 1.4rem; width: 100%; }

  /* --- hero ------------------------------------------------------------- */
  .ep-hero { position: relative; overflow: hidden;
             padding-block: clamp(40px, 2.5rem + 2.5vw, 76px) clamp(48px, 3rem + 3vw, 96px);
             background: linear-gradient(168deg, #fff 0%, var(--ep-accent-soft) 44%, #fff 100%); }
  .ep-hero::before { content: ''; position: absolute; inset: auto auto -190px -150px;
                     width: 440px; height: 440px; pointer-events: none;
                     background: radial-gradient(circle, rgba(121, 143, 167, .22), transparent 68%); }
  .ep-hero::after  { content: ''; position: absolute; inset: -120px -160px auto auto;
                     width: 380px; height: 380px; pointer-events: none;
                     background: radial-gradient(circle, rgba(45, 74, 127, .12), transparent 66%); }
  .ep-hero > * { position: relative; z-index: 1; }

  .ep-badge { display: inline-flex; align-items: center; gap: .55rem; background: #fff;
              border: 1px solid var(--ep-line); border-radius: 999px; padding: .48rem .95rem;
              box-shadow: var(--ep-shadow-s); font-size: .86rem; font-weight: 600;
              color: var(--ep-ink); margin-bottom: 1.1rem; }
  .ep-badge svg { width: 15px; height: 15px; }
  .ep-badge svg * { fill: var(--ep-accent); }

  .ep-hero__title { margin-bottom: .9rem; }
  .ep-hero__lead  { color: var(--ep-body); max-width: 36rem; margin-bottom: 1.3rem; }
  .ep-hero__actions { margin-top: 1.6rem; }

  .ep-checks { display: grid; gap: .65rem; margin-top: 1.3rem; }
  .ep-checks li { display: flex; align-items: flex-start; gap: .7rem;
                  font-weight: 600; color: var(--ep-ink); font-size: 1rem; line-height: 1.5; }
  .ep-checks__mark { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px;
                     background: var(--ep-accent-soft); display: grid; place-items: center; margin-top: .16rem; }
  .ep-checks__mark svg { width: 12px; height: 12px; }
  .ep-checks__mark svg * { fill: var(--ep-accent); }

  .ep-media { position: relative; border-radius: var(--ep-r-l); overflow: hidden;
              box-shadow: var(--ep-shadow-l); aspect-ratio: 4 / 3; background: var(--ep-accent-soft); }
  .ep-media img { width: 100%; height: 100%; object-fit: cover; }
  .ep-media--wide { aspect-ratio: 16 / 11; }

  /* slides */
  .ep-slides { display: grid; }
  .ep-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .55s ease; }
  .ep-slide.is-active { opacity: 1; visibility: visible; }
  .ep-dots { display: flex; gap: .3rem; margin-top: 1.6rem; }
  .ep-dots button { width: 44px; height: 26px; position: relative; padding: 0; }
  .ep-dots button::before { content: ''; position: absolute; left: 5px; right: 5px; top: 11px;
                            height: 4px; border-radius: 4px; background: var(--ep-line);
                            transition: background-color .2s ease, left .2s ease, right .2s ease; }
  .ep-dots button:hover::before { background: var(--ep-steel); }
  .ep-dots button.is-active::before { background: var(--ep-accent); left: 2px; right: 2px; }

  /* --- quick contact bar (overlaps the hero) ---------------------------- */
  .ep-quickbar { position: relative; z-index: 5; margin-top: -46px; background: #fff;
                 border: 1px solid var(--ep-line); border-radius: var(--ep-r-l);
                 box-shadow: var(--ep-shadow); padding: 1.3rem 1.5rem; }
  .ep-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
  .ep-quick__item { display: flex; align-items: center; gap: .9rem; padding: .55rem .5rem;
                    border-radius: var(--ep-r-s); transition: background-color .2s ease; }
  .ep-quick__item:hover { background: var(--ep-accent-soft); }
  .ep-quick__icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
                    background: var(--ep-accent-soft); display: grid; place-items: center; }
  .ep-quick__icon svg { width: 20px; height: 20px; }
  .ep-quick__icon svg * { fill: var(--ep-accent); }
  .ep-quick__label { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
                     color: var(--ep-muted); font-weight: 700; }
  .ep-quick__value { display: block; font-weight: 700; color: var(--ep-ink); font-size: .98rem; line-height: 1.35; }

  /* --- feature / USP cards --------------------------------------------- */
  .ep-feature { background: #fff; border: 1px solid var(--ep-line); border-radius: var(--ep-r);
                padding: 1.7rem 1.5rem; height: 100%;
                transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
  .ep-feature:hover { transform: translateY(-4px); box-shadow: var(--ep-shadow); border-color: transparent; }
  .ep-feature h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: .5rem; }
  .ep-feature p { color: var(--ep-muted); font-size: .94rem; margin: 0; }
  .ep-iconbadge { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1rem;
                  background: linear-gradient(140deg, var(--ep-accent-soft), #fff);
                  border: 1px solid var(--ep-line); display: grid; place-items: center; }
  .ep-iconbadge svg { width: 22px; height: 22px; }
  .ep-iconbadge svg * { fill: var(--ep-accent); }
  .ep-iconbadge--solid { background: var(--ep-accent); border-color: transparent; }
  .ep-iconbadge--solid svg * { fill: #fff; }

  /* --- service cards ---------------------------------------------------- */
  .ep-card { display: flex; flex-direction: column; height: 100%; overflow: hidden;
             background: #fff; border: 1px solid var(--ep-line); border-radius: var(--ep-r);
             transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
  .ep-card:hover { transform: translateY(-5px); box-shadow: var(--ep-shadow); border-color: transparent; }
  .ep-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--ep-accent-soft); }
  .ep-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
  .ep-card:hover .ep-card__media img { transform: scale(1.04); }
  .ep-card__body { display: flex; flex-direction: column; gap: .55rem; flex: 1 1 auto;
                   padding: 1.4rem 1.4rem 1.5rem; }
  .ep-card__title { font-size: 1.12rem; font-weight: 700; margin: 0; }
  .ep-card:hover .ep-card__title { color: var(--ep-accent); }
  .ep-card__text { color: var(--ep-muted); font-size: .93rem; margin: 0; flex: 1 1 auto; }
  .ep-card .ep-textlink { margin-top: .3rem; }

  /* compact tile (related services) */
  .ep-tile { display: flex; flex-direction: column; overflow: hidden; height: 100%;
             background: #fff; border: 1px solid var(--ep-line); border-radius: var(--ep-r);
             transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
  .ep-tile:hover { transform: translateY(-4px); box-shadow: var(--ep-shadow); border-color: transparent; }
  .ep-tile__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ep-accent-soft); }
  .ep-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
  .ep-tile:hover .ep-tile__media img { transform: scale(1.05); }
  .ep-tile__title { font-size: .98rem; font-weight: 700; margin: 0; padding: .9rem 1rem 1.1rem; }
  .ep-tile:hover .ep-tile__title { color: var(--ep-accent); }

  /* --- breadcrumbs ------------------------------------------------------ */
  .ep-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
               font-size: .84rem; margin-bottom: 1rem; color: var(--ep-muted); }
  .ep-crumbs a { color: var(--ep-muted); padding-block: .25rem; }
  .ep-crumbs a:hover { color: var(--ep-accent); }
  .ep-crumbs [aria-current] { color: var(--ep-ink); font-weight: 600; }

  /* --- page hero -------------------------------------------------------- */
  .ep-pagehero { position: relative; overflow: hidden;
                 padding-block: clamp(34px, 2rem + 2vw, 60px) clamp(40px, 2.5rem + 2.5vw, 76px);
                 background: linear-gradient(168deg, #fff 0%, var(--ep-accent-soft) 100%); }
  .ep-pagehero::before { content: ''; position: absolute; inset: auto -140px -170px auto;
                         width: 400px; height: 400px; pointer-events: none;
                         background: radial-gradient(circle, rgba(121, 143, 167, .2), transparent 68%); }
  .ep-pagehero > * { position: relative; z-index: 1; }
  .ep-pagehero h1 { margin-bottom: .8rem; }

  /* --- prose ------------------------------------------------------------ */
  .ep-prose > * + * { margin-top: 1.1rem; }
  .ep-prose p { margin: 0; font-size: 1.02rem; }
  .ep-prose h2, .ep-prose h3, .ep-prose h4 { margin-top: 2.4rem; margin-bottom: .2rem; }
  .ep-prose > :is(h2, h3, h4):first-child { margin-top: 0; }
  .ep-prose h4 { font-size: 1.28rem; }
  .ep-prose a { font-weight: 600; }
  .ep-prose img { width: 100%; border-radius: var(--ep-r-l); box-shadow: var(--ep-shadow); margin-block: 2rem; }

  .ep-list { display: grid; gap: .7rem; }
  .ep-list li { position: relative; padding-left: 1.9rem; font-size: 1.01rem; }
  .ep-list--check li::before { content: ''; position: absolute; left: .3rem; top: .6em;
                               width: 9px; height: 9px; border-radius: 2px; background: var(--ep-accent); }
  .ep-list--plain li::before { content: ''; position: absolute; left: .3rem; top: .62em;
                               width: 8px; height: 8px; border-radius: 50%; background: var(--ep-steel); }
  .ep-list--num { counter-reset: ep-n; }
  .ep-list--num li { padding-left: 2.2rem; }
  .ep-list--num li::before { counter-increment: ep-n; content: counter(ep-n);
                             position: absolute; left: 0; top: .1em;
                             width: 1.5rem; height: 1.5rem; border-radius: 8px;
                             background: var(--ep-accent-soft); color: var(--ep-accent);
                             font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
  .ep-deflist { display: grid; }
  .ep-deflist li { padding-block: .7rem; font-size: 1rem; color: var(--ep-body); }
  .ep-deflist li + li { border-top: 1px solid var(--ep-line); }
  .ep-deflist strong { display: inline-block; min-width: 190px; color: var(--ep-ink); }

  /* --- gallery ---------------------------------------------------------- */
  .ep-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .ep-gallery a { display: block; overflow: hidden; border-radius: var(--ep-r);
                  aspect-ratio: 4 / 3; background: var(--ep-accent-soft); }
  .ep-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
  .ep-gallery a:hover img { transform: scale(1.05); }

  .ep-lightbox { position: fixed; inset: 0; z-index: 1080; background: rgba(9, 16, 28, .9);
                 display: grid; place-items: center; padding: clamp(12px, 4vw, 48px);
                 opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
  .ep-lightbox.is-open { opacity: 1; visibility: visible; }
  .ep-lightbox img { max-width: 100%; max-height: 82vh; border-radius: var(--ep-r);
                     box-shadow: var(--ep-shadow-l); }
  .ep-lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%;
                      background: rgba(255, 255, 255, .92); display: grid; place-items: center; }
  .ep-lightbox__btn svg { width: 20px; height: 20px; }
  .ep-lightbox__btn svg * { fill: var(--ep-navy); }
  .ep-lightbox__btn--prev { left: clamp(8px, 2vw, 28px); top: 50%; transform: translateY(-50%); }
  .ep-lightbox__btn--next { right: clamp(8px, 2vw, 28px); top: 50%; transform: translateY(-50%); }
  .ep-lightbox__btn--prev svg { transform: rotate(180deg); }
  .ep-lightbox__btn--close { top: clamp(8px, 2vw, 24px); right: clamp(8px, 2vw, 24px); }
  .ep-lightbox__count { position: absolute; bottom: clamp(10px, 3vw, 28px); left: 50%;
                        transform: translateX(-50%); color: #fff; font-size: .86rem; letter-spacing: .05em; }

  /* --- accordion -------------------------------------------------------- */
  .ep-acc { display: grid; gap: .7rem; }
  .ep-acc__item { background: #fff; border: 1px solid var(--ep-line);
                  border-radius: var(--ep-r); overflow: hidden; }
  .ep-acc__q { width: 100%; display: flex; align-items: flex-start; justify-content: space-between;
               gap: 1rem; text-align: left; padding: 1.05rem 1.25rem;
               font-family: var(--ep-font-head); font-weight: 700; font-size: 1.02rem;
               color: var(--ep-ink); line-height: 1.4; transition: color .2s ease, background-color .2s ease; }
  .ep-acc__q svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: .3rem;
                   transition: transform .25s var(--ep-ease); }
  .ep-acc__q svg * { fill: var(--ep-steel); }
  .ep-acc__item.is-open .ep-acc__q { color: var(--ep-accent); background: var(--ep-accent-soft); }
  .ep-acc__item.is-open .ep-acc__q svg { transform: rotate(180deg); }
  .ep-acc__item.is-open .ep-acc__q svg * { fill: var(--ep-accent); }
  .ep-acc__a { display: none; padding: 0 1.25rem 1.25rem; color: var(--ep-body); }
  .ep-acc__item.is-open .ep-acc__a { display: block; }
  .ep-acc__a p + p { margin-top: .9rem; }

  /* --- contact ---------------------------------------------------------- */
  .ep-panel { background: #fff; border: 1px solid var(--ep-line); border-radius: var(--ep-r-l);
              padding: clamp(1.3rem, 1rem + 1.6vw, 2.2rem); box-shadow: var(--ep-shadow-s); }
  .ep-form { display: grid; gap: 1rem; }
  .ep-form__row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
  .ep-form label { display: block; font-weight: 600; color: var(--ep-ink);
                   font-size: .89rem; margin-bottom: .35rem; }
  .ep-form input, .ep-form textarea {
    width: 100%; min-height: 48px; padding: .76rem .95rem; font-size: .96rem;
    color: var(--ep-ink); background: #fff; border: 1.5px solid var(--ep-line);
    border-radius: var(--ep-r-s); transition: border-color .2s ease, box-shadow .2s ease;
  }
  .ep-form textarea { min-height: 150px; resize: vertical; }
  .ep-form input:focus, .ep-form textarea:focus {
    outline: none; border-color: var(--ep-steel); box-shadow: 0 0 0 4px rgba(45, 74, 127, .14); }
  .ep-form ::placeholder { color: var(--ep-muted); opacity: 1; }
  .ep-form input.is-invalid, .ep-form textarea.is-invalid { border-color: #d64a5c; }

  .ep-check { display: flex; align-items: flex-start; gap: .75rem; cursor: pointer;
              font-size: .89rem; color: var(--ep-muted); }
  .ep-check input { position: absolute; opacity: 0; width: 0; height: 0; }
  .ep-check__box { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px;
                   border: 1.5px solid var(--ep-line); background: #fff; position: relative;
                   margin-top: .12rem; transition: background-color .2s ease, border-color .2s ease; }
  .ep-check input:checked + .ep-check__box { background: var(--ep-accent); border-color: var(--ep-accent); }
  .ep-check input:checked + .ep-check__box::after {
    content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
  .ep-check input:focus-visible + .ep-check__box { outline: 3px solid var(--ep-accent); outline-offset: 3px; }
  .ep-check input.is-invalid + .ep-check__box { border-color: #d64a5c; }
  .ep-check a { font-weight: 600; text-decoration: underline; }

  .ep-note { font-size: .9rem; border-radius: var(--ep-r-s); padding: .85rem 1rem;
             background: var(--ep-accent-soft); border: 1px solid rgba(45, 74, 127, .18); color: var(--ep-navy); }
  .ep-note--error { background: #fdf1f2; border-color: #f2c2c8; color: #8a1c2b; }

  .ep-contacts { display: grid; gap: .55rem; }
  .ep-contacts li > * { display: flex; align-items: flex-start; gap: .85rem;
                        padding: .78rem .95rem; border: 1px solid var(--ep-line);
                        border-radius: var(--ep-r-s); background: #fff;
                        transition: border-color .2s ease, background-color .2s ease; }
  .ep-contacts a:hover { border-color: var(--ep-steel); background: var(--ep-accent-soft); }
  .ep-contacts svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: .2rem; }
  .ep-contacts svg * { fill: var(--ep-accent); }
  .ep-contacts b { display: block; font-family: var(--ep-font-body); font-size: .74rem;
                   letter-spacing: .1em; text-transform: uppercase; color: var(--ep-muted); font-weight: 700; }
  .ep-contacts span { font-weight: 600; line-height: 1.5; color: var(--ep-ink); overflow-wrap: anywhere; }

  .ep-person { display: flex; gap: 1.2rem; align-items: center; background: #fff;
               border: 1px solid var(--ep-line); border-radius: var(--ep-r); padding: 1.3rem; }
  .ep-person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
  .ep-person h2 { font-size: 1.3rem; margin-bottom: .15rem; }
  .ep-person p { margin: 0; color: var(--ep-muted); font-size: .95rem; }

  .ep-map { height: clamp(320px, 24rem + 6vw, 460px); border-radius: var(--ep-r-l);
            overflow: hidden; border: 1px solid var(--ep-line); box-shadow: var(--ep-shadow); }
  /* A MapLibre magára a .ep-map elemre épül (a Leaflet még külön gyerek-konténert
     hozott létre), ezért itt NEM adunk height:100%-ot — a magasságot a fenti
     .ep-map clamp() szabja meg. */
  .ep-map.maplibregl-map { font-family: var(--ep-font-body); background: var(--ep-accent-soft); }
  .ep-map-pin { cursor: pointer; line-height: 0; }
  .ep-map-pin svg { width: 40px; height: 40px; display: block;
                    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
  .ep-map-pin svg * { fill: var(--ep-accent); }
  .ep-map-popup__name { display: block; font-family: var(--ep-font-head); font-weight: 700;
                        color: var(--ep-ink); font-size: 1rem; margin-bottom: .2rem; }
  .ep-map-popup__addr { display: block; color: var(--ep-muted); font-size: .88rem; line-height: 1.5; }

  .ep-map .maplibregl-ctrl-group { border-radius: var(--ep-r-s, 10px); overflow: hidden;
                                   box-shadow: var(--ep-shadow); background: #fff; }
  .ep-map .maplibregl-ctrl-group button { width: 34px; height: 34px; color: var(--ep-ink);
                                          background-color: transparent; }
  .ep-map .maplibregl-ctrl-group button + button { border-top: 1px solid var(--ep-line); }
  .ep-map .maplibregl-ctrl-group button:not(:disabled):hover { background-color: var(--ep-accent-soft);
                                                               color: var(--ep-accent); }
  .ep-map-popup-shell .maplibregl-popup-content { border-radius: 12px; box-shadow: var(--ep-shadow);
                                                  padding: .8rem 1.9rem .8rem 1rem; }
  .ep-map-popup-shell .maplibregl-popup-close-button { width: 28px; height: 28px; font-size: 17px;
                                                       line-height: 1; color: var(--ep-muted);
                                                       background-color: transparent; }
  .ep-map-popup-shell .maplibregl-popup-close-button:hover { color: var(--ep-accent); background-color: transparent; }

  /* Kötelező attribution: diszkrét, de olvasható (semleges UI-betű, hogy egy sorba férjen) */
  .ep-map .maplibregl-ctrl-attrib { background: rgba(255, 255, 255, .86); font-size: 11px;
                                    line-height: 1.45; padding: 2px 8px; border-radius: 8px 0 0 0;
                                    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
  .ep-map .maplibregl-ctrl-attrib,
  .ep-map .maplibregl-ctrl-attrib a { color: var(--ep-muted); }
  @media (max-width: 600px) {
    .ep-map .maplibregl-ctrl-attrib { font-size: 10px; padding: 2px 6px; }
    .ep-map .maplibregl-ctrl-group button { width: 40px; height: 40px; }
  }

  /* --- CTA band --------------------------------------------------------- */
  .ep-cta { position: relative; overflow: hidden; border-radius: var(--ep-r-l);
            padding: clamp(28px, 2rem + 2vw, 56px);
            background: linear-gradient(140deg, var(--ep-navy) 0%, #24354f 58%, #2d4a7f 100%);
            display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; }
  .ep-cta::after { content: ''; position: absolute; right: -60px; top: -70px;
                   width: 300px; height: 300px; border-radius: 50%; pointer-events: none;
                   background: radial-gradient(circle, rgba(121, 143, 167, .35), transparent 66%); }
  .ep-cta > * { position: relative; z-index: 1; }
  .ep-cta h2 { color: #fff; margin-bottom: .5rem; }
  .ep-cta p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 52ch; }

  /* --- footer ----------------------------------------------------------- */
  .ep-footer { background: var(--ep-navy); color: rgba(255, 255, 255, .78);
               padding-top: clamp(48px, 3rem + 2vw, 84px); padding-bottom: 1.6rem; }
  .ep-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: clamp(24px, 2rem + 1vw, 48px); }
  .ep-footer__h { color: #fff; font-family: var(--ep-font-body); font-size: .8rem; letter-spacing: .14em;
                  text-transform: uppercase; font-weight: 700; margin-bottom: 1.05rem; }
  .ep-footer p { color: rgba(255, 255, 255, .68); font-size: .92rem; }
  .ep-footer__brand svg { height: 62px; width: auto; aspect-ratio: 619.2 / 439.54; margin-bottom: 1rem; }
  .ep-footer__brand svg * { fill: #fff; }
  .ep-footer__links a { display: inline-block; padding-block: .35rem;
                        color: rgba(255, 255, 255, .74); font-size: .92rem; }
  .ep-footer__links a:hover { color: #fff; }
  .ep-footer__contact li { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .7rem;
                           font-size: .92rem; color: rgba(255, 255, 255, .78); }
  .ep-footer__contact a { color: rgba(255, 255, 255, .82); overflow-wrap: anywhere; }
  .ep-footer__contact a:hover { color: #fff; }
  .ep-footer__contact svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: .24rem; }
  .ep-footer__contact svg * { fill: var(--ep-steel); }
  .ep-footer__rule { border: 0; border-top: 1px solid rgba(255, 255, 255, .14);
                     margin: clamp(28px, 2rem + 1vw, 44px) 0 1.2rem; }
  .ep-footer__bottom { display: flex; flex-wrap: wrap; align-items: center;
                       justify-content: space-between; gap: .8rem 1.4rem; }
  .ep-footer__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
  .ep-footer__legal a, .ep-footer__legal button {
    color: rgba(255, 255, 255, .62); font-size: .84rem; padding-block: .3rem;
    font-family: var(--ep-font-body); }
  .ep-footer__legal a:hover, .ep-footer__legal button:hover { color: #fff; }
  .ep-copyright { color: rgba(255, 255, 255, .55); font-size: .84rem; }
  .ep-social { display: flex; gap: .55rem; }
  .ep-social a { width: 38px; height: 38px; border-radius: 50%;
                 border: 1px solid rgba(255, 255, 255, .18); display: grid; place-items: center; }
  .ep-social svg { width: 16px; height: 16px; }
  .ep-social svg * { fill: rgba(255, 255, 255, .8); }
  .ep-social a:hover { background: var(--ep-steel); border-color: var(--ep-steel); }
  .ep-social a:hover svg * { fill: var(--ep-navy); }

  /* --- to top ----------------------------------------------------------- */
  .ep-totop { position: fixed; right: 18px; bottom: 18px; z-index: 90;
              width: 46px; height: 46px; border-radius: 50%; background: var(--ep-navy);
              display: grid; place-items: center; box-shadow: var(--ep-shadow);
              opacity: 0; visibility: hidden; transform: translateY(10px);
              transition: opacity .2s ease, transform .2s ease, visibility .2s, background-color .2s ease; }
  .ep-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
  .ep-totop:hover { background: var(--ep-accent); }
  .ep-totop svg { width: 17px; height: 17px; transform: rotate(-90deg); }
  .ep-totop svg * { fill: #fff; }

  /* --- cookie consent --------------------------------------------------- */
  .ep-cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1070; background: #fff;
           border-top: 1px solid var(--ep-line); box-shadow: 0 -12px 40px rgba(23, 34, 56, .12);
           transition: opacity .25s ease, transform .25s ease, visibility .25s; }
  .has-cookie-consent .ep-cc { display: none; }
  .ep-cc.is-dismissed { opacity: 0; transform: translateY(120%); pointer-events: none; visibility: hidden; }
  .ep-cc__inner { max-width: 1180px; margin-inline: auto; padding: 1.1rem var(--ep-gutter);
                  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
  .ep-cc__text { flex: 1 1 320px; font-size: .9rem; margin: 0; }
  .ep-cc__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
  .ep-cc-btn { font-family: var(--ep-font-body); font-weight: 600; font-size: .88rem;
               border-radius: var(--ep-r-s); padding: .62rem 1.2rem;
               border: 1.5px solid var(--ep-line); background: #fff; color: var(--ep-ink); }
  .ep-cc-btn:hover { border-color: var(--ep-steel); background: var(--ep-accent-soft); }
  .ep-cc-btn--primary { background: var(--ep-accent); border-color: var(--ep-accent); color: #fff; }
  .ep-cc-btn--primary:hover { background: var(--ep-accent-deep); border-color: var(--ep-accent-deep); color: #fff; }

  .ep-cc-modal { position: fixed; inset: 0; z-index: 1075; background: rgba(9, 16, 28, .55);
                 display: grid; place-items: center; padding: 1rem;
                 opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
  .ep-cc-modal.is-open { opacity: 1; visibility: visible; }
  .ep-cc-panel { background: #fff; border-radius: var(--ep-r-l); max-width: 620px; width: 100%;
                 max-height: 88vh; overflow-y: auto; padding: clamp(1.2rem, 3vw, 2rem);
                 box-shadow: var(--ep-shadow-l); }
  .ep-cc-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
  .ep-cc-panel__title { font-size: 1.28rem; }
  .ep-cc-panel__close { font-size: 1.5rem; line-height: 1; color: var(--ep-muted); }
  .ep-cc-panel__intro { font-size: .92rem; color: var(--ep-muted); margin: .8rem 0 1.2rem; }
  .ep-cc-cats { display: grid; gap: .8rem; }
  .ep-cc-cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
               border: 1px solid var(--ep-line); border-radius: var(--ep-r-s); padding: 1rem; }
  .ep-cc-cat__title { font-family: var(--ep-font-head); font-weight: 700; font-size: 1rem;
                      color: var(--ep-ink); margin-bottom: .3rem; }
  .ep-cc-cat__desc { font-size: .87rem; color: var(--ep-muted); margin: 0; }
  .ep-cc-always { font-size: .76rem; font-weight: 700; color: var(--ep-accent);
                  text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
  .ep-cc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
  .ep-cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
  .ep-cc-switch__track { position: absolute; inset: 0; background: var(--ep-line);
                         border-radius: 999px; transition: background-color .2s ease; pointer-events: none; }
  .ep-cc-switch__track::after { content: ''; position: absolute; top: 3px; left: 3px;
                                width: 20px; height: 20px; border-radius: 50%; background: #fff;
                                box-shadow: var(--ep-shadow-s); transition: transform .2s ease; }
  .ep-cc-switch input:checked + .ep-cc-switch__track { background: var(--ep-accent); }
  .ep-cc-switch input:checked + .ep-cc-switch__track::after { transform: translateX(20px); }
  .ep-cc-panel__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
}

/* ---------------------------------------------------------- utilities --- */
@layer utilities {
  .ep-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
           overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .ep-hp { position: absolute !important; width: 1px; height: 1px;
           overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ep-noscroll { overflow: hidden; }
  .ep-stack-sm > * + * { margin-top: .8rem; }
  .ep-mt   { margin-top: clamp(28px, 2rem + 1vw, 48px); }
  .ep-mt-l { margin-top: clamp(40px, 2.5rem + 2vw, 72px); }
}

/* --------------------------------------------------------- responsive --- */
@layer responsive {
  @media (max-width: 1199.98px) {
    .ep-gallery { grid-template-columns: repeat(3, 1fr); }
    .ep-grid--4 { grid-template-columns: repeat(3, 1fr); }
  }
  @media (max-width: 991.98px) {
    :root { --ep-nav-h: 74px; }
    .ep-nav, .ep-header__cta { display: none; }
    .ep-burger { display: inline-flex; }
    .ep-split { grid-template-columns: 1fr; }
    .ep-split .ep-media { margin-top: .5rem; aspect-ratio: 16 / 10; order: -1; }
    .ep-pagehero .ep-media { aspect-ratio: 16 / 9; }
    .ep-grid--3, .ep-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .ep-quickbar { margin-top: -30px; }
    .ep-quick { grid-template-columns: 1fr; gap: .3rem; }
    .ep-cta { flex-direction: column; align-items: flex-start; }
    .ep-footer__grid { grid-template-columns: 1fr 1fr; }
    .ep-footer__brand { grid-column: 1 / -1; }
  }
  @media (min-width: 992px) {
    .ep-drawer, .ep-scrim { display: none; }
  }
  @media (max-width: 767.98px) {
    body { font-size: .97rem; line-height: 1.7; }
    .ep-section { padding-block: 48px; }
    .ep-gallery { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
    .ep-grid--2, .ep-grid--3, .ep-grid--4 { grid-template-columns: 1fr; }
    .ep-form__row { grid-template-columns: 1fr; }
    .ep-footer__grid { grid-template-columns: 1fr; }
    .ep-person { flex-direction: column; text-align: center; }
    .ep-deflist strong { display: block; min-width: 0; margin-bottom: .1rem; }
  }
  @media (max-width: 575.98px) {
    .ep-hero .ep-btn, .ep-pagehero .ep-btn, .ep-cta .ep-btn { flex: 1 1 100%; }
    .ep-quickbar { padding: 1rem; margin-top: -22px; }
    .ep-media { aspect-ratio: 4 / 3; }
    .ep-cta { padding: 1.5rem 1.25rem; }
    .ep-brand svg { height: 38px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  }
}

/* ---------------------------------------------------------------------------
   Components added when the approved system was extended to the full site.
   Same tokens, same shape language, same hover behaviour as the approved set.
   --------------------------------------------------------------------------- */
@layer components {
  /* reference cards */
  .ep-review { display: flex; flex-direction: column; gap: .8rem; height: 100%;
               background: #fff; border: 1px solid var(--ep-line); border-radius: var(--ep-r);
               padding: 1.6rem; transition: transform .22s ease, box-shadow .22s ease; }
  .ep-review:hover { transform: translateY(-4px); box-shadow: var(--ep-shadow); }
  .ep-review__stars { display: flex; gap: .18rem; }
  .ep-review__stars svg { width: 16px; height: 16px; }
  .ep-review__stars svg * { fill: #f2a71b; }
  .ep-review p { font-size: .97rem; margin: 0; }
  .ep-review__name { margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--ep-line);
                     font-family: var(--ep-font-head); font-weight: 700; font-size: 1rem; color: var(--ep-ink); }

  /* grouped FAQ */
  .ep-faqgroup + .ep-faqgroup { margin-top: clamp(36px, 2rem + 2vw, 60px); }
  .ep-faqgroup > h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); margin-bottom: 1.1rem; }

  /* legal / long-form pages get a slightly narrower measure and calmer rhythm */
  .ep-prose--legal { max-width: 820px; }
  .ep-prose--legal h4 { font-size: 1.2rem; margin-top: 2rem; }
}

/* ---------------------------------------------------------------------------
   Trust strip. Production carried four claims in a sticky utility bar on every
   page; the v2 header has no utility bar, so the same four claims live here,
   directly above the footer, on every page. Built from existing tokens.
   --------------------------------------------------------------------------- */
@layer components {
  .ep-strip { background: var(--ep-surface-alt); border-top: 1px solid var(--ep-line);
              padding-block: clamp(20px, 1.4rem + 1vw, 30px); }
  .ep-strip__list { display: grid; grid-template-columns: repeat(4, 1fr);
                    gap: .8rem clamp(16px, 1rem + 1.4vw, 36px); }
  .ep-strip__list li { display: flex; align-items: center; gap: .7rem;
                       font-family: var(--ep-font-body); font-weight: 600;
                       font-size: .92rem; color: var(--ep-ink); line-height: 1.4; }
  .ep-strip__mark { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
                    background: #fff; border: 1px solid var(--ep-line);
                    display: grid; place-items: center; }
  .ep-strip__mark svg { width: 12px; height: 12px; }
  .ep-strip__mark svg * { fill: var(--ep-accent); }
}
@layer responsive {
  @media (max-width: 991.98px) { .ep-strip__list { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 575.98px)  { .ep-strip__list { grid-template-columns: 1fr; } }
}

@layer components {
  .ep-footer__label { display: block; font-family: var(--ep-font-body); font-size: .74rem;
                      letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
                      color: rgba(255, 255, 255, .5); margin-bottom: .1rem; }
  .ep-footer__contact li { flex-direction: row; }
  .ep-footer__contact span { min-width: 0; }
}

@layer components {
  .ep-skip { position: absolute; left: 12px; top: -60px; z-index: 200;
             background: var(--ep-accent); color: #fff; font-weight: 600; font-size: .92rem;
             padding: .7rem 1.1rem; border-radius: var(--ep-r-s);
             transition: top .2s ease; }
  .ep-skip:focus { top: 12px; color: #fff; }
}

/* ---------------------------------------------------------------------------
   Styling for the four classes added when production content was restored
   (dropdown heading, drawer sub-heading, on-dark eyebrow, trust-strip
   contacts). These were emitted in markup before their rules existed.
   --------------------------------------------------------------------------- */
@layer components {
  .ep-drop__head { font-family: var(--ep-font-body); font-weight: 700; font-size: .72rem;
                   letter-spacing: .16em; text-transform: uppercase; color: var(--ep-muted);
                   padding: .5rem .8rem .3rem; margin: 0; }
  .ep-drawer__subhead { font-family: var(--ep-font-body); font-weight: 700; font-size: .7rem;
                        letter-spacing: .16em; text-transform: uppercase; color: var(--ep-muted);
                        padding: .6rem .25rem .2rem 1.1rem; margin: 0; }

  .ep-eyebrow--onDark { color: var(--ep-steel); }
  .ep-eyebrow--onDark::before { background: rgba(255, 255, 255, .45); }

  .ep-strip .ep-container { display: flex; flex-wrap: wrap; align-items: center;
                            justify-content: space-between; gap: 1rem 2rem; }
  .ep-strip__list { flex: 1 1 520px; }
  .ep-strip__contact { display: flex; flex-wrap: wrap; align-items: center;
                       gap: .5rem 1.4rem; flex: 0 0 auto; }
  .ep-strip__contact a { display: inline-flex; align-items: center; gap: .55rem;
                         font-family: var(--ep-font-body); font-weight: 700;
                         font-size: .92rem; color: var(--ep-ink); line-height: 1.4; }
  .ep-strip__contact a:hover { color: var(--ep-accent); }
  .ep-strip__contact svg { width: 15px; height: 15px; flex: 0 0 auto; }
  .ep-strip__contact svg * { fill: var(--ep-accent); }
}

/* ---------------------------------------------------------------------------
   Consent checkbox fix. `.ep-form label` (0,1,1) outranked `.ep-check` (0,1,0),
   so the label stayed display:block and the box span — being inline — collapsed
   to zero size, letting the text run under it.
   --------------------------------------------------------------------------- */
@layer components {
  .ep-form label.ep-check {
    display: flex; align-items: flex-start; gap: .75rem;
    font-weight: 400; color: var(--ep-muted); margin-bottom: 0; cursor: pointer;
  }
  .ep-check__box { display: block; }
  .ep-check > span:last-child { flex: 1 1 auto; min-width: 0; }
}

/* ---------------------------------------------------------------------------
   SEO / AEO round. Body sub-headings moved from h4 to h2 in the document
   outline; .ep-prose__h keeps the type scale they had, so the semantic fix
   is not a visual change. The rest is three small new components.
   --------------------------------------------------------------------------- */
@layer components {
  .ep-prose h2.ep-prose__h       { font-size: 1.28rem; font-weight: 700; }
  .ep-prose--legal h2.ep-prose__h { font-size: 1.2rem; margin-top: 2rem; }

  /* short, self-contained answer at the top of a service page */
  .ep-summary { border-left: 3px solid var(--ep-accent);
                background: var(--ep-accent-soft);
                border-radius: 0 var(--ep-r) var(--ep-r) 0;
                padding: 1.15rem 1.35rem; }
  .ep-prose .ep-summary__label { font-family: var(--ep-font-body); font-size: .74rem;
                                 font-weight: 700; letter-spacing: .14em;
                                 text-transform: uppercase;
                                 color: var(--ep-accent-deep); margin-bottom: .45rem; }
  .ep-prose .ep-summary p + p { margin-top: 0; }
  .ep-prose .ep-summary p:last-child { color: var(--ep-ink); }

  /* link out of a service gallery to the reference page */
  .ep-gallery__more { margin-top: 1.25rem; text-align: center; }
  .ep-gallery__more a { font-weight: 600; color: var(--ep-accent); }
  .ep-gallery__more a:hover { color: var(--ep-accent-deep); }

  /* link from an FAQ group to the service page it describes */
  .ep-faqgroup__more { margin-top: 1rem; }
  .ep-faqgroup__more a { font-weight: 600; color: var(--ep-accent); }
  .ep-faqgroup__more a:hover { color: var(--ep-accent-deep); }

  /* publication date and author on a blog post */
  .ep-prose .ep-articlemeta { font-family: var(--ep-font-body); font-size: .85rem;
                              color: var(--ep-muted); margin-bottom: .4rem; }

  /* second list in the footer's middle column */
  .ep-footer__h--2 { margin-top: 1.6rem; }
}
