/* heleum.studio — design tokens & base */
:root {
  --teal-50: #EAF9F9;
  --teal-100: #D6F3F3;
  --teal-300: #8AE0E0;
  --teal-400: #5ECECE;
  --teal-500: #4DD8D8;
  --teal-600: #2AADAD;
  --teal-700: #1F8A8A;
  --teal-900: #0E4848;

  --orange-500: #F5A623;
  --orange-600: #DC9015;

  --ink-900: #1A1F26;
  --ink-700: #3D3D3D;
  --ink-500: #7A7A7A;
  --ink-300: #C9CCD1;
  --ink-100: #E8EAED;
  --ink-50:  #F4F6F8;
  --bg:      #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(15, 40, 50, 0.04), 0 1px 1px rgba(15, 40, 50, 0.02);
  --shadow-md: 0 6px 18px rgba(15, 40, 50, 0.06), 0 2px 6px rgba(15, 40, 50, 0.04);
  --shadow-lg: 0 24px 60px rgba(15, 40, 50, 0.12), 0 8px 18px rgba(15, 40, 50, 0.06);
  --shadow-teal: 0 18px 38px rgba(42, 173, 173, 0.28);
  --shadow-orange: 0 14px 28px rgba(245, 166, 35, 0.32);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1240px;
  --gutter: clamp(16px, 3vw, 32px);

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-weight: 800; font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -0.02em; }
h2 { font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); }
h3 { font-weight: 700; font-size: clamp(20px, 1.6vw, 24px); }
h4 { font-weight: 600; font-size: 18px; }
p  { margin: 0 0 1em; text-wrap: pretty; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--teal-500);
}

.lead { font-size: clamp(17px, 1.3vw, 20px); color: var(--ink-700); }
.muted { color: var(--ink-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--teal {
  background: var(--teal-500);
  color: #fff;
  box-shadow: var(--shadow-teal);
}
@media (hover: hover) { .btn--teal:hover { background: var(--teal-600); transform: translateY(-2px); } }
.btn--orange {
  background: var(--orange-500);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
@media (hover: hover) { .btn--orange:hover { background: var(--orange-600); transform: translateY(-2px); } }
.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  border: 1.5px solid var(--ink-300);
}
@media (hover: hover) { .btn--ghost:hover { border-color: var(--teal-500); color: var(--teal-700); } }
.btn--ghost-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
@media (hover: hover) { .btn--ghost-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); } }
.btn--sm { height: 40px; padding: 0 18px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s, background .25s;
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(15,40,50,0.06), 0 8px 24px rgba(15,40,50,0.06);
  border-bottom-color: rgba(15,40,50,0.04);
}
.site-header__row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  height: 78px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(15px, 4.6vw, 19px);
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.logo__mark {
  width: 34px;
  height: 34px;
  position: relative;
}
.logo__mark svg { width: 100%; height: 100%; }
.logo__dot { color: var(--teal-500); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  margin-left: auto;
  margin-right: clamp(14px, 2vw, 28px);
}
.nav__link {
  position: relative;
  padding: 8px 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-700);
  transition: color .2s;
}
@media (hover: hover) { .nav__link:hover { color: var(--teal-700); } }
.nav__link[aria-expanded="true"] { color: var(--teal-700); }
.nav__link--has-menu::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .25s;
}
.has-menu { position: relative; }
.has-menu[data-open="true"] .nav__link--has-menu::after { transform: translateY(2px) rotate(-135deg); }

.megamenu {
  position: absolute;
  top: calc(100% + 14px);
  left: calc(50% + var(--mm-shift, 0px));
  transform: translateX(-50%) translateY(8px);
  width: min(560px, 92vw);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
  border: 1px solid rgba(15,40,50,0.05);
}
.has-menu[data-open="true"] .megamenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.megamenu__col .megamenu__heading {
  font-family: var(--font-head);
  font-weight: 700;
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 14px;
}
.megamenu__col ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-rows: repeat(6, auto); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px 32px; }
.megamenu__col a {
  display: block;
  padding: 6px 8px;
  margin: -6px -8px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-700);
  transition: background .2s, color .2s;
}
@media (hover: hover) { .megamenu__col a:hover { background: var(--teal-50); color: var(--teal-700); } }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--ink-50);
  border-radius: 999px;
  padding: 4px;
  position: relative;
}
.lang-switch button {
  width: 38px;
  height: 30px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  transition: color .2s;
  z-index: 1;
}
.lang-switch button[aria-pressed="true"] { color: #fff; }
.lang-switch__pill {
  position: absolute;
  top: 4px; left: 4px;
  width: 38px; height: 30px;
  background: var(--ink-900);
  border-radius: 999px;
  transition: transform .3s var(--ease-out);
}
.lang-switch[data-lang="ru"] .lang-switch__pill { transform: translateX(38px); }

.header-phone {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-900);
  white-space: nowrap;
}
.header-phone span { display: inline-flex; align-items: center; gap: 6px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--ink-50);
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink-900);
  margin: 4px auto;
  transition: transform .25s, opacity .2s;
  border-radius: 2px;
}
body.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 78px 0 0 0;
  background: #fff;
  z-index: 40;
  padding: 32px var(--gutter);
  display: none;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
body.menu-open .mobile-menu { display: flex; }
.mobile-menu a {
  display: block;
  padding: 14px 12px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink-900);
  border-bottom: 1px solid var(--ink-100);
}
@media (hover: hover) { .mobile-menu a:hover { background: var(--teal-50); color: var(--teal-700); } }
.mobile-menu .group-label {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-700);
  padding: 0 12px;
}
.mobile-menu .mobile-cta {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden; /* декор (.xtal) і вордмарк не повинні створювати горизонтальний скрол */
  background:
    radial-gradient(circle at 18% 22%, rgba(94, 206, 206, 0.42), transparent 55%),
    radial-gradient(circle at 88% 8%, rgba(42, 173, 173, 0.32), transparent 55%),
    linear-gradient(160deg, #F4FCFC 0%, #E0F6F6 60%, #C9EFEF 100%);
  padding: clamp(56px, 8vw, 110px) 0 clamp(120px, 14vw, 180px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 80px));
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 800;
  margin: 8px 0 22px;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  max-width: 640px;
}
.hero__wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(46px, 6.8vw, 92px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 18px 0 6px;
  background: linear-gradient(120deg, var(--ink-900) 0%, var(--teal-700) 70%, var(--teal-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__wordmark .dot { color: var(--orange-500); -webkit-text-fill-color: var(--orange-500); }
.hero__sub {
  font-size: clamp(17px, 1.4vw, 21px);
  max-width: 560px;
  color: var(--ink-700);
  margin-bottom: 32px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__signals {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--ink-500);
}
.hero__signal { display: inline-flex; align-items: center; gap: 8px; }
.hero__signal::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(94, 206, 206, 0.22);
}

/* Floating crystals */
.crystal {
  position: absolute;
  opacity: 0.55;
  filter: drop-shadow(0 18px 40px rgba(42, 173, 173, 0.28));
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-22px) rotate(8deg); }
}

/* hero form card */
.lead-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  position: relative;
}
.lead-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(94,206,206,0.6), rgba(245,166,35,0.3), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.lead-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink-900);
  margin-bottom: 4px;
}
.lead-card__sub {
  font-size: 14px;
  color: var(--ink-500);
  margin-bottom: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field > label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  text-transform: uppercase;
}
.field input, .field textarea, .field select {
  width: 100%;
  border: 1.5px solid var(--ink-100);
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink-900);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(94, 206, 206, 0.18);
}
.field.has-error input, .field.has-error textarea { border-color: #E14A4A; }
.field__error {
  display: none;
  font-size: 12px;
  color: #C0392B;
}
.field.has-error .field__error { display: block; }
.form__success {
  display: none;
  padding: 16px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-700);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--teal-100);
}
.form.is-submitted .form__success { display: block; }

