/* ═══════════════════════════════════════════════════════════════════
   TEAM TECHPRO — 2026 UI SYSTEM / RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

/* ── ≤ 1200px ──────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .v2-hero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
    gap: 2.5rem;
  }

  .v2-hero__visual { min-height: 380px; }

  body.v2 .v2-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 0.62fr)) minmax(280px, 1.1fr);
    gap: 1.8rem 1.4rem;
  }

  body.v2 .v2-footer__brand {
    grid-column: 1 / 4;
    grid-row: 1;
  }

  body.v2 .v2-footer__news {
    grid-column: 4;
    grid-row: 1 / 3;
    align-self: start;
  }

  .v2-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .v2-index-services .v2-service--featured {
    grid-column: span 2;
    grid-row: auto;
  }

  .v2-index-services .v2-service--featured .v2-service__visual { min-height: 130px; }

  .v2-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .v2-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .v2-feature__visual { min-height: 360px; }
}

/* ── ≤ 1080px: compact nav ─────────────────────────────────────── */
@media (max-width: 1080px) {
  body.v2 .nav {
    height: 62px;
    padding-right: 9px;
  }

  body.v2 .nav-ul { display: none; }
  body.v2 .ham { display: flex; }

  body.v2 .drawer {
    display: flex;
  }

  .v2-hero__title { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
}

/* ── ≤ 980px ───────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .v2-hero {
    padding-top: clamp(7rem, 13vw, 9rem);
  }

  .v2-hero__inner,
  .v2-hero--compact .v2-hero__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .v2-hero__copy { max-width: 720px; }

  .v2-hero__visual {
    min-height: 340px;
    order: 2;
    margin-top: 0.5rem;
  }

  .v2-orb { width: min(340px, 72%); }

  .v2-hero--compact .v2-hero__visual { display: none; }

  .v2-hero__scroll { display: none; }

  .v2-home-intro__grid,
  .v2-split,
  .v2-index-faq,
  .v2-index-contact__grid,
  .v2-about-timeline__grid,
  .v2-contact-page__grid,
  .v2-contact-faq__grid,
  .v2-quote__grid,
  .v2-map,
  .v2-feature {
    grid-template-columns: 1fr;
  }

  .v2-about-story .v2-cofounder {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.2rem;
  }

  .v2-cofounder__photo {
    height: clamp(200px, 42vw, 260px);
  }

  .v2-index-faq__aside,
  .v2-about-timeline__aside,
  .v2-contact-faq__aside,
  .v2-quote__side {
    position: static;
    top: auto;
  }

  .v2-quote__side { max-width: 640px; }

  .v2-index-contact__grid { gap: 2.5rem; }

  .v2-feature__visual {
    min-height: 300px;
    order: 0;
  }

  .v2-index-stats__orb {
    right: -34%;
    width: 62vw;
    opacity: 0.24;
  }

  .v2-about-timeline__grid { gap: 2rem; }

  .v2-about-timeline__aside .v2-title br { display: none; }

  .v2-map__card { min-height: 340px; }

  .v2-bento .v2-span-3,
  .v2-bento .v2-span-4,
  .v2-bento .v2-span-5 {
    grid-column: span 6;
  }

  .v2-bento .v2-span-7,
  .v2-bento .v2-span-8,
  .v2-bento .v2-span-12 {
    grid-column: span 12;
  }

  body.v2 .v2-footer__cta {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.4rem;
  }

  body.v2 .v2-footer__cta .v2-btn {
    justify-self: start;
    margin-bottom: 0;
  }

  body.v2 .v2-footer__title { font-size: clamp(2rem, 6.5vw, 3.4rem); }

  body.v2 .v2-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem 1.4rem;
    padding-block: clamp(2.2rem, 5vw, 3rem) clamp(1.4rem, 3vw, 2rem);
  }

  body.v2 .v2-footer__brand {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  body.v2 .v2-footer__brand .nav-logo { margin-bottom: 12px; }

  body.v2 .v2-footer__about {
    max-width: 460px;
    font-size: 0.87rem;
    line-height: 1.65;
  }

  body.v2 .v2-socials { gap: 8px; margin-top: 16px; }

  body.v2 .v2-social {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  body.v2 .v2-footer__news {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  body.v2 .v2-footer__news .ft-news-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  body.v2 .v2-footer__news .ft-news-form input[type="email"] {
    grid-column: 1;
    grid-row: 1;
  }

  body.v2 .v2-footer__news .ft-news-captcha {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  body.v2 .v2-footer__news .ft-news-btn {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-width: 140px;
  }

  body.v2 .v2-footer__mark { font-size: clamp(2.8rem, 11vw, 7rem); }

  body.v2 .v2-footer__bottom {
    justify-content: center;
    text-align: center;
    gap: 10px 16px;
  }
}

/* ── ≤ 860px ───────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .v2-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .v2-stat:nth-child(3) { border-left: 0; }
  .v2-stat:nth-child(n + 3) { border-top: 1px solid var(--v2-line); }

  .v2-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .v2-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.2rem;
  }

  .v2-process::before { display: none; }

  .v2-tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .v2-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .v2-team .v2-member:last-child { grid-column: span 2; max-width: 50%; }

  .v2-pricing { grid-template-columns: 1fr; max-width: 560px; }

  .v2-price--featured { order: -1; }

  .v2-quote-strip { grid-template-columns: 1fr; }

  .v2-feature__stats { gap: 1.2rem; }
}

/* ── ≤ 760px ───────────────────────────────────────────────────── */
@media (max-width: 760px) {
  :root {
    --v2-gutter: 1.1rem;
    --v2-section: clamp(3.6rem, 11vw, 5.5rem);
  }

  .v2-hero {
    padding-top: 6.4rem;
    padding-bottom: 2.8rem;
  }

  .v2-hero__title { font-size: clamp(2.3rem, 9.5vw, 3.6rem); }

  .v2-hero__lead { font-size: 0.95rem; }

  .v2-hero__meta { gap: 1.2rem; }
  .v2-hero__meta b { font-size: 1.15rem; }

  .v2-hero__visual { min-height: 300px; }
  .v2-orb { width: min(290px, 78%); }

  .v2-orbit { font-size: 0.54rem; padding: 7px 10px; }
  .v2-orbit--1 { left: 2%; }
  .v2-orbit--2 { right: 0; }
  .v2-orbit--3 { left: 6%; }
  .v2-orbit--4 { right: 4%; }

  .v2-sec-head--split { grid-template-columns: 1fr; align-items: start; }

  .v2-title { font-size: clamp(1.9rem, 7vw, 2.7rem); }

  .v2-title--xl { font-size: clamp(2.2rem, 9vw, 3.6rem); }

  .v2-values,
  .v2-services,
  .v2-projects,
  .v2-why,
  .v2-tech,
  .v2-team {
    grid-template-columns: 1fr;
  }

  .v2-team .v2-member:last-child { grid-column: auto; max-width: none; }

  .v2-home-intro__values { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .v2-index-services .v2-service--featured { grid-column: auto; }

  .v2-index-services .v2-service,
  .v2-services-detail .v2-service,
  .v2-services--detail .v2-service { min-height: 0; }

  .v2-service--featured .v2-service__visual { display: none; }

  .v2-home-intro__panel { padding: 1.4rem; }

  .v2-home-intro__statement { font-size: clamp(1.4rem, 5.4vw, 1.85rem); }

  .v2-index-process__head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  .v2-index-stats__orb { display: none; }

  .v2-process { grid-template-columns: 1fr; gap: 1.6rem; }

  .v2-process__step {
    display: grid;
    grid-template-columns: 54px 1fr;
    column-gap: 1rem;
    align-items: start;
  }

  .v2-process__n { grid-row: span 2; }

  .v2-process__t { margin-top: 0.35rem; }

  .v2-testi__head { align-items: flex-start; }

  .v2-testi__nav { display: none; }

  .v2-quote { flex-basis: 88%; }

  .v2-feature__body { padding: 1.5rem; }

  .v2-feature__visual { min-height: 250px; }

  .v2-form-card .v2-fields { grid-template-columns: 1fr; }

  .v2-choice-group { grid-template-columns: 1fr; }

  .v2-quote__footer { flex-direction: column; align-items: stretch; }

  .v2-quote__footer .v2-submit { width: 100%; margin-left: 0; }

  .v2-quote__footer .privacy-note { max-width: none; text-align: center; order: 2; }

  body.v2 .v2-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem 1.2rem;
  }

  body.v2 .v2-footer__brand,
  body.v2 .v2-footer__news {
    grid-column: 1 / -1;
  }

  body.v2 .v2-footer__col--contact {
    grid-column: 1 / -1;
  }

  body.v2 .v2-footer__col--contact .v2-footer__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 1rem;
  }

  body.v2 .v2-footer__brand .nav-logo { margin-bottom: 12px; }

  body.v2 .v2-footer__about {
    max-width: none;
    font-size: 0.86rem;
    line-height: 1.65;
  }

  body.v2 .v2-socials { gap: 8px; margin-top: 14px; }

  body.v2 .v2-social {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  body.v2 .v2-footer__news .ft-news-form {
    grid-template-columns: minmax(0, 1fr);
  }

  body.v2 .v2-footer__news .ft-news-form input[type="email"],
  body.v2 .v2-footer__news .ft-news-btn {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  body.v2 .v2-footer__news .ft-news-captcha {
    grid-column: 1;
    grid-row: auto;
  }

  body.v2 .v2-footer__mark { font-size: clamp(2.4rem, 11vw, 5rem); }

  body.v2 .v2-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding-top: 16px;
  }
}

/* ── ≤ 560px ───────────────────────────────────────────────────── */
@media (max-width: 560px) {
  body.v2 .nav {
    top: 9px;
    width: calc(100% - 18px);
    height: 58px;
    padding: 0 8px 0 12px;
    border-radius: 16px;
  }

  body.v2 .nav-btn { display: none; }

  body.v2 .nav-logo-img { width: 32px; height: 32px; }

  body.v2 .nav-logo-text { font-size: 0.82rem; letter-spacing: 0.07em; }

  body.v2 .ham { width: 40px; height: 40px; }

  body.v2 .drawer a { font-size: clamp(1.4rem, 8vw, 2rem); }

  .v2-hero { padding-top: 5.6rem; }

  .v2-hero__actions { flex-direction: column; align-items: stretch; }

  .v2-hero__actions .v2-btn { width: 100%; }

  .v2-hero__meta { justify-content: space-between; gap: 0.8rem; }

  .v2-hero__visual { min-height: 260px; }

  .v2-orb { width: min(240px, 80%); }

  .v2-orbit--1,
  .v2-orbit--3 { display: none; }

  .v2-orbit--2 { top: 16%; right: 0; }
  .v2-orbit--4 { bottom: 8%; right: 2%; }

  .v2-stats { grid-template-columns: 1fr 1fr; }

  .v2-stat { padding: 1.2rem 1rem; }
  .v2-stat__n { font-size: 2.3rem; }
  .v2-stat__tag { display: none; }

  .v2-home-intro__values { grid-template-columns: 1fr; }

  .v2-home-intro__stats { gap: 0.5rem; }
  .v2-home-intro__stat b { font-size: 1.1rem; }

  .v2-values { grid-template-columns: 1fr; }

  .v2-value { min-height: 0; }

  .v2-cta { padding: 2.2rem 1.3rem; border-radius: var(--v2-r-lg); }

  .v2-cta__actions { flex-direction: column; align-items: stretch; }

  .v2-cta__actions .v2-btn { width: 100%; }

  .v2-btn { min-height: 46px; padding-inline: 20px; }

  .v2-accordion .v2-acc__q { font-size: 0.94rem; }

  .v2-acc__inner { padding-right: 0; }

  .v2-timeline::before { left: 9px; }

  .v2-tl { grid-template-columns: 1fr; gap: 0.4rem; padding-left: 32px; position: relative; }

  .v2-tl__year { font-size: 1rem; }

  .v2-tl__dot { left: 1px; top: 5px; }

  .v2-quote__stats { grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }
  .v2-quote__stat b { font-size: 1rem; }

  .v2-form-card { padding: 1.15rem; }

  .v2-form-card .v2-fields { gap: 0; }

  .v2-budget button { flex: 1 1 calc(50% - 7px); text-align: center; }

  .v2-map__card { min-height: 280px; }

  body.v2 .v2-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }

  body.v2 .v2-footer__brand,
  body.v2 .v2-footer__news,
  body.v2 .v2-footer__col--contact {
    grid-column: 1 / -1;
  }

  body.v2 .v2-footer__cta {
    gap: 1.2rem;
    padding: 1.35rem;
  }

  body.v2 .v2-footer__cta .v2-btn {
    justify-self: stretch;
    width: 100%;
  }

  body.v2 .v2-footer__title { font-size: clamp(1.75rem, 8vw, 2.5rem); }

  body.v2 .v2-footer__brand .nav-logo { margin-bottom: 10px; }

  body.v2 .v2-footer__about {
    max-width: none;
    font-size: 0.84rem;
    line-height: 1.6;
  }

  body.v2 .v2-socials { gap: 8px; margin-top: 12px; }

  body.v2 .v2-social {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  body.v2 .v2-footer__links a { font-size: 0.82rem; }

  body.v2 .v2-footer__news .ft-news { padding: 1rem; }

  body.v2 .v2-footer__mark { font-size: clamp(1.8rem, 9.6vw, 3rem); letter-spacing: -0.05em; }

  body.v2 .v2-footer__bottom {
    gap: 10px;
    padding-top: 14px;
    font-size: 0.62rem;
  }

  body.v2 .btt { display: none; }
}

/* ── ≤ 400px ───────────────────────────────────────────────────── */
@media (max-width: 400px) {
  .v2-hero__title { font-size: 2.05rem; }

  .v2-hero__meta { display: grid; grid-template-columns: 1fr 1fr; }

  .v2-stats { grid-template-columns: 1fr; }

  .v2-stat + .v2-stat { border-left: 0; border-top: 1px solid var(--v2-line); }

  .v2-stat:nth-child(3) { border-top: 1px solid var(--v2-line); }

  .v2-home-intro__stat b { font-size: 1rem; }

  .v2-quote__stats { grid-template-columns: 1fr; }

  .v2-testi__track { gap: 0.8rem; }

  .v2-quote { flex-basis: 92%; }

  body.v2 .v2-footer__mark { font-size: clamp(1.6rem, 8.8vw, 2.4rem); letter-spacing: -0.04em; }

  body.v2 .v2-footer__cta { padding: 1.2rem; }

  body.v2 .v2-footer__title { font-size: clamp(1.6rem, 9vw, 2.2rem); }

  body.v2 .v2-footer__grid { gap: 1.3rem 0.9rem; }

  body.v2 .v2-footer__col--contact .v2-footer__links { grid-template-columns: 1fr; }

  body.v2 .v2-footer__links a { font-size: 0.8rem; }

  body.v2 .v2-footer__bottom { gap: 8px; padding-top: 12px; }

  body.v2 .v2-social {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .v2-form-card { padding: 1rem; }
}

/* ── Reduced motion: calm decorative motion ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .v2-orb::before,
  .v2-orb__ring,
  .v2-orb__core,
  .v2-orbit,
  .v2-marquee__track,
  .v2-hero__scroll::before,
  .v2-feature__visual::after,
  .v2-service--featured .v2-service__visual::before {
    animation: none !important;
  }

  html { scroll-behavior: auto; }
}
