/* =====================================================================
   BACKSPACE — redesign (Figma-faithful)
   Design tokens extracted from Figma: Manrope + Unbounded
   ===================================================================== */

:root {
  --bg: #f8f8f8;
  --ink: #0a0a0b;
  --panel: #0d0d0d;
  --panel-90: rgba(13, 13, 13, 0.9);
  --orange: #ff1c00;
  --stroke: #2c2c2c;
  --stroke-light: #e3e3e3;
  --muted: #7e7e7e;
  --white: #ffffff;

  --r-pill: 100px;
  --r-card: 30px;
  --r-section: 40px;

  --gutter: 20px;
  --maxw: 1440px;

  --fs-base: 17px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100%; background: #0a0a0b; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 60px 0; }
.section--tight { padding: 28px 0; }

/* Cap the full-bleed sections to the Figma frame width (1440) and center them,
   so on wide screens the layout keeps the macet proportions instead of stretching. */
.hero, .services, .pricing, .faq, .cta {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

/* Reusable label pill (e.g. "О нас", "Портфолио") */
.tag-pill {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: rgba(255, 28, 0, 0.1);
  color: #000;
  font-weight: 700;
  font-size: 17px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 17px;
  border: none;
  white-space: nowrap;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: #fff; color: #000; padding-right: 5px; }
.btn--dark  { background: rgba(0,0,0,.5); border: 1px solid var(--stroke); color: #fff; }
.btn--solid { background: #000; color: #fff; }
.btn__arrow {
  width: 43px; height: 43px; flex: 0 0 43px;
  display: grid; place-items: center;
}
.btn__arrow img { width: 43px; height: 43px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex: 0 0 10px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding: var(--gutter) var(--gutter) 0; }
.hero__card {
  position: relative;
  border-radius: var(--r-section);
  overflow: hidden;
  min-height: 844px;
  padding: 50px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: #0a0a0b url('/assets/figma/hero-bg.jpg') center/cover no-repeat;
}

/* top bar */
.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.hero__logo img { height: 21px; width: auto; }

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 70px;
  padding: 10px;
  border-radius: 35px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.nav-pill a {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  transition: background .2s, color .2s;
}
.nav-pill a.is-active,
.nav-pill a:hover { background: #fff; color: #000; }

.hero__actions { display: inline-flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 70px; height: 70px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; border: none; padding: 0;
}
.icon-btn img { width: 70px; height: 70px; }

.lang {
  position: relative;
  display: inline-flex; align-items: center;
}
.lang__btn {
  height: 70px; padding: 0 22px; border-radius: 35px;
  background: rgba(255,255,255,.1); border: 1px solid var(--stroke);
  color: #fff; font-weight: 700; font-size: 17px;
  display: inline-flex; align-items: center; gap: 8px;
}
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #101012; border: 1px solid var(--stroke);
  border-radius: 18px; padding: 8px; min-width: 120px;
  display: none; flex-direction: column; gap: 2px; z-index: 30;
}
.lang.is-open .lang__menu { display: flex; }
.lang__menu a { padding: 10px 16px; border-radius: 12px; color: #fff; font-weight: 600; }
.lang__menu a:hover { background: rgba(255,255,255,.08); }

/* brand wordmark */
.hero__brand { margin-top: 70px; }
.hero__wordmark { width: min(923px, 70%); height: auto; aspect-ratio: 923 / 95; }
.hero__tagline {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 22px; font-weight: 500; font-size: 17px;
}
.hero__tagline .sq { width: 12px; height: 12px; border-radius: 100px 0 100px 100px; background: var(--orange); }

.hero__spacer { flex: 1 1 auto; min-height: 40px; }

/* bottom */
.hero__bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px;
}
.hero__pitch { max-width: 520px; }
.hero__pitch h1 {
  font-weight: 600; font-size: 28px; line-height: 1.25; margin: 0 0 14px;
}
.hero__pitch p { font-weight: 400; font-size: 17px; margin: 0 0 24px; color: rgba(255,255,255,.85); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__portfolio { flex: 0 0 auto; }
.hero__previews { display: flex; gap: 20px; }
.hero__previews .pv {
  width: 300px; height: 200px; border-radius: var(--r-card);
  object-fit: cover;
}
.hero__pager {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; font-weight: 300; font-size: 17px;
}
.hero__pager .line { flex: 1 1 auto; height: 1px; background: rgba(255,255,255,.4); }

/* mobile hero carousel (swipeable) */
.hero__carousel { display: none; }
.hero__track {
  display: flex; gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.hero__track::-webkit-scrollbar { display: none; }
.hero__track img {
  flex: 0 0 64%; width: 64%; min-width: 0; height: 166px; border-radius: 30px; object-fit: cover;
  scroll-snap-align: start;
}
.hero__dots { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.hero__dots span { width: 43px; height: 4px; border-radius: 100px; background: rgba(217,217,217,.3); cursor: pointer; transition: background .3s; }
.hero__dots span.is-active { background: var(--orange); }

/* =====================================================================
   PRODUCTS / "Создаём продукты"
   ===================================================================== */
.products__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 30px;
  margin: 18px 0 30px;
}
.products__head h2 {
  font-weight: 600; font-size: 49px; line-height: 1.05; margin: 0; max-width: 720px;
}
.socials { display: flex; gap: 14px; flex: 0 0 auto; }
.socials .soc {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #000;
  background: #fff; border: 2px solid var(--stroke-light);
  transition: background .2s, color .2s, border-color .2s;
}
.socials .soc:hover { background: #000; color: #fff; border-color: #000; }
.socials .soc svg { width: 24px; height: 24px; }

.carousel-arrows { display: flex; gap: 16px; flex: 0 0 auto; }
.carousel-arrows .ca {
  width: 70px; height: 70px; border-radius: 50%;
  display: grid; place-items: center; color: #000;
  background: #fff; border: 2px solid var(--stroke-light);
  transition: background .2s, color .2s;
}
.carousel-arrows .ca:hover { background: #000; color: #fff; border-color: #000; }
.carousel-arrows .ca svg { width: 24px; height: 24px; }
.carousel-arrows .ca--prev svg { transform: rotate(180deg); }

.products__grid {
  display: grid;
  grid-template-columns: 569px 1fr;
  gap: 40px;
  align-items: stretch;
}
.products__photo {
  border-radius: var(--r-card); overflow: hidden; height: 588px;
}
.products__photo img { width: 100%; height: 100%; object-fit: cover; }

.products__right { display: flex; flex-direction: column; }
.products__lead {
  font-weight: 600; font-size: 30px; line-height: 1.25; margin: 0 0 30px;
}
.products__lead .brand { font-family: 'Unbounded', sans-serif; font-weight: 600; }
.products__lead .muted { color: var(--muted); }

.world {
  display: flex; align-items: center; gap: 16px;
  padding-top: 24px; margin-top: 8px; border-top: 2px solid var(--ink);
}
.world img { width: 55px; height: 55px; }
.world p { margin: 0; font-weight: 600; font-size: 17px; opacity: .55; line-height: 1.3; }

.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: auto;
  padding-top: 30px;
}
.stat-card {
  border-radius: var(--r-card); padding: 24px; min-height: 290px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.stat-card--light { background: #fff; }
.stat-card--dark {
  position: relative; overflow: hidden; color: #fff;
  background: #0a0a0b url('/assets/figma/stat-img.png') center/cover no-repeat;
}
.stat-card--dark::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.48) 100%);
}
.stat-card > * { position: relative; z-index: 1; }
.stat-card .num { font-weight: 800; font-size: 50px; line-height: 1; }
.stat-card .cap { font-weight: 800; font-size: 17px; opacity: .55; margin-top: 8px; }
.stat-card--dark .cap { opacity: .9; }
.stat-card .btn { align-self: stretch; margin-top: 18px; }
.clients {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 14px;
}
.clients img { height: 20px; width: auto; opacity: .4; filter: grayscale(1); }
.clients--stat { display: none; }

/* =====================================================================
   CASES / PORTFOLIO
   ===================================================================== */
.cases__head {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  margin: 18px 0 28px; flex-wrap: nowrap;
}
.cases__head h2 { flex: 0 1 auto; white-space: nowrap; }
.cases__head h2 { font-weight: 600; font-size: 49px; margin: 0; }
.filters {
  display: inline-flex; gap: 10px; padding: 10px; height: 70px; align-items: center;
  background: #000; border: 1px solid var(--stroke); border-radius: 35px;
}
.filters button {
  height: 50px; padding: 10px 20px; border-radius: var(--r-pill);
  background: transparent; border: none; color: #fff; font-weight: 700; font-size: 17px;
}
.filters button.is-active { background: #fff; color: #000; }

.cases__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.case {
  border-radius: var(--r-card); overflow: hidden; aspect-ratio: 690 / 366;
}
.case img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case:hover img { transform: scale(1.04); }

/* =====================================================================
   SERVICES (accordion on photo bg)
   ===================================================================== */
.services { padding: 20px; }
.services__inner {
  position: relative; border-radius: var(--r-section); overflow: hidden;
  padding: 50px;
  background: #0a0a0b url('/assets/figma/services-bg.jpg') center/cover no-repeat;
  color: #fff;
}
.services__title { font-weight: 700; font-size: 50px; text-align: center; margin: 0 0 40px; }

.acc { display: flex; flex-direction: column; gap: 27px; }
.acc__item {
  background: var(--panel-90); border: 1px solid var(--stroke);
  border-radius: var(--r-section); overflow: hidden;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.acc__head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 40px; cursor: pointer; user-select: none;
}
.acc__num {
  font-weight: 800; font-size: 50px; line-height: 1;
  color: rgba(255,255,255,.5);
}
.acc__item.is-open .acc__num { color: #fff; }
.acc__title { font-weight: 700; font-size: 50px; }
.acc__title b { font-weight: 800; }
.acc__toggle {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center;
}
.acc__toggle img { width: 40px; height: 40px; transition: transform .3s ease; }
.acc__body { display: none; padding: 0 40px 40px; }
.acc__item.is-open .acc__body { display: block; }

.svc-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.svc-chips span {
  background: #2a2a2a; border: 1px solid var(--stroke); color: rgba(255,255,255,.75);
  padding: 9px 16px; border-radius: var(--r-pill); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center;
}
.svc-detail { display: flex; gap: 24px; align-items: stretch; }
.svc-detail__img { flex: 0 0 280px; border-radius: 16px; overflow: hidden; height: 200px; border: 1px solid var(--stroke); }
.svc-detail__img img { width: 100%; height: 100%; object-fit: cover; }
.svc-detail__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.svc-detail__txt p { color: rgba(255,255,255,.7); font-weight: 500; font-size: 16px; margin: 0 0 auto; }
.svc-detail__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.btn--ghost { background: rgba(0,0,0,.4); border: 1px solid var(--stroke); color: #fff; padding-right: 5px; }

/* accordion open = minus */
.acc__toggle { position: relative; }
.acc__item.is-open .acc__toggle img { display: none; }
.acc__item.is-open .acc__toggle::after {
  content: ''; width: 20px; height: 2.5px; border-radius: 2px; background: #fff;
}

/* =====================================================================
   PRICING
   ===================================================================== */
.pricing { padding: 20px; }
.pricing__inner {
  border-radius: var(--r-section); padding: 50px;
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(255,255,255,.04), transparent 60%),
    #0a0a0b;
  color: #fff;
}
.pricing__top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 30px;
  margin-bottom: 34px;
}
.pricing__top h2 { font-weight: 800; font-size: 56px; margin: 0; }
.pricing__top p { color: rgba(255,255,255,.6); max-width: 280px; margin: 8px 0 0; text-align: right; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.plan {
  border: 1px solid var(--stroke); border-radius: var(--r-card);
  padding: 28px; display: flex; flex-direction: column;
  background: rgba(255,255,255,.015);
}
.plan--featured { border-color: var(--orange); }
.plan__name { color: rgba(255,255,255,.6); font-weight: 600; font-size: 17px; }
.plan__price { font-weight: 800; font-size: 50px; margin: 18px 0 24px; }
.plan__price small { font-size: 17px; font-weight: 600; color: rgba(255,255,255,.6); }
.plan ul { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.plan li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.plan li::before { content: '✓'; color: var(--orange); font-weight: 800; }
.plan .btn { margin-top: auto; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq { padding: 20px; }
.faq__inner {
  background: #f2f0ec; border-radius: var(--r-section); padding: 50px;
}
.faq__title { font-weight: 800; font-size: 60px; margin: 0 0 36px; }
.faq__title sup { font-size: 22px; vertical-align: super; }
.faq__list { display: flex; flex-direction: column; }
.faq__item { border-top: 1px solid rgba(0,0,0,.12); }
.faq__item:last-child { border-bottom: 1px solid rgba(0,0,0,.12); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 0; cursor: pointer;
  font-weight: 700; font-size: 22px;
}
.faq__sign { color: var(--orange); font-size: 24px; font-weight: 500; }
.faq__a { display: none; padding: 0 0 26px; color: var(--muted); max-width: 760px; line-height: 1.5; }
.faq__item.is-open .faq__a { display: block; }

/* =====================================================================
   CONTACT / CTA
   ===================================================================== */
.cta { padding: 20px; }
.cta__inner {
  background:
    radial-gradient(120% 120% at 10% 0%, rgba(255,255,255,.04), transparent 55%),
    #0a0a0b;
  border-radius: var(--r-section); padding: 60px;
  color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.cta__label { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .08em; font-size: 14px; color: rgba(255,255,255,.7); }
.cta__label .dot { background: var(--orange); }
.cta h2 { font-weight: 800; font-size: 64px; line-height: 1.02; margin: 16px 0 18px; }
.cta__sub { color: rgba(255,255,255,.6); max-width: 320px; margin: 0 0 28px; }
.cta__contacts .phone { font-weight: 800; font-size: 22px; }
.cta__contacts .email { color: rgba(255,255,255,.6); }

.cta__form { display: flex; flex-direction: column; gap: 18px; }
.cta__form input, .cta__form textarea {
  width: 100%; background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke); border-radius: 22px;
  padding: 22px 24px; color: #fff; font-family: inherit; font-size: 17px;
}
.cta__form textarea { min-height: 120px; resize: vertical; }
.cta__form input::placeholder, .cta__form textarea::placeholder { color: rgba(255,255,255,.5); }
.cta__form .btn { align-self: stretch; height: 64px; border-radius: var(--r-pill); margin-top: 6px; }
.form-status { font-size: 15px; min-height: 18px; }
.form-status.ok { color: #28d17c; }
.form-status.err { color: var(--orange); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  max-width: var(--maxw);
  margin: 20px auto; border-radius: var(--r-section); overflow: hidden;
  background: #0a0a0b; color: #fff; padding: 50px 50px 0;
}
.footer__cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px;
}
.footer__brand .name { font-weight: 800; font-size: 24px; }
.footer__brand p { color: rgba(255,255,255,.5); max-width: 280px; margin: 14px 0 0; }
.footer__col h4 { color: rgba(255,255,255,.4); font-weight: 600; font-size: 13px; letter-spacing: .1em; margin: 0 0 18px; }
.footer__col a { display: block; color: rgba(255,255,255,.85); margin-bottom: 12px; font-weight: 500; }
.footer__col a:hover { color: #fff; }
.footer__wordmark {
  width: 100%; display: block; margin-bottom: -2%;
}

/* =====================================================================
   MOBILE MENU
   ===================================================================== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  background: #0a0a0b; color: #fff; padding: 28px 24px;
  display: none; flex-direction: column;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__close { background: none; border: none; color: #fff; font-size: 34px; line-height: 1; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; }
.mobile-menu nav a { font-size: 32px; font-weight: 700; padding: 12px 0; }
.mobile-menu__lang { display: flex; gap: 12px; margin-top: auto; }
.mobile-menu__lang a { padding: 10px 18px; border: 1px solid var(--stroke); border-radius: 100px; font-weight: 700; }
.mobile-menu__lang a.is-active { background: #fff; color: #000; }

/* hide on desktop */
.only-mobile { display: none; background: rgba(10,10,11,.5); border: 1px solid rgba(255,255,255,.14); }
.only-mobile svg { width: 24px; height: 24px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1200px) {
  .hero__pitch h1 { font-size: 24px; }
  .products__grid { grid-template-columns: 1fr; }
  .products__photo { height: 420px; }
  .acc__title, .acc__num { font-size: 38px; }
  .pricing__top h2 { font-size: 44px; }
  .faq__title { font-size: 48px; }
  .cta h2 { font-size: 48px; }
}

@media (max-width: 980px) {
  .nav-pill, .lang, .hero__actions .icon-btn:not(.only-mobile), .hero__logo { display: none; }
  .only-mobile { display: inline-grid; width: 64px; height: 64px; }
  .hero__previews, .hero__pager { display: none; }
  .hero__carousel { display: block; }
  .hero__track { margin-right: -18px; }
  /* full-bleed hero image, rounded only at the bottom */
  .hero { padding: 0; max-width: 100%; margin: 0; }
  .hero__card { min-height: 92vh; padding: 44px 18px 30px; border-radius: 0 0 30px 30px; }
  .hero__brand { margin-top: 48px; }
  .hero__bottom { flex-direction: column; align-items: stretch; gap: 30px; }
  .hero__portfolio { width: 100%; }
  .hero__previews .pv { width: 50%; height: 160px; }
  .plans { grid-template-columns: 1fr; }
  .products__head { flex-wrap: wrap; }
  .carousel-arrows, .socials { flex: 0 0 auto; }
  .cases__head { flex-wrap: wrap; }
  .cases__head h2 { white-space: normal; }
  .filters { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: 0 0 auto; }
  .cta__inner { grid-template-columns: 1fr; gap: 36px; padding: 36px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .pricing__top { flex-direction: column; }
  .pricing__top p { text-align: left; }
}

@media (max-width: 680px) {
  :root { --gutter: 14px; }
  .section { padding: 40px 0; }
  .hero__card { padding: 40px 14px 64px; min-height: 100vh; border-radius: 0 0 30px 30px; }
  .hero__track { margin-right: -14px; gap: 16px; }
  /* mobile hero text: wordmark, pitch SemiBold 17px / 2 lines, 50px gap to buttons */
  .hero__wordmark { width: 87%; }
  .hero__pitch h1 { font-size: 17px; font-weight: 600; line-height: 1.4; margin: 0 0 50px; }
  .hero__pitch h1 br { display: none; }
  .hero__pitch p { display: none; }
  .cases__head h2 { font-size: 32px; }
  /* mobile "О нас" = text + stats only (Figma has no big photo / no heading here) */
  .products__head h2 { display: none; }
  .products__photo { display: none; }
  .products__grid { grid-template-columns: 1fr; }
  .products__lead { font-size: 15px; }
  .world p { font-size: 10px; }
  .tag-pill { background: rgba(0,0,0,.08); }
  .stat-card .num { font-size: 50px; }
  .stat-card .cap { font-size: 15px; }
  .stat-card .btn { font-size: 15px; }
  .clients--stat { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 22px 0 6px; }
  .clients--stat img { height: 15px; }
  .stat-card--dark .clients { display: none; }
  .stats { grid-template-columns: 1fr; }
  .cases__grid { grid-template-columns: 1fr; gap: 10px; }
  .case { border-radius: 15px; }
  .filters { padding: 6px; gap: 4px; height: auto; }
  .filters button { font-size: 11px; padding: 8px 11px; height: auto; }
  .services { padding: 14px; }
  .services__inner { padding: 20px; }
  .services__title {
    font-size: 40px;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.35) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    text-align: left;
  }
  .acc__head { padding: 18px 20px; }
  .acc__title, .acc__num { font-size: 20px; }
  .acc__item { border-radius: 15px; }
  .svc-detail { gap: 12px; }
  .svc-detail__img { flex: 0 0 138px; height: 92px; border-radius: 10px; }
  .svc-chips { gap: 6px; margin-bottom: 14px; flex-wrap: nowrap; }
  .svc-chips span { padding: 5px 10px; font-size: 10px; white-space: nowrap; }
  .svc-detail__txt p { font-size: 11px; line-height: 1.45; }
  .svc-detail__btns { flex-direction: column; gap: 8px; margin-top: 12px; }
  .svc-detail__btns .btn { width: 100%; white-space: normal; justify-content: space-between; height: 36px; font-size: 11px; padding: 0 6px 0 14px; gap: 6px; }
  .svc-detail__btns .btn--light { padding-right: 4px; }
  .svc-detail__btns .btn__arrow { width: 24px; height: 24px; }
  .svc-detail__btns .btn__arrow img { width: 24px; height: 24px; }
  .acc__body { padding: 0 16px 16px; }
  .pricing, .faq, .cta { padding: 14px; }
  .pricing__inner, .faq__inner { padding: 22px; }
  .plan, .stat-card, .case, .acc__item, .plan ul, .plan li { min-width: 0; }
  .plan .btn, .stat-card .btn { white-space: normal; }
  .pricing__top h2 { font-size: 40px; }
  .faq__title { font-size: 40px; }
  .faq__q { font-size: 18px; }
  .cta h2 { font-size: 38px; }
  .cta__inner { padding: 26px; }
  .footer { padding: 32px 24px 0; margin: 14px; }
  .footer__cols { grid-template-columns: 1fr; gap: 28px; }
  .hero__previews .pv { height: 130px; }
}

/* =====================================================================
   PIXEL-EXACT MOBILE FRAME (1:1 from Figma 390px design, scaled to vw)
   ===================================================================== */
.mfx { display: none; }
@media (max-width: 767px) {
  .mfx {
    display: block; position: relative; width: 100%; overflow: hidden;
    height: calc(3964px * var(--mscale, 0.96));
  }
  .mfx__frame {
    position: absolute; top: 0; left: 0; width: 390px; height: 3964px;
    transform-origin: top left; transform: scale(var(--mscale, 0.96));
  }
  .mfx__frame, .mfx__frame * { box-sizing: border-box; }
  .mfx__frame p { margin: 0; }
  .mfx-pf::-webkit-scrollbar { display: none; }
  .mfx-pf { scrollbar-width: none; }
  /* mobile shows ONLY the Figma 14:5 frame — hide every responsive section */
  body:has(.mfx) #home, body:has(.mfx) #about, body:has(.mfx) #portfolio,
  body:has(.mfx) #services, body:has(.mfx) .pricing, body:has(.mfx) .faq,
  body:has(.mfx) .cta, body:has(.mfx) .footer { display: none !important; }
}

/* =====================================================================
   PIXEL-EXACT DESKTOP FRAME (1:1 from Figma 1440px design, scaled)
   ===================================================================== */
.dfx { display: none; }
@media (min-width: 768px) {
  .dfx {
    display: block; max-width: 1440px; margin: 0 auto;
    position: relative; width: 100%; overflow: hidden;
    height: calc(6708px * var(--dscale, 1));
  }
  .dfx__frame {
    position: absolute; top: 0; left: 0; width: 1440px; height: 6708px;
    transform-origin: top left; transform: scale(var(--dscale, 1));
  }
  .dfx__frame, .dfx__frame * { box-sizing: border-box; }
  .dfx__frame p { margin: 0; }
  /* desktop shows ONLY the Figma 14:2 frame — hide every responsive section */
  body:has(.dfx) #home, body:has(.dfx) #about, body:has(.dfx) #portfolio,
  body:has(.dfx) #services, body:has(.dfx) .pricing, body:has(.dfx) .faq,
  body:has(.dfx) .cta, body:has(.dfx) .footer { display: none !important; }
}

/* ===== shared footer (identical to homepage .ftr), injected by chrome.js ===== */
.ftr { background:#0a0a0b; color:#fff; border-radius:40px 40px 0 0; padding:48px 40px 36px; margin-top:40px; }
.ftr__wrap { max-width:1340px; margin:0 auto; }
.ftr__top { display:flex; flex-wrap:wrap; gap:48px; justify-content:space-between; }
.ftr__brand { max-width:330px; }
.ftr__logo { font-family:'Unbounded',sans-serif; font-weight:700; font-size:26px; letter-spacing:1px; color:#fff; display:inline-block; margin-bottom:18px; text-decoration:none; }
.ftr__tag { color:rgba(255,255,255,0.55); font-size:15px; line-height:1.6; margin:0 0 22px; }
.ftr__soc { display:flex; gap:12px; }
.ftr__soc a { width:44px; height:44px; border:1px solid rgba(255,255,255,0.2); border-radius:50%; display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,0.85); transition:background .25s ease, border-color .25s ease, color .25s ease; }
.ftr__soc a:hover { background:#fff; border-color:#fff; color:#0a0a0b; }
.ftr__col h3 { font-size:13px; text-transform:uppercase; letter-spacing:1.2px; color:rgba(255,255,255,0.4); margin:0 0 18px; font-weight:700; }
.ftr__col a, .ftr__col p { display:block; color:rgba(255,255,255,0.78); font-size:15px; line-height:1.3; margin-bottom:13px; text-decoration:none; transition:color .2s ease; }
.ftr__col a:hover { color:#ff1c00; }
.ftr__col p { color:rgba(255,255,255,0.55); }
.ftr__seo { margin:50px 0 0; padding-top:28px; border-top:1px solid rgba(255,255,255,0.1); color:rgba(255,255,255,0.4); font-size:13px; line-height:1.7; max-width:1060px; }
.ftr__seo strong { color:rgba(255,255,255,0.6); font-weight:600; }
.ftr__bottom { display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between; align-items:center; margin-top:26px; color:rgba(255,255,255,0.45); font-size:14px; }
.ftr__lang a { color:rgba(255,255,255,0.55); text-decoration:none; margin-left:16px; transition:color .2s ease; }
.ftr__lang a:hover, .ftr__lang a.is-cur { color:#fff; }
/* active nav state on inner pages */
.ihead__nav a.is-active { color:#ff1c00; }
.imenu nav a.is-active { color:#ff1c00; }
/* retire the old injected footer if any stale CSS references it */
.ifooter { display:none !important; }
@media (max-width:767px){
  .ftr { border-radius:30px 30px 0 0; padding:28px 20px 24px; }
  .ftr__top { gap:30px; }
  .ftr__brand { max-width:100%; }
}

/* footer -> SMS Admin Panel button */
.ftr__admin { display:inline-flex; align-items:center; gap:6px; padding:7px 14px; border:1px solid rgba(255,255,255,0.25); border-radius:100px; color:rgba(255,255,255,0.7); font-size:13px; font-weight:600; text-decoration:none; transition:background .2s ease, color .2s ease, border-color .2s ease; }
.ftr__admin:hover { background:#fff; color:#0a0a0b; border-color:#fff; }

/* =====================================================================
   SHARED HEADER + MENU — identical to the homepage (#shdr + .m-menu).
   On inner pages the header is sticky+visible (no hero to reveal from).
   ===================================================================== */
:root { --hdr-h: 56px; }
@media (min-width: 768px) { :root { --hdr-h: 64px; } }

/* hero-style dark bar: white logo + glass nav pill (sliding highlight) + glass buttons */
.ihero { position: sticky; top: 0; z-index: 150; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; padding: 0 40px; background: #0a0a0b; }
.ihero__logo { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: 0.4px; color: #fff; text-decoration: none; flex: 0 0 auto; }
.ihero__nav { position: relative; display: flex; align-items: center; padding: 8px; background: rgba(255,255,255,0.1); border: 1px solid #2c2c2c; border-radius: 35px; }
.ihero__hl { position: absolute; top: 8px; left: 0; width: 0; height: 40px; border-radius: 100px; opacity: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.06));
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.55), inset 0 -2px 6px rgba(255,255,255,0.15), 0 8px 22px rgba(0,0,0,0.22);
  transition: left .45s cubic-bezier(.34,1.3,.4,1), width .45s cubic-bezier(.34,1.3,.4,1), opacity .3s ease; }
.ihero__nav.is-hover .ihero__hl { opacity: 1; }
.ihero__link { position: relative; z-index: 2; display: flex; align-items: center; height: 40px; padding: 0 22px; border-radius: 100px; color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; text-decoration: none; transition: color .3s ease; }
.ihero__actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.ihero__btn { position: relative; width: 56px; height: 56px; border-radius: 50%; border: 1px solid #2c2c2c; background: rgba(255,255,255,0.06); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; text-decoration: none; transition: transform .35s cubic-bezier(.34,1.3,.4,1), background .25s ease; }
.ihero__btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.12); }
.ihero__btn svg { color: #fff; }
@media (max-width: 767px) {
  .ihero { height: 64px; padding: 0 20px; gap: 14px; }
  .ihero__logo { font-size: 20px; }
  .ihero__nav { display: none; }
  .ihero__btn { width: 44px; height: 44px; }
}

.m-menu { position: fixed; inset: 0; z-index: 200; display: none; background: rgba(10,10,11,0); -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px); transition: background .35s ease, backdrop-filter .35s ease; }
.m-menu.is-open { display: block; }
.m-menu.is-shown { background: rgba(10,10,11,0.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.m-menu__panel { position: absolute; top: 0; left: 0; right: 0; background: #fff; border-radius: 0 0 30px 30px; padding: calc(env(safe-area-inset-top, 0px) + 18px) 24px 14px; box-shadow: 0 24px 60px rgba(10,10,11,0.22); transform: translateY(-106%); transition: transform .42s cubic-bezier(.32,.72,0,1); overscroll-behavior: contain; touch-action: pan-y; }
.m-menu.is-shown .m-menu__panel { transform: translateY(0); }
.m-menu__close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 16px); right: 18px; width: 38px; height: 38px; border-radius: 50%; background: #f1f1f1; border: none; color: #0a0a0b; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s ease; }
.m-menu__close:hover { background: #e6e6e6; }
.m-menu nav { display: flex; flex-direction: column; gap: 0; margin-top: 24px; }
.m-menu nav a { color: #0a0a0b; font-size: 26px; font-weight: 700; letter-spacing: -0.5px; padding: 14px 4px; border-bottom: 1px solid #f0f0f0; text-decoration: none; transition: color .2s ease, padding-left .2s ease; }
.m-menu nav a:last-child { border-bottom: none; }
.m-menu nav a:active, .m-menu nav a.is-active { color: #ff1c00; padding-left: 10px; }
.m-menu__grab { width: 44px; height: 5px; border-radius: 100px; background: #dcdcdc; margin: 14px auto 2px; }
