/* ==========================================================
   Phone layout (screens narrower than 768px)
   Follows the Figma "Mobile view-homepage" frame (402px wide):
   20px side margins, 72px above each section heading.
   Desktop and tablet are not affected by anything in here.
   ========================================================== */
@media (max-width: 767.98px) {
  html, body { overflow-x: clip; max-width: 100%; }

  /* ---------- Shared pieces ---------- */
  .section-head { padding: 0 20px !important; gap: 0; }
  .section-heading, .faq__title, .blog-section__title, .cta-needs__title {
    font-size: 30px; line-height: 39px; letter-spacing: 0;
  }
  .section-head__title-group .section-divider { margin-top: 24px; }
  .section-head .section-intro { margin-top: 28px; font-size: 16px; line-height: 28px; }
  .section-head .circle-link { margin-top: 24px !important; }
  .circle-link { font-size: 18px; }

  /* ---------- Header + phone menu ---------- */
  .site-header, .site-header__inner { height: 78px; }
  .site-header__logo { left: 20px; top: 25px; width: 145px; height: 27px; }
  .site-header__logo img { width: 145px; height: 27px; }
  .nav-toggle { right: 20px; top: 18px; width: 42px; height: 42px; padding: 0; display: flex; align-items: center; justify-content: center; z-index: 3; }
  .nav-toggle svg { width: 30px; height: 30px; }
  .site-header.is-open { position: fixed; height: 100vh; height: 100dvh; background: var(--color-hero-bg); transform: none !important; }
  .site-header.is-open .site-header__inner { height: 100%; }
  .site-header.is-open .main-nav__item { width: auto; }
  .site-header.is-open .main-nav {
    top: 78px; bottom: 0; height: auto; gap: 25px; overflow-y: auto;
    padding: 32px 30px 40px; background: none;
  }
  .site-header.is-open .main-nav__link { font-size: 18px; line-height: 27px; height: auto; text-transform: none; font-weight: 500; }
  .site-header.is-open .header-cta {
    display: inline-flex; position: absolute; left: 30px; right: auto; top: auto; bottom: 40px;
    font-size: 18px; text-transform: none;
  }
  .site-header.is-open .nav-toggle svg path { d: path("M6 6l16 16M22 6L6 22"); }

  /* ---------- Hero ---------- */
  .hero__slide { height: 820px; min-height: 0; display: flex; align-items: flex-start; padding: 0; background-position: 30% center; }
  .hero__art, .hero__arrow { display: none; }
  .hero__content { padding: 233px 20px 0; }
  .hero__title { width: auto; min-height: 0; font-size: 35px; line-height: 44px; }
  .hero-rank { gap: 30px; margin-top: 28px; align-items: center; }
  .hero-rank__number { width: auto; font-size: 48px; line-height: 52px; }
  .hero-rank__text { padding-top: 0; }
  .hero-rank__label { height: auto; font-size: 22px; line-height: 28px; }
  .hero-rank__caption { font-size: 16px; line-height: 23px; }
  .hero__description { width: auto; max-width: 312px; margin: 28px 0 0; font-size: 16px; line-height: 29px; }
  .hero__cta { margin: 34px 0 0; }

  /* ---------- Press logos ---------- */
  .press-strip { height: 102px; }
  .press-strip__list { padding-top: 24px; }
  .press-strip__item { flex: 0 0 140px; width: 140px; height: 53px; margin-right: 12px; }
  .press-strip__item img { width: 110px; height: 35px; }

  /* ---------- Practical AI (cards) ---------- */
  .ai-services { padding: 72px 0 0; }
  .ai-cards { margin-top: 40px; padding: 0; }
  .ai-cards__track { gap: 14px; }
  .ai-card { flex: 0 0 346px; flex-basis: min(346px, 86vw); height: 520px; padding: 36px 28px 0; }
  .ai-card__title { font-size: 27px; line-height: 36px; }
  .ai-card__title br { display: none; }
  .ai-card .section-divider { left: 28px; top: 95px; }
  .ai-card__text { left: 28px; right: 28px; top: 126px; width: auto; max-width: 290px; font-size: 18px; line-height: 32px; }
  .ai-cards__dots { display: none !important; }

  /* ---------- Web & software development ---------- */
  .dev-services { padding: 72px 0 0; }
  .dev-services .section-intro { line-height: 30px; }
  .service-tabs { margin: 32px 20px 0; }
  .service-tabs__grid {
    display: flex; justify-content: flex-start; gap: 12px; padding: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .service-tabs__grid::-webkit-scrollbar { display: none; }
  .service-tab { flex: 0 0 210px; width: 210px; height: 270px; scroll-snap-align: start; }
  .service-tab__title { left: 24px; top: auto; bottom: 52px; font-size: 22px; line-height: 28px; white-space: normal; width: calc(100% - 48px); }
  .service-tab__subtitle { left: 24px; top: auto; bottom: 28px; font-size: 11px; line-height: 16px; }
  .service-tab__arrow { left: auto; right: 20px; top: auto; bottom: 26px; }
  .service-panel { padding: 36px 24px 48px; min-height: 0; }   /* height fits the open tab: no empty band at the bottom */
  .service-panel__title { margin-top: 0; font-size: 24px; line-height: 32px; }
  .service-panel .section-divider { margin-top: 22px; width: 100px; }
  .service-panel__text { margin-top: 32px; font-size: 16px; line-height: 28px; }
  .service-panel__lists { margin-top: 56px; padding: 0 0 0 31px; row-gap: 10px; }
  .service-panel__item { height: 32px; margin: 0; padding-top: 0; font-size: 16px; line-height: 32px; white-space: nowrap; }

  /* ---------- Team (staff augmentation) ---------- */
  .team-section { padding: 72px 0 0; }
  .team-section__inner { padding-left: 0; }
  .team-section .section-head { padding-left: 20px !important; }
  .team-cards { margin-top: 70px; padding: 0; gap: 14px; }
  .team-card { flex: 0 0 330px; height: 480px; }
  .team-card__name { left: 24px; top: 379px; font-size: 25px; line-height: 38px; }
  .team-card__role { left: 24px; top: 425px; font-size: 18px; line-height: 27px; }

  /* ---------- Stats + dark/blue cards ---------- */
  .company-stats { padding: 72px 26px 48px; }
  .company-stats__inner { gap: 24px; }
  .company-stats__image { height: 365px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0; padding: 16px 8px; }
  .stat-item { height: auto; padding: 24px 0; }   /* same space above and below every stat */
  .stat-item__icon { width: 48px; height: 48px; }
  .stat-item__value { margin-top: 12px; font-size: 28px; line-height: 34px; }
  .stat-item__label { margin-top: 8px; font-size: 14px; line-height: 22px; padding: 0 4px; }
  .highlight-cards { gap: 24px; }
  /* Both cards: same padding, text from the top-left, height fits the content */
  .highlight-card--dark, .highlight-card--primary { min-height: 0; display: block; text-align: left; padding: 40px 28px; }
  .highlight-card--dark .highlight-card__title { margin-top: 0; font-size: 26px; line-height: 38px; }
  .highlight-card--dark .highlight-card__text { margin-top: 16px; font-size: 16px; line-height: 24px; }
  .highlight-card__eyebrow { font-size: 15px; line-height: 20px; }
  .highlight-card--primary .highlight-card__title { margin-top: 16px; font-size: 26px; line-height: 38px; }
  .highlight-card--primary .highlight-card__text { margin-top: 16px; font-size: 16px; line-height: 24px; }
  .highlight-card .circle-link { margin-top: 32px; height: 33px; padding-left: 62px; font-size: 16px; }
  .highlight-card .circle-link::before { width: 33px; height: 33px; top: 0; }
  .highlight-card .circle-link__arrow { left: 20px; top: 10px; width: 28px; height: 13px; }

  /* ---------- Give your tools new intelligence (industry slider) ---------- */
  .tools-integration { padding: 72px 0 70px; }
  .feature-slider { margin: 45px 20px 0; background: none; }
  .feature-slider__panel { padding: 45px 25px 63px; }
  .feature-slider__title { font-size: 30px; line-height: 39px; }
  .feature-slider__text { margin-top: 26px; font-size: 18px; line-height: 30px; }
  .feature-slider__list { margin-top: 26px; }
  .feature-slider__list li { padding-left: 24px; font-family: var(--font-dm-sans); font-weight: 400; font-size: 17px; line-height: 32px; text-transform: none; }
  .feature-slider__list li::before { left: 6px; top: 14px; width: 5px; height: 5px; }
  .feature-slider .circle-link { margin-top: 28px; height: 33px; padding-left: 62px; font-size: 16px; }
  .feature-slider .circle-link::before { width: 33px; height: 33px; }
  .feature-slider .circle-link .circle-link__arrow { left: 20px; top: 10px; width: 28px; height: 13px; }
  .feature-slider__image { order: 2; height: 434px; flex-basis: 434px; }
  .feature-slider__nav, .feature-slider__counter { display: none; }

  /* ---------- Case studies ---------- */
  .case-studies { padding: 40px 0 40px; }
  .case-slider { padding: 0 20px; margin-top: 48px; gap: 20px; }
  .case-slide { flex: 0 0 calc(100vw - 40px); min-height: 641px; height: 641px; padding: 35px 25px 0; }
  .case-slide__title { margin-top: 36px; font-size: 30px; line-height: 37.5px; }
  .case-slide__text { margin-top: 26px; font-size: 16px; line-height: 27px; }
  .tech-pill { margin-top: 20px; height: 48px; }
  .case-studies__controls { justify-content: center; margin-top: 21px; padding: 0 20px; }
  .case-studies__controls .slider-dots { display: none; }

  /* ---------- AI tools ---------- */
  .ai-tools { padding: 48px 0 48px; }
  .ai-tools__inner { padding: 0 26px; }
  .ai-tools__title { font-size: 30px; line-height: 39px; }
  .ai-tools__subtitle { margin-top: 24px; font-size: 16px; line-height: 25px; }
  .tool-cards { margin-top: 24px; gap: 23px; padding: 0; }
  .tool-card { height: 380px; padding: 30px 30px 0; }
  .tool-card__title { margin-top: 2px; font-size: 16px; line-height: 23.5px; }
  .tool-list { left: 30px; right: 30px; top: 123px; }
  .tool-row { height: 78px; }
  .tool-row__logo { top: 22px; width: 34px; height: 34px; }
  .tool-row__name { left: 46px; top: 19px; font-size: 14px; line-height: 21px; }
  .tool-row__meta { left: 46px; top: 42px; font-size: 11px; line-height: 17px; }
  .score-ring { top: 14px; width: 50px; height: 50px; }
  .score-ring svg { width: 50px; height: 50px; }

  /* ---------- Awards ---------- */
  .awards { padding: 19px 20px 65px; }
  .awards__intro { padding: 56px 25px 32px; }
  .awards__title { font-size: 30px; line-height: 39px; }
  .awards__intro .section-divider { margin-top: 24px; }
  .awards__text { margin-top: 24px; font-size: 16px; line-height: 32px; }
  .awards__grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; border-left: 0; padding: 0 0 20px; }
  .awards__cell { padding: 20px 0 20px; border: 0; justify-content: center; }
  .awards__cell--rank { grid-column: span 2; padding: 32px 0 24px; border-top: 1px solid rgba(255, 255, 255, .2); border-bottom: 1px solid rgba(255, 255, 255, .2); }
  .awards__rank-title { font-size: 24px; line-height: 36px; }
  .awards__rank-text { margin-top: 2px; font-size: 13px; line-height: 20px; }
  .awards__badge { width: 96px; height: 96px; padding: 0; border: 0; }   /* logos on their own, no box around each */
  /* all six badges show on phones (3 rows of 2) */

  /* ---------- Testimonial ---------- */
  .testimonial { padding: 70px 20px 70px; }
  .testimonial__quote { font-size: 24px; line-height: 37.2px; }
  .testimonial__author { padding-top: 38px; }
  .testimonial__avatar { width: 55px; height: 55px; flex: 0 0 55px; }
  .testimonial__name { font-size: 16px; line-height: 24px; }
  .testimonial__role { margin-top: 10px; font-size: 13px; line-height: 20px; }
  .testimonial__footer { position: absolute; right: 0; bottom: 16px; margin: 0; }
  .testimonial__prev, .testimonial__next { display: none !important; }
  .testimonial__count { font-size: 17px; line-height: 24px; }

  /* ---------- FAQ ---------- */
  .faq { padding: 72px 20px; }
  .faq__card { gap: 45px; padding: 0; }
  .faq__title { font-size: 30px; line-height: 45px; }
  .faq__text { margin-top: 20px; font-size: 16px; line-height: 32px; }
  .faq-item__question { height: auto; min-height: 91px; gap: 24px; padding: 20px 5px; font-size: 18px; line-height: 25.5px; }
  .faq-item__question:not(.collapsed) { padding-bottom: 20px; }
  .faq-item__icon { flex: 0 0 20px; width: 20px; height: 20px; }
  .faq-item__answer { margin: 0; padding: 0 5px 20px; font-size: 15px; line-height: 27px; }

  /* ---------- Blog ---------- */
  .blog-section { padding: 72px 0 52px; }
  .blog-section .section-intro { line-height: 30px; }
  .blog-cards {
    flex-direction: row; gap: 30px; margin-top: 35px; padding: 0 20px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .blog-cards::-webkit-scrollbar { display: none; }
  .blog-cards { scroll-padding: 0 20px; }
  .blog-card { flex: 0 0 346px; flex-basis: min(346px, 86vw); min-height: 392px; height: auto; gap: 18px; padding: 32px; scroll-snap-align: start; }
  .blog-card__top { height: auto; }
  .blog-card__title { margin-top: 24px; font-size: 22px; line-height: 31.7px; }
  .blog-card__bottom { flex-direction: column; align-items: stretch; height: auto; flex: 1; }
  .blog-card__excerpt, .blog-card__excerpt--wide { width: auto; font-size: 15px; line-height: 28px; }
  .blog-card__button { align-self: flex-end; width: 64px; height: 56px; margin-top: auto; padding: 0; border-radius: 20px; }
  .blog-card__button--primary { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-white); }

  /* ---------- Let's bring your idea to life ---------- */
  .cta-needs { padding: 72px 20px; }
  .cta-needs__title { text-align: center; }
  .needs-form { margin-top: 35px; height: 72px; border-radius: 20px; }
  .needs-form__next { right: 16px; }
  .needs-form__label { left: 16px; top: 23px; font-size: 18px; line-height: 26px; }
  .needs-form__add { left: 92px; top: 13px; width: 46px; height: 46px; }
  .needs-form__chips { left: 146px; top: 11px; right: 116px; height: 50px; }
  .needs-form__next { top: 11px; width: 90px; height: 50px; padding-left: 18px; font-size: 18px; }
  .needs-list { display: block; margin-top: 35px; padding: 0; }
  .needs-list__item {
    width: 100%; height: 61px; padding: 0 40px 0 29px; border: 0; border-bottom: 1px solid #E6E8F0;
    border-radius: 0; background: none; box-shadow: none !important; font-size: 18px;
  }
  .needs-list__item:hover, .needs-list__item.is-selected { background: none; border-color: #E6E8F0; }
  .needs-list__corner { left: 4px; }
  .needs-list__plus { right: 14px; }

  /* ---------- Footer ---------- */
  .site-footer__inner { display: flex; flex-direction: column; align-items: flex-start; padding: 48px 20px 48px; }
  .site-footer__logo { width: 100%; height: auto; }
  .footer-columns { flex-direction: column; flex-wrap: nowrap; gap: 38px; margin-top: 38px; width: 100%; }
  .footer-column, .footer-column--socials { width: auto; height: auto; padding: 0 0 15px 30px; }
  .footer-column__title { font-size: 18px; line-height: 30px; }
  .footer-column__list { margin-top: 13px; padding-top: 0; }
  .footer-column__list li { height: auto; margin: 0; padding: 0; }
  .footer-column__list a { display: inline-block; font-size: 17px; line-height: 36px; }
  .footer-socials { margin-top: 14px; width: 124px; }
  .footer-socials li { height: auto; margin: 0; }
  .footer-socials a { font-size: 15px; line-height: 34.5px; }
  .back-to-top { order: 3; position: static; margin: 52px 0 0; }
  .site-footer__copyright { order: 4; position: static; margin: 20px 0 0; font-size: 15px; line-height: 20px; }

  /* ==========================================================
     Inner pages: same rhythm as the homepage design
     ========================================================== */
  /* 20px side margins everywhere */
  .banner__inner { width: calc(100% - 40px); }
  .about-wrap, .about-media__inner, .svc-intro__inner, .svc-features__inner, .svc-industries__inner,
  .sa-wrap, .sa-media__inner, .ind-wrap, .ind-plan__inner, .ex-wrap, .ct-wrap, .cr-wrap,
  .csg-grid { padding-left: 20px; padding-right: 20px; }
  .cr-rewards__grid { padding-left: 0; padding-right: 0; }
  .cs-body, .cs-similar, .svc-cta, .sa-trust, .ind-faq { padding-left: 20px; padding-right: 20px; }

  /* Banners: heading and text sized like the homepage banner */
  .banner { min-height: 640px; padding: 150px 0 72px; }
  .banner h1, .banner .cs-hero__title { font-size: 35px; line-height: 44px; letter-spacing: 0; }
  .banner h1 + p, .banner p { font-size: 16px; line-height: 29px; }

  /* Section headings: 30px like the homepage */
  .about-heading, .ind-heading, .sa-heading, .ex-heading, .cr-heading, .cs-title,
  .svc-intro__title, .svc-features__title, .svc-industries__title, .svc-cta__title {
    font-size: 30px; line-height: 39px;
  }

  /* ---------- Inner pages: same spacing and type scale as the homepage ---------- */
  /* 72px above and below every section */
  .about-purpose, .about-values, .about-journey, .ceo-note, .about-media,
  .svc-intro, .svc-features, .svc-cta,
  .ind-challenges, .ind-services, .ind-cases, .ind-benefits, .ind-plan, .ind-faq,
  .sa-intro, .sa-benefits, .sa-team, .sa-specs, .sa-compare, .sa-media,
  .ex-services, .ex-tech, .cr-love, .cr-perks, .cr-rewards, .cr-jobs,
  .ct-main, .csg-gallery, .cs-body { padding-top: 72px; padding-bottom: 72px; }
  .svc-industries { padding-top: 24px; padding-bottom: 72px; }

  /* Section headings 30/39 (same as the homepage) */
  .sa-media__title, .ct-form__title { font-size: 30px; line-height: 39px; }

  /* Intro text under a heading: 16/28 */
  .about-subtitle, .about-purpose__text, .ceo-note__text, .svc-cta__text, .svc-features__text,
  .ind-text, .ind-faq__text, .sa-text, .sa-sub, .sa-media__text, .ex-sub, .cs-text, .svc-industries__text {
    font-size: 16px; line-height: 28px;
  }

  /* Main item titles inside a section: 24/32 (like "Website Development") */
  .mv-card__title, .milestone__title, .svc-feature__title, .ind-point__title, .ind-service__title,
  .ex-service__title, .ind-case__title {
    font-size: 24px; line-height: 32px;
  }

  /* Card titles: 20/28 */
  .value-card__title, .industry-card__title, .ind-benefit__title, .sa-benefit__title, .sa-spec__title,
  .ex-tech__title, .cr-love__title, .cr-perk__title, .cr-job__title, .csg-card__title, .cs-card__title,
  .ct-steps__head, .ct-desk__title { font-size: 20px; line-height: 28px; }

  /* Card text: 16/26 */
  .value-card__text, .mv-card__text, .milestone__text, .svc-feature__text, .industry-card__text,
  .ind-point__text, .ind-service__text, .ind-benefit__text, .sa-benefit__text, .sa-spec__text,
  .ex-service__text, .cr-love__text, .cr-perk__text, .cs-card__text, .ind-case__text { font-size: 16px; line-height: 26px; }

  /* Small labels above headings: 13px */
  .ind-eyebrow, .sa-media__eyebrow, .ct-eyebrow, .ct-desk__eyebrow { font-size: 13px; line-height: 18px; }

  /* Big numbers: same weight as the homepage stats */
  .milestone__year { font-size: 36px; line-height: 44px; }
  .ind-benefit__num { font-size: 40px; line-height: 44px; }
  .svc-stats__value { font-size: 28px; line-height: 34px; }

  /* Links with the circle arrow are always 18px */
  .cr-hero .circle-link, .cr-jobs .circle-link { font-size: 18px; }

  /* FAQ on industry pages: same 20px side margins */
  .ind-faq .ind-wrap, .ind-faq__card { padding-left: 0; padding-right: 0; }
  .ind-faq-item__q { font-size: 18px; line-height: 25.5px; }
  .ind-plan__intro .ind-text { font-size: 16px; line-height: 28px; }
  .ind-faq .ind-eyebrow { font-size: 13px; line-height: 18px; }
  .about-page .team-section { padding-top: 72px; padding-bottom: 72px; }
  .journey-nav { display: none; }
  .journey-track { grid-auto-columns: min(346px, 86vw); }

  /* Card lists scroll sideways, like the homepage card rows */
  .industry-grid {
    display: flex; gap: 14px; margin: 40px -20px 0; padding: 0 20px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none;
  }
  .industry-grid::-webkit-scrollbar { display: none; }
  .industry-grid > li { flex: 0 0 min(300px, 78vw); scroll-snap-align: start; }
  .industry-card { height: 400px; padding: 28px; }
  .ind-point__title { max-width: none; min-height: 0; }
  .ind-points { gap: 32px; margin-top: 40px; }
  .ind-benefits__grid {
    display: flex; gap: 14px; margin: 40px -20px 0; padding: 0 20px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none;
  }
  .ind-benefits__grid::-webkit-scrollbar { display: none; }
  .ind-benefit, .ind-benefit:nth-child(n+4) { flex: 0 0 min(300px, 78vw); padding: 28px 24px; scroll-snap-align: start; }
  .sa-benefits__grid, .sa-specs__grid {
    display: flex; gap: 14px; margin: 40px -20px 0; padding: 0 20px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none;
  }
  .sa-benefits__grid::-webkit-scrollbar, .sa-specs__grid::-webkit-scrollbar { display: none; }
  .sa-benefits__grid > *, .sa-specs__grid > * { flex: 0 0 min(300px, 78vw); scroll-snap-align: start; }
  .ex-tech__list { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  /* Career: banner text only (like the homepage banner); card groups swipe */
  .cr-hero__team { display: none; }
  .cr-hero.banner { min-height: 640px; }
  .cr-love__grid, .cr-perks__grid {
    display: flex; gap: 14px; margin: 40px -20px 0; padding: 0 20px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none;
  }
  .cr-love__grid::-webkit-scrollbar, .cr-perks__grid::-webkit-scrollbar { display: none; }
  .cr-love__grid > *, .cr-perks__grid > * { flex: 0 0 min(300px, 78vw); scroll-snap-align: start; }
  .cr-rewards__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cr-rewards__col { display: contents; }
  .cr-rewards__col img { height: auto; aspect-ratio: 4 / 3; }
  .cr-rewards__col:last-child img:last-child { grid-column: span 2; aspect-ratio: 16 / 9; }
  .cs-similar { padding-top: 72px; padding-bottom: 40px; }
  .cs-similar .case-slider { padding: 0; }
  .cs-similar .case-slide { height: auto; min-height: 0; padding-bottom: 35px; }
  .cs-similar .case-studies__controls { padding: 0; }

  /* ---------- Fluid fixes (responsive QA) ---------- */
  /* AI service cards: title, line and text flow one after another, so a title that
     wraps to a second or third line pushes the text down instead of covering it.
     At 402px this lands on the same spots as the design (line at 95px, text at 126px). */
  .ai-card .section-divider { position: relative; left: auto; top: auto; margin-top: 23px; }
  .ai-card__text { position: relative; left: auto; right: auto; top: auto; margin-top: 29px; }

  /* Service cards: text stacks from the bottom (style.css); same spots as the design
     at 402px: title ends 52px and subtitle 28px above the card's bottom, 24px in */
  .service-tab { padding: 0 23px 27px; }   /* + the card's 1px border */
  .service-tab__subtitle { padding-right: 28px; }

  /* Service lists wrap instead of running out of the panel on narrow phones */
  .service-panel__item { height: auto; min-height: 32px; white-space: normal; }

  /* AI tools rows: logo | name + meta | score ring on a grid, so long names wrap
     beside the ring instead of under it. Centred in the 78px row, which puts every
     piece where the design has it at 402px (logo 22px, name 19px, ring 14px from the top). */
  .tool-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 50px; grid-template-rows: auto auto; column-gap: 12px; align-content: center; height: auto; min-height: 78px; padding: 8px 0; }
  .tool-row__logo { position: static; grid-row: 1 / 3; align-self: center; }
  .tool-row__name { position: static; grid-column: 2; align-self: end; }
  .tool-row__meta { position: static; grid-column: 2; align-self: start; margin-top: 2px; white-space: normal; }
  .score-ring { position: relative; left: auto; top: auto; grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .ex-tech__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-tech__list li { overflow-wrap: break-word; }   /* long tool names like "Elasticsearch" on 280px screens */

  /* Grids made of 1fr columns could not shrink below their content */
  .ct-grid, .ex-tech__grid { grid-template-columns: minmax(0, 1fr); }
  .sa-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-role { min-width: 0; height: auto; min-height: 56px; }

  /* ---------- One spacing system on phones (consistency pass) ----------
     Sections line up on the 20px page edge; every card keeps 24px inside on the left and
     right (several used 25, 26, 28, 30, 32 or 33px, so neighbouring boxes looked uneven). */
  .company-stats, .ai-tools__inner { padding-left: 20px; padding-right: 20px; }
  .highlight-card--dark, .highlight-card--primary, .ai-card, .feature-slider__panel, .case-slide,
  .tool-card, .awards__intro, .sa-benefit, .cr-perk { padding-left: 24px; padding-right: 24px; }
  .blog-card { padding: 32px 24px; }
  .tool-list { left: 24px; right: 24px; }
}

/* Phones and tablets: alignment follows the mobile Figma on every page.
   Section headings, intros and banners start on the left page edge, like the homepage design.
   Still centred, as in the mobile design: the "AI tools" block, the closing
   "Let's bring your idea to life" block, and small number / rating / award tiles. */
@media (max-width: 1199.98px) {
  .about-heading--center, .about-subtitle--center,
  .cr-heading, .ex-head, .sa-head, .ind-faq, .svc-hero, .sa-trust { text-align: left; }
  .about-subtitle--center, .ex-heading, .ex-sub, .sa-heading, .sa-sub,
  .svc-hero__title, .svc-hero__text, .svc-stats { margin-left: 0; margin-right: 0; }
  /* banner numbers: one row from the left edge, like the staff augmentation banner */
  .svc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 520px; }
  .svc-stats li { align-items: flex-start; text-align: left; }
  .sa-trust__list { justify-content: flex-start; }
}

/* One type scale on phones and tablets (full-page review).
   Every page template had its own heading and intro classes, so on tablets section headings
   ranged 28-36px, banner titles 36-40px and intro text 14-18px with 20-32px line height.
   Phones share the Figma mobile 30/39 headings and 16/28 intro text (the design itself mixed 25-32px line heights). */
@media (max-width: 1199.98px) {
  .section-intro, .ai-tools__subtitle, .awards__text, .faq__text, .about-subtitle, .about-purpose__text,
  .ex-sub, .sa-sub, .sa-text, .ind-text, .ind-faq__text, .svc-intro p, .svc-features__text, .svc-cta__text,
  .sa-media__text { font-size: 16px; line-height: 28px; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .hero__title, .about-hero__title, .svc-hero__title, .ind-hero__title, .cr-hero__title, .cs-hero__title,
  .csg-hero__title, .ct-hero__title, .ex-hero__title, .sa-hero__title { font-size: 40px; line-height: 48px; }
  .hero__description, .svc-hero__text { font-size: 17px; line-height: 28px; }
  .cr-heading, .cs-title, .ct-form__title, .ex-heading, .sa-heading, .sa-heading--sm, .sa-media__title {
    font-size: 32px; line-height: 40px; }
}

/* Same section spacing wherever a shared section appears (full-page review).
   "Similar case studies", the AI tools block, the awards card and the blog section had
   different top/bottom space on different pages (19-72px on phones, 0-64px on tablets).
   Doubled classes win over the page-specific rules (.about-page .awards, .svc-page .ai-tools). */
@media (max-width: 767.98px) {
  .case-studies.case-studies, .ai-tools.ai-tools, .awards.awards { padding-top: 72px; padding-bottom: 72px; }
  .blog-section.blog-section { padding-bottom: 72px; }
  .svc-industries.svc-industries { padding-top: 0; }
  .faq__title { line-height: 39px; }   /* every other section heading is 30/39 */
  .case-studies .section-head__title-group .section-divider { margin-top: 24px; }   /* 24px under the heading, like every other divider */
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .awards.awards { padding-top: 64px; }
  /* divider line 24px under every section heading, as on phones (tablets had 12, 21 or 24) */
  .section-head__title-group .section-divider, .case-studies .section-head__title-group .section-divider,
  .awards__intro .section-divider { margin-top: 24px; }
  .ai-tools.ai-tools { padding-bottom: 64px; }
}

/* Wide tablets and small laptop windows (768-1199px): every section is one column there, so
   paragraphs ran the full 740-1170px width (up to ~150 characters a line). Text now stops at a
   readable 760px; cards and boxes keep their width. Centred paragraphs stay centred. */
@media (min-width: 768px) and (max-width: 1199.98px) {
  main p { max-width: 760px; }
  .ai-tools__subtitle, .cta-needs p, .bl-hero__text { margin-left: auto; margin-right: auto; }
  .bl-hero .bl-hero__text { margin-left: 0; }   /* blog banner is left-aligned below 1200px */
}

/* Large phones, landscape phones and small tablets (576-767px): the footer link lists sit two per
   row instead of one very long column, bridging the phone and tablet layouts */
@media (min-width: 576px) and (max-width: 767.98px) {
  .footer-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 24px; }
}

/* Very narrow phones (Galaxy Fold, small Androids): long arrow links may wrap */
@media (max-width: 359.98px) {
  .circle-link { height: auto; min-height: 44px; white-space: normal; }
  .sa-roles { grid-template-columns: minmax(0, 1fr); }
  .svc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* "Experience" needs more than a third of a 280-320px screen */
}

/* "I need a" placeholder: hint sits at the left so it never runs off a phone screen */
@media (max-width: 767.98px) {
  .needs-form.has-chips .needs-form__chips { left: 92px; }
  .needs-form__add::after { left: -10px; width: 196px; white-space: normal; text-align: left; transform: translate(0, -6px); }
  .needs-form__add:hover::after, .needs-form__add:focus-visible::after,
  .needs-form.is-hinting .needs-form__add::after { transform: translate(0, 0); }
}

/* "I need a" ripple: a little smaller on phones so long names don't reach the + */
@media (max-width: 767.98px) {
  .needs-list { --pulse: 1.1; }
}