/* ---------- Section base ---------- */
section { position: relative; }
.section {
  padding: clamp(72px, 9vw, 130px) 0;
}
.section--tinted {
  background: var(--teal-50);
}
.section--dark {
  background: linear-gradient(160deg, #0E4848 0%, #14393A 60%, #103030 100%);
  color: #fff;
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .eyebrow { color: var(--teal-300); }
.section--dark .eyebrow::before { background: var(--teal-400); }
.section__head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.section__head h2 { margin: 14px 0 0; }
.section__head p { margin: 0; max-width: 480px; color: var(--ink-500); }

/* diagonal-cut helpers */
.cut-top { clip-path: polygon(0 80px, 100% 0, 100% 100%, 0 100%); margin-top: -80px; }
.cut-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 80px), 0 100%); padding-bottom: 130px; }

/* ---------- Why-us cards ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  position: relative;
  padding: 36px 26px 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.why-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-300));
  transform-origin: left;
  transform: scaleX(0.2);
  transition: transform .4s var(--ease-out);
}
@media (hover: hover) {
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-300);
}
.why-card:hover::before { transform: scaleX(1); }
}
.why-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.why-card__num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  color: var(--teal-300);
  letter-spacing: 0.04em;
}
.why-card h3 { margin-bottom: 10px; font-size: 19px; }
.why-card p { color: var(--ink-500); font-size: 15px; margin: 0; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink-100);
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.service-card::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94,206,206,0.16), transparent 70%);
  transition: transform .5s var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) {
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card:hover::after { transform: scale(1.3); }
}
.service-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 18px;
}
.service-card__badge .num {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--teal-50);
  display: grid; place-items: center;
  font-size: 13px;
}
.service-card h3 { margin-bottom: 18px; }
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-700);
}
.service-card li {
  position: relative;
  padding-left: 22px;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 10px; height: 10px;
  border: 1.5px solid var(--teal-500);
  border-top: 0; border-left: 0;
  transform: rotate(-45deg) translateY(-2px);
  transform-origin: center;
}
.service-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px dashed var(--ink-100);
  position: relative;
  z-index: 1;
}
.service-card__count {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-500);
}
.service-card__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--teal-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}
@media (hover: hover) { .service-card__link:hover { gap: 12px; } }
/* service-card list items as links (category navigation) */
.service-card li a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
@media (hover: hover) { .service-card li a:hover { color: var(--teal-700); } }
.service-card h3 a { color: inherit; text-decoration: none; transition: color .2s; }
@media (hover: hover) { .service-card h3 a:hover { color: var(--teal-700); } }

/* megamenu column headings as links to category pages */
a.megamenu__heading {
  padding: 0;
  margin: 0 0 14px;
  border-radius: 0;
  transition: color .2s;
}
@media (hover: hover) { a.megamenu__heading:hover { background: transparent; color: var(--ink-900); } }

/* ---------- Category (poslugy) page service grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- Cases slider ---------- */
.cases {
  position: relative;
}
.cases__viewport {
  overflow: hidden;
  margin: 0 calc(var(--gutter) * -1);
  padding: 12px var(--gutter);
}
.cases__track {
  display: flex;
  gap: 24px;
  transition: transform .6s var(--ease-out);
  will-change: transform;
}
.case-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ink-100);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
@media (hover: hover) { .case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); } }
.case-card__media {
  aspect-ratio: 4 / 3;
  position: relative;
  background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
  overflow: hidden;
}
.case-card__media image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.case-card__niche {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-700);
  z-index: 1;
}
.case-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.case-card__client {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink-900);
  margin-bottom: 6px;
}
.case-card__niche-text { font-size: 13px; color: var(--ink-500); margin-bottom: 18px; }
.case-card__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px dashed var(--ink-100);
  border-bottom: 1px dashed var(--ink-100);
  margin-bottom: 18px;
}
.case-card__metric { display: flex; flex-direction: column; gap: 2px; }
.case-card__metric strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--teal-700);
}
.case-card__metric span { font-size: 12px; color: var(--ink-500); }
.case-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.case-card__tag {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-700);
}
.case-card__link {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--teal-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cases__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
}
.cases__arrows { display: flex; gap: 10px; }
.cases__arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--ink-100);
  color: var(--ink-900);
  display: grid; place-items: center;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
@media (hover: hover) { .cases__arrow:hover { background: var(--teal-500); border-color: var(--teal-500); color: #fff; } }
.cases__arrow:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.cases__dots { display: flex; gap: 6px; }
.cases__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-300);
  transition: background .2s, width .2s;
}
.cases__dot.is-active { background: var(--teal-500); width: 26px; border-radius: 4px; }

/* ---------- About / counters ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.about-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
}
.about-media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-media__sticker {
  position: absolute;
  right: -18px;
  bottom: 24px;
  background: var(--orange-500);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-orange);
  z-index: 2;
  transform: rotate(-3deg);
}
.counters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 28px 0 32px;
}
.counter {
  border-top: 2px solid var(--teal-500);
  padding-top: 14px;
}
/* варіант 4-в-ряд для service/city/niche (раніше був інлайн-стилем у шаблонах) */
.counters--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.counter__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 52px);
  color: var(--ink-900);
  line-height: 1;
  letter-spacing: -0.02em;
}
.counter__num .suffix { color: var(--teal-500); }
.counter__label { font-size: 14px; color: var(--ink-500); margin-top: 6px; }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ink-100);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
@media (hover: hover) { .post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); } }
.post-card__media {
  aspect-ratio: 16/10;
  position: relative;
  background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
}
.post-card__media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-card__tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,0.92);
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
  z-index: 1;
}
.post-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: 13px; color: var(--ink-500); margin-bottom: 8px; font-family: var(--font-head); }
.post-card h3 { font-size: 19px; margin-bottom: 10px; }
.post-card__exc { font-size: 15px; color: var(--ink-500); margin: 0 0 16px; }
.post-card__read {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--teal-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Клікабельна вся картка блогу (stretched link) ---------- */
/* Уся картка post-card / featured-post веде на статтю: посилання «Читати»
   розтягується на всю площу картки. Лишається один коректний <a>, тег
   категорії та «Читати» працюють як раніше. Виділення тексту в межах
   картки при цьому обмежене — прийнятний компроміс для карток. */
.post-card,
.featured-post { position: relative; }
.post-card__read::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* ---------- Related services («Що ще може знадобитись») ---------- */
.related-services {
  background: var(--teal-50);
  padding: clamp(56px, 7vw, 96px) 0;
}
.related-services__head {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.related-services__head .eyebrow { justify-self: center; }
.related-services__head h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 3vw, 40px);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border-radius: 12px;
  padding: 28px 26px 24px;
  border: 1px solid rgba(94, 206, 206, 0.18);
  box-shadow: var(--shadow-sm);
  color: var(--ink-900);
  text-decoration: none;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}
@media (hover: hover) {
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 40, 50, 0.10), 0 4px 10px rgba(15, 40, 50, 0.05);
  border-color: var(--teal-300);
}
}
.related-card__icon {
  width: 32px;
  height: 32px;
  color: var(--teal-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.related-card__icon svg { width: 32px; height: 32px; }
.related-card__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  margin: 0;
  line-height: 1.3;
}
.related-card__desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.5;
  flex: 1;
}
.related-card__link {
  margin-top: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--teal-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s var(--ease-out), color .2s;
}
@media (hover: hover) { .related-card:hover .related-card__link { color: var(--teal-600); gap: 10px; } }

/* tablet: 2 cards + a peek of the third */
@media (max-width: 1024px) {
  .related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    margin: 0 calc(var(--gutter) * -1);
    padding: 4px var(--gutter);
  }
  .related-card { scroll-snap-align: start; min-width: 260px; }
}
/* mobile: horizontal swipe slider */
@media (max-width: 720px) {
  .related-grid {
    grid-template-columns: repeat(3, 78%);
    gap: 14px;
  }
  .related-card { min-width: 0; }
}

