/* ============================================================
   PrimeNest — editorial-luxury real estate site
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #F7F7F4;
  --white: #FFFFFF;
  --text: #111111;
  --text-2: #666661;
  --border: #E4E4DF;
  --muted-bg: #F0F0ED;
  --blue: #2388D8;
  --blue-hover: #1475BE;
  --footer-bg: #0D0D0D;
  --footer-text: #F5F5F2;
  --footer-text-2: #A6A6A1;

  --container: 1240px;
  --pad: 56px;
  --radius: 8px;
  --radius-lg: 14px;

  --sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --section-y: 116px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: 6px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.section { padding-block: var(--section-y); }

.serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}

/* ---------- Section heads ---------- */
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; max-width: 720px; margin-inline: auto; }
.section-title {
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.section-title .line { display: block; }
.section-title .serif-em { font-weight: 600; }
.section-sub {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 1rem;
  max-width: 560px;
}
.section-head.center .section-sub { margin-inline: auto; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; letter-spacing: .01em;
  transition: background .2s var(--ease), color .2s var(--ease),
              transform .2s var(--ease), box-shadow .2s var(--ease);
  will-change: transform;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(35,136,216,.28); }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(35,136,216,.34); }
.btn-primary .btn-arrow { transition: transform .2s var(--ease); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-pill {
  background: rgba(255,255,255,.92); color: var(--text);
  border: 1px solid rgba(255,255,255,.7); min-height: 40px; font-size: .82rem;
}
.btn-pill:hover { background: #fff; transform: translateY(-1px); }

.link-underline {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .9rem; font-weight: 500; color: var(--text);
  position: relative; padding-bottom: 3px;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); }
.link-underline span { transition: transform .2s var(--ease); }
.link-underline:hover span { transform: translateX(3px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease),
              backdrop-filter .35s var(--ease), padding .35s var(--ease);
  padding-block: 22px;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; }
.brand-name { font-weight: 600; font-size: 1.18rem; letter-spacing: -0.01em; }

.primary-nav ul { display: flex; gap: 30px; }
.nav-link {
  color: rgba(255,255,255,.92); font-size: .84rem; font-weight: 500;
  position: relative; padding: 6px 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }

/* Sticky / scrolled state */
.site-header.scrolled {
  background: rgba(247,247,244,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--border);
  padding-block: 13px;
}
.site-header.scrolled .brand,
.site-header.scrolled .nav-link { color: var(--text); }
.site-header.scrolled .nav-link { color: #3a3a37; }
.site-header.scrolled .btn-pill {
  background: var(--text); color: #fff; border-color: var(--text);
}
.site-header.scrolled .btn-pill:hover { background: #000; }
.site-header.scrolled .menu-toggle span { background: var(--text); }

/* Menu toggle */
.menu-toggle { display: none; width: 40px; height: 40px; position: relative; }
.menu-toggle span {
  position: absolute; left: 9px; right: 9px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), background .3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 25px; }
body.menu-open .menu-toggle span { background: var(--text); }
body.menu-open .brand { color: var(--text); }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  transform: translateY(-100%);
  transition: transform .45s var(--ease);
  display: flex; align-items: center; justify-content: center;
  visibility: hidden;
}
body.menu-open .mobile-menu { transform: translateY(0); visibility: visible; }
.mobile-menu nav { text-align: center; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 8px; margin-bottom: 34px; }
.m-link {
  font-size: 1.9rem; font-weight: 500; letter-spacing: -0.02em; color: var(--text);
  display: inline-block; padding: 8px 0;
  opacity: 0; transform: translateY(14px);
}
body.menu-open .m-link { animation: mLinkIn .5s var(--ease) forwards; }
body.menu-open .m-link:nth-child(1) { animation-delay: .08s; }
body.menu-open .m-link:nth-child(2) { animation-delay: .14s; }
body.menu-open .m-link:nth-child(3) { animation-delay: .20s; }
body.menu-open .m-link:nth-child(4) { animation-delay: .26s; }
body.menu-open .m-link:nth-child(5) { animation-delay: .32s; }
@keyframes mLinkIn { to { opacity: 1; transform: translateY(0); } }
.m-cta { min-width: 200px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: center;
  padding-top: 90px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 72% center;
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,.42) 0%, rgba(10,22,40,.22) 40%, rgba(12,20,34,.34) 100%);
}
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(180deg, rgba(247,247,244,0) 0%, rgba(247,247,244,.65) 62%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; }
.hero-title {
  font-size: clamp(2.8rem, 7vw, 4.7rem);
  line-height: 1.03; letter-spacing: -0.025em; font-weight: 600;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero-title .line { display: block; }
.hero-title .serif-em { font-weight: 600; }
.hero-sub {
  margin: 22px auto 0; max-width: 620px;
  font-size: 1.05rem; color: rgba(255,255,255,.9);
  text-shadow: 0 1px 16px rgba(0,0,0,.3);
}
.hero-actions { margin-top: 32px; }

/* ============================================================
   TRUST / PARTNERS
   ============================================================ */
.trust { background: var(--white); }
.trust-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start;
}
.trust-count { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.trust-serif { font-family: var(--serif); font-style: italic; font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 500; margin-top: 2px; }
.trust-avatars { display: flex; align-items: center; gap: 0; margin-top: 22px; }
.trust-avatars img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; margin-left: -10px; filter: grayscale(1);
}
.trust-avatars img:first-child { margin-left: 0; }
.trust-rating { margin-left: 14px; font-size: .8rem; color: var(--text-2); }

