@media (min-width:1600px){
  .easkora-front__container{width:min(calc(100% - 96px),var(--easkora-front-container))}
  .easkora-front__hero{padding-top:108px}
  .easkora-front__hero-grid{grid-template-columns:minmax(0,.92fr) minmax(660px,1.22fr);gap:96px}
  .easkora-front__hero-copy h1{font-size:72px}
  .easkora-front__dashboard-preview{min-height:520px}
}
@media (max-width:1199px){
  .easkora-front__header-inner{grid-template-columns:auto 1fr auto;gap:20px}
  .easkora-front__nav{gap:20px}
  .easkora-front__hero-grid{grid-template-columns:minmax(0,.95fr) minmax(460px,1.05fr);gap:38px}
  .easkora-front__hero-copy h1{font-size:clamp(43px,5vw,60px)}
}
@media (max-width:991px){
  .easkora-front__header-inner{display:flex}
  .easkora-front .easkora-front__header .easkora-front__menu-toggle{display:block;transform:translateX(-32px)}
  .easkora-front__nav{position:absolute;left:20px;right:20px;top:72px;display:none;flex-direction:column;align-items:stretch;padding:18px;border:1px solid var(--easkora-front-color-border);border-radius:14px;background:#fff;box-shadow:var(--easkora-front-shadow-md)}
  .easkora-front.is-menu-open .easkora-front__nav{display:flex}
  .easkora-front__header-actions{display:flex;margin-left:auto}
  .easkora-front__header-actions>.easkora-front__button{display:none}
  .easkora-front__hero-grid{grid-template-columns:1fr;gap:44px}
  .easkora-front__hero-copy{max-width:760px}
  .easkora-front__dashboard-preview{min-height:auto}
  .easkora-front__feature-grid{grid-template-columns:repeat(2,1fr)}
  .easkora-front__trust-grid{grid-template-columns:repeat(2,1fr)}
  .easkora-front__trust-grid article:nth-child(2){border-right:0}
  .easkora-front__trust-grid article:nth-child(-n+2){border-bottom:1px solid #edf0f6}
  .easkora-front__split-card{grid-template-columns:1fr}
  .easkora-front__steps{grid-template-columns:repeat(2,1fr)}
  .easkora-front__cta{align-items:flex-start;flex-wrap:wrap}
}
@media (max-width:767px){
  .easkora-front__container{width:min(calc(100% - 28px),var(--easkora-front-container))}
  .easkora-front__section{padding:54px 0}
  .easkora-front__header-inner{min-height:70px}
  .easkora-front__hero{padding-top:46px}
  .easkora-front__hero-grid{gap:38px}
  .easkora-front__hero-copy h1{margin:24px 0 18px;font-size:clamp(38px,10.6vw,50px);font-weight:680;line-height:1.075;letter-spacing:-.043em;text-wrap:pretty}
  .easkora-front__hero-copy h1 strong{display:inline}
  .easkora-front__hero-copy > p{font-size:17px;line-height:1.58}
  .easkora-front__dashboard-preview{min-height:auto;padding:10px;border-radius:20px}
  .easkora-front__dashboard-image{max-height:none}
  .easkora-front__benefits{grid-template-columns:1fr;gap:13px;margin-top:28px}
  .easkora-front__trust-grid,.easkora-front__feature-grid,.easkora-front__steps{grid-template-columns:1fr}
  .easkora-front__trust-grid{padding:8px 14px}
  .easkora-front__trust-grid article{border-right:0!important;border-bottom:1px solid #edf0f6!important}
  .easkora-front__trust-grid article:last-child{border-bottom:0!important}
  .easkora-front__feature-card{min-height:auto}
  .easkora-front__split-card{padding:28px}
  .easkora-front__cta{padding:30px 26px;flex-direction:column}
  .easkora-front__cta::before{width:46px;height:46px;flex-basis:46px}
  .easkora-front__footer-inner{align-items:flex-start;flex-direction:column}
}
@media (max-width:479px){
  .easkora-front__hero-actions,.easkora-front__hero-actions .easkora-front__button{width:100%}
  .easkora-front__hero-copy h1{font-size:clamp(36px,10.4vw,43px)}
  .easkora-front__dashboard-preview{min-height:auto}
  .easkora-front__brand{font-size:17px}
  .easkora-front__button--large{min-height:50px}
}

/* Hotfix: retain soft typography at tablet and mobile widths. */
@media (max-width: 1199px) {
  .easkora-front__hero-copy h1 {
    font-size: clamp(42px, 4.8vw, 57px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
  }
}
@media (max-width: 767px) {
  .easkora-front__hero-copy h1 {
    margin: 24px 0 18px;
    font-size: clamp(36px, 9.6vw, 45px);
    font-weight: 600;
    line-height: 1.105;
    letter-spacing: -0.024em;
  }
  .easkora-front__hero-copy h1 strong {
    font-weight: 650;
  }
}
@media (max-width: 479px) {
  .easkora-front__hero-copy h1 {
    font-size: clamp(35px, 9.4vw, 41px);
    line-height: 1.11;
  }
}

/* Hotfix: premium hero typography remains readable on smaller screens. */
@media (max-width:1199px){
  .easkora-front__hero-copy h1{font-size:clamp(48px,5.25vw,66px);line-height:1}
}
@media (max-width:767px){
  .easkora-front__hero-copy h1{font-size:clamp(42px,11vw,56px);line-height:1.01;letter-spacing:-.04em}
  .easkora-front__hero-copy h1 strong{margin-top:8px}
}
@media (max-width:479px){
  .easkora-front__hero-copy h1{font-size:clamp(39px,10.8vw,48px)}
}

/* Hotfix: responsive behaviour for the premium "Jak to działa?" section. */
@media (max-width: 1199px) {
  #dla-ksiegowych .easkora-front__steps { gap: 22px; }
  #dla-ksiegowych .easkora-front__steps article::after { display: none !important; }
}
@media (max-width: 991px) {
  #dla-ksiegowych .easkora-front__steps article { min-height: 260px; }
}
@media (max-width: 767px) {
  #dla-ksiegowych .easkora-front__section-heading { gap: 12px; margin-bottom: 30px; }
  #dla-ksiegowych .easkora-front__section-heading::before,
  #dla-ksiegowych .easkora-front__section-heading::after { width: 24px; }
  #dla-ksiegowych .easkora-front__section-heading h2 { font-size: 32px; }
  #dla-ksiegowych .easkora-front__steps { gap: 18px; }
  #dla-ksiegowych .easkora-front__steps article {
    min-height: 0;
    padding: 48px 24px 28px;
  }
  #dla-ksiegowych .easkora-front__step-icon {
    width: 78px;
    height: 78px;
    margin-bottom: 20px;
  }
  #dla-ksiegowych .easkora-front__step-icon svg { width: 34px; height: 34px; }
  #dla-ksiegowych .easkora-front__steps p { max-width: 280px; }
}

/* Mobile refinement: turn the compact capability strip into four independent cards. */
@media (max-width: 767px) {
  .easkora-front__section--compact {
    padding: 28px 0 34px;
  }

  .easkora-front__section--compact + #funkcje {
    padding-top: 58px;
  }

  .easkora-front__trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .easkora-front__trust-grid article {
    min-width: 0;
    min-height: 148px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 18px 16px;
    border: 1px solid var(--easkora-front-color-border) !important;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(35, 45, 80, .06);
  }

  .easkora-front__trust-grid article span.easkora-front__icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
  }

  .easkora-front__trust-grid article b {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.25;
  }

  .easkora-front__trust-grid article small {
    display: block;
    font-size: 12.5px;
    line-height: 1.45;
  }
}