/* ---------- Useful to read («Корисно почитати») ---------- */
.useful-reading { padding: clamp(56px, 7vw, 96px) 0; background: #fff; }
.useful-reading__head { text-align: center; margin-bottom: clamp(32px, 4vw, 48px); }
.useful-reading__head h2 { margin: 14px 0 0; font-size: clamp(28px, 3vw, 40px); }
.useful-reading__all { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Big CTA ---------- */
.big-cta {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(48px, 6vw, 84px);
  background:
    radial-gradient(circle at 85% 15%, rgba(245, 166, 35, 0.18), transparent 50%),
    linear-gradient(135deg, #1F8A8A 0%, #2AADAD 60%, #4DD8D8 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.big-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.06) 25%, transparent 25%);
  background-size: 80px 80px;
  background-position: 0 0, 0 40px;
  opacity: .5;
}
.big-cta > * { position: relative; }
.big-cta__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 4vw, 60px);
  align-items: center;
}
.big-cta h2 { color: #fff; font-size: clamp(30px, 3.6vw, 50px); margin-bottom: 14px; }
.big-cta__sub { color: rgba(255,255,255,0.86); max-width: 460px; font-size: 18px; }
.big-cta .field input, .big-cta .field textarea {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.big-cta .field input::placeholder, .big-cta .field textarea::placeholder { color: rgba(255,255,255,0.55); }
.big-cta .field input:focus, .big-cta .field textarea:focus {
  background: rgba(255,255,255,0.16);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.12);
}
.big-cta .field > label { color: rgba(255,255,255,0.7); }
.big-cta .form__success { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.2); }

/* ---------- Legal / text pages ---------- */
.legal { padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.legal__inner { max-width: 820px; margin: 0 auto; }
.legal .breadcrumbs { margin-bottom: 22px; }
.legal h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin: 0 0 10px; }
.legal__updated { color: var(--ink-500); font-size: 14px; margin: 0 0 36px; }
.legal h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--ink-900);
  margin: 38px 0 14px;
}
.legal p, .legal li { color: var(--ink-700); line-height: 1.75; font-size: 16px; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 8px; }
.legal a { color: var(--teal-700); }

/* ---------- Footer ---------- */
.footer {
  background: #0E1F22;
  color: rgba(255,255,255,0.7);
  padding: 80px 0 30px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1.1fr;
  gap: 36px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* Коли є колонка «SEO за галузями» — 6 колонок (інакше остання тікає у новий ряд). */
.footer__top--6 {
  grid-template-columns: 1.25fr 0.8fr 0.9fr 1.05fr 1.3fr 1.05fr;
  gap: 20px;
}
/* 4 колонки — коли нема ні міст, ні галузей (напр. EN до заведення західних міст). */
.footer__top--4 {
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
}
.footer .footer__heading {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: rgba(255,255,255,0.7); font-size: 14px; transition: color .2s; }
@media (hover: hover) { .footer a:hover { color: var(--teal-300); } }
.footer__intro { color: rgba(255,255,255,0.6); font-size: 14px; max-width: 320px; }
.footer__intro .logo { color: #fff; margin-bottom: 16px; }
.footer__socials { display: flex; gap: 10px; margin-top: 22px; }
.footer__socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  transition: background .2s, color .2s, transform .2s;
}
@media (hover: hover) { .footer__socials a:hover { background: var(--teal-500); color: #fff; transform: translateY(-2px); } }
.footer__contact-item { font-size: 14px; }
.footer__contact-item strong { color: #fff; display: block; font-family: var(--font-head); font-size: 16px; white-space: nowrap; }
.footer__bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom a { font-size: 13px; }

/* ---------- Floating rails ---------- */
/* Quick-action bar — стилі винесені нижче, у блок «.qbar» */

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Service page additions ---------- */
.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--ink-500); transition: color .2s; }
@media (hover: hover) { .breadcrumbs a:hover { color: var(--teal-700); } }
.breadcrumbs .sep { color: var(--ink-300); }
.breadcrumbs .current { color: var(--ink-900); font-weight: 600; }

.svc-hero {
  background:
    radial-gradient(circle at 14% 26%, rgba(94, 206, 206, 0.38), transparent 60%),
    linear-gradient(160deg, #F2FAFA 0%, #DEF4F4 100%);
  padding: clamp(48px, 7vw, 90px) 0 clamp(80px, 9vw, 130px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 70px));
  position: relative;
}
.svc-hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}
.svc-hero h1 {
  font-size: clamp(34px, 4.4vw, 60px);
  background: linear-gradient(120deg, var(--ink-900) 0%, var(--teal-700) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.svc-hero__sub {
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--ink-700);
  margin-bottom: 28px;
  max-width: 540px;
}
.svc-side {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}
.svc-side__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed var(--ink-100);
  font-size: 14px;
}
.svc-side__row:last-of-type { border-bottom: 0; }
.svc-side__row span:first-child { color: var(--ink-500); }
.svc-side__row span:last-child { color: var(--ink-900); font-family: var(--font-head); font-weight: 600; text-align: right; min-width: 0; }

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  margin: 30px 0;
}
.checklist__item {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ink-100);
  transition: border-color .2s, transform .2s;
}
@media (hover: hover) { .checklist__item:hover { border-color: var(--teal-300); transform: translateY(-2px); } }
.checklist__check {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
}
.checklist__item h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.checklist__item p { margin: 0; font-size: 14px; color: var(--ink-500); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.process-step {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  border: 1px solid var(--ink-100);
  position: relative;
  counter-increment: step;
}
.process-step::before {
  content: "0" counter(step);
  position: absolute;
  top: 22px;
  right: 26px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 32px;
  color: var(--teal-100);
  line-height: 1;
}
.process-step h3 { margin-bottom: 8px; font-size: 18px; padding-right: 50px; font-weight: 700; }
.process-step p { font-size: 14px; color: var(--ink-500); margin: 0; }

.advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.advantage {
  padding: 28px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-100);
}
.advantage__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.advantage h3 { font-size: 16px; margin-bottom: 6px; font-weight: 700; }
.advantage p { font-size: 14px; color: var(--ink-500); margin: 0; }

.faq { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; }
.faq__item {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq__item[open] { border-color: var(--teal-300); box-shadow: var(--shadow-sm); }
.faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
}
.faq__summary .faq__q {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink-900);
  margin: 0;
  flex: 1;
  line-height: 1.4;
}
.faq__summary::-webkit-details-marker { display: none; }
.faq__icon {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
  transition: transform .25s, background .25s, color .25s;
  position: relative;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.faq__icon::before { width: 12px; height: 2px; }
.faq__icon::after { width: 2px; height: 12px; transition: transform .25s; }
.faq__item[open] .faq__icon { background: var(--teal-500); color: #fff; }
.faq__item[open] .faq__icon::after { transform: scaleY(0); }
.faq__body { padding: 0 26px 24px; color: var(--ink-700); font-size: 15px; }
.faq__body p:last-child { margin-bottom: 0; }

/* ---------- SEO text (expandable) ---------- */
.seo-text {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--ink-50) 100%);
  border-top: 1px solid var(--ink-100);
  padding: clamp(64px, 8vw, 100px) 0;
}
.seo-text__inner {
  max-width: 880px;
  margin: 0 auto;
}
.seo-text__head {
  margin-bottom: 28px;
}
.seo-text__head h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 2.6vw, 36px);
}
.seo-text__body {
  position: relative;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-700);
}
.seo-text__body p {
  margin: 0 0 14px;
}
.seo-text__body h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink-900);
  margin: 28px 0 10px;
}
.seo-text__body ul,
.seo-text__body ol {
  margin: 6px 0 18px 22px;
  padding: 0;
}
.seo-text__body li {
  margin-bottom: 6px;
}
.seo-text__body strong { color: var(--ink-900); }
/* Контент-посилання (стаття/SEO-текст/кейс) — видимі й брендові */
.article-body a,
.seo-text__body a,
.case-body a {
  color: var(--teal-700);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  font-weight: 600;
}
@media (hover: hover) {
.article-body a:hover,
.seo-text__body a:hover,
.case-body a:hover {
  color: var(--teal-900);
}
}
.seo-text__more {
  display: none;
}
.seo-text.is-expanded .seo-text__more {
  display: block;
  animation: seo-text-reveal .45s var(--ease-out) both;
}
@keyframes seo-text-reveal {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.seo-text__fade {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 140px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(248,249,251,0.9) 60%, var(--ink-50) 100%);
}
.seo-text.is-expanded .seo-text__fade { display: none; }