.trust-body { font-size: 1.08rem; line-height: 1.7; color: #37372f; }
.trust-body strong { color: var(--text); font-weight: 600; }
.trust-right .link-underline { margin-top: 22px; }

.partners { margin-top: 76px; border-top: 1px solid var(--border); padding-top: 46px; }
.partners-track {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.partners-track li {
  font-size: 1.15rem; font-weight: 600; color: #9a9a95; letter-spacing: .02em;
  opacity: .85; transition: color .25s var(--ease), opacity .25s var(--ease);
  filter: grayscale(1);
}
.partners-track li:hover { color: var(--text); opacity: 1; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--muted-bg); }

/* ---------- Accordion (shared) ---------- */
.acc-item { border-top: 1px solid var(--border); }
.accordion .acc-item:last-child { border-bottom: 1px solid var(--border); }
.acc-head { margin: 0; }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px; text-align: left;
  transition: background .2s var(--ease);
}
.acc-trigger:hover { background: rgba(0,0,0,.015); }
.acc-title { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 500; letter-spacing: -0.01em; }
.acc-num { color: var(--text-2); font-weight: 500; margin-right: 6px; }

/* icon: services chevron */
.acc-icon { position: relative; width: 20px; height: 20px; flex: none; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; top: 9px; width: 11px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease);
}
.acc-icon::before { left: 1px; transform: rotate(45deg); }
.acc-icon::after { right: 1px; transform: rotate(-45deg); }
.acc-item.is-open .acc-icon::before { transform: rotate(-45deg); }
.acc-item.is-open .acc-icon::after { transform: rotate(45deg); }

