/* ==========================================================================
   LL Tampa Bay — стилі лендингу
   Mobile-first. Брейкпоінти: 480 / 768 / 1024 / 1280.
   ========================================================================== */

/* ---------- Шрифти (self-hosted, variable 400–800) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Токени ---------- */
:root {
  --c-black: #111015;
  --c-dark-2: #2a292e;
  --c-badge: #343436;
  --c-white: #ffffff;
  --c-gray: #eeeeee;
  --c-blue-gray: #e8ebf4;
  --c-surface: #fafafa;
  --c-field: #f3f3f3;
  --c-btn: #313131;
  --c-text: #111015;
  --c-text-muted: #5b5b63;
  --c-text-light: #d7d7db;
  --c-border: #dcdcdc;
  --c-error: #d93025;
  --c-green: #22c55e;
  --c-star: #f5c518;

  --font: "Manrope", "Inter", Roboto, Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --panel-gap: 6px;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;

  --header-h: 64px;
  --section-y: clamp(64px, 9vw, 120px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --scrollbar-w: 0px;
}
@media (min-width: 1024px) {
  :root { --header-h: 76px; }
}

/* ---------- Reset / база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.is-locked { overflow: hidden; }
html.is-locked body,
html.is-locked .header { padding-right: var(--scrollbar-w); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid #4c7dff; outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; flex: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  background: var(--c-white);
  color: var(--c-black);
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Темні блоки-«панелі»: hero, contact, footer (у макеті — заокруглені картки з відступом) */
.panel {
  margin: var(--panel-gap);
  border-radius: var(--radius-l);
  background: var(--c-black);
  color: var(--c-white);
}

.section { padding-block: var(--section-y); }

/* ---------- Спільні елементи ---------- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--c-badge);
  color: var(--c-white);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.badge--dark { background: var(--c-dark-2); }

.section-head {
  max-width: 560px;
  margin: 0 auto clamp(32px, 5vw, 48px);
  text-align: center;
}
.section-head__title {
  margin-top: 8px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-head__text {
  max-width: 440px;
  margin: 12px auto 0;
  color: #3d3d44;
  font-size: 15px;
}

/* Кнопка-пігулка з колом і стрілкою */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 7px 8px 7px 22px;
  border-radius: 999px;
  background: var(--c-dark-2);
  color: var(--c-white);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color .25s var(--ease);
}
.btn-pill__circle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-black);
  font-size: 16px;
  transition: transform .3s var(--ease);
}
.btn-pill:hover { background: #3a393f; }
.btn-pill:hover .btn-pill__circle { transform: rotate(45deg); }
.btn-pill--light { background: #e4e4e4; color: var(--c-black); }
.btn-pill--light .btn-pill__circle { background: var(--c-black); color: var(--c-white); }
.btn-pill--light:hover { background: #d8d8d8; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(17, 16, 21, .92);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: var(--c-white);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .header {
    background: rgba(17, 16, 21, .55);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
  }
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header__logo img { width: auto; height: 42px; }

.burger {
  position: relative;
  display: grid;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
}
.burger__line {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобільне меню — шторка під хедером.
   absolute, а не fixed: backdrop-filter хедера робить його контейнером для fixed-нащадків */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 32px var(--gutter) 40px;
  background: rgba(17, 16, 21, .97);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.header.is-menu-open .nav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.nav__list { display: grid; gap: 4px; }
.nav__link {
  display: block;
  padding: 10px 0;
  font-size: clamp(26px, 8vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.nav__link.is-active { color: #bfbfc6; }
.nav__extra { display: grid; justify-items: start; gap: 20px; }
.nav__phone { font-size: 18px; color: var(--c-text-light); }

@media (min-width: 1024px) {
  .burger { display: none; }

  /* Вгорі сторінки: хедер лежить поверх hero, меню — поверх фото (як у макеті) */
  .header {
    position: absolute;
    top: var(--panel-gap);
    height: auto;
    background: transparent;
    border-bottom: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .header__inner { padding-top: 40px; }
  .header__logo img { height: 86px; }

  .nav {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 0;
    margin-right: 52px;
    background: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav__list { display: flex; gap: clamp(24px, 3vw, 43px); }
  .nav__link {
    position: relative;
    padding: 6px 0;
    font-size: 16px;
    letter-spacing: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
  }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
  }
  .nav__link:hover::after,
  .nav__link.is-active::after { transform: scaleX(1); }
  .nav__link.is-active { color: var(--c-white); }
  .nav__extra { display: none; }

  /* Після прокрутки hero: закріплений хедер з матового скла */
  .header.is-stuck {
    position: fixed;
    top: 0;
    height: var(--header-h);
    background: rgba(17, 16, 21, .92);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    animation: header-in .4s var(--ease);
  }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .header.is-stuck {
      background: rgba(17, 16, 21, .6);
      -webkit-backdrop-filter: blur(16px) saturate(160%);
      backdrop-filter: blur(16px) saturate(160%);
    }
  }
  .header.is-stuck .header__inner { padding-top: 0; }
  .header.is-stuck .header__logo img { height: 50px; }
  .header.is-stuck .nav { margin-right: 0; }
  .header.is-stuck .nav__link { text-shadow: none; }
  .header.is-stuck .nav__extra { display: block; }
  .header.is-stuck .nav__phone { display: none; }
  .header.is-stuck .nav__cta { padding-block: 4px; }
  .header.is-stuck .nav__cta .btn-pill__circle { width: 30px; height: 30px; }
}
@keyframes header-in {
  from { transform: translateY(-100%); }
  to { transform: none; }
}

/* ==========================================================================
   1. Hero
   ========================================================================== */
.hero { padding: calc(var(--header-h) + 36px) 0 var(--gutter); overflow: hidden; }
.hero__inner { display: grid; gap: 36px; }
.hero__content { display: flex; flex-direction: column; align-items: flex-start; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 11px 3px 12px;
  border-radius: 999px;
  background: var(--c-dark-2);
  color: var(--c-text-light);
  font-size: 12.5px;
  font-weight: 500;
}
.hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}
.hero__title {
  margin-top: 14px;
  max-width: 9.6em;
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.hero__lead {
  max-width: 380px;
  margin-top: 22px;
  color: #d9d9dd;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 500;
  line-height: 1.45;
}
.hero__cta { margin-top: 34px; }

.hero__media { position: relative; }
.hero__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-m);
}

.review {
  margin-top: 12px;
  padding: 20px 22px;
  border-radius: var(--radius-m);
  background: rgba(40, 36, 36, .72);
  border: 1px solid rgba(255, 255, 255, .06);
  color: var(--c-white);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .review {
    background: rgba(40, 36, 36, .45);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}
.review__stars { display: flex; gap: 4px; color: var(--c-star); font-size: 18px; }
.review__text { margin-top: 10px; font-size: 14px; line-height: 1.3; }

/* Одна оркестрована поява — лише hero при завантаженні */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > *,
  .hero__media {
    animation: rise .8s var(--ease) both;
  }
  .hero__content > :nth-child(2) { animation-delay: .08s; }
  .hero__content > :nth-child(3) { animation-delay: .16s; }
  .hero__content > :nth-child(4) { animation-delay: .24s; }
  .hero__media { animation-delay: .12s; animation-duration: 1s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 600px) {
  .hero__img { aspect-ratio: 1 / 1; }
  .review {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: min(260px, 60%);
    margin: 0;
  }
}
@media (min-width: 1024px) {
  .hero { padding: 26px 0; }
  .hero__inner {
    grid-template-columns: 1fr minmax(0, 43%);
    align-items: stretch;
    gap: 40px;
    padding-right: 26px;
    max-width: calc(var(--container) + var(--gutter) * 2);
  }
  .hero__content {
    justify-content: flex-end;
    padding-top: 190px;
    padding-bottom: 32px;
  }
  .hero__img { aspect-ratio: 535 / 603; height: 100%; }
  .review { right: 16px; bottom: 18px; width: 240px; }
}

/* ==========================================================================
   2. About
   ========================================================================== */
.about__top { display: grid; gap: 24px; }
.about__title {
  margin-top: 12px;
  max-width: 6.4em;
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.about__text {
  max-width: 450px;
  color: #3f3f46;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  line-height: 1.55;
}

.perks {
  display: grid;
  gap: 40px 24px;
  margin-top: clamp(56px, 9vw, 120px);
}
.perk { display: flex; flex-direction: column; align-items: center; text-align: center; }
.perk__icon { width: 44px; height: 44px; }
.perk__title {
  margin-top: 14px;
  max-width: 11em;
  color: #0b1220;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.perk__text {
  max-width: 260px;
  margin-top: 12px;
  color: #55555c;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
}

@media (min-width: 480px) {
  .perks { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .about__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about__text { margin-top: 44px; }
}
@media (min-width: 1024px) {
  .perks { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   3. Gallery
   Без JS / на сенсорних: свайп. На desktop JS додає .is-marquee → автопрокрутка.
   ========================================================================== */
.gallery { padding-bottom: var(--section-y); --g-gap: 16px; }
.gallery__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.gallery__viewport::-webkit-scrollbar { display: none; }
.gallery__track {
  display: flex;
  width: max-content;
  padding-inline: var(--gutter);
}
.gallery__item {
  flex: none;
  width: min(78vw, 340px);
  margin-right: var(--g-gap);
  scroll-snap-align: start;
}
.gallery__item:last-child { margin-right: 0; }
.gallery__btn {
  display: block;
  width: 100%;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery__btn img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery__btn:hover img { transform: scale(1.03); }

@media (min-width: 480px) {
  .gallery__item { width: min(60vw, 340px); }
}

/* Режим marquee (тільки desktop з мишею, керує JS) */
.gallery.is-marquee { --g-gap: 28px; }
.gallery.is-marquee .gallery__viewport { overflow: hidden; scroll-snap-type: none; }
.gallery.is-marquee .gallery__track {
  padding-inline: 0;
  animation: marquee var(--marquee-duration, 60s) linear infinite;
  will-change: transform;
}
.gallery.is-marquee .gallery__item { width: clamp(260px, 26.5vw, 400px); }
.gallery.is-marquee .gallery__item:last-child { margin-right: var(--g-gap); }
.gallery.is-marquee .gallery__track.is-paused { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   4. Services
   ========================================================================== */
.services { background: var(--c-gray); }

/* Tablet / mobile: фото активного пункту — фон, пункти — темні скляні картки поверх */
.services__body {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
  border-radius: var(--radius-l);
  overflow: hidden;
  isolation: isolate;
}
.services__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #2b2621;
}
.services__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.services__img.is-active { opacity: 1; }

.services__list { display: grid; gap: 4px; }
.svc {
  border-radius: var(--radius-l);
  background: rgba(24, 20, 18, .62);
  color: var(--c-white);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .svc {
    background: rgba(24, 20, 18, .5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }
}
.svc__head { font-size: inherit; font-weight: inherit; }
.svc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 76px;
  padding: 16px 14px;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
}
.svc__icon { display: none; font-size: 22px; transition: transform .3s var(--ease); }
.svc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.svc__inner { overflow: hidden; }
.svc__inner p {
  padding: 0 14px 22px;
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
  line-height: 1.5;
}
.svc.is-open .svc__panel { grid-template-rows: 1fr; }
.svc.is-open .svc__btn { min-height: 0; padding-top: 22px; padding-bottom: 10px; }
.svc.is-open .svc__icon { transform: rotate(45deg); }

@media (min-width: 768px) {
  .services__body { max-width: 620px; }
  .svc__btn { padding-inline: 20px; font-size: 16px; }
  .svc__inner p { padding-inline: 20px; font-size: 15px; }
}

/* Desktop: фото ліворуч, акордеон праворуч */
@media (min-width: 1024px) {
  .services__body {
    display: grid;
    grid-template-columns: minmax(0, 45%) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 5vw, 64px);
    max-width: none;
    border-radius: 0;
    overflow: visible;
  }
  .services__media {
    position: relative;
    inset: auto;
    z-index: auto;
    aspect-ratio: 435 / 487;
    border-radius: var(--radius-s);
    overflow: hidden;
  }
  .services__list { gap: 0; }
  .svc {
    border-radius: 0;
    background: none;
    border-bottom: 1px solid #d4d4d4;
    color: var(--c-text);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .svc__btn,
  .svc.is-open .svc__btn { min-height: 0; padding: 20px 0; font-size: 17px; }
  .svc__btn:hover { color: #4a4a52; }
  .svc__icon { display: block; }
  .svc__inner p {
    max-width: 440px;
    padding: 0 0 26px;
    margin-top: -4px;
    color: var(--c-text-muted);
    font-size: 19px;
    line-height: 1.45;
  }
  .svc.is-open .svc__btn { cursor: default; }
}

/* ==========================================================================
   5. Our work
   ========================================================================== */
/* Стопка карток: кожна прилипає (sticky), наступна наїжджає поверх.
   --stack-top рахує JS (для карток, вищих за екран, — щоб спершу був видний їхній низ),
   --stack-p (0…1) — наскільки картку вже накрила наступна: зменшення й затемнення. */
.work__list { display: grid; gap: clamp(24px, 4vw, 52px); }
.case {
  position: sticky;
  top: var(--stack-top, calc(var(--header-h) + 16px));
  display: grid;
  gap: 24px;
  padding: 16px 16px 28px;
  border-radius: var(--radius-s);
  transform-origin: 50% 0;
  transform: scale(calc(1 - .06 * var(--stack-p, 0)));
  will-change: transform;
}
.case::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #000;
  opacity: calc(.3 * var(--stack-p, 0));
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .case { transform: none; will-change: auto; }
  .case::after { display: none; }
}
.case--dark { background: var(--c-black); color: var(--c-white); }
.case--light { background: var(--c-blue-gray); color: var(--c-text); }
.case__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-s);
}
.case__body { padding-inline: 4px; }
.case__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.case__text {
  max-width: 440px;
  margin-top: 16px;
  font-size: clamp(16px, 1.5vw, 17.5px);
  font-weight: 400;
  line-height: 1.5;
}
.case--dark .case__text { color: #dcdce0; }
.case--light .case__text { color: #3b3b42; }
.case__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.6;
}
.case--dark .tag { background: var(--c-dark-2); color: #e4e4e7; border: 1px solid #3a3940; }
.case--light .tag { background: #2e2d33; color: var(--c-white); }
.case__quote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 22px;
  font-size: 13.5px;
  line-height: 1.45;
}
.case__quote-icon { margin-top: 2px; font-size: 12px; }
.case--dark .case__quote { color: #d4d4d8; }
.case--light .case__quote { color: #3b3b42; }

@media (min-width: 768px) {
  .case {
    grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 4.5vw, 52px);
    padding: clamp(20px, 3vw, 30px);
  }
  .case__media img { aspect-ratio: 271 / 338; }
  .case__body { padding: 8px 0; }
}
@media (min-width: 1024px) {
  .work .container { max-width: calc(1080px + var(--gutter) * 2); }
  .case__quote { max-width: 480px; }
}

/* ==========================================================================
   6. FAQ
   ========================================================================== */
.faq__grid { display: grid; gap: 40px; }
.faq__title {
  margin-top: 10px;
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.faq__text { max-width: 240px; margin-top: 12px; color: #3d3d44; font-size: 15px; line-height: 1.5; }
.faq__aside .btn-pill { margin-top: 32px; font-size: 13px; gap: 20px; }
.faq__aside .btn-pill__circle { width: 30px; height: 30px; font-size: 14px; }

.faq__list { display: grid; gap: 14px; }
.qa {
  border: 1px solid #ececec;
  border-radius: var(--radius-s);
  background: var(--c-surface);
}
.qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q::marker { content: ""; }
.qa__icon { font-size: 20px; transition: transform .3s var(--ease); }
.qa[open] .qa__icon { transform: rotate(45deg); }
.qa__a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s var(--ease); }
.qa__inner { overflow: hidden; }
.qa__inner p {
  padding: 0 16px 18px;
  color: var(--c-text-muted);
  font-size: 16px;
  line-height: 1.55;
}
/* JS керує анімацією: [open] без .is-open = стан «закривається/ще не відкрився» */
.js .qa__a { grid-template-rows: 0fr; }
.js .qa.is-open .qa__a { grid-template-rows: 1fr; }
.js .qa[open]:not(.is-open) .qa__icon { transform: none; }

@media (min-width: 1024px) {
  .faq__grid {
    grid-template-columns: 290px 1fr;
    gap: 80px;
    align-items: start;
    max-width: calc(960px + var(--gutter) * 2);
  }
  .faq__aside { position: sticky; top: calc(var(--header-h) + 32px); }
  .qa__inner p { font-size: 17px; }
}

/* ==========================================================================
   7. Contact + форми
   ========================================================================== */
.contact { padding-block: clamp(32px, 5vw, 56px); }
.contact__grid { display: grid; gap: 36px; }
.contact__title {
  margin-top: 6px;
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.contact__text { max-width: 440px; margin-top: 12px; color: var(--c-text-light); font-size: 15px; line-height: 1.5; }
.contact__list {
  max-width: 440px;
  margin-top: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.contact__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 6px 0;
  font-size: 17px;
}
.contact__label { font-weight: 600; }
.contact__value { color: var(--c-text-light); transition: color .2s; overflow-wrap: anywhere; }
.contact__value:hover { color: var(--c-white); }

.contact__form {
  padding: clamp(16px, 3vw, 22px);
  border-radius: var(--radius-s);
  background: var(--c-white);
  color: var(--c-text);
}

@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: 1fr minmax(0, 420px); gap: 64px; align-items: start; }
  .contact__grid { max-width: calc(1024px + var(--gutter) * 2); }
}

.form { display: grid; gap: 12px; }
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field { display: grid; gap: 6px; }
.field__label { color: #555; font-size: 12px; font-weight: 500; }
.field__input {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #e2e2e2;
  border-radius: var(--radius-s);
  background: var(--c-field);
  font-size: 16px; /* 16px — щоб iOS не зумив поле */
  line-height: 1.35;
  transition: border-color .2s, background-color .2s;
}
.field__input::placeholder { color: #9a9a9f; }
.field__input:hover { border-color: #cfcfcf; }
.field__input:focus { outline: none; border-color: #8a8a90; background: var(--c-white); }
.field__input--area { min-height: 92px; resize: vertical; }
.field.is-invalid .field__input { border-color: var(--c-error); background: #fff6f5; }
.field__error { display: none; color: var(--c-error); font-size: 12.5px; line-height: 1.35; }
.field.is-invalid .field__error { display: block; }

.form__submit {
  min-height: 42px;
  margin-top: 8px;
  border-radius: 10px;
  background: var(--c-btn);
  color: var(--c-white);
  font-size: 15px;
  font-weight: 600;
  transition: background-color .2s;
}
.form__submit:hover { background: #1f1f1f; }
.form__submit:disabled { cursor: progress; opacity: .75; }
.form__submit.is-loading::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: var(--c-white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form__status:empty { display: none; }
.form__status { color: var(--c-error); font-size: 14px; line-height: 1.45; }
.form__status a { text-decoration: underline; font-weight: 600; }

.form-box__success {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 48px 12px;
  text-align: center;
  color: var(--c-text-muted);
}
.form-box__success-title { color: var(--c-text); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.form-box__again {
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--c-gray);
  color: var(--c-text);
  font-size: 14px;
  font-weight: 500;
}
.form-box__again:hover { background: #e2e2e2; }

/* Сповіщення для відправки без JS (показується через :target) */
.notice {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 120;
  width: min(560px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: var(--radius-m);
  color: var(--c-white);
  font-size: 15px;
  transform: translateX(-50%);
}
.notice:target { display: block; }
.notice--ok { background: #1f7a45; }
.notice--error { background: #a3261d; }
.notice a { text-decoration: underline; margin-left: 6px; }

/* ==========================================================================
   8. Footer
   ========================================================================== */
.footer { padding-block: 32px 22px; }
.footer__top {
  display: grid;
  gap: 28px;
  justify-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  text-align: center;
}
.footer__logo img { width: auto; height: 60px; }
.footer__heading { font-size: 15px; font-weight: 500; }
.footer__links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 6px 48px;
  margin-top: 12px;
  font-size: 15px;
}
.footer__links a { color: var(--c-text-light); transition: color .2s; }
.footer__links a:hover { color: var(--c-white); }
.footer__copy { margin-top: 18px; color: #9d9da3; font-size: 12px; text-align: center; }

@media (min-width: 768px) {
  .footer { padding-block: 34px 24px; }
  .footer__top {
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: start;
    justify-items: start;
    text-align: left;
    padding-inline: 20px;
  }
  .footer__links { grid-template-rows: repeat(3, auto); grid-auto-flow: column; }
  .footer__copy { text-align: left; }
}

/* ==========================================================================
   Модалка
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
}
.modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, .6);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 584px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 44px clamp(16px, 5vw, 36px) 32px;
  border-radius: var(--radius-m);
  background: var(--c-white);
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.modal.is-open .modal__overlay { opacity: 1; }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  color: #555;
  transition: background-color .2s, color .2s;
}
.modal__close:hover { background: var(--c-gray); color: var(--c-black); }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 56px 12px;
  background: rgba(8, 8, 10, .94);
  color: var(--c-white);
  opacity: 0;
  transition: opacity .25s var(--ease);
  touch-action: pan-y;
}
.lightbox.is-open { opacity: 1; }
.lightbox__figure { display: grid; justify-items: center; gap: 12px; }
.lightbox__img {
  max-width: min(100%, 1100px);
  max-height: calc(100dvh - 140px);
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-s);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__counter { color: #bdbdc3; font-size: 14px; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  font-size: 24px;
  transition: background-color .2s;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, .18); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__nav--next .icon { transform: scaleX(-1); }
@media (max-width: 767px) {
  .lightbox__nav { top: auto; bottom: 12px; transform: none; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