.seo-text__toggle {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--ink-100);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--teal-700);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}
@media (hover: hover) {
.seo-text__toggle:hover {
  border-color: var(--teal-500);
  background: var(--teal-50);
  transform: translateY(-2px);
}
}
.seo-text__toggle .arr {
  width: 14px; height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.seo-text.is-expanded .seo-text__toggle .arr { transform: rotate(180deg); }
.seo-text__toggle [data-toggle-hide] { display: none; }
.seo-text.is-expanded .seo-text__toggle [data-toggle-show] { display: none; }
.seo-text.is-expanded .seo-text__toggle [data-toggle-hide] { display: inline; }

/* ---------- Page intro (hero for non-service pages) ---------- */
.page-intro {
  position: relative;
  background:
    radial-gradient(circle at 18% 26%, rgba(94, 206, 206, 0.32), transparent 60%),
    linear-gradient(160deg, #F4FCFC 0%, #E0F6F6 100%);
  padding: clamp(56px, 7vw, 100px) 0 clamp(64px, 8vw, 110px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 60px));
  overflow: hidden;
}
.page-intro__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: end;
}
.page-intro h1 {
  font-size: clamp(40px, 5vw, 68px);
  background: linear-gradient(120deg, var(--ink-900) 0%, var(--teal-700) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 12px 0 18px;
}
.page-intro__sub {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--ink-700);
  max-width: 580px;
  margin-bottom: 0;
}
.page-intro__meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(94,206,206,0.2);
}
.page-intro__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--ink-100);
}
.page-intro__meta-row:last-child { border-bottom: 0; padding-bottom: 0; }
.page-intro__meta-row span:first-child { font-size: 13px; color: var(--ink-500); }
.page-intro__meta-row span:last-child {
  font-family: var(--font-head); font-weight: 700; color: var(--ink-900); text-align: right;
}

/* ---------- Blog page ---------- */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
.blog-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.blog-list .post-card { background: #fff; }
.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sidebar-block {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
}
.sidebar-block h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0 0 18px;
}
.sidebar-cats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-700);
  transition: background .2s, color .2s;
}
@media (hover: hover) { .sidebar-cats a:hover { background: var(--teal-50); color: var(--teal-700); } }
.sidebar-cats a.is-active {
  background: var(--teal-50);
  color: var(--teal-700);
}
.sidebar-cats a span {
  font-size: 12px;
  color: var(--ink-500);
  background: var(--ink-50);
  padding: 2px 8px;
  border-radius: 999px;
}
@media (hover: hover) { .sidebar-cats a:hover span { background: #fff; color: var(--teal-700); } }
.sidebar-cats a.is-active span {
  background: #fff;
  color: var(--teal-700);
}
.sidebar-search {
  position: relative;
}
.sidebar-search input {
  width: 100%;
  border: 1.5px solid var(--ink-100);
  background: var(--ink-50);
  border-radius: 12px;
  padding: 12px 14px 12px 38px;
  font-size: 14px;
  color: var(--ink-900);
}
.sidebar-search input:focus {
  outline: none;
  border-color: var(--teal-500);
  background: #fff;
}
.sidebar-search::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A7A7A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") center/contain no-repeat;
}
.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ink-100);
  margin-bottom: 28px;
}
.featured-post__media {
  position: relative;
  min-height: 320px;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
}
.featured-post__media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.featured-post__tag {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--teal-500);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}
.featured-post__body { padding: 36px clamp(28px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.featured-post__meta { font-size: 13px; color: var(--ink-500); font-family: var(--font-head); margin-bottom: 10px; }
.featured-post h2 { font-size: clamp(22px, 2.4vw, 32px); margin: 6px 0 14px; }
.featured-post p { color: var(--ink-500); margin-bottom: 22px; }
.featured-post .post-card__read { margin-top: 0; }
.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}
.pager__btn, .pager a {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid var(--ink-100);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
@media (hover: hover) { .pager a:hover { border-color: var(--teal-500); color: var(--teal-700); } }
.pager .is-active { background: var(--teal-500); color: #fff; border-color: var(--teal-500); }

/* ---------- Cases page ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cases-grid .case-card { background: #fff; }
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.filter-pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--ink-100);
  background: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-700);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
@media (hover: hover) { .filter-pill:hover { border-color: var(--teal-500); color: var(--teal-700); } }
.filter-pill.is-active { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }

/* ---------- About page ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.about-intro__media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
}
.about-intro__media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.value-card {
  padding: 32px 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-100);
  position: relative;
  transition: transform .3s var(--ease-out), border-color .3s;
}
@media (hover: hover) {
.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal-300);
}
}
.value-card__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 38px;
  color: var(--teal-300);
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.value-card h3 { font-size: 19px; margin-bottom: 10px; font-weight: 700; }
.value-card p { font-size: 15px; color: var(--ink-500); margin: 0; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ink-100);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
@media (hover: hover) { .team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); } }
.team-card__photo {
  aspect-ratio: 1;
  position: relative;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
}
.team-card__photo image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.team-card__body { padding: 22px 22px 24px; }
.team-card__name { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink-900); margin: 0 0 4px; }
.team-card__role { font-size: 13px; color: var(--teal-700); font-family: var(--font-head); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
.team-card__bio { font-size: 14px; color: var(--ink-500); margin: 0; }

.timeline {
  position: relative;
  padding: 20px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--teal-500), var(--teal-100));
}
.timeline__item {
  position: relative;
  padding-left: 52px;
  margin-bottom: 32px;
}
.timeline__item:last-child { margin-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 5px rgba(94,206,206,0.18), 0 0 0 1px var(--bg);
}
.timeline__year {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  color: var(--teal-700);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.timeline__title { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink-900); margin: 0 0 6px; }
.timeline__body { font-size: 15px; color: var(--ink-500); margin: 0; }

/* ---------- Contacts page ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: start;
}
.contact-block {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
}
.contact-block h2 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0 0 14px;
}
.contact-block__value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--ink-900);
  line-height: 1.2;
  display: block;
}
@media (hover: hover) { .contact-block__value a:hover { color: var(--teal-700); } }
.contact-block p { color: var(--ink-500); font-size: 15px; margin: 10px 0 0; }
.contact-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.contact-socials a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
  transition: background .2s, color .2s, transform .2s;
}
@media (hover: hover) { .contact-socials a:hover { background: var(--teal-500); color: #fff; transform: translateY(-2px); } }
.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ink-100);
  aspect-ratio: 16 / 11;
  position: relative;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
}
.map-card image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  background: var(--orange-500);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px 999px 999px 4px;
  box-shadow: var(--shadow-orange);
  z-index: 1;
}
.contact-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.contact-stat {
  text-align: center;
  padding: 24px 14px;
  background: var(--teal-50);
  border-radius: var(--radius-md);
}
.contact-stat strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 38px);
  color: var(--teal-700);
  line-height: 1;
  margin-bottom: 6px;
}
.contact-stat span { font-size: 13px; color: var(--ink-700); }

/* Responsive for new layouts */
@media (max-width: 1100px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .blog-sidebar > * { flex: 1 1 280px; }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post__media { min-height: 240px; }
  .about-intro { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .page-intro__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .blog-list { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-stats { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .case-card { flex: 0 0 calc((100% - 24px) / 2); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .advantages { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .checklist { grid-template-columns: 1fr; }
  .svc-hero__grid { grid-template-columns: 1fr; }
  .svc-side { position: static; }
}
@media (max-width: 1024px) {
  .nav, .header-phone { display: none; }
  .burger { display: block; }
  .lang-switch { order: 2; }
  .header-actions .btn--orange { display: none; }
  .hero { padding-bottom: clamp(100px, 18vw, 160px); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 40px)); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); } /* min-content слова не розпирають колонку */
  .lead-card { padding: 24px; }
  .section__head { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .big-cta__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .why-grid, .blog-grid { grid-template-columns: 1fr; }
  .case-card { flex: 0 0 88%; }
  .advantages, .process-grid { grid-template-columns: 1fr; }
  .header-phone { display: none; }
  /* компактний хедер: logo + burger + lang-switch мають вміщатись навіть у 360px
     (інакше горизонтальний overflow → fixed-елементи ріжуться на Android) */
  .site-header__row { gap: 12px; }
  .header-actions { gap: 8px; }
  /* ⚠️ компактні кнопки мов (33px) живуть у КІНЦІ файла — після базового
     .lang-switch__btn{width:38px}, інакше каскад їх перебиває */
  /* на телефоні лічильники 2×2; minmax(0,1fr) гасить min-content-розпирання */
  .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* вордмарк HELEUM.STUDIO: 46px дає ~386px ширини слова і розпирає hero —
     масштабуємо від viewport, щоб слово завжди вміщалось у контейнер */
  .hero__wordmark { font-size: clamp(30px, 10.4vw, 62px); }
  /* більші тап-зони лінків футера (були ~19px — менше рекомендованих 44px):
     перший тап частіше влучає, менше «другого тапу» */
  .footer ul { gap: 4px; }
  .footer__top li a { display: inline-block; padding: 8px 0; }
}


/* ============ Price Modal ============ */
body.price-modal-open { overflow: hidden; }

.price-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s var(--ease-out);
}
.price-modal.is-open { pointer-events: auto; opacity: 1; }
.price-modal[aria-hidden="true"] { visibility: hidden; }
.price-modal.is-open[aria-hidden="false"] { visibility: visible; }

.price-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 1000;
}

.price-modal__sheet {
  position: relative;
  z-index: 1001;
  width: 560px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(15, 40, 50, 0.32), 0 10px 30px rgba(15, 40, 50, 0.18);
  overflow: hidden;
  transform: scale(0.94);
  transition: transform .15s var(--ease-out);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  outline: none;
}
.price-modal.is-open .price-modal__sheet { transform: scale(1); }

.price-modal__grip { display: none; }

.price-modal__head {
  position: relative;
  min-height: 120px;
  background: linear-gradient(135deg, #5ECECE 0%, #2AADAD 100%);
  color: #fff;
  padding: 22px 70px 22px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.price-modal__head-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 95% 30%, rgba(255,255,255,0.22) 0%, transparent 32%),
    radial-gradient(circle at 85% 110%, rgba(245,166,35,0.32) 0%, transparent 40%);
  pointer-events: none;
}
.price-modal__head::after {
  content: "";
  position: absolute;
  right: -34px; top: -28px;
  width: 200px; height: 200px;
  background-image:
    linear-gradient(45deg, transparent 47%, rgba(255,255,255,0.18) 47%, rgba(255,255,255,0.18) 53%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, rgba(255,255,255,0.18) 47%, rgba(255,255,255,0.18) 53%, transparent 53%);
  background-size: 26px 26px;
  pointer-events: none;
  transform: rotate(6deg);
  opacity: 0.35;
}

.price-modal__eyebrow {
  position: relative;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  margin-bottom: 6px;
}
.price-modal__sheet h2#price-modal-title,
.price-modal__sheet #price-modal-title {
  position: relative;
  color: #fff;
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.price-modal__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(255,255,255,0.14);
  transition: background .2s, transform .2s;
  z-index: 2;
}
@media (hover: hover) { .price-modal__close:hover { background: rgba(255,255,255,0.28); transform: rotate(90deg); } }

.price-modal__form {
  padding: 28px 32px 28px;
  overflow-y: auto;
}
.price-modal__form .field {
  margin: 0 0 14px;
}
.price-modal__form .field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-900);
  margin-bottom: 6px;
}
.price-modal__form .field input,
.price-modal__form .field textarea {
  width: 100%;
  border: 1.5px solid var(--ink-100);
  background: var(--ink-50);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink-900);
  transition: border-color .2s, background .2s;
}
.price-modal__form .field input:focus,
.price-modal__form .field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  background: #fff;
}
.price-modal__form .field.has-error input { border-color: #E84855; background: #FFF5F5; }
.price-modal__form .field__error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: #E84855;
}
.price-modal__form .field.has-error .field__error { display: block; }
.price-modal__form .pm-req { color: var(--orange-500); font-weight: 700; margin-left: 2px; }

