@media (min-width: 769px) {
  .language-selector__trigger {
    gap: 4px;
  }

  .language-selector__arrow {
    width: 24px;
    height: 24px;
    margin-left: -4px;
    -webkit-mask-size: 10px 6px;
    mask-size: 10px 6px;
  }

}

@media (min-width: 769px) and (max-width: 1279px) {
  .container {
    width: min(1120px, calc(100% - 80px));
  }

  .section {
    margin-top: 20px;
  }

  .desktop-nav {
    min-height: 80px;
  }

  .hero__content {
    min-height: 0;
    grid-template-columns: clamp(360px, calc(100% - 352px), 560px) 320px;
    gap: 0;
    justify-content: space-between;
    align-items: start;
    padding-block: 40px;
  }

  .hero__copy {
    gap: 32px;
  }

  .hero__text {
    gap: 16px;
  }

  .hero h1 {
    font-size: 64px;
    letter-spacing: -0.02em;
  }

  .hero__media {
    width: 320px;
    height: 360px;
    border-radius: 64px 64px 32px 32px;
  }

  .service-marquee {
    height: 112px;
  }

  .service-marquee__group {
    gap: 16px;
    padding-inline: 8px;
  }

  .service-marquee__group span {
    font-size: 32px;
    letter-spacing: -0.02em;
  }

  .hero__media img {
    object-fit: fill;
  }

  .offer-feature::before {
    top: -16px;
    left: -24px;
    width: calc(100% + 48px);
    height: calc(100% + 32px);
  }

  .services {
    min-height: 0;
    padding-block: 20px;
  }

  .section-heading h2 {
    font-size: 48px;
    letter-spacing: -0.03em;
  }

  .section-heading {
    gap: 16px;
  }

  .services__content {
    grid-template-columns: minmax(0, 1fr) min(480px, calc((100% - 32px) / 2));
    gap: 32px;
    margin-top: 32px;
  }

  .services__media {
    position: relative;
    min-height: 0;
    height: auto;
  }

  .services__media img {
    position: absolute;
    inset: 0;
  }

  .services__panel {
    min-height: 0;
    gap: 24px;
  }

  .services__list {
    display: block;
  }

  .services__list li {
    height: auto;
    min-height: 144px;
  }


  .offer {
    min-height: 0;
    padding-block: 20px;
  }

  .offer__heading {
    width: min(1120px, calc(100% - 80px));
  }

  .offer__list {
    width: min(1168px, calc(100% - 32px));
    margin-top: 32px;
    gap: 32px;
  }

  .offer-card {
    border-radius: 16px;
  }

  .offer-card__inner {
    grid-template-columns: min(432px, calc((100% - 24px) / 2)) minmax(0, 1fr);
    gap: 24px;
    padding: 16px 24px;
  }

  .offer-feature {
    padding-block: 0;
  }

  .offer-feature h3 {
    font-size: 32px;
    letter-spacing: -0.02em;
  }

  .offer-card__media {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    align-self: stretch;
    border-radius: 16px;
  }

  .about {
    min-height: 444px;
    padding: 20px 0 4px;
  }

  .about__content {
    margin-top: 32px;
  }

  .values {
    min-height: 0;
    margin-top: 20px;
    padding: 80px 40px;
  }

  .values__inner {
    width: 100%;
  }

  .values__heading h2 {
    font-size: 48px;
    letter-spacing: -0.03em;
  }

  .values__heading p {
    font-size: 32px;
    letter-spacing: -0.02em;
  }

  .values__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .value-card {
    min-height: 218px;
  }

  .footer {
    min-height: 1012px;
    margin-top: 20px;
    padding: 40px 40px 80px;
  }

  .footer__inner {
    width: 100%;
  }

  .footer__cta h2,
  .footer__contact h2 {
    font-size: 32px;
    letter-spacing: -0.02em;
  }

  .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 72px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .desktop-nav {
    display: none;
  }

  .mobile-header {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 72px;
    overflow: visible;
    background: transparent;
  }

  .mobile-header__bar {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    height: 72px;
    align-items: center;
    justify-content: space-between;
    padding-inline: 16px;
    background: transparent;
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
  }

  .mobile-header__controls {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .language-selector__trigger {
    gap: 4px;
  }

  .language-selector__arrow {
    width: 24px;
    height: 24px;
    margin-left: -4px;
    -webkit-mask-size: 10px 6px;
    mask-size: 10px 6px;
  }

  .language-selector__globe {
    -webkit-mask-image: url("/assets/icon-globe-language-mobile.svg");
    mask-image: url("/assets/icon-globe-language-mobile.svg");
  }

  .language-selector__code {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0;
  }

  .menu-toggle {
    display: grid;
    width: 24px;
    height: 24px;
    cursor: pointer;
    place-items: center;
    border-radius: var(--radius-button);
    padding: 0;
    background: transparent;
  }

  .menu-toggle__icon {
    grid-area: 1 / 1;
    display: block;
    width: 24px;
    height: 24px;
  }

  .menu-toggle__icon--close,
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon--menu {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__icon--close {
    display: block;
  }

  .mobile-menu {
    position: absolute;
    z-index: 1;
    top: 72px;
    left: 0;
    display: flex;
    visibility: hidden;
    width: 100%;
    height: 248px;
    flex-direction: column;
    padding: 0 16px 16px;
    transform: translateY(-12px);
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .mobile-menu.is-open {
    visibility: visible;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .menu-open .mobile-header {
    height: 320px;
    background: var(--color-page);
  }

  .mobile-menu a:not(:last-child) {
    min-height: 56px;
    border-top: 1px solid var(--color-line);
    padding: 16px 0;
    font-size: 24px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: -0.02em;
  }

  .mobile-menu a:last-child {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    border-radius: var(--radius-button);
    padding: 16px 40px;
    background: var(--color-yellow);
    box-shadow: var(--shadow-button-mobile);
    font-size: 16px;
    font-weight: 600;
    line-height: 100%;
  }

  .section,
  .values,
  .footer {
    margin-top: 0;
  }

  .hero {
    padding-top: 72px;
  }

  .hero__content {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 24px;
    padding-block: 24px;
  }

  .hero__media {
    order: -1;
    width: 100%;
    height: auto;
    aspect-ratio: 1.308;
    border-radius: 32px 32px 16px 16px;
  }

  .hero__copy {
    width: 100%;
    gap: 24px;
  }

  .hero__text {
    width: 100%;
    gap: 16px;
  }

  .hero h1 {
    max-width: none;
    font-size: 36px;
    line-height: 110%;
    letter-spacing: -0.02em;
  }

  .hero__lead {
    max-width: none;
    font-size: 18px;
    line-height: 140%;
    letter-spacing: -0.005em;
  }

  .hero .button,
  .services__panel > .button,
  .offer-feature .button,
  .footer__cta .button {
    width: 100%;
    box-shadow: var(--shadow-button-mobile);
  }

  .service-marquee {
    height: 104px;
  }

  .service-marquee__group {
    gap: 8px;
    padding-inline: 4px;
  }

  .service-marquee__group span {
    font-size: 24px;
    letter-spacing: -0.02em;
  }

  .services {
    padding-block: 32px 16px;
  }

  .section-heading {
    gap: 16px;
  }

  .section-heading h2 {
    font-size: 32px;
    line-height: 100%;
    letter-spacing: -0.02em;
  }

  .eyebrow {
    font-size: 18px;
  }

  .services__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
  }

  .services__media {
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 1;
    border-radius: 16px;
  }

  .services__panel {
    gap: 16px;
  }

  .services__list li,
  .services__list li:nth-child(4) {
    height: auto;
    min-height: 0;
  }

  .services__list a {
    gap: 16px;
    padding-block: 24px;
  }

  .services__title strong {
    font-size: 18px;
  }

  .services__description {
    font-size: 18px;
  }

  .services__panel > .button {
    width: 100%;
  }

  .offer {
    padding-block: 32px 16px;
  }

  .offer__heading {
    width: calc(100% - 48px);
  }

  .offer__list {
    width: calc(100% - 24px);
    margin-top: 32px;
    gap: 32px;
  }

  .offer-card {
    min-height: 0 !important;
    border-radius: 16px;
  }

  .offer-card__inner {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 24px;
    padding: 12px;
  }

  .offer-card__media {
    order: -1;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 16px;
  }

  .offer-card:nth-child(1) .offer-card__media,
  .offer-card:nth-child(4) .offer-card__media {
    height: 433px;
    aspect-ratio: auto;
  }

  .offer-feature {
    max-width: none;
    min-height: 547px;
    padding: 0;
  }

  .offer-feature::before {
    top: 0;
    left: -12px;
    width: calc(100% + 24px);
    height: calc(100% + 12px);
  }

  .offer-feature__index {
    margin-bottom: 24px;
    font-size: 18px;
  }

  .offer-feature h3 {
    margin-bottom: 24px;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: -0.02em;
  }

  .offer-feature li {
    font-size: 18px;
    line-height: 140%;
  }

  .offer-feature__stats {
    gap: 12px;
    margin-top: 24px;
  }

  .offer-feature__stats span {
    font-size: 18px;
  }

  .offer-feature__stats strong {
    font-size: 24px;
  }

  .offer-feature .button {
    margin-top: 24px;
  }

  .about {
    padding-block: 32px 16px;
  }

  .about__content {
    gap: 16px;
    margin-top: 16px;
    font-size: 18px;
    line-height: 140%;
  }

  .about__content h3 {
    font-size: 18px;
  }

  .values {
    min-height: 0;
    padding: 80px 16px;
  }

  .values__inner {
    width: 100%;
    gap: 40px;
  }

  .values__heading h2 {
    font-size: 32px;
    letter-spacing: -0.02em;
  }

  .values__heading p {
    font-size: 24px;
    line-height: 100%;
    letter-spacing: -0.02em;
  }

  .values__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .value-card {
    min-height: 0;
    gap: 24px;
    padding: 32px;
  }

  .footer {
    height: auto;
    min-height: 0;
    padding: 16px;
  }

  .footer__inner {
    width: 100%;
    min-height: 0;
    gap: 32px;
  }

  .footer__cta {
    gap: 24px;
  }

  .footer__cta h2,
  .footer__contact h2 {
    font-size: 24px;
    line-height: 100%;
    letter-spacing: -0.02em;
  }

  .contact-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-item a {
    font-size: 18px;
    letter-spacing: -0.01em;
  }

  .contact-item p,
  .footer__copyright {
    font-size: 18px;
  }

  .footer__copyright {
    margin-top: 0;
    padding-block: 16px;
  }

  .consent-banner {
    padding: 16px;
  }

  .consent-banner__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .consent-banner p {
    max-width: none;
  }

  .consent-banner__actions {
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .mobile-header__controls {
    gap: 16px;
  }

  .offer-card:nth-child(1) .offer-card__media,
  .offer-card:nth-child(4) .offer-card__media {
    height: 343px;
  }

  .hero__content {
    gap: 16px;
    padding-block: 16px 24px;
  }

  .hero__media {
    aspect-ratio: 343 / 298;
  }

  .hero__lead--wide {
    display: none;
  }

  .hero__lead--mobile {
    display: block;
  }

  .responsive-cta-label--wide {
    display: none;
  }

  .responsive-cta-label--mobile {
    display: inline;
  }

  .consent-banner__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .consent-banner .button {
    width: 100%;
  }

  .service-marquee {
    height: 88px;
  }

  .services {
    padding-top: 32px;
  }

  .services__content {
    gap: 16px;
    margin-top: 16px;
  }


  .offer__heading {
    width: calc(100% - 32px);
  }

  .offer__list {
    width: calc(100% - 16px);
    margin-top: 24px;
    gap: 24px;
  }

  .offer-card__inner {
    gap: 24px;
    padding: 8px;
  }

  .offer-feature::before {
    left: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 8px);
  }

  .offer-feature {
    min-height: 621px;
  }

  .offer-card:nth-child(2) .offer-feature {
    min-height: 622px;
  }

  .offer-card:nth-child(3) .offer-feature {
    min-height: 648px;
  }

  .offer-card:nth-child(4) .offer-feature {
    min-height: 689px;
  }

  .offer-card:nth-child(5) .offer-feature {
    min-height: 606px;
  }

  .about {
    padding-top: 32px;
  }

  .values {
    padding: 80px 16px;
  }

  .value-card {
    padding: 32px;
  }


}

@media (max-width: 374px) {
  .button {
    padding-inline: 20px;
    white-space: normal;
    text-align: center;
  }

  .brand {
    font-size: 21px;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }
}

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


/* Reference-mode refinements verified against the 769, 481, and 375 Figma frames. */
@media (min-width: 769px) and (max-width: 1279px) {
  .services__list a {
    padding-block: 22px;
  }

  .values__inner {
    gap: 32px;
  }

  .value-card {
    min-height: 222px;
    padding: 40px;
  }

  html[lang="en"] .value-card {
    height: 222px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .container {
    width: calc(100% - 48px);
  }

  .about__content {
    gap: 24px;
    margin-top: 24px;
  }

  .values {
    min-height: 986px;
    padding: 48px 24px;
  }

  .values__inner {
    gap: 32px;
  }

  .values__grid {
    gap: 20px;
  }

  .value-card {
    min-height: 246px;
    padding: 40px;
  }

  html[lang="en"] .value-card {
    height: 246px;
  }

  .offer-card:nth-child(1),
  .offer-card:nth-child(2),
  .offer-card:nth-child(3),
  .offer-card:nth-child(4),
  .offer-card:nth-child(5) {
    height: auto;
  }

  .offer-feature {
    min-height: 0;
    flex: 1;
  }
}

@media (max-width: 480px) {
  .values {
    min-height: 1066px;
    padding: 40px 16px;
  }

  .values__inner {
    gap: 16px;
  }

  .values__grid {
    gap: 16px;
  }

  .value-card {
    min-height: 278px;
    padding: 40px;
  }

  html[lang="en"] .value-card {
    height: 278px;
  }

  .offer-card:nth-child(1),
  .offer-card:nth-child(2),
  .offer-card:nth-child(3),
  .offer-card:nth-child(4),
  .offer-card:nth-child(5) {
    height: auto;
  }

  .offer-feature,
  .offer-card:nth-child(2) .offer-feature,
  .offer-card:nth-child(3) .offer-feature,
  .offer-card:nth-child(4) .offer-feature,
  .offer-card:nth-child(5) .offer-feature {
    min-height: 0;
    flex: 1;
  }
}

/* Fluid interpolation inside the Figma tablet/compact-desktop state. */
@media (min-width: 900px) and (max-width: 1279px) {
  .offer-card:nth-child(1) { min-height: 700px; }
  .offer-card:nth-child(2) { min-height: 676px; }
  .offer-card:nth-child(3) { min-height: 732px; }
  .offer-card:nth-child(4) { min-height: 752px; }
  .offer-card:nth-child(5) { min-height: 712px; }

  html[lang="en"] .offer-card:nth-child(1) { height: 700px; }
  html[lang="en"] .offer-card:nth-child(2) { height: 676px; }
  html[lang="en"] .offer-card:nth-child(3) { height: 732px; }
  html[lang="en"] .offer-card:nth-child(4) { height: 752px; }
  html[lang="en"] .offer-card:nth-child(5) { height: 712px; }

  html[lang="en"] .values__heading p {
    white-space: nowrap;
  }
}

@media (min-width: 769px) and (max-width: 899px) {
  .offer-card:nth-child(1) { min-height: 784px; }
  .offer-card:nth-child(2) { min-height: clamp(760px, calc(1482px - 90.2vw), 788px); }
  .offer-card:nth-child(3) { min-height: 844px; }
  .offer-card:nth-child(4) { min-height: 836px; }
  .offer-card:nth-child(5) { min-height: clamp(744px, calc(1363px - 77.4vw), 768px); }

  html[lang="en"] .offer-card:nth-child(1) { height: 784px; }
  html[lang="en"] .offer-card:nth-child(2) { height: clamp(760px, calc(1482px - 90.2vw), 788px); }
  html[lang="en"] .offer-card:nth-child(3) { height: 844px; }
  html[lang="en"] .offer-card:nth-child(4) { height: 836px; }
  html[lang="en"] .offer-card:nth-child(5) { height: clamp(744px, calc(1363px - 77.4vw), 768px); }

  .footer {
    min-height: 1044px;
  }
}

@media (min-width: 769px) and (max-width: 799px) {
  .hero h1 {
    max-width: 337px;
  }

  .about {
    min-height: 576px;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .services__content {
    min-height: clamp(792px, calc(983px - 15.9vw), 820px);
  }
}

@media (min-width: 900px) and (max-width: 1023px) {
  .services__content {
    min-height: calc(1712px - 87.1vw);
  }
}

@media (min-width: 769px) and (max-width: 800px) {
  .services__content {
    min-height: calc(1702px - 90.2vw);
  }
}

@media (min-width: 801px) and (max-width: 899px) {
  .services__content {
    min-height: calc(1396px - 52vw);
  }
}

@media (width: 900px) {
  .offer-card:nth-child(4) {
    min-height: 776px;
  }
}

/* Preserve CTA clearance across the two compact-desktop wrap seams. */
@media (min-width: 769px) and (max-width: 770.99px) {
  .offer-card:nth-child(3) {
    min-height: 872px !important;
  }
}

@media (min-width: 901px) and (max-width: 901.99px) {
  .offer-card:nth-child(4) {
    min-height: 776px !important;
  }
}

/* Published-site interpolation between the 481px and 769px Figma states. */
@media (min-width: 482px) and (max-width: 600px) {
  .services__list li,
  .services__list li:nth-child(4) {
    min-height: 158px;
  }

  .services__list li:not(:nth-child(4)) {
    min-height: 133px;
  }

  html[lang="en"] .services__list li,
  html[lang="en"] .services__list li:nth-child(4) {
    height: 158px;
  }

  html[lang="en"] .services__list li:not(:nth-child(4)) {
    height: 133px;
  }

  .about { min-height: calc(923px - 69.8vw); }
  .values { min-height: 986px; }
}

@media (min-width: 601px) and (max-width: 700px) {
  .services__list li,
  .services__list li:nth-child(4) {
    min-height: calc(218px - 10vw);
  }

  .services__list li:not(:nth-child(4)) {
    min-height: calc(193px - 10vw);
  }

  html[lang="en"] .services__list li,
  html[lang="en"] .services__list li:nth-child(4) {
    height: calc(218px - 10vw);
  }

  html[lang="en"] .services__list li:not(:nth-child(4)) {
    height: calc(193px - 10vw);
  }

  .about { min-height: calc(654px - 25vw); }
  .values { min-height: calc(1130px - 24vw); }
}

@media (min-width: 701px) and (max-width: 768px) {
  .services__list li,
  .services__list li:nth-child(4) {
    min-height: calc(200px - 7.35vw);
  }

  .services__list li:not(:nth-child(4)) {
    min-height: calc(175px - 7.35vw);
  }

  html[lang="en"] .services__list li,
  html[lang="en"] .services__list li:nth-child(4) {
    height: calc(200px - 7.35vw);
  }

  html[lang="en"] .services__list li:not(:nth-child(4)) {
    height: calc(175px - 7.35vw);
  }

  .about { min-height: calc(736px - 36.8vw); }
  .values { min-height: 962px; }
}

@media (width: 600px) {
  .services { min-height: 1509px; }
}

@media (width: 768px) {
  .services { min-height: 1570px; }
  html[lang="en"] .services { height: 1570px; }
  .about { min-height: 454px; }
}

@media (min-width: 769px) and (max-width: 1279px) {
  .contact-list {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }
}

@media (max-width: 768px) {
  .hero__media {
    background: var(--color-hero);
  }

  .hero__media img {
    width: 100%;
    margin-inline: 0;
    object-fit: cover;
  }
}

@media (min-width: 769px) and (max-width: 1279px) {
  .footer__inner {
    gap: 56px;
  }
}

@media (min-width: 769px) and (max-width: 868px) {
  html[lang="pl"] .hero h1,
  html[lang="uk"] .hero h1 {
    font-size: 48px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: -0.03em;
  }
}

/* Keep desktop Offer media at the approved EN height when localized copy grows. */
@media (min-width: 1280px) {
  .offer-card:nth-child(1) { --offer-media-height: 724px; }
  .offer-card:nth-child(2) { --offer-media-height: 700px; }
  .offer-card:nth-child(3) { --offer-media-height: 756px; }
  .offer-card:nth-child(4) { --offer-media-height: 800px; }
  .offer-card:nth-child(5) { --offer-media-height: 736px; }
}

@media (min-width: 900px) and (max-width: 1279px) {
  .offer-card:nth-child(1) { --offer-media-height: 668px; }
  .offer-card:nth-child(2) { --offer-media-height: 644px; }
  .offer-card:nth-child(3) { --offer-media-height: 732px; }
  .offer-card:nth-child(4) { --offer-media-height: 744px; }
  .offer-card:nth-child(5) { --offer-media-height: 712px; }
}

@media (min-width: 800px) and (max-width: 899px) {
  .offer-card:nth-child(1) { --offer-media-height: 752px; }
  .offer-card:nth-child(2) { --offer-media-height: 728px; }
  .offer-card:nth-child(3) { --offer-media-height: 812px; }
  .offer-card:nth-child(4) { --offer-media-height: 804px; }
  .offer-card:nth-child(5) { --offer-media-height: 712px; }
}

@media (min-width: 769px) and (max-width: 799px) {
  .offer-card:nth-child(1) { --offer-media-height: 752px; }
  .offer-card:nth-child(2) {
    --offer-media-height: clamp(728px, calc(1450px - 90.2vw), 756px);
  }
  .offer-card:nth-child(3) { --offer-media-height: 840px; }
  .offer-card:nth-child(4) { --offer-media-height: 804px; }
  .offer-card:nth-child(5) {
    --offer-media-height: clamp(712px, calc(1331px - 77.4vw), 736px);
  }
}

@media (min-width: 769px) {
  .offer-card__media {
    height: var(--offer-media-height);
    align-self: center;
  }
}