@media (max-width: 359px) {
  .easkora-front__trust-grid {
    grid-template-columns: 1fr;
  }

  .easkora-front__trust-grid article {
    min-height: 0;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    padding: 16px;
  }

  .easkora-front__trust-grid article span.easkora-front__icon {
    grid-row: 1 / 3;
    margin-bottom: 0;
  }
}

/* Mobile refinement: keep the icon tiles visibly separated from the card edge. */
@media (max-width: 767px) {
  .easkora-front__trust-grid article {
    padding-top: 24px;
  }

  .easkora-front__trust-grid article span.easkora-front__icon {
    margin-top: 4px;
  }
}

@media (max-width: 359px) {
  .easkora-front__trust-grid article span.easkora-front__icon {
    margin-top: 0;
  }
}

/* Public header: compact controls on tablet/mobile without squeezing desktop CTAs. */
@media (max-width: 991px) {
  .easkora-front__header-inner {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .easkora-front__brand {
    order: 1;
    flex: 0 0 auto;
  }

  .easkora-front__header-actions {
    order: 2;
    margin-left: auto;
    gap: 0;
  }

  .easkora-front .easkora-front__header .easkora-front__menu-toggle {
    order: 3;
    display: block;
    margin-left: 0;
    transform: none;
  }

  .easkora-front__nav {
    top: 78px;
  }

  .easkora-front__mobile-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--easkora-front-color-border);
  }

  .easkora-front__mobile-actions .easkora-front__button {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .easkora-front__nav {
    top: 70px;
  }
}

/* Public header mobile controls: reserve the far-right edge and keep language + menu together. */
@media (max-width: 767px) {
  .easkora-front .easkora-front__header .easkora-front__menu-toggle {
    margin-right: 32px;
  }
}