.price-modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.price-modal__hint {
  font-size: 12px;
  color: var(--ink-500);
  margin: 12px 0 0;
  text-align: center;
  line-height: 1.45;
}

.price-modal__success {
  display: none;
  padding: 40px 32px 32px;
  text-align: center;
}
.price-modal.is-success .price-modal__form { display: none; }
.price-modal.is-success .price-modal__success { display: block; }

.price-modal__check {
  width: 76px; height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-600);
  display: grid; place-items: center;
}
.price-modal__success h3 {
  font-size: 22px;
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--ink-900);
}
.price-modal__success p {
  font-size: 15px;
  color: var(--ink-500);
  margin: 0 0 22px;
  line-height: 1.5;
}

/* Bottom-sheet on mobile */
@media (max-width: 600px) {
  .price-modal {
    align-items: flex-end;
  }
  .price-modal__sheet {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform .2s var(--ease-out);
  }
  .price-modal.is-open .price-modal__sheet { transform: translateY(0); }
  .price-modal__grip {
    display: block;
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 44px; height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.45);
    z-index: 3;
  }
  .price-modal__head {
    min-height: 112px;
    padding: 28px 60px 18px 24px;
  }
  .price-modal__close { top: 22px; right: 14px; }
  .price-modal__form { padding: 24px 22px 24px; }
  .price-modal__row { grid-template-columns: 1fr; gap: 0; }
  .price-modal__success { padding: 36px 24px 28px; }
}


/* ============ Multi-level Mobile Menu ============ */
.mobile-menu { padding: 0 !important; }
.mobile-menu .mm-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.mobile-menu .mm-level {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow-y: auto;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s cubic-bezier(.4,.2,.2,1), opacity .2s ease;
  padding: 0 16px 24px;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu .mm-stage[data-depth="0"] .mm-level[data-level="main"] {
  transform: translateX(0); opacity: 1; pointer-events: auto;
}
.mobile-menu .mm-stage[data-depth="1"] .mm-level[data-level="main"],
.mobile-menu .mm-stage[data-depth="2"] .mm-level[data-level="main"] {
  transform: translateX(-100%);
}
.mobile-menu .mm-stage[data-depth="1"] .mm-level[data-level="services"] {
  transform: translateX(0); opacity: 1; pointer-events: auto;
}
.mobile-menu .mm-stage[data-depth="2"] .mm-level[data-level="services"] {
  transform: translateX(-100%);
}
.mobile-menu .mm-stage[data-depth="2"] .mm-level.is-active {
  transform: translateX(0); opacity: 1; pointer-events: auto;
}

.mobile-menu .mm-header {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 14px 0 12px;
  margin: 0 0 4px;
  border-bottom: 1px solid #F0F0F0;
  z-index: 2;
}
.mobile-menu .mm-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--ink-500);
  padding: 6px 0;
  transition: color .2s;
}
@media (hover: hover) { .mobile-menu .mm-back:hover { color: var(--ink-900); } }
.mobile-menu .mm-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink-700);
  margin: 6px 0 0;
  letter-spacing: -0.01em;
}