/* icon: FAQ plus/minus */
.acc-pm { position: relative; width: 18px; height: 18px; flex: none; }
.acc-pm::before, .acc-pm::after {
  content: ""; position: absolute; background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.acc-pm::before { top: 8px; left: 0; width: 18px; height: 2px; }
.acc-pm::after { left: 8px; top: 0; width: 2px; height: 18px; }
.acc-item.is-open .acc-pm::after { transform: scaleY(0); }

/* panel */
.acc-panel {
  overflow: hidden; height: 0;
  transition: height .4s var(--ease);
}
.acc-panel-inner { padding: 2px 4px 30px; opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.acc-item.is-open .acc-panel-inner { opacity: 1; transform: none; }
.faq-accordion .acc-panel-inner { max-width: 640px; }
.faq-accordion .acc-panel-inner p { color: var(--text-2); }

.services-accordion { max-width: none; }
.service-panel { color: var(--text-2); }
.service-panel--expanded {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.service-media { justify-self: center; }
.service-media img {
  width: 220px; height: 130px; object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}
.service-panel--expanded .service-desc {
  max-width: 240px; justify-self: end; text-align: left; color: var(--text-2); font-size: .95rem;
}

/* ============================================================
   FEATURED PROJECTS
   ============================================================ */
.projects { background: var(--white); }
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.project-card {
  display: block; border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.05);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.project-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.12); transform: translateY(-3px); }
.project-img { overflow: hidden; aspect-ratio: 16 / 10; }
.project-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.project-card:hover .project-img img { transform: scale(1.045); }
.project-cap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; background: #fff;
}
.project-cap span:first-child { font-size: .92rem; font-weight: 500; }
.card-arrow {
  font-size: 1rem; color: var(--text-2);
  transition: transform .25s var(--ease), color .25s var(--ease);
}
.project-card:hover .card-arrow { transform: translate(4px, -4px); color: var(--text); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--white); }
.carousel {
  display: flex; align-items: center; gap: 22px;
  max-width: 900px; margin-inline: auto;
}
.carousel-btn {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  display: grid; place-items: center;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.carousel-btn:hover { background: var(--text); color: #fff; border-color: var(--text); transform: translateY(-1px); }
.carousel-btn.next { background: var(--text); color: #fff; border-color: var(--text); }
.carousel-btn.next:hover { background: #fff; color: var(--text); border-color: var(--border); }

.carousel-viewport { flex: 1; overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track { display: flex; transition: transform .55s var(--ease); }
.testi-card {
  flex: 0 0 100%;
  display: grid; grid-template-columns: 200px 1fr; gap: 34px; align-items: center;
  background: var(--muted-bg); border-radius: var(--radius-lg); padding: 34px;
}
.testi-portrait { border-radius: var(--radius); overflow: hidden; }
.testi-portrait img { width: 200px; height: 200px; object-fit: cover; }
.testi-body p { font-size: 1.28rem; line-height: 1.45; letter-spacing: -0.01em; color: #26261f; }
.testi-body .serif-em { font-size: 1.34rem; }
.testi-body footer { margin-top: 22px; display: flex; flex-direction: column; }
.testi-name { font-weight: 600; }
.testi-role { color: var(--text-2); font-size: .88rem; }

.carousel-dots { display: flex; justify-content: center; gap: 9px; margin-top: 30px; }
.carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%; background: #cfcfc9;
  transition: width .3s var(--ease), background .3s var(--ease);
}
.carousel-dots button.active { width: 24px; border-radius: 5px; background: var(--text); }

/* ============================================================
   TEAM
   ============================================================ */
.team { background: var(--muted-bg); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { position: relative; }
.team-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; }
.team-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.team-card:hover .team-img img { transform: scale(1.05); }
.team-plate {
  position: absolute; left: 14px; bottom: 14px;
  background: #fff; border-radius: 7px; padding: 10px 14px;
  display: flex; flex-direction: column; box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.team-card:hover .team-plate { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.16); }
.team-name { font-weight: 600; font-size: .92rem; }
.team-role { color: var(--text-2); font-size: .78rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--white); }
.faq-accordion { max-width: 760px; margin-inline: auto; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-section { background: var(--white); }
.cta-banner {
  position: relative; border-radius: 20px; overflow: hidden;
  min-height: 360px; display: flex; align-items: center; justify-content: center; text-align: center;
}
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; will-change: transform; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,50,74,.5), rgba(24,40,62,.62)); }
.cta-content { position: relative; z-index: 2; color: #fff; padding: 56px 24px; }
.cta-title { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.06; letter-spacing: -0.02em; font-weight: 600; }
.cta-title .line { display: block; }
.cta-title .serif-em { font-weight: 600; }
.cta-sub { margin: 18px auto 28px; max-width: 520px; color: rgba(255,255,255,.9); font-size: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-block: 84px 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.4fr; gap: 40px; }
.footer-h { font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--footer-text); margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-contact li { color: var(--footer-text-2); font-size: .92rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }

.news-field {
  display: flex; align-items: center; gap: 8px;
  background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 999px;
  padding: 6px 6px 6px 18px; max-width: 320px;
  transition: border-color .2s var(--ease);
}
.news-field:focus-within { border-color: #444; }
.news-field.error { border-color: #d9534f; }
.news-field input {
  flex: 1; background: none; border: none; color: #fff; font-size: .9rem; padding: 8px 0; min-width: 0;
}
.news-field input::placeholder { color: #6e6e69; }
.news-field input:focus { outline: none; }
.news-btn {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  transition: background .2s var(--ease), transform .2s var(--ease);
  position: relative;
}
.news-btn:hover { background: var(--blue-hover); transform: translateY(-1px); }
.news-btn-icon { transition: opacity .2s var(--ease); }
.news-spinner {
  position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  opacity: 0;
}
.news-form.loading .news-btn-icon { opacity: 0; }
.news-form.loading .news-spinner { opacity: 1; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.news-msg { margin-top: 10px; font-size: .82rem; min-height: 18px; color: var(--footer-text-2); }
.news-msg.ok { color: #6fd08c; }
.news-msg.bad { color: #e88; }

.footer-wordmark {
  display: flex; align-items: center; gap: 18px; color: #fff;
  margin-top: 64px; padding-top: 56px; border-top: 1px solid #1e1e1e;
  font-size: clamp(3rem, 12vw, 8.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1;
}
.footer-wordmark .fw-mark { width: clamp(46px, 9vw, 78px); height: auto; flex: none; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  margin-top: 40px; padding-top: 26px; border-top: 1px solid #1e1e1e;
  color: var(--footer-text-2); font-size: .84rem;
}
.footer-legal { display: flex; gap: 26px; }
.footer-legal a { color: var(--footer-text-2); transition: color .2s var(--ease); }
.footer-legal a:hover { color: #fff; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .carousel-track { transition: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .12s !important; }
  .hero-media img, .cta-bg { transform: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --pad: 32px; --section-y: 84px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}

@media (max-width: 860px) {
  .primary-nav, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .trust-grid { grid-template-columns: 1fr; gap: 34px; }
  .service-panel--expanded { grid-template-columns: 1fr; gap: 20px; }
  .service-media { justify-self: start; }
  .service-media img { width: 100%; height: 200px; max-width: 420px; }
  .service-panel--expanded .service-desc { justify-self: start; max-width: 480px; }
  .testi-card { grid-template-columns: 1fr; gap: 22px; text-align: left; padding: 26px; }
  .testi-portrait img { width: 96px; height: 96px; }
  .carousel { gap: 12px; }
}

@media (max-width: 620px) {
  :root { --pad: 20px; --section-y: 62px; }
  .hero { min-height: 88vh; padding-top: 84px; }
  .projects-grid { grid-template-columns: 1fr; }
  .team-grid {
    grid-auto-flow: column; grid-template-columns: none;
    grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 14px; padding-bottom: 8px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
    -webkit-overflow-scrolling: touch;
  }
  .team-card { scroll-snap-align: start; }
  .partners-track { gap: 20px 26px; justify-content: flex-start; }
  .partners-track li { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .carousel-btn { width: 40px; height: 40px; }
  .testi-body p { font-size: 1.1rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
