/* UNIBRIDGE Mobile UX v2 — 2026-10-12
   Desktop remains untouched. Everything below is mobile-only. */

.m-only,
.m-sticky-cta,
.m-comment-toggle {
  display: none;
}

@media (max-width: 760px) {
  :root {
    --m-gutter: 18px;
    --m-section: 72px;
    --m-gold: #d6b36a;
    --m-navy: var(--navy, #0d2733);
    --m-cream: var(--cream, #f7f5ef);
    --m-line: var(--line, #d9ddd4);
  }

  html {
    scroll-padding-top: 78px;
  }

  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .m-only {
    display: block;
  }

  /* ---------------------------------------------------------
     Header: compact, obvious, no unnecessary mobile nav noise
     --------------------------------------------------------- */
  .header {
    height: 68px !important;
  }

  .header-inner {
    width: calc(100% - 32px) !important;
    gap: 6px !important;
  }

  .brand {
    width: 68px !important;
    height: 46px !important;
  }

  .language-toggle,
  .theme-toggle,
  .menu-toggle {
    min-height: 38px !important;
    height: 38px !important;
  }

  #navigation a[href="#education"],
  #navigation a[href="#why-poland"] {
    display: none !important;
  }

  .footer-nav-column a[href="#education"],
  .footer-nav-column a[href="#why-poland"] {
    display: none !important;
  }

  /* ---------------------------------------------------------
     Hero: one proposition, one CTA, one visual hierarchy
     --------------------------------------------------------- */
  #home .hero-copy {
    display: none !important;
  }

  #home .container {
    width: 100% !important;
    max-width: none !important;
  }

  #home .hero-grid {
    min-height: calc(100svh - 68px);
    display: flex !important;
    align-items: flex-end;
    padding: 44px 0 34px !important;
    position: relative;
  }

  #home .m-hero-copy {
    display: block;
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 560px;
    padding-inline: 18px;
  }

  #home .m-hero-copy .m-kicker {
    margin: 0 0 16px;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--m-gold);
    font-weight: 700;
  }

  #home .m-hero-copy h1 {
    margin: 0;
    max-width: 520px;
    font-size: clamp(40px, 11.2vw, 54px) !important;
    line-height: 1.02 !important;
    letter-spacing: -.05em !important;
    text-wrap: balance;
  }

  #home .m-hero-copy h1 em {
    color: var(--m-gold);
    font-style: normal;
  }

  #home .m-hero-copy .m-hero-lead {
    max-width: 500px;
    margin: 20px 0 0;
    font-size: 16px;
    line-height: 1.62;
    color: inherit;
    opacity: .92;
  }

  #home .m-hero-copy .m-primary-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    margin-top: 26px;
    padding: 14px 18px;
    border-radius: 999px;
    background: var(--m-gold);
    color: #0d2733;
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
    box-shadow: 0 10px 28px rgba(214,179,106,.18);
  }

  #home .m-hero-copy .m-countries {
    margin: 15px 0 0;
    font-size: 12px;
    line-height: 1.5;
    opacity: .76;
  }

  #home:before {
    background:
      linear-gradient(180deg, rgba(11,35,49,.16) 0%, rgba(11,35,49,.55) 44%, rgba(11,35,49,.96) 100%),
      linear-gradient(90deg, rgba(11,35,49,.60), rgba(11,35,49,.18)) !important;
  }

  #home .hero-image img {
    object-position: 52% center !important;
    opacity: .82 !important;
  }

  #home .credibility {
    display: none !important;
  }

  /* Remove desktop-heavy sections from the mobile funnel. */
  #education,
  #why-poland,
  #services,
  #about,
  .presence {
    display: none !important;
  }

  /* ---------------------------------------------------------
     New mobile funnel
     --------------------------------------------------------- */
  .m-mobile-funnel {
    display: block;
  }

  .m-section {
    padding: var(--m-section) 0;
  }

  .m-section + .m-section {
    border-top: 1px solid var(--m-line);
  }

  .m-wrap {
    width: calc(100% - 36px);
    margin: 0 auto;
  }

  .m-eyebrow {
    margin: 0 0 14px;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: #a47c2f;
    font-weight: 800;
  }

  .m-title {
    margin: 0;
    font-size: clamp(30px, 8.2vw, 38px);
    line-height: 1.08;
    letter-spacing: -.04em;
    text-wrap: balance;
  }

  .m-copy {
    margin: 16px 0 0;
    font-size: 15px;
    line-height: 1.7;
    opacity: .83;
  }

  /* Trust */
  .m-trust {
    padding-top: 52px;
    padding-bottom: 58px;
  }

  .m-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 28px;
    border-top: 1px solid var(--m-line);
    border-bottom: 1px solid var(--m-line);
  }

  .m-trust-item {
    min-height: 74px;
    display: flex;
    align-items: center;
    padding: 14px 10px 14px 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 650;
  }

  .m-trust-item:nth-child(even) {
    padding-left: 16px;
    border-left: 1px solid var(--m-line);
  }

  .m-trust-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--m-line);
  }

  .m-team-note {
    margin: 22px 0 0;
    padding-left: 15px;
    border-left: 3px solid var(--m-gold);
    font-size: 14px;
    line-height: 1.62;
  }

  /* 3-step journey */
  .m-steps {
    counter-reset: mstep;
  }

  .m-step-list {
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
  }

  .m-step {
    position: relative;
    padding: 0 0 32px 56px;
  }

  .m-step:last-child {
    padding-bottom: 0;
  }

  .m-step:before {
    counter-increment: mstep;
    content: "0" counter(mstep);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--m-gold);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: #8b6827;
  }

  .m-step:not(:last-child):after {
    content: "";
    position: absolute;
    left: 18px;
    top: 42px;
    bottom: 6px;
    width: 1px;
    background: var(--m-line);
  }

  .m-step h3 {
    margin: 2px 0 8px;
    font-size: 20px !important;
    line-height: 1.25;
  }

  .m-step p {
    margin: 0;
    font-size: 14px;
    line-height: 1.68;
    opacity: .8;
  }

  /* Services: closed by default, details on demand */
  .m-service-list {
    margin-top: 28px;
    border-top: 1px solid var(--m-line);
  }

  .m-service-list details {
    margin: 0;
    border-bottom: 1px solid var(--m-line);
  }

  .m-service-list summary {
    position: relative;
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: 15px 36px 15px 0 !important;
    font-size: 16px !important;
    line-height: 1.35;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
  }

  .m-service-list summary::-webkit-details-marker {
    display: none;
  }

  .m-service-list summary:after {
    content: "+";
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    line-height: 1;
    font-weight: 350;
    color: #9a742b;
  }

  .m-service-list details[open] summary:after {
    content: "−";
  }

  .m-service-list details p {
    margin: 0;
    padding: 0 26px 20px 0;
    font-size: 14px;
    line-height: 1.7;
    opacity: .8;
  }

  /* Price = strongest visual accent after hero */
  .m-price {
    border-top: 0 !important;
    padding: 22px 0 72px;
  }

  .m-price-card {
    padding: 30px 24px;
    border-radius: 20px;
    background: #0d2733;
    color: #f8f5ec;
    overflow: hidden;
    position: relative;
  }

  .m-price-card:after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -86px;
    top: -80px;
    border: 1px solid rgba(214,179,106,.23);
    border-radius: 50%;
  }

  .m-price-card .m-eyebrow {
    color: var(--m-gold);
  }

  .m-price-card h2 {
    margin: 0;
    color: inherit;
    font-size: 27px !important;
    line-height: 1.15;
  }

  .m-price-number {
    margin: 16px 0 0;
    font-size: clamp(42px, 13vw, 58px);
    line-height: 1;
    letter-spacing: -.055em;
    color: var(--m-gold);
    font-weight: 750;
  }

  .m-price-card > p {
    margin: 16px 0 0;
    max-width: 440px;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(248,245,236,.78);
  }

  .m-price-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin: 24px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255,255,255,.14);
  }

  .m-price-points span {
    font-size: 12px;
    line-height: 1.4;
  }

  .m-price-points span:before {
    content: "✓";
    margin-right: 6px;
    color: var(--m-gold);
  }

  .m-price-card .m-price-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 52px;
    margin-top: 25px;
    padding: 13px 17px;
    border-radius: 999px;
    background: var(--m-gold);
    color: #0d2733;
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
  }

  /* Founders */
  .m-founder-media {
    margin: 26px 0 22px;
  }

  .m-founder-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center 34%;
    border-radius: 14px;
  }

  .m-founder-link {
    display: inline-flex;
    margin-top: 19px;
    min-height: 42px;
    align-items: center;
    color: inherit;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
  }

  /* Geography */
  .m-cities-list {
    margin: 24px 0 0;
    font-size: clamp(20px, 6vw, 26px);
    line-height: 1.55;
    letter-spacing: -.025em;
    font-weight: 600;
    text-wrap: balance;
  }

  /* ---------------------------------------------------------
     Existing FAQ: keep it, but make it calm and obvious
     --------------------------------------------------------- */
  #faq {
    padding: 68px 0 !important;
  }

  #faq .faq-grid {
    display: block !important;
  }

  #faq .faq-grid > div:first-child .eyebrow,
  #faq .faq-grid > div:first-child > p:not(.eyebrow),
  #faq .faq-grid > div:first-child > .text-link {
    display: none !important;
  }

  #faq .faq-grid > div:first-child {
    margin-bottom: 20px;
  }

  #faq .faq-grid > div:first-child h2 {
    margin: 0;
    font-size: clamp(30px, 8.2vw, 38px) !important;
    line-height: 1.08;
  }

  #faq .faq-list {
    border-top: 1px solid var(--m-line);
  }

  #faq .faq-list details {
    border-bottom: 1px solid var(--m-line);
  }

  #faq .faq-list summary {
    min-height: 58px;
    padding: 16px 38px 16px 0 !important;
    font-size: 15px !important;
    line-height: 1.45;
    font-weight: 650;
  }

  #faq details > p {
    padding-right: 18px !important;
    font-size: 14px !important;
    line-height: 1.72 !important;
  }

  /* ---------------------------------------------------------
     Contact/form: one column, five obvious choices, optional text
     --------------------------------------------------------- */
  #contact {
    padding: 64px 0 54px !important;
  }

  #contact .contact-grid {
    display: block !important;
  }

  #contact .contact-grid > div:first-child {
    margin-bottom: 34px;
  }

  #contact .contact-direct,
  #contact .telegram-links,
  #contact .contact-location {
    margin-top: 14px !important;
  }

  #consultation {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #consultation .form-heading {
    margin-bottom: 24px !important;
  }

  #consultation .form-heading .eyebrow {
    display: none !important;
  }

  #consultation .form-heading h3 {
    margin: 0 0 10px !important;
    font-size: 27px !important;
    line-height: 1.13;
  }

  #consultation .form-heading p {
    margin: 0;
    max-width: 500px;
    font-size: 14px;
    line-height: 1.65;
  }

  #consultation .form-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  #consultation label,
  #consultation .choice-field {
    margin-bottom: 17px !important;
    font-size: 13px !important;
  }

  #consultation input,
  #consultation textarea,
  #consultation .choice-trigger {
    min-height: 54px !important;
    margin-top: 7px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
  }

  #consultation .m-intake-field {
    display: none !important;
  }

  #consultation .m-comment-field {
    display: none !important;
  }

  #consultation .m-comment-field.is-open {
    display: block !important;
  }

  .m-comment-toggle {
    width: 100%;
    min-height: 46px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin: 1px 0 16px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--m-line);
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
  }

  .m-comment-toggle span:last-child {
    font-size: 20px;
    color: #9a742b;
  }

  #consultation [type="submit"] {
    width: 100%;
    min-height: 54px !important;
    margin-top: 3px;
  }

  #consultation .form-note {
    font-size: 11px;
    line-height: 1.55;
    opacity: .7;
  }

  /* ---------------------------------------------------------
     Sticky CTA
     --------------------------------------------------------- */
  .m-sticky-cta {
    position: fixed;
    z-index: 80;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    border-radius: 999px;
    border: 1px solid rgba(214,179,106,.45);
    background: rgba(13,39,51,.96);
    color: #f8f5ec;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 34px rgba(13,39,51,.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateY(0);
    opacity: 1;
    transition: transform .2s ease, opacity .2s ease;
  }

  .m-sticky-cta span:last-child {
    color: var(--m-gold);
  }

  .m-sticky-cta.is-hidden {
    pointer-events: none;
    transform: translateY(120%);
    opacity: 0;
  }

  footer {
    padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
  }


  /* Tone down lower-page yellow accents on mobile. */
  #faq .button,
  #contact .button {
    background: rgba(13,39,51,.96) !important;
    color: #f8f5ec !important;
    border: 1px solid rgba(214,179,106,.42) !important;
    box-shadow: 0 10px 24px rgba(13,39,51,.12) !important;
  }

  #faq .button .icon-arrow svg,
  #contact .button .icon-arrow svg {
    stroke: var(--m-gold) !important;
  }

  /* Dark theme refinements */
  html[data-theme="dark"] .m-section + .m-section,
  html[data-theme="dark"] .m-trust-grid,
  html[data-theme="dark"] .m-trust-item,
  html[data-theme="dark"] .m-service-list,
  html[data-theme="dark"] .m-service-list details,
  html[data-theme="dark"] #faq .faq-list,
  html[data-theme="dark"] #faq .faq-list details,
  html[data-theme="dark"] .m-comment-toggle {
    border-color: #35505b !important;
  }

  html[data-theme="dark"] .m-eyebrow,
  html[data-theme="dark"] .m-step:before,
  html[data-theme="dark"] .m-service-list summary:after,
  html[data-theme="dark"] .m-comment-toggle span:last-child {
    color: var(--m-gold);
  }

  html[data-theme="dark"] .m-step:before {
    border-color: var(--m-gold);
  }

  @media (prefers-reduced-motion: reduce) {
    .m-sticky-cta {
      transition: none;
    }
  }
}

@media (max-width: 380px) {
  .m-wrap {
    width: calc(100% - 28px);
  }

  .m-price-card {
    padding: 26px 20px;
  }

  .m-price-points {
    grid-template-columns: 1fr;
  }
}