.mobile-menu .mm-list {
  display: flex;
  flex-direction: column;
}
.mobile-menu .mm-item {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 4px !important;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px !important;
  color: var(--ink-900) !important;
  border-bottom: 1px solid #F0F0F0 !important;
  text-align: left;
  width: 100%;
  background: none;
  transition: color .15s, background .15s;
  cursor: pointer;
  text-decoration: none;
}
@media (hover: hover) { .mobile-menu .mm-item:hover { color: var(--teal-700) !important; background: var(--teal-50) !important; } }
.mobile-menu .mm-item:active { color: var(--teal-700) !important; background: var(--teal-50) !important; }
.mobile-menu .mm-chev { color: var(--teal-500); flex-shrink: 0; }

.mobile-menu .mm-all {
  display: inline-block !important;
  margin: 16px 4px 0;
  font-size: 13px !important;
  color: var(--ink-500) !important;
  font-family: var(--font-head);
  font-weight: 500;
  padding: 8px 0 !important;
  text-decoration: underline !important;
  text-decoration-color: var(--ink-300);
  text-underline-offset: 3px;
  border-bottom: 0 !important;
  background: none !important;
}
@media (hover: hover) { .mobile-menu .mm-all:hover { color: var(--teal-700) !important; } }

/* ============================================================
   Author byline inside post cards (из blog.html inline <style>)
   ============================================================ */
.post-card__byline {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.post-card__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-300), var(--teal-600));
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.post-card__author { display: flex; flex-direction: column; line-height: 1.25; }
.post-card__author-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-900);
}
.post-card__author-date {
  font-size: 12px;
  color: var(--ink-500);
}
.featured-post .post-card__byline { margin-bottom: 18px; }
.featured-post .post-card__avatar { width: 40px; height: 40px; font-size: 13px; }
.featured-post .post-card__author-name { font-size: 14px; }

/* ============================================================
   Реальні зображення (the_post_thumbnail) у медіа-блоках блогу:
   поводяться як image-slot — заповнюють контейнер без розтягнення.
   ============================================================ */
