/* Phones and small tablets: the small-screen polish for every page, in one place. Loaded last in <head>.
   Some section styles load later in the page (sell.css, fly.css, ask.css), so rules here start with `body`
   to win over them without !important. */

/* Packages: the add-on titles inherited the dark section's near-white text (invisible on the cream card) */
.pk__addon h3 { color: var(--lt-ink, #142022); }

@media (max-width: 700px) {
  /* Calmer spacing: sections were ~190px apart on a phone */
  :root { --sec: 64px; }
  body .wk, body .pk, body .jobs, body .hw, body .tr, body .ask { padding-block: 64px; }
  body .sp-end { padding-block: 72px 64px; }
  body .endcall { padding-block: 56px; }
  body .story, body .next { padding-block: 56px; }
  body .phero { padding-top: 112px; padding-bottom: 48px; }

  /* About: the headline first, the portrait under it */
  .teaser .portrait { order: 2; max-width: none; aspect-ratio: 4 / 3; }
  .teaser .portrait .photo { aspect-ratio: auto; object-position: 50% 25%; }

  /* Home trust: Darco's photo as wide as the text, not a narrow column */
  body .tr__face { max-width: none; }
  body .tr__face .photo { aspect-ratio: 4 / 3; object-position: 50% 22%; }

  /* Packages table: names and prices line up even though Premium carries the "Most chosen" tag */
  body .pk-head > div { justify-content: flex-start; padding-top: 34px; position: relative; }
  body .pk-head b { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap; font-size: 12px; padding: 2px 7px; }
  body .pk-row > div { font-size: 14px; }
  body .pk-row > .pk-f { font-size: 15px; padding: 14px 14px 2px; }
  body .pk-foot > div { padding: 14px 6px; }
  body .pk-foot .btn { min-height: 48px; line-height: 1.15; white-space: normal; }
  body .pk__addon { padding: 22px 20px; gap: 14px; }
  body .pk__addon .btn--line { width: 100%; justify-content: center; }

  /* How it works: one step per row reads better than two squeezed columns */
  body .hw__steps { grid-template-columns: 1fr; }
  body .hw__steps li { padding: 20px 0 18px; }

  /* Case pages: pictures next to each need */
  .nv--pal { grid-template-columns: 1fr 1fr; height: auto; }
  .nv--pal span { min-height: 84px; }
  .nv-call__ticket small { padding-right: 76px; }
  .nv--doc p { flex-direction: column; gap: 4px; }
  .nv--doc p b { text-align: left; overflow-wrap: anywhere; }
  .nv-proj__c { font-size: 12px; }

  /* Footer: comfortable tap targets */
  .ftr__cols ul { gap: 0; }
  .ftr__cols li a { display: inline-block; padding-block: 10px; }
  .ftr__cols .ftr__h { margin-bottom: 4px; }

  /* Laptop captions: "Read more" was a 21px-high tap target */
  .lp-case { padding-block: 12px; margin-block: -12px; }

  /* Header: bigger touch area for the logo and the 3D switch, without changing how they look */
  .hdr .logo, .hdr .sw3d { padding-block: 10px; margin-block: -10px; }
}

/* 3D home, every screen size: "skip intro" steps aside while the laptop (with its own project buttons) is on screen;
   with five sites the buttons reach the corner where it sits */
@media (max-width: 700px) { .lp-on .skip3d.on { top: 76px; right: 12px; } .skip3d { font-size: 15px; padding: 0 20px; } }

/* Case pages: the section menu steps aside once the closing call reaches it (it used to sit over the footer) */
.case-nav { transition: transform .3s ease, opacity .3s ease; }
.case-nav.is-done { transform: translateY(-100%); opacity: 0; pointer-events: none; }
/* very small phones (320–374 px): the header's logo, 3D switch and Menu button fit without spilling over */
@media (max-width: 374px) {
  body .hdr { gap: 8px; }
  body .menu-btn { padding: 8px 12px; }
  body .hdr .nav { gap: 10px; }
}