.post-card__media img,
.post-card__media a,
.featured-post__media img,
.featured-post__media a {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.post-card__media img,
.featured-post__media img {
  object-fit: cover;
}

/* ============================================================
   Тизери карток блогу — фіксована висота тексту (не розтягує/не рве сітку),
   навіть якщо «Уривок» довгий або підтягнуто авто-уривок із тіла.
   ============================================================ */
.post-card__exc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-post__body > p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   Фото автора (ACF author_photo) заповнює круглу аватарку.
   Фолбэк (без фото) — ініціали, як і було.
   ============================================================ */
.article-byline__avatar,
.post-card__avatar,
.author-card__avatar {
  position: relative;
  overflow: hidden;
}
.article-byline__avatar img,
.post-card__avatar img,
.author-card__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Пошук: порожній стан (search.php) ===== */
.search-empty{
  background:var(--surface,#fff);
  border:1px solid var(--line,#E6ECEC);
  border-radius:var(--radius,18px);
  padding:48px 40px;
  text-align:center;
}
.search-empty h2{
  font-size:24px;
  margin:0 0 10px;
  color:var(--ink-900,#0E2A2A);
}
.search-empty p{
  color:var(--ink-700,#3A5757);
  margin:0 auto 22px;
  max-width:520px;
  line-height:1.6;
}
.search-empty__form{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
  max-width:480px;
  margin:0 auto 18px;
}
.search-empty__form input[type="text"]{
  flex:1;
  min-width:200px;
  padding:12px 16px;
  border:1px solid var(--line,#E6ECEC);
  border-radius:12px;
  font:inherit;
  background:var(--bg-50,#F6FAFA);
}
.search-empty__link{margin:0}
.search-empty__link a{
  color:var(--teal-600,#1C8C8C);
  font-weight:600;
  text-decoration:none;
}
@media (hover: hover) { .search-empty__link a:hover{text-decoration:underline} }
@media(max-width:640px){
  .search-empty{padding:32px 22px}
  .search-empty h2{font-size:20px}
}

/* ===== Кнопка-submit у пошуку сайдбара (видима на моб., запуск без Enter) ===== */
.sidebar-search input{ padding-right:42px; }
.sidebar-search input[type="search"]::-webkit-search-cancel-button{ -webkit-appearance:none; }
.sidebar-search__btn{
  position:absolute;
  right:6px;
  top:50%;
  transform:translateY(-50%);
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:9px;
  background:var(--teal-500,#2AADAD);
  color:#fff;
  cursor:pointer;
  padding:0;
}
@media (hover: hover) { .sidebar-search__btn:hover{ background:var(--teal-600,#1C8C8C); } }
.sidebar-search__btn:focus-visible{ outline:2px solid var(--teal-600,#1C8C8C); outline-offset:2px; }

/* ===== Клікабельна вся картка кейса (stretched link) — усі сторінки: /cases/, споріднені (послуги/ніші), слайдер на головній ===== */
.case-card{ position:relative; }
.case-card__link::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
}

/* ===== Фото секції «Про студію» на головній (ACF home_about_image / featured) ===== */
.about-media img,
.about-media__img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* ===== SEO-текст: згортання/розгортання (фікс кнопки «Читати повністю») ===== */
/* Згорнутий стан — обмежуємо висоту тіла. Працює і для суцільного тексту (послуги/ніші/міста),
   і для структури з прихованим .seo-text__more (головна/хаб). */
.seo-text__body{ max-height: 340px; overflow: hidden; }
.seo-text.is-expanded .seo-text__body{ max-height: none; overflow: visible; }
/* Якщо розгортати нема чого — JS додає .seo-text--short: показуємо все, ховаємо кнопку і градієнт. */
.seo-text--short .seo-text__body{ max-height: none; overflow: visible; }
.seo-text--short .seo-text__toggle{ display: none; }
.seo-text--short .seo-text__fade{ display: none; }

/* Помилка відправки форми (heleum-leads) */
.form__error-msg{margin:10px 0 0;padding:10px 14px;border-radius:12px;background:#fdeaea;color:#b12a2a;font-size:14px;line-height:1.4}
.form.is-sending button[type=submit],.form.is-sending button:not([type]){opacity:.6;pointer-events:none}

/* Megamenu hover-bridge: перекриває 14px зазор між тригером і панеллю,
   щоб наведення лишалося неперервним (інакше меню закривається при повільному русі миші). */
.megamenu::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}

/* ============================================================
   Hub v2 — Цифри (.figures) + Перелинковка (.crosslinks)
   Перенесено з дизайн-референсу seo-prosuvannya-2.html
   ============================================================ */
.v2-mark { display:inline-block; width:.62em; height:.62em; vertical-align:-0.02em; }
.v2-mark path { transition: fill .2s var(--ease-out); }

.figures { position: relative; overflow: hidden; background: radial-gradient(circle at 88% 12%, rgba(94,206,206,0.18), transparent 52%), linear-gradient(160deg, #0E4848 0%, #14393A 62%, #0F2B2B 100%); color: #fff; padding: clamp(56px, 8vw, 110px) 0; }
.figures__crystals { position:absolute; inset:0; pointer-events:none; z-index:0; }
.figures__crystals .crystal { position:absolute; opacity:.16; }
.figures__crystals .c1 { top:-26px; right:6%; width:120px; transform:rotate(8deg); }
.figures__crystals .c2 { bottom:-40px; left:3%; width:90px; transform:rotate(-12deg); opacity:.1; }
.figures > .container { position: relative; z-index: 1; }
.figures__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 14px 32px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.figures__head .eyebrow { color: var(--teal-300); }
.figures__head .eyebrow::before { background: var(--teal-400); }
.figures__head p { margin: 0; color: rgba(255,255,255,0.66); font-size: 15px; max-width: 40ch; }
.figures__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.figure { padding: 4px clamp(16px, 2.6vw, 40px); border-left: 1px solid rgba(255,255,255,0.14); }
.figure:first-child { border-left: 0; padding-left: 0; }
.figure__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(42px, 5.4vw, 74px); line-height: 1; letter-spacing: -0.03em; color: #fff; display: flex; align-items: baseline; gap: 0.06em; }
.figure__num .u { font-size: 0.42em; font-weight: 700; letter-spacing: 0; color: var(--teal-300); }
.figure__num .suffix { font-size: 0.42em; font-weight: 700; letter-spacing: 0; color: var(--teal-300); }
.figure__num .pre { color: var(--orange-500); }
.figure__label { margin-top: 16px; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,0.7); max-width: 20ch; }

.crosslinks { background: #fff; border-top: 1px solid var(--ink-100); padding: clamp(56px, 7vw, 100px) 0; }
.crosslinks__head { max-width: 640px; margin-bottom: clamp(34px, 4vw, 52px); }
.crosslinks__head h2 { margin: 14px 0 0; font-size: clamp(28px, 3vw, 40px); }
.crosslinks__head p { margin: 14px 0 0; color: var(--ink-500); }
.crosslinks__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 76px); }
.xgroup__label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-700); margin: 0 0 4px; }
.xgroup__list { list-style: none; margin: 0; padding: 0; }
.xlink { display: flex; align-items: center; gap: 14px; padding: 16px 2px; border-bottom: 1px solid var(--ink-100); font-family: var(--font-head); font-weight: 600; font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-900); transition: color .2s var(--ease-out), padding-left .25s var(--ease-out); }
@media (hover: hover) {
.xlink:hover { color: var(--teal-700); padding-left: 12px; }
.xlink:hover .v2-mark path { fill: var(--teal-500); }
}
.xlink__text { flex: 1; }
.xlink__arr { color: var(--ink-300); flex-shrink: 0; transform: translateX(-4px); opacity: 0; transition: transform .25s var(--ease-out), opacity .2s, color .2s; }
@media (hover: hover) { .xlink:hover .xlink__arr { transform: translateX(0); opacity: 1; color: var(--teal-600); } }

@media (max-width: 860px) {
  .figures__row { grid-template-columns: 1fr 1fr; }
  .figure { padding: clamp(20px,5vw,28px) clamp(14px,4vw,22px); border-left: 1px solid rgba(255,255,255,0.14); border-top: 1px solid rgba(255,255,255,0.14); }
  .figure:nth-child(odd) { border-left: 0; padding-left: 0; }
  .figure:nth-child(-n+2) { border-top: 0; padding-top: 0; }
  .crosslinks__cols { grid-template-columns: 1fr; gap: clamp(28px,7vw,40px); }
}
@media (max-width: 420px) {
  .figures__row { grid-template-columns: 1fr; }
  .figure { padding: 22px 0; border-left: 0 !important; border-top: 1px solid rgba(255,255,255,0.14); }
  .figure:first-child { border-top: 0; padding-top: 0; }
}

/* ============================================================
   Hub v3 — Що входить (.scope) + Процес (.process)
   Перенесено з seo-prosuvannya-3.html (Claude Design)
   ============================================================ */
  /* ============ 1. Що входить — горизонтальний потік ============ */
  .scope { background:#fff; padding: clamp(56px,7vw,104px) 0 clamp(48px,6vw,88px); }
  .scope__head { max-width: 680px; margin-bottom: clamp(40px,5vw,68px); }
  .scope__head h2 { margin: 14px 0 0; }
  .scope__head p { margin: 16px 0 0; color: var(--ink-500); font-size: clamp(16px,1.3vw,18px); line-height:1.6; max-width: 56ch; }

  .flow { position: relative; }
  .flow__track {
    list-style: none; margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(10px,1.4vw,22px);
    position: relative;
  }
  .stage { position: relative; }
  /* сегмент лінії від цього вузла до наступного — нанизує чипи в маршрут */
  .stage:not(:last-child)::after {
    content: ""; position: absolute; z-index: 0;
    top: 23px; left: 23px;
    width: calc(100% + clamp(10px,1.4vw,22px));
    height: 2px; transform: translateY(-50%);
    background: linear-gradient(90deg, var(--teal-300), var(--teal-400));
  }
  .stage__gem {
    position: relative; z-index: 1;
    width: 46px; height: 46px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px var(--teal-100), 0 6px 16px rgba(20,90,90,.13);
    display: grid; place-items: center;
    margin-bottom: 24px;
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
  }
  .stage__gem svg { width: 28px; height: 28px; display: block; }
  @media (hover: hover) {
  .stage:hover .stage__gem {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px var(--teal-200,#B7ECEC), 0 12px 24px rgba(20,90,90,.20);
  }
  }
  .stage__i {
    font-family: var(--font-head); font-weight: 800; font-size: 13px;
    letter-spacing: .14em; color: var(--teal-700); display:block;
  }
  .stage__name {
    font-family: var(--font-head); font-weight: 700;
    font-size: clamp(18px,1.6vw,23px); letter-spacing: -0.01em;
    color: var(--ink-900); margin: 9px 0 11px; line-height:1.12;
  }
  .stage__d { margin: 0; color: var(--ink-500); font-size: 14px; line-height: 1.55; }

  /* ============ 2. Процес — вертикальний таймлайн ============ */
  .process { background: var(--teal-50); padding: clamp(56px,7vw,104px) 0; position: relative; overflow: hidden; }
  .process__head { max-width: 680px; margin-bottom: clamp(36px,4.5vw,56px); }
  .process__head h2 { margin: 14px 0 0; }
  .process__head p { margin: 16px 0 0; color: var(--ink-500); max-width: 52ch; line-height:1.6; }

  .steps { position: relative; max-width: 940px; }
  .step {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,150px) 1fr;
    gap: clamp(20px,4vw,56px);
    padding: clamp(26px,3.4vw,40px) 0;
    border-top: 1px solid var(--teal-100);
    align-items: start;
  }
  .step:last-child { border-bottom: 1px solid var(--teal-100); }
  .step__num {
    font-family: var(--font-head); font-weight: 800;
    font-size: clamp(54px,7vw,104px); line-height: .8;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--teal-400);
    text-stroke: 1.5px var(--teal-400);
    transition: color .3s var(--ease-out), -webkit-text-stroke-color .3s;
  }
  @media (hover: hover) { .step:hover .step__num { color: var(--teal-600); -webkit-text-stroke-color: var(--teal-600); } }
  .step__body { padding-top: clamp(6px,1vw,14px); }
  .step__title {
    font-family: var(--font-head); font-weight: 700;
    font-size: clamp(19px,1.8vw,26px); color: var(--ink-900);
    margin: 0 0 10px; letter-spacing: -0.01em;
  }
  .step__d { margin: 0 0 14px; color: var(--ink-500); font-size: clamp(15px,1.25vw,17px); line-height: 1.6; max-width: 60ch; }
  .step__out {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-head); font-weight: 600; font-size: 13px;
    letter-spacing: .04em; color: var(--teal-700);
  }
  .step__out svg { width: 15px; height: 15px; flex-shrink: 0; }

  /* ---------- адаптив (mobile-first пріоритет) ---------- */
  @media (max-width: 920px) {
    .flow__track { grid-template-columns: repeat(3, 1fr); gap: clamp(22px,4vw,32px) clamp(14px,3vw,24px); row-gap: 36px; }
    .stage:not(:last-child)::after { display: none; }
    .stage__gem { width: 40px; height: 40px; margin-bottom: 16px; }
    .stage__gem svg { width: 24px; height: 24px; }
  }
  @media (max-width: 560px) {
    .flow__track { grid-template-columns: 1fr 1fr; }

    .step { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
    .step__num { font-size: 46px; -webkit-text-stroke-width: 1.2px; }
    .step__body { padding-top: 4px; }
  }

/* ============= Brand squircle crystals (заміна пятикутника-«надгробка», бренд з Figma) ============= */
.brand-xtals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.xtal {
  position: absolute; border-radius: 22%;
  background: linear-gradient(150deg, #ffffff 0%, rgba(127,219,218,0.58) 100%);
  box-shadow: -10px 12px 30px rgba(20,90,90,0.10);
  animation: xtal-float 9s ease-in-out infinite;
}
.xtal--1 { width: 104px; height: 104px; top: 6%;  right: 9%;  animation-delay: -1s; }
.xtal--2 { width: 66px;  height: 66px;  top: 33%; right: 24%; animation-delay: -3s; opacity: .9; }
.xtal--3 { width: 46px;  height: 46px;  top: 3%;  right: 33%; animation-delay: -2s; opacity: .8; }
.xtal--4 { width: 84px;  height: 84px;  top: 58%; right: 5%;  animation-delay: -4s; opacity: .85; }
.xtal--5 { width: 54px;  height: 54px;  top: 16%; left: 7%;   animation-delay: -2.4s; opacity: .8; }
.xtal--6 { width: 38px;  height: 38px;  top: 64%; left: 4%;   animation-delay: -5s; opacity: .6; }
@keyframes xtal-float {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50%      { transform: rotate(45deg) translate(0, -14px); }
}
@media (prefers-reduced-motion: reduce) { .xtal { animation: none; } }
@media (max-width: 760px) {
  .xtal--2, .xtal--3, .xtal--6 { display: none; }
  .xtal--1 { width: 78px; height: 78px; }
  .xtal--4 { width: 60px; height: 60px; }
}

/* ============= Quick-action bar: scroll-top + контакт (єдиний кутовий стек) =============
   Один fixed-контейнер, один z-index, одне джерело позиціонування.
   Контейнер pointer-events:none — клікабельні лише самі кнопки.
   Меню каналів — position:absolute, тому НЕ займає layout і не перекриває
   кнопку «вгору» (саме перекриття двох окремих fixed-стеків зʼїдало перший тап). */
.qbar {
  position: fixed; right: 18px; bottom: 24px; z-index: 40;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  pointer-events: none;
}
.qbar > * { pointer-events: auto; }

/* кнопка «вгору» */
.qbar-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--ink-700);
  box-shadow: var(--shadow-md); border: 1px solid var(--ink-100);
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.qbar-btn[hidden] { display: none !important; }
@media (hover: hover) { .qbar-btn:hover { background: var(--teal-500); color: #fff; border-color: var(--teal-500); transform: translateY(-2px); } }

/* контакт-кнопка (трубка) */
.qbar-contact { position: relative; }
.qbar-toggle {
  width: 56px; height: 56px; border: none; border-radius: 50%;
  background: var(--teal-500, #2AADAD); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 26px rgba(20,90,90,.30);
  transition: transform .2s, box-shadow .2s;
}
.qbar-toggle svg { width: 26px; height: 26px; display: block; }
@media (hover: hover) { .qbar-toggle:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(20,90,90,.38); } }
/* іконка: трубка/месенджери ↔ хрестик (кросфейд повноформатних бейджів) */
.qbar-toggle { position: relative; overflow: hidden; }
.qbar-faces { position: absolute; inset: 0; border-radius: 50%; }
.qbar-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.16); transform-origin: center; border-radius: 50%; opacity: 0; transition: opacity 2s ease-in-out; }
.qbar-face.is-on { opacity: 1; }
.qbar-toggle .qbar-x { display: none; position: relative; z-index: 1; }
.qbar-contact.is-open .qbar-faces { display: none; }
.qbar-contact.is-open .qbar-toggle .qbar-x { display: block; }

/* меню каналів — absolute над кнопкою, не займає layout */
.qbar-menu {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out);
}
.qbar-contact.is-open .qbar-menu { opacity: 1; transform: none; pointer-events: auto; }
.qbar-item {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 999px; padding: 6px 8px 6px 18px;
  box-shadow: 0 10px 26px rgba(15,40,50,.16);
  text-decoration: none; color: var(--ink-900);
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.qbar-item__ic { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.qbar-item__ic img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (hover: hover) { .qbar-item:hover { box-shadow: 0 14px 30px rgba(15,40,50,.24); } }

@media (max-width: 600px) {
  .qbar { right: 14px; bottom: 16px; }
  /* padding дає тіням пілюль місце ВСЕРЕДИНІ скрол-контейнера */
  .qbar-menu { max-height: calc(100dvh - 150px); overflow-y: auto; overflow-x: hidden; padding: 14px 14px 16px 34px; margin: 0 -14px -10px 0; scrollbar-width: none; }
  .qbar-menu::-webkit-scrollbar { display: none; }
  .qbar-item { padding: 5px 8px 5px 14px; font-size: 13px; gap: 10px; }
  .qbar-item__ic { width: 38px; height: 38px; }
}

/* author name (was <h3>, тепер <p> — фікс ієрархії заголовків) */
.author-card .author-card__name { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink-900); margin: 0 0 4px; }

/* Перемикач мов — посилання Polylang (реальні URL, активна .is-active) */
.lang-switch__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 30px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-500); text-decoration: none; transition: color .2s, background .2s; z-index: 1;
}
@media (hover: hover) { .lang-switch__btn:hover { color: var(--ink-900); } }
.lang-switch__btn.is-active { background: var(--ink-900); color: #fff; }
@media (hover: hover) { .lang-switch__btn.is-active:hover { color: #fff; } }

/* ============================================================
   Mobile menu — flat services screen (hubs + children), compact
   v1.2.5
   ============================================================ */
.mobile-menu .mm-groups { display: flex; flex-direction: column; }
.mobile-menu .mm-group + .mm-group {
  border-top: 1px solid #ECECEC;
  margin-top: 4px;
  padding-top: 4px;
}
.mobile-menu .mm-hub {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 4px 7px !important;
  font-family: var(--font-head);
  font-weight: 700 !important;
  font-size: 16px !important;
  color: var(--ink-900) !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
  background: none !important;
  letter-spacing: -0.01em;
}
@media (hover: hover) { .mobile-menu .mm-hub:hover { color: var(--teal-700) !important; background: none !important; } }
.mobile-menu .mm-hub:active { color: var(--teal-700) !important; background: none !important; }
.mobile-menu .mm-hub .mm-chev { color: var(--teal-500); flex-shrink: 0; }
.mobile-menu .mm-sublist { display: flex; flex-direction: column; padding-bottom: 2px; }
.mobile-menu .mm-svc {
  display: block !important;
  padding: 8px 4px 8px 2px !important;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14.5px !important;
  line-height: 1.25;
  color: var(--ink-700) !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
  background: none;
}
@media (hover: hover) { .mobile-menu .mm-svc:hover { color: var(--teal-700) !important; background: var(--teal-50) !important; } }
.mobile-menu .mm-svc:active { color: var(--teal-700) !important; background: var(--teal-50) !important; }

/* ============================================================
   Компактний хедер ≤600px. ⚠️ Блок МУСИТЬ стояти ПІСЛЯ базового
   .lang-switch__btn{width:38px} (вище), інакше каскад переб'є 33px.
   ============================================================ */
@media (max-width: 600px) {
  .lang-switch button, .lang-switch__btn { width: 33px; }
  .lang-switch__pill { width: 33px; }
  .lang-switch[data-lang="ru"] .lang-switch__pill { transform: translateX(33px); }
}

/* === Погашені підкатегорії (копі/розробка): службові стилі === */
/* Некликабельні картки напрямку на хабі — без hover-ефекту й курсора-pointer */
.related-card--static { cursor: default; }
@media (hover: hover) {
  .related-card--static:hover { transform: none; box-shadow: var(--shadow-sm); border-color: rgba(94, 206, 206, 0.18); }
}
/* Картка напрямку на головній (копі/розробка) — клікабельна вся, веде на хаб */
.service-card--hub .service-card__link { position: static; }
.service-card--hub .service-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* === Мегаменю: напрямки під SEO-блоком (копірайтинг / розробка) === */
.megamenu__dirs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(15,40,50,0.08); }
a.megamenu__dir { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-700); margin: 0; }
@media (hover: hover) { a.megamenu__dir:hover { color: var(--teal-900); background: transparent; } }
