/* Self-hosted Manrope (variable) + Font Awesome subset */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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: "Font Awesome 6 Free";
  src: url("/assets/fonts/fa-solid-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Font Awesome 6 Brands";
  src: url("/assets/fonts/fa-brands-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Self-hosted Font Awesome 6 subset — only icons used on the site */
.fa,.fas,.fa-solid,.fab,.fa-brands {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
}
.fa,.fas,.fa-solid {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.fab,.fa-brands {
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
}
.fa::before,.fas::before,.fa-solid::before,.fab::before,.fa-brands::before {
  content: var(--fa);
}

.fa-telegram { --fa: "\f2c6"; }
.fa-viber { --fa: "\f409"; }
.fa-address-card { --fa: "\f2bb"; }
.fa-arrow-right-arrow-left { --fa: "\f0ec"; }
.fa-arrow-up-right-from-square { --fa: "\f08e"; }
.fa-arrows-rotate { --fa: "\f021"; }
.fa-bag-shopping { --fa: "\f290"; }
.fa-building { --fa: "\f1ad"; }
.fa-chart-line { --fa: "\f201"; }
.fa-chart-simple { --fa: "\e473"; }
.fa-check { --fa: "\f00c"; }
.fa-chevron-down { --fa: "\f078"; }
.fa-circle-question { --fa: "\f059"; }
.fa-clipboard-list { --fa: "\f46d"; }
.fa-clock { --fa: "\f017"; }
.fa-code { --fa: "\f121"; }
.fa-copy { --fa: "\f0c5"; }
.fa-database { --fa: "\f1c0"; }
.fa-diagram-project { --fa: "\f542"; }
.fa-envelope { --fa: "\f0e0"; }
.fa-file-contract { --fa: "\f56c"; }
.fa-file-lines { --fa: "\f15c"; }
.fa-hand-holding-dollar { --fa: "\f4c0"; }
.fa-headset { --fa: "\f590"; }
.fa-hospital { --fa: "\f0f8"; }
.fa-key { --fa: "\f084"; }
.fa-layer-group { --fa: "\f5fd"; }
.fa-link { --fa: "\f0c1"; }
.fa-pen { --fa: "\f304"; }
.fa-pen-ruler { --fa: "\f5ae"; }
.fa-phone { --fa: "\f095"; }
.fa-plug { --fa: "\f1e6"; }
.fa-rocket { --fa: "\f135"; }
.fa-screwdriver-wrench { --fa: "\f7d9"; }
.fa-shield-halved { --fa: "\f3ed"; }
.fa-store { --fa: "\f54e"; }
.fa-tag { --fa: "\f02b"; }
.fa-user { --fa: "\f007"; }
.fa-user-shield { --fa: "\f505"; }
.fa-xmark { --fa: "\f00d"; }

.fa-align-left { --fa: "\f036"; }
.fa-bullhorn { --fa: "\f0a1"; }
.fa-credit-card { --fa: "\f09d"; }
.fa-filter { --fa: "\f0b0"; }
.fa-flask { --fa: "\f0c3"; }
.fa-gauge-high { --fa: "\f625"; }
.fa-heart-pulse { --fa: "\f21e"; }
.fa-magnifying-glass { --fa: "\f002"; }
.fa-robot { --fa: "\f544"; }
.fa-truck { --fa: "\f0d1"; }
.fa-user-check { --fa: "\f4fc"; }
.fa-wordpress { --fa: "\f19a"; }

/* White Label — premium SaaS homepage */

/* Demoted headings (no search query) — keep look, drop heading semantics */
.heading {
  margin: 0;
  font-family: inherit;
  color: inherit;
}

.heading--2 {
  font-size: var(--section-title-size);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.heading--3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}


:root {
  --bg: #f2eee9;
  --bg-soft: #ebe6df;
  --text: #111111;
  --text-secondary: #4a4a4a;
  --text-muted: #737373;
  --border: #d9d3cb;
  --border-strong: #1a1a1a;
  --line: #1a1a1a;
  --line-soft: rgba(26, 26, 26, 0.22);
  --accent: #c23a2b;
  --surface: #ffffff;
  --promo: #111111;
  --promo-text: #fafafa;
  --shadow-hover: 0 8px 24px rgba(17, 17, 17, 0.08);
  --radius: 0;
  --radius-sm: 0;
  --header-h: 72px;
  --container: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Manrope", system-ui, sans-serif;
  --section-label-size: 12px;
  --section-title-size: clamp(28px, 3.2vw, 36px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
}

address {
  font-style: normal;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

p {
  margin: 0;
}

.page {
  width: 100%;
  overflow-x: visible;
  max-width: var(--container);
  margin-inline: auto;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}

main {
  overflow: hidden;
}

.container {
  width: 100%;
  padding-inline: clamp(16px, 2.5vw, 40px);
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 0;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
  white-space: nowrap;
}

.btn--sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.btn--primary {
  background: var(--text);
  color: #fff;
}

.btn--primary:hover {
  background: #262626;
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  background: rgba(17, 17, 17, 0.04);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  padding-inline: 8px;
}

.btn--ghost:hover {
  color: var(--text);
}

.btn--light {
  background: #fff;
  color: var(--text);
}

.btn--light:hover {
  background: #f5f5f5;
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--accent:hover {
  background: #a83224;
  border-color: #a83224;
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.95);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Header — logo | wide menu | contacts | cta */
.header {
  position: relative;
  z-index: 100;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.header__grid {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content max-content;
  align-items: stretch;
  min-height: var(--header-h);
  width: 100%;
}

.header__cell {
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  padding: 0 28px;
  border-right: 1px solid var(--line-soft);
}

.header__cta.header__cell {
  border-right: 0;
}

.logo.header__cell {
  width: max-content;
  padding: 0 24px;
  flex: 0 0 auto;
}

.nav.header__cell {
  min-width: 0;
  padding: 0 clamp(32px, 4vw, 64px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
  white-space: nowrap;
}

.logo__mark {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.logo__text {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo__text sup {
  font-size: 0.55em;
  margin-left: 2px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.5vw, 48px);
  list-style: none;
  width: 100%;
}

.nav__item {
  position: static;
}

.nav__item--mega {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.nav a,
.nav__trigger {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: opacity 200ms var(--ease), color 200ms var(--ease);
  white-space: nowrap;
}

.nav a:hover {
  opacity: 0.55;
}

.nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

.nav__trigger:hover,
.nav__item--mega.is-open .nav__trigger {
  opacity: 0.55;
}

.nav__chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 200ms var(--ease);
}

.nav__item--mega.is-open .nav__chevron {
  transform: translateY(1px) rotate(225deg);
}

.nav__mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 80;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms var(--ease);
}

/* Invisible bridge so cursor can reach the panel */
.nav__mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.nav__item--mega.is-open .nav__mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav__mega-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  padding: 0 clamp(16px, 2.5vw, 40px);
  border-top: 1px solid var(--line-soft);
}

.nav__mega-col {
  padding: 22px 24px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.nav__mega-col:nth-child(3n) {
  border-right: 0;
}

.nav__mega-title {
  display: block;
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: normal;
  transition: color 200ms var(--ease);
}

.nav__mega-title:hover {
  opacity: 1;
  color: var(--accent);
}

.nav__mega-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav__mega-list a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: normal;
  transition: color 200ms var(--ease);
}

.nav__mega-list a:hover {
  opacity: 1;
  color: var(--accent);
}

.nav__mega-foot {
  display: flex;
  justify-content: flex-end;
  padding: 16px clamp(16px, 2.5vw, 40px) 16px;
}

.nav__mega-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--accent);
}

.nav__mega-foot a:hover {
  opacity: 1;
  color: var(--text);
}

.header__contacts {
  justify-content: center;
  gap: 16px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  background: var(--bg);
}

.lang-switch {
  position: relative;
}

.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid var(--line-soft);
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  cursor: pointer;
}

.lang-switch__chevron {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

.lang-switch__list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 120;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  min-width: 72px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  box-shadow: 0 8px 24px rgba(26, 23, 20, 0.08);
}

.lang-switch__list a {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
}

.lang-switch__list a:hover {
  color: var(--accent);
}

.lang-switch__list [aria-selected="true"] a {
  color: var(--accent);
}

.header__phone {
  font-size: 16px;
  font-weight: 650;
  color: var(--accent);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.header__socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__socials a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  color: var(--text);
  font-size: 16px;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}

.header__socials a:hover {
  background: rgba(17, 17, 17, 0.04);
  border-color: rgba(17, 17, 17, 0.45);
}

.header__cta {
  justify-content: center;
  text-align: center;
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
  color: #fff;
  background: #3f3a35;
  padding: 0 32px;
  border: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms var(--ease);
}

.header__cta:hover {
  background: #262626;
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: absolute;
  right: 12px;
  top: 12px;
}

.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

.burger[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.nav-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 90;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(17, 17, 17, 0.48);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 200ms var(--ease), visibility 200ms var(--ease);
}

.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav__mobile-actions {
  display: none;
}

.nav__mega-list li:not(:has(> a)),
.nav__mega-list:not(:has(a)) {
  display: none;
}

/* Hero — side paddings like other sections */
.hero {
  background: var(--bg);
  padding: clamp(20px, 2.5vw, 36px) clamp(16px, 2.5vw, 40px) 0;
}

.hero__frame {
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero__banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: clamp(320px, 52vh, 500px);
  border: 1px solid var(--line-soft);
}

.hero__banner picture {
  display: contents;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  inset: 0;
}

.hero__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.32) 30%,
      rgba(0, 0, 0, 0.12) 58%,
      rgba(0, 0, 0, 0.04) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.2) 0%,
      transparent 40%,
      transparent 70%,
      rgba(0, 0, 0, 0.28) 100%
    );
  pointer-events: none;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: clamp(28px, 3.5vw, 48px);
  max-width: 720px;
}

.hero__overlay h1 {
  color: #fff;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.025em;
  max-width: 28ch;
  text-wrap: balance;
}

.hero__overlay h1,
.hero__overlay .btn {
  animation: hero-enter 0.85s var(--ease) both;
}

.hero__overlay .btn {
  animation-delay: 0.14s;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__overlay h1,
  .hero__overlay .btn {
    animation: none;
  }
}

.hero__brand {
  margin: clamp(12px, 1.4vw, 20px) 0 clamp(16px, 1.8vw, 28px);
  padding: 0.12em 0 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: var(--hero-brand-size, clamp(18px, 7vw, 128px));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--text);
  user-select: none;
  box-sizing: border-box;
  overflow: visible;
  white-space: nowrap;
}

.hero__brand > span:not(.hero__brand-space) {
  display: block;
  flex: 0 0 auto;
  line-height: 1.05;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(0.12em);
  animation: hero-brand-fade 0.85s var(--ease) forwards;
  animation-delay: calc(0.2s + var(--i, 0) * 0.055s);
}

.hero__brand-space {
  flex: 0 0 0.32em;
  width: 0.32em;
  min-width: 0.2em;
}

@keyframes hero-brand-fade {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__brand > span:not(.hero__brand-space) {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }
}

/* Sections */
.section {
  padding: 96px 0;
}

.section__intro {
  max-width: 640px;
  margin-bottom: 48px;
}

.section__intro h2,
.section__intro .heading--2 {
  font-size: var(--section-title-size);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section__intro > p:not(.section__label) {
  margin: 0 0 15px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.section__label,
.section__intro .section__label,
.clients__intro .section__label {
  margin: 0 0 12px;
  font-size: var(--section-label-size) !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--text-muted);
}

.section__intro .heading--2,
.clients__intro .heading--2,
#clients-title {
  font-size: var(--section-title-size) !important;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* Services — bordered icon grid */
.section.services {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  padding-bottom: 48px;
}

.section.projects {
  padding-top: 40px;
}

/* Consult — full-bleed dark band, content stays in page grid */
.section.consult {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #3f3a35;
  box-shadow: 0 0 0 100vmax #3f3a35;
  clip-path: inset(0 -100vmax);
}

.section.consult::before {
  content: none;
}

.section.consult .container {
  position: relative;
  z-index: 1;
  padding-inline: clamp(16px, 2.5vw, 40px);
}

.consult__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(24px, 3vw, 36px) 0;
  background: transparent;
  border: 0;
  color: #f4f0ea;
}

.consult__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(242, 238, 233, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 238, 233, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: right top;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 42%, rgba(0, 0, 0, 0.45) 62%, rgba(0, 0, 0, 0.95) 100%);
}

.consult__visual,
.consult__body {
  position: relative;
  z-index: 1;
}

.consult__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 12px;
  background: #2f2b27;
  border: 1px solid #5c554e;
  overflow: hidden;
}

.consult__illu {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
}

.consult__illu-client {
  transform-origin: 52px 90px;
  animation: consult-nod 3.6s var(--ease) infinite;
}

.consult__illu-dev {
  transform-origin: 148px 90px;
  animation: consult-nod 3.6s var(--ease) infinite;
  animation-delay: 1.8s;
}

.consult__illu-hand {
  transform-origin: 70px 86px;
  animation: consult-gesture 2.4s var(--ease) infinite;
}

.consult__illu-type {
  transform-origin: 148px 116px;
  animation: consult-type 0.9s ease-in-out infinite;
}

.consult__illu-code:nth-child(3) {
  animation: consult-code 2.2s var(--ease) infinite;
}
.consult__illu-code:nth-child(4) {
  animation: consult-code 2.2s var(--ease) infinite;
  animation-delay: 0.25s;
}
.consult__illu-code:nth-child(5) {
  animation: consult-code 2.2s var(--ease) infinite;
  animation-delay: 0.5s;
}

.consult__illu-sketch {
  transform-origin: 96px 110px;
  animation: consult-sketch 3.2s var(--ease) infinite;
}

.consult__illu-bubble--client {
  animation: consult-talk-client 4s var(--ease) infinite;
}

.consult__illu-bubble--dev {
  animation: consult-talk-dev 4s var(--ease) infinite;
}

@keyframes consult-nod {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(1.5px); }
  55% { transform: translateY(0); }
}

@keyframes consult-gesture {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(12deg); }
}

@keyframes consult-type {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(1.5px); }
}

@keyframes consult-code {
  0%, 100% { opacity: 0.4; transform: scaleX(0.7); transform-origin: left center; }
  40%, 70% { opacity: 1; transform: scaleX(1); transform-origin: left center; }
}

@keyframes consult-sketch {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-2px) rotate(1deg); }
}

@keyframes consult-talk-client {
  0%, 8% { opacity: 0; transform: translateY(6px) scale(0.92); }
  16%, 42% { opacity: 1; transform: translateY(0) scale(1); }
  50%, 100% { opacity: 0; transform: translateY(-4px) scale(0.96); }
}

@keyframes consult-talk-dev {
  0%, 48% { opacity: 0; transform: translateY(6px) scale(0.92); }
  56%, 84% { opacity: 1; transform: translateY(0) scale(1); }
  92%, 100% { opacity: 0; transform: translateY(-4px) scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
  .consult__illu-client,
  .consult__illu-dev,
  .consult__illu-hand,
  .consult__illu-type,
  .consult__illu-code,
  .consult__illu-sketch,
  .consult__illu-bubble--client,
  .consult__illu-bubble--dev {
    animation: none;
  }

  .consult__illu-bubble--client,
  .consult__illu-bubble--dev {
    opacity: 1;
  }
}

.consult__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.consult__body h2,
.consult__body .heading--2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.consult__text {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(244, 240, 234, 0.72);
}

.consult__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.btn--ghost-light {
  background: transparent;
  color: #f4f0ea;
  border-color: transparent;
}

.btn--ghost-light:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--bg);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 200ms var(--ease);
}

.service-card:nth-child(3n) {
  border-right: 0;
}

.service-card:nth-child(n + 4) {
  border-bottom: 0;
}

.service-card:hover {
  background: var(--bg-soft);
}

.service-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 320 / 200;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 400ms var(--ease);
}

.service-card:hover .service-card__media img {
  transform: scale(1.03);
}

.service-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 1;
  padding: 16px 18px 18px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}

.service-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.service-card h3 a:hover {
  color: var(--accent);
}

.service-card__price {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.service-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card__popular {
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
}

.service-card__popular ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.service-card__popular li {
  display: inline-flex;
  align-items: center;
}

.service-card__popular li:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  color: var(--accent);
  font-weight: 650;
  line-height: 1;
  opacity: 0.55;
}

.service-card__popular a,
.service-card__popular span {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--accent);
  text-decoration: none;
  transition: color 200ms var(--ease), opacity 200ms var(--ease);
}

.service-card__popular a:hover {
  color: var(--text);
}

/* Projects */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card__media {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.project-card__media picture {
  display: contents;
}

.project-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-card__media--full {
  background: #fff;
}

.project-card__media--full img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  object-position: top center;
  display: block;
}

.project-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-card__meta h3,
.project-card__meta .heading--3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.project-card__meta span {
  font-size: 13px;
  color: var(--text-muted);
}

.project-card__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.project-card__list {
  margin: 0;
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.project-card__list li + li {
  margin-top: 4px;
}

.project-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.projects__more {
  margin-top: 40px;
  text-align: center;
}

/* SEO content + sticky TOC */
.seo-content {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.seo-content__layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.privacy-page .seo-content__layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 720px;
}

.seo-content__main {
  position: relative;
  min-width: 0;
}

.seo-content__clip {
  overflow: hidden;
  transition: max-height 500ms var(--ease);
}

.seo-content__main.is-collapsed .seo-content__clip {
  max-height: 380px;
}

.seo-content__main:not(.is-collapsed) .seo-content__clip {
  max-height: none;
}

.seo-content__fade {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 220px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(242, 238, 233, 0) 0%,
    rgba(242, 238, 233, 0.55) 35%,
    rgba(242, 238, 233, 0.92) 68%,
    var(--bg) 100%
  );
  z-index: 1;
}

.seo-content__main.is-collapsed .seo-content__fade {
  display: block;
}

.seo-content__more {
  position: relative;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 8px;
  width: auto;
  margin: -28px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: color 200ms var(--ease);
}

.seo-content__main.is-collapsed .seo-content__more {
  display: inline-flex;
}

.seo-content__more span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-content__more:hover {
  color: var(--text);
}

.seo-content__more i {
  font-size: 11px;
}

.seo-toc {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 20px 0;
  border-right: 1px solid var(--line-soft);
  padding-right: 24px;
}

.seo-toc__title {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.seo-toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.seo-toc__list a {
  display: block;
  padding: 8px 0;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -1px;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}

.seo-toc__list a:hover {
  color: var(--text);
}

.seo-toc__list a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}

.seo-content__article > * + * {
  margin-top: 18px;
}

.seo-content__article h2,
.seo-content__article .heading--2 {
  font-size: 26px;
  margin-top: 48px;
  scroll-margin-top: 24px;
}

.seo-content__article h2:first-child,
.seo-content__article .heading--2:first-child {
  margin-top: 0;
}

.seo-content__article h3,
.seo-content__article .heading--3 {
  font-size: 18px;
  margin-top: 28px;
  scroll-margin-top: 24px;
}

.seo-content__article p,
.seo-content__article li {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.7;
}

.seo-content__article strong {
  color: var(--text);
  font-weight: 600;
}

.seo-content__article ul,
.seo-content__article ol {
  padding-left: 22px;
}

.seo-content__article li + li {
  margin-top: 8px;
}

/* Contacts */
.contacts {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}

/* Clients marquee */
.section.clients,
.clients {
  padding: 96px 0 56px;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}

/* About stack marquee */
.section.clients.about-stack {
  padding-bottom: 0;
}

.section.guarantees + .section.clients.about-stack {
  padding-top: 64px;
}

.about-stack + .section.contacts {
  padding-top: 64px;
}

.clients__intro {
  max-width: 640px;
  margin-bottom: 48px;
}

.clients__intro .heading--2,
.clients__intro #clients-title {
  margin: 0;
}

.clients__viewport {
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.clients__track {
  display: flex;
  width: max-content;
  align-items: stretch;
  animation: clients-scroll 42s linear infinite;
}

.clients__viewport:hover .clients__track,
.clients__viewport:focus-within .clients__track {
  animation-play-state: paused;
}

.clients__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 88px;
  padding: 0 36px;
  border-right: 1px solid var(--line-soft);
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 220ms var(--ease), filter 220ms var(--ease), background-color 220ms var(--ease);
}

.clients__item:hover,
.clients__item:focus-visible {
  opacity: 1;
  filter: none;
  background: var(--bg-soft);
}

.clients__item img {
  width: auto;
  max-width: 148px;
  height: auto;
  max-height: 38px;
  object-fit: contain;
}

@keyframes clients-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients__track {
    animation: none;
  }

  .clients__viewport {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* CTA band — full-bleed dark strip, content stays in page grid */
.section.cta-band {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #3f3a35;
  box-shadow: 0 0 0 100vmax #3f3a35;
  clip-path: inset(0 -100vmax);
}

.section.cta-band::before {
  content: none;
}

.section.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 238, 233, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 238, 233, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center top;
  mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.25) 12%,
    transparent 26%,
    transparent 74%,
    rgba(0, 0, 0, 0.25) 88%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.section.cta-band .container {
  position: relative;
  z-index: 1;
  padding-inline: clamp(16px, 2.5vw, 40px);
}

.cta-band__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(28px, 3.5vw, 40px) 0;
  background: transparent;
  border: 0;
  color: #f4f0ea;
  text-align: center;
}

.cta-band__intro,
.cta-band__form {
  position: relative;
  z-index: 1;
}

.cta-band__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 400px;
  text-align: center;
}

.cta-band__intro .section__label {
  margin: 0;
  font-size: var(--section-label-size) !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  color: rgba(244, 240, 234, 0.55);
}

.cta-band__intro h2,
.cta-band__intro .heading--2 {
  margin: 0;
  font-size: var(--section-title-size) !important;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #f4f0ea;
}

.cta-band__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(244, 240, 234, 0.68);
}

.cta-band__form {
  width: 100%;
  max-width: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  text-align: left;
}

.cta-band__form-row {
  display: contents;
}

.cta-band__form .form-row {
  min-width: 0;
}

.cta-band__form .form-field__icon {
  color: rgba(244, 240, 234, 0.45);
}

.cta-band__form .form-field input,
.cta-band__form .form-field textarea {
  background: #2f2b27;
  border-color: #5c554e;
  color: #f4f0ea;
  padding-top: 11px;
  padding-bottom: 11px;
  font-size: 16px;
}

.cta-band__form .form-field input::placeholder,
.cta-band__form .form-field textarea::placeholder {
  color: rgba(244, 240, 234, 0.4);
}

.cta-band__form .form-field input:focus,
.cta-band__form .form-field textarea:focus {
  border-color: rgba(242, 238, 233, 0.45);
  background: #26221e;
}

.cta-band__form .form-field:focus-within .form-field__icon {
  color: var(--accent);
}

.cta-band__form .form-field--textarea textarea {
  min-height: 64px;
  height: 64px;
  resize: vertical;
}

.cta-band__form .btn {
  width: auto;
  min-width: max-content;
  height: 44px;
  margin-top: 0;
  padding-inline: 18px;
  white-space: nowrap;
}

.cta-band__form .form-note,
.cta-band__form .form-status {
  grid-column: 1 / -1;
}

.cta-band__form .form-note {
  color: rgba(244, 240, 234, 0.5);
  margin-top: 0;
  font-size: 11px;
  text-align: center;
}

.cta-band__form .form-note a {
  color: #f4f0ea;
}

.cta-band__form .form-status {
  min-height: 0;
  font-size: 13px;
}

.cta-band__form .form-status:empty {
  display: none;
}

.cta-band__form .form-status.is-success {
  color: #9dcfb0;
}

.cta-band__form .form-status.is-error {
  color: #f0a8a0;
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line-soft);
}

.faq__list {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.faq__item {
  border-bottom: 1px solid var(--line-soft);
}

.faq__item:last-child {
  border-bottom: 0;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 200ms var(--ease);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  transition: transform 350ms var(--ease), color 200ms var(--ease);
}

.faq__item.is-open .faq__question::after {
  transform: rotate(45deg);
  color: var(--text);
}

.faq__question:hover {
  color: var(--accent);
}

.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  max-width: 720px;
  transition: grid-template-rows 420ms var(--ease);
}

.faq__item.is-open .faq__answer {
  grid-template-rows: 1fr;
}

.faq__answer-inner {
  overflow: hidden;
  min-height: 0;
}

.faq__answer p {
  margin: 0;
  padding: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .faq__answer,
  .faq__question::after {
    transition: none;
  }
}

.contacts__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: stretch;
}

.contacts__info,
.contacts__list {
  height: 100%;
}

.contacts__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line-soft);
}

.contacts__list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.contacts__list li:last-child {
  border-bottom: 0;
}

.contacts__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--line-soft);
  color: var(--accent);
  font-size: 15px;
  background: var(--bg);
}

.contacts__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-top: 2px;
}

.contacts__label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 650;
}

.contacts__list a,
.contacts__list address,
.contacts__hours {
  font-size: 16px;
  font-weight: 560;
  letter-spacing: -0.01em;
  color: var(--text);
  font-style: normal;
}

.contacts__hours span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.contacts__list a:hover {
  color: var(--accent);
}

.contact-form {
  border: 1px solid var(--line-soft);
  padding: 28px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  box-sizing: border-box;
}

.contact-form .form-row:has(.form-field--textarea) {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.contact-form .form-field--textarea {
  flex: 1;
  align-items: stretch;
}

.contact-form .form-field--textarea textarea {
  height: 100%;
  min-height: 120px;
  resize: none;
}

.form-row {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-field {
  position: relative;
  display: flex;
  align-items: center;
}

.form-field__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
  z-index: 1;
}

.form-field--textarea .form-field__icon {
  top: 16px;
  transform: none;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 0;
  padding: 13px 16px 13px 42px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
  outline: none;
  resize: vertical;
}

.form-field textarea {
  min-height: 120px;
  line-height: 1.5;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--text);
  background: #fff;
}

.form-field:focus-within .form-field__icon {
  color: var(--accent);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #a39e97;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: -4px;
}

.form-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--text);
}

.form-status {
  font-size: 16px;
  min-height: 1.2em;
}

.form-status.is-success {
  color: #166534;
}

.form-status.is-error {
  color: var(--accent);
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 4px;
}

/* Lead modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms var(--ease), visibility 320ms var(--ease);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  opacity: 0;
  transition: opacity 320ms var(--ease);
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  min-width: 0;
  max-height: min(90vh, 720px);
  max-height: min(90dvh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  padding: 0;
  box-shadow: 0 24px 64px rgba(17, 17, 17, 0.22);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
}

.modal.is-open .modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal__shell {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.modal__shell::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.modal__body {
  position: relative;
  padding: 20px;
  min-width: 0;
}

.modal__head {
  margin: 0;
  min-height: 0;
  height: 0;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  opacity: 0.55;
  transition: color 180ms var(--ease), opacity 180ms var(--ease);
}

.modal__close:hover {
  background: transparent;
  color: var(--text);
  opacity: 1;
}

.modal__dialog h2,
.modal__dialog .heading--2 {
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 8px;
  padding-right: 36px;
}

.modal__text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.modal__form {
  border: 0;
  padding: 0;
  background: transparent;
  height: auto;
  min-width: 0;
}

.modal__form .form-field,
.modal__form .form-field input,
.modal__form .form-field textarea {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.modal__form .form-field--textarea textarea {
  min-height: 96px;
  height: auto;
  resize: vertical;
}

.modal__form .btn {
  width: 100%;
  align-self: stretch;
  box-sizing: border-box;
}

body.is-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .modal {
    padding: 0;
    align-items: stretch;
  }

  .modal__dialog {
    max-width: none;
    max-height: none;
    height: 100%;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .modal__body {
    padding: 16px;
  }

  .modal__close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .modal__dialog h2,
  .modal__dialog .heading--2 {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .modal__text {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .modal__form {
    gap: 12px;
  }

  .modal__form .form-row {
    gap: 4px;
  }

  .modal__form .form-field input,
  .modal__form .form-field textarea {
    padding: 12px 12px 12px 40px;
    font-size: 16px;
  }

  .modal__form .form-field--textarea textarea {
    min-height: 80px;
  }

  .modal__form .btn {
    width: 100%;
    margin-top: 0;
  }

  .modal__form .form-note {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal__backdrop,
  .modal__dialog {
    transition: none;
  }

  .modal__dialog {
    transform: none;
  }
}

/* Footer */
.footer {
  border-top: 1px solid #4d4741;
  padding: 64px 0 32px;
  background: #2f2b27;
  color: #f4f0ea;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(0, 2.4fr);
  gap: 40px 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #4d4741;
}

.footer .logo__text {
  color: #f4f0ea;
}

.footer__brand p {
  margin-top: 16px;
  color: rgba(244, 240, 234, 0.62);
  font-size: 16px;
  max-width: 280px;
  line-height: 1.5;
}

.footer__contacts {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__contacts a {
  font-size: 16px;
  color: rgba(244, 240, 234, 0.78);
  transition: color 200ms var(--ease);
}

.footer__contacts a:hover {
  color: var(--accent);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer h3,
.footer .heading--3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  color: #f4f0ea;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer li a {
  font-size: 16px;
  color: rgba(244, 240, 234, 0.62);
  transition: color 200ms var(--ease);
}

.footer li a:hover {
  color: #f4f0ea;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(244, 240, 234, 0.5);
}

.footer__bottom-end {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-lang span {
  color: rgba(244, 240, 234, 0.28);
}

.footer-lang a {
  color: rgba(244, 240, 234, 0.55);
  text-decoration: none;
}

.footer-lang a:hover {
  color: #f4f0ea;
}

.footer-lang a[aria-current="page"] {
  color: #f4f0ea;
}

.footer__bottom a {
  color: rgba(244, 240, 234, 0.62);
  transition: color 200ms var(--ease);
}

.footer__bottom a:hover {
  color: #f4f0ea;
}

/* Responsive */
@media (max-width: 1400px) {
  .header__cell {
    padding: 0 16px;
  }

  .logo.header__cell {
    padding: 0 16px;
  }

  .nav.header__cell {
    padding: 0 18px;
  }

  .nav__list {
    gap: 30px;
  }

  .nav a,
  .nav__trigger {
    font-size: 15px;
  }

  .header__contacts {
    padding: 0 14px;
    gap: 10px;
  }

  .header__phone {
    font-size: 14px;
  }

  .header__cta.header__cell {
    padding: 0 16px;
    font-size: 14px;
  }
}

@media (max-width: 1240px) {
  .header__cell {
    padding: 0 12px;
  }

  .logo.header__cell {
    padding: 0 12px;
  }

  .nav.header__cell {
    padding: 0 12px;
  }

  .nav__list {
    gap: 12px;
  }

  .header__contacts {
    padding: 0 10px;
    gap: 8px;
  }

  .header__cta.header__cell {
    padding: 0 12px;
  }
}

@media (max-width: 1100px) {
  .header__grid {
    grid-template-columns: max-content minmax(0, 1fr) max-content max-content;
  }

  .nav.header__cell {
    padding: 0 10px;
  }

  .nav__list {
    gap: 10px;
  }

  .nav a,
  .nav__trigger {
    font-size: 14px;
  }

  /* Keep messengers; phone moves out of the crowded bar */
  .header__phone {
    display: none;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card:nth-child(3n) {
    border-right: 1px solid var(--line-soft);
  }

  .service-card:nth-child(2n) {
    border-right: 0;
  }

  .service-card:nth-child(n + 4) {
    border-bottom: 1px solid var(--line-soft);
  }

  .service-card:nth-child(n + 5) {
    border-bottom: 0;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .footer__brand p {
    max-width: none;
  }
}

@media (max-width: 960px) {
  .consult__panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .consult__panel::after {
    background-image:
      linear-gradient(rgba(242, 238, 233, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(242, 238, 233, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(
      180deg,
      transparent 0%,
      rgba(0, 0, 0, 0.18) 40%,
      rgba(0, 0, 0, 0.35) 100%
    );
  }

  .section.cta-band::after {
    background-image:
      linear-gradient(rgba(242, 238, 233, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(242, 238, 233, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.2) 0%,
      transparent 22%,
      transparent 78%,
      rgba(0, 0, 0, 0.2) 100%
    );
  }

  .cta-band__panel {
    padding: 24px 0;
    gap: 16px;
    max-width: 440px;
  }

  .cta-band__form {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .cta-band__form .btn {
    width: 100%;
  }

  .header__grid {
    grid-template-columns: 1fr auto;
    position: relative;
    min-height: 52px;
  }

  .header__cell {
    min-height: 52px;
    padding: 0 16px;
  }

  .logo.header__cell {
    padding: 0 16px;
  }

  .logo__mark {
    font-size: 22px;
  }

  .logo__text {
    font-size: 12px;
  }

  .burger {
    width: 40px;
    height: 40px;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
  }

  .burger[aria-expanded="true"] {
    transform: translateY(-50%);
  }

  .header__contacts,
  .header__cta {
    display: none;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 24px;
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease);
    z-index: 50;
    max-height: min(80vh, calc(100dvh - var(--header-h)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-backdrop {
    /* styles shared with desktop; keep mobile stacking */
    z-index: 90;
  }

  .nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav.header__cell {
    border-right: 0;
    padding: 16px 20px 24px;
    min-height: 0;
    display: block;
  }

  .nav__mobile-actions {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    padding-top: 4px;
  }

  .nav__mobile-consult {
    width: 100%;
    justify-content: center;
  }

  .nav__mobile-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
  }

  .nav__mobile-phone i {
    color: var(--accent);
    font-size: 14px;
  }

  .nav__mobile-phone:hover {
    color: var(--accent);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__list > li {
    border-bottom: 1px solid var(--line-soft);
  }

  .nav__list > li > a,
  .nav__trigger {
    display: flex;
    width: 100%;
    padding: 16px 0;
    justify-content: space-between;
  }

  .nav__item--mega {
    display: block;
    align-self: auto;
  }

  .nav__trigger {
    height: auto;
  }

  .nav__mega {
    position: static;
    border-bottom: 0;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms var(--ease), opacity 200ms var(--ease), visibility 200ms var(--ease);
  }

  .nav__mega::before {
    display: none;
  }

  .nav__item--mega.is-open .nav__mega {
    max-height: 1200px;
  }

  .nav__mega-inner {
    grid-template-columns: 1fr;
    padding: 0 0 8px;
    border-top: 0;
  }

  .nav__mega-col {
    padding: 12px 0 12px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav__mega-col:last-child {
    border-bottom: 0;
  }

  .nav__mega-foot {
    justify-content: flex-start;
    padding: 12px 0 8px;
  }

  .logo.header__cell {
    border-right: 0;
  }

  .burger {
    display: inline-flex;
  }

  .hero__overlay .btn--outline-light {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  }

  .hero__overlay .btn--outline-light:hover {
    background: #a83224;
    border-color: #a83224;
  }

  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .seo-content__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .seo-toc {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 0 0 20px;
  }

  .seo-toc__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .seo-toc__list a {
    border-left: 0;
    padding-left: 0;
    padding: 4px 0;
    font-size: 13px;
  }

  .seo-toc__list a.is-active {
    border-left-color: transparent;
    color: var(--accent);
  }

}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .section.services {
    padding-bottom: 32px;
  }

  .section.projects {
    padding-top: 32px;
  }

  .consult__actions .btn {
    flex: 1 1 auto;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    height: auto;
    min-height: 0;
  }

  .hero__banner {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .hero__overlay {
    padding: 20px;
    gap: 24px;
    justify-content: space-between;
  }

  .hero__brand {
    letter-spacing: -0.04em;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__nav {
    grid-template-columns: 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line-soft) !important;
  }

  .service-card:last-child {
    border-bottom: 0 !important;
  }

  .footer__nav {
    grid-template-columns: 1fr 1fr;
  }

 
  .project-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .project-card__actions .btn {
    width: 100%;
  }

  .hero__overlay .btn {
    width: 100%;
  }
}

/* ========== Service page template ========== */
.service-page .section {
  padding: clamp(56px, 7vw, 88px) 0;
}

.service-page .section.consult,
.service-page .section.cta-band {
  padding: 0;
}

.service-page .service-result {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.service-page .service-cases {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}

.service-page .service-process {
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

.service-page .service-pricing {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}

.service-page .seo-content {
  background: var(--bg);
}

.service-page .faq {
  background: var(--bg-soft);
  border-top: 0;
  border-bottom: 1px solid var(--line-soft);
}

.service-page .contacts {
  background: var(--bg);
  border-top: 0;
}

.service-page .section__intro {
  margin-bottom: clamp(28px, 3.5vw, 40px);
}

.service-page .section__intro h2,
.service-page .section__intro .heading--2 {
  margin-bottom: 20px;
  line-height: 1.2;
}

.service-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.service-breadcrumb a {
  color: var(--text-secondary);
  transition: color 180ms var(--ease);
}

.service-breadcrumb a:hover {
  color: var(--text);
}

.service-hero {
  padding: clamp(20px, 2.5vw, 36px) 0 clamp(28px, 3.5vw, 48px);
  background: var(--bg);
}

.service-hero__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: clamp(340px, 48vh, 480px);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.service-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(28px, 4vw, 48px);
}

.service-hero__content h1 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
}

.about-page .service-hero__content h1 {
  max-width: 22ch;
}

.service-hero__lead {
  margin: 0;
  max-width: 38ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.service-hero__points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-width: 40ch;
}

.service-hero__points li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}

.service-hero__points li::before {
  content: "\f00c";
  position: absolute;
  left: 0;
  top: 0.2em;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 13px;
  line-height: 1.5;
  color: var(--accent);
}

.service-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.service-hero__note {
  margin: -8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.service-hero__media {
  position: relative;
  min-height: 100%;
  border-left: 1px solid var(--line-soft);
  background: #ddd7cf;
}

.service-hero__media picture {
  display: contents;
}

.service-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.service-page .section[id] {
  scroll-margin-top: 88px;
}

.service-hero__media--portrait img {
  object-position: center top;
}

/* ========== About page ========== */
.about-story {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.about-story__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.about-story__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-story__text p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 58ch;
}

.about-stats {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}

.about-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about-stats__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.5vw, 28px);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--accent);
}

.about-stats__value {
  margin: 0;
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.about-stats__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.about-stats__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 650;
  color: var(--accent);
  transition: opacity 180ms var(--ease);
}

.about-stats__link:hover {
  opacity: 0.8;
}

.about-stats__link i {
  font-size: 12px;
}

.about-page .contacts {
  border-top: 0;
}

/* Text-only first screen (contacts etc.) */
.page-hero {
  padding: clamp(20px, 2.5vw, 36px) 0 clamp(28px, 3.5vw, 48px);
  background: var(--bg);
}

.page-hero__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: clamp(300px, 42vh, 440px);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.page-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(28px, 4vw, 48px);
}

.page-hero__media {
  position: relative;
  min-height: 100%;
  border-left: 1px solid var(--line-soft);
  background: #ddd7cf;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero__panel h1 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 14ch;
}

.portfolio-page .page-hero__panel h1 {
  max-width: 22ch;
}

.page-hero--title-only {
  padding-bottom: clamp(12px, 2vw, 24px);
}

.page-hero--title-only .page-hero__panel {
  grid-template-columns: 1fr;
  min-height: 0;
}

.portfolio-page .service-hero__content h1 {
  max-width: 14em;
  text-wrap: balance;
}

.portfolio-page .service-hero__panel {
  min-height: 0;
  align-items: start;
}

.portfolio-page .service-hero__media {
  position: relative;
  background: var(--bg-soft);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 0;
  align-self: stretch;
}

.portfolio-page .service-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.portfolio-page .service-hero__actions .btn i {
  font-size: 12px;
  margin-left: 2px;
}

.portfolio-page .service-hero__content .case-tags {
  margin-top: 4px;
}


.page-hero__lead {
  margin: 0;
  max-width: 42ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.contacts-page .contacts {
  border-top: 1px solid var(--line-soft);
}

.contacts__lead {
  margin: 0 0 clamp(24px, 3vw, 36px);
  max-width: 36rem;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.5;
}

.contacts__map {
  margin-top: clamp(36px, 5vw, 56px);
}

.contacts__map-title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contacts__map-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.contacts__map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* Briefs */
.briefs {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}

.briefs--alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
}

.briefs__head {
  margin-bottom: clamp(22px, 3vw, 32px);
}

.briefs__head .heading--2 {
  margin: 0;
}

.briefs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.brief-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 220px;
  padding: clamp(22px, 2.5vw, 28px);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
}

.briefs--alt .brief-card {
  background: var(--bg);
}

.brief-card--soon {
  opacity: 0.72;
}

.brief-card__cat {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.brief-card__title {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.brief-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 40ch;
}

.brief-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brief-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--line-soft);
  background: var(--bg);
  font-size: 13px;
  font-weight: 650;
  color: var(--text-muted);
}

.brief-form-section {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}

.brief-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
}

.brief-form__block {
  margin: 0;
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.brief-form__block legend {
  padding: 0 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brief-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.brief-form__field:first-of-type {
  margin-top: 10px;
}

.brief-form__field label {
  font-size: 13px;
  font-weight: 650;
  color: var(--text-secondary);
}

.brief-form__field input,
.brief-form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  resize: vertical;
}

.brief-form__field input:focus,
.brief-form__field textarea:focus {
  outline: none;
  border-color: rgba(194, 58, 43, 0.55);
}

.brief-form__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 8px;
}

/* Agency / White Label page */
.agency-page .service-hero__content h1 {
  max-width: 20ch;
}

.agency-page .service-hero__media img {
  object-position: center;
}

.agency-services {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}

.agency-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Feature articles: icon list, 2 columns, no cards */
.agency-services__grid:has(> article.agency-card):not(:has(> a.agency-card--link)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 56px);
  row-gap: 0;
}

article.agency-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  column-gap: 16px;
  row-gap: 0;
  margin: 0;
  padding: 22px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
}

.agency-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.1rem;
  background: rgba(194, 58, 43, 0.08);
}

.agency-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* Keep navigation tiles as cards */
a.agency-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.4vw, 26px);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
}

a.agency-card--link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

a.agency-card--link:hover {
  border-color: rgba(194, 58, 43, 0.35);
  background: var(--bg);
}

.agency-card__route {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  margin: 0 0 4px;
}

.agency-card__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 40px;
  flex-shrink: 0;
}

.agency-card__logo img {
  display: block;
  max-height: 36px;
  max-width: 108px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.agency-card__logo--mark {
  width: 40px;
  justify-content: center;
}

.agency-card__logo--mark img {
  max-width: 36px;
  max-height: 36px;
}

.agency-card__arrow {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.85;
}

.agency-card__arrow svg {
  display: block;
  animation: agency-arrow-nudge 1.5s var(--ease, ease-in-out) infinite;
}

@keyframes agency-arrow-nudge {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.45;
  }
  50% {
    transform: translateX(5px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agency-card__arrow svg {
    animation: none;
    opacity: 0.75;
  }
}

.migration-page .service-hero__content h1,
.crm-page .service-hero__content h1 {
  max-width: 26ch;
  text-wrap: balance;
}

.b2b-page .service-hero__media,
.sites-type-page .service-hero__media,
.migration-page .service-hero__media {
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 48px);
}

.b2b-page .service-hero__media img,
.sites-type-page .service-hero__media img,
.migration-page .service-hero__media img {
  width: min(100%, 420px);
  height: auto;
  object-fit: contain;
}

.agency-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.agency-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.agency-formats {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
}

.agency-formats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.agency-format {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 2.5vw, 28px);
  background: var(--bg);
  border: 1px solid var(--line-soft);
}

.agency-format--featured {
  border-color: rgba(194, 58, 43, 0.45);
  box-shadow: inset 0 3px 0 var(--accent);
}

.agency-format__badge {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.agency-format__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.agency-format__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.agency-format__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
}

.agency-format__list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.agency-format__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.agency-process {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}

.agency-process__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
}

.agency-process__list li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2vw, 22px);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  min-height: 100%;
}

.agency-process__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.agency-process__list .heading--3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.agency-process__list p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.agency-start {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.agency-start__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
}

.agency-start__panel--full {
  max-width: 720px;
}

.agency-start__text {
  margin: 12px 0 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.agency-start__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(24px, 3vw, 32px);
  background: #3f3a35;
  color: #f4f0ea;
}

.agency-start__panel .heading--3 {
  margin: 0;
  color: #f4f0ea;
  font-size: clamp(22px, 2.4vw, 28px);
}

.agency-start__panel > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(244, 240, 234, 0.75);
}

.agency-start__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.agency-start__panel .btn--secondary {
  background: transparent;
  color: #f4f0ea;
  border-color: rgba(244, 240, 234, 0.35);
}

.agency-start__panel .btn--secondary:hover {
  border-color: rgba(244, 240, 234, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.page-hero__eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-hero__panel .case-tags {
  margin-top: 4px;
}

/* Price page */
.price-page {
  padding-top: clamp(40px, 6vw, 72px);
}

.price-page__note {
  max-width: 52rem;
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.price-page__lead {
  max-width: 52rem;
  margin: 0 0 clamp(28px, 4vw, 40px);
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
}

.price-page__toc {
  margin: 0 0 clamp(36px, 5vw, 56px);
  padding: 20px 0 0;
  border-top: 1px solid var(--line-soft);
}

.price-page__toc-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.price-page__toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-page__toc-list a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line-soft);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}

.price-page__toc-list a:hover,
.price-page__toc-list a:focus-visible {
  border-color: rgba(194, 58, 43, 0.45);
  color: var(--accent);
}

.price-block {
  margin: 0 0 clamp(48px, 7vw, 80px);
  scroll-margin-top: 96px;
}

.price-block:last-child {
  margin-bottom: 0;
}

.price-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 20px;
}

.price-block__head h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
}

.price-block__head p {
  margin: 0;
  max-width: 40rem;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.price-extras {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}

.price-extras__item {
  border-bottom: 1px solid var(--line-soft);
}

.price-extras__link {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 12px 24px;
  align-items: baseline;
  padding: 18px 4px;
  color: inherit;
  text-decoration: none;
  transition: background-color 160ms var(--ease);
}

.price-extras__link:hover,
.price-extras__link:focus-visible {
  background: rgba(26, 23, 20, 0.03);
}

.price-extras__name {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.price-extras__note {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
}

.price-extras__price {
  justify-self: end;
  white-space: nowrap;
  font-size: 14px;
  color: var(--text-secondary);
}

.price-extras__price strong {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
}

@media (max-width: 768px) {
  .price-extras__link {
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
  }

  .price-extras__note {
    grid-column: 1 / -1;
    order: 3;
  }

  .price-extras__price {
    grid-column: 2;
    grid-row: 1;
  }
}

/* Portfolio / case */
.portfolio-list {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}

.portfolio-tiles {
  --portfolio-line: rgba(26, 26, 26, 0.14);
  --portfolio-face: #f1efe9;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--portfolio-line);
  border-left: 1px solid var(--portfolio-line);
}

.portfolio-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 5 / 3;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border-right: 1px solid var(--portfolio-line);
  border-bottom: 1px solid var(--portfolio-line);
  background: var(--portfolio-face);
  transition: background-color 200ms var(--ease);
}

.portfolio-tile:nth-child(8n + 1) { background: #f3f1eb; }
.portfolio-tile:nth-child(8n + 2) { background: #efede7; }
.portfolio-tile:nth-child(8n + 3) { background: #f1efe9; }
.portfolio-tile:nth-child(8n + 4) { background: #eceae4; }
.portfolio-tile:nth-child(8n + 5) { background: #f0eee8; }
.portfolio-tile:nth-child(8n + 6) { background: #eeece6; }
.portfolio-tile:nth-child(8n + 7) { background: #f2f0ea; }
.portfolio-tile:nth-child(8n + 8) { background: #ebe9e3; }

.portfolio-tile:hover,
.portfolio-tile:focus-within {
  background: #f5f5f5;
}

.portfolio-tile__face {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: clamp(12px, 2vw, 28px) clamp(12px, 2vw, 28px) 32px;
  color: inherit;
  text-decoration: none;
  background: transparent;
}

.portfolio-tile__face img {
  width: auto;
  max-width: 62%;
  height: auto;
  max-height: 48%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition: opacity 200ms var(--ease), filter 200ms var(--ease);
}

.portfolio-tile:hover .portfolio-tile__face img,
.portfolio-tile:focus-within .portfolio-tile__face img {
  opacity: 1;
  filter: none;
}

.portfolio-tile__site {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 200ms var(--ease), color 200ms var(--ease);
}

@media (min-width: 961px) {
  .portfolio-tile__site {
    font-size: 14px;
    gap: 7px;
    padding: 12px 10px 16px;
  }

  .portfolio-tile__site i {
    font-size: 11px;
  }
}

.portfolio-tile__site span {
  max-width: calc(100% - 18px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-tile__site i {
  flex-shrink: 0;
  font-size: 10px;
}

.portfolio-tile:hover .portfolio-tile__site,
.portfolio-tile:focus-within .portfolio-tile__site {
  opacity: 0.75;
}

.portfolio-tile__site:hover,
.portfolio-tile__site:focus-visible {
  opacity: 1;
  color: var(--text-secondary);
}

.portfolio-tile__face:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -2px;
}

.portfolio-filters {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 clamp(28px, 3.5vw, 40px);
  padding: clamp(18px, 2.2vw, 24px);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
}

.portfolio-filters__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portfolio-filters__label {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.portfolio-filters__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-filters__btn {
  appearance: none;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid var(--line-soft);
  background: var(--bg);
  color: var(--text-secondary);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.portfolio-filters__btn:hover {
  border-color: rgba(26, 26, 26, 0.4);
  color: var(--text);
}

.portfolio-filters__btn.is-active {
  background: var(--text);
  border-color: var(--text);
  color: #fafafa;
}

.portfolio-filters__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.portfolio-filters__empty {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--text-secondary);
}

.project-card.is-filtered-out {
  display: none;
}

.portfolio-list__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.portfolio-list .project-card {
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.portfolio-list .project-card__meta h3 a:hover {
  color: var(--accent);
}

.case-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.case-tags li {
  padding: 7px 11px;
  border: 1px solid var(--line-soft);
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.case-media {
  padding-top: 0;
  background: var(--bg);
}

.case-media__frame {
  margin: 0;
  border: 1px solid var(--line-soft);
  background: #ddd7cf;
  overflow: hidden;
}

.case-media__frame img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.case-body {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.case-body__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.case-body__main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg);
  border: 1px solid var(--line-soft);
}

.case-block .heading--2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.4vw, 28px);
}

.case-block p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 62ch;
}

.case-block--result {
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.case-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.case-features li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.case-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.case-body__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
}

.case-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 96px;
}

.case-aside__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
}

.case-aside__label {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.case-aside__value {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.case-aside__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.case-aside__list li {
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.case-aside__card .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.service-pricing {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}

.service-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.service-pricing__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.5vw, 28px);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  height: auto;
}

.service-pricing__item.is-featured {
  border-color: rgba(194, 58, 43, 0.45);
  box-shadow: inset 0 3px 0 var(--accent);
}

.service-pricing__tier {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.service-pricing__sum {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
}

.service-pricing__sum strong {
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--text);
}

.service-pricing__item.is-featured .service-pricing__sum strong {
  color: var(--accent);
}

.service-pricing__desc {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.service-pricing__item ul,
.service-pricing__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  margin: 0;
  margin-top: 4px;
  padding: 0;
  padding-top: 8px;
}

.service-pricing__extra .service-pricing__features {
  margin-top: 0;
  padding-top: 8px;
}

.service-pricing__item li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.service-pricing__item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.service-pricing__cta {
  margin-top: auto;
  padding-top: 8px;
}

.service-pricing__cta .btn {
  width: 100%;
  justify-content: center;
}

.service-pricing__extra {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition:
    grid-template-rows 420ms var(--ease),
    opacity 280ms var(--ease),
    margin 280ms var(--ease);
}

.service-pricing__extra > .service-pricing__features {
  overflow: hidden;
  min-height: 0;
}

.service-pricing__extra.is-collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .service-pricing__extra {
    transition: none;
  }
}

.service-pricing__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: color 180ms var(--ease);
}

.service-pricing__more i {
  font-size: 11px;
  color: var(--accent);
  transition: transform 180ms var(--ease);
}

.service-pricing__more:hover,
.service-pricing__more:focus-visible {
  color: var(--accent);
}

.service-pricing__more[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.service-result__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Single result block: sticky intro left, checklist right */
.service-result .container:has(> .service-result__grid > :only-child) {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  column-gap: clamp(28px, 5vw, 72px);
  row-gap: 28px;
  align-items: start;
}

.service-result .container:has(> .service-result__grid > :only-child) > .section__intro {
  position: sticky;
  top: calc(var(--header-h, 72px) + 20px);
  margin-bottom: 0;
  max-width: none;
}

.service-result__grid:has(> :only-child) {
  grid-template-columns: 1fr;
  min-width: 0;
}

.service-result__grid:has(> :only-child) .service-result__block {
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.service-result__grid:has(> :only-child) .service-result__decor,
.service-result__grid:has(> :only-child) .heading--3 {
  display: none;
}

.service-result__grid:has(> :only-child) .service-result__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.service-result__grid:has(> :only-child) .service-result__list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 14px;
  align-items: start;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
  color: var(--text);
}

.service-result__grid:has(> :only-child) .service-result__list li::before {
  content: "\f00c";
  position: static;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(194, 58, 43, 0.08);
  color: var(--accent);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
}

@media (max-width: 900px) {
  .service-result .container:has(> .service-result__grid > :only-child) {
    grid-template-columns: 1fr;
  }

  .service-result .container:has(> .service-result__grid > :only-child) > .section__intro {
    position: static;
    margin-bottom: 8px;
  }
}

.service-result__block {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 2.5vw, 32px);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--accent);
}

.service-result__decor {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 42px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.14;
  pointer-events: none;
}

.service-result__block h3,
.service-result__block .heading--3 {
  position: relative;
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.service-result__list {
  position: relative;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-result__list li {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.service-result__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.service-result__list--checks li {
  padding-left: 22px;
}

.service-result__list--checks li::before {
  content: "\f00c";
  top: 0.15em;
  width: auto;
  height: auto;
  background: none;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 13px;
  line-height: 1;
  color: var(--accent);
}

.service-cases {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.service-cases .section__intro {
  margin-bottom: clamp(28px, 3.5vw, 40px);
}

.service-process__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
  overflow: visible;
}

.service-process__list li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2vw, 24px);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  min-height: 100%;
  overflow: visible;
}

.service-process__decor {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

.service-process__list li > :not(.service-process__decor) {
  position: relative;
  z-index: 1;
}

.service-process__list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -26px;
  z-index: 2;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23c23a2b' d='M4 2.5v11L13 8 4 2.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  transform: translate(50%, -50%);
  pointer-events: none;
  animation: service-process-arrow-x 1.4s var(--ease) infinite;
}

@keyframes service-process-arrow-x {
  0%,
  100% {
    transform: translate(40%, -50%);
    opacity: 0.45;
  }
  50% {
    transform: translate(60%, -50%);
    opacity: 1;
  }
}

@keyframes service-process-arrow-y {
  0%,
  100% {
    transform: translate(-50%, 40%);
    opacity: 0.45;
  }
  50% {
    transform: translate(-50%, 70%);
    opacity: 1;
  }
}

.service-process__time {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.9;
}

.service-process__list h3,
.service-process__list .heading--3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.service-process__list p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}

@media (max-width: 960px) {
  .service-hero__panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .page-hero__panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .page-hero__media {
    order: -1;
    border-left: 0;
    border-bottom: 1px solid var(--line-soft);
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .service-hero__media {
    order: -1;
    border-left: 0;
    border-bottom: 1px solid var(--line-soft);
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .portfolio-page .service-hero__media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .portfolio-page .service-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .page-hero__panel h1 {
    max-width: none;
  }

  .service-hero__media--portrait {
    aspect-ratio: 4 / 3;
  }

  .service-hero__content h1 {
    max-width: none;
  }

  .about-story__layout,
  .about-stats__grid,
  .portfolio-list__grid,
  .case-body__layout,
  .briefs__grid,
  .agency-services__grid,
  .agency-formats__grid,
  .agency-process__list,
  .agency-start__layout {
    grid-template-columns: 1fr;
  }

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

  .portfolio-tile__face {
    padding: 14px 12px;
  }

  .portfolio-tile__face img {
    max-width: 72%;
    max-height: 52%;
  }

  .portfolio-tile__site {
    display: none;
  }

  .agency-services__grid,
  .agency-formats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .agency-process__list {
    grid-template-columns: 1fr 1fr;
  }

  .case-aside {
    position: static;
  }

  .service-pricing__grid,
  .service-result__grid,
  .service-process__list {
    grid-template-columns: 1fr 1fr;
  }

  .service-process__list {
    gap: 16px;
  }

  .service-process__list li:not(:last-child)::after {
    display: none;
  }

  .service-process__list li:nth-child(odd):not(:last-child)::after {
    display: block;
    content: "";
    top: 50%;
    right: -14px;
    bottom: auto;
    left: auto;
    width: 16px;
    height: 16px;
    border: 0;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23c23a2b' d='M4 2.5v11L13 8 4 2.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    transform: translate(50%, -50%);
    animation: service-process-arrow-x 1.4s var(--ease) infinite;
  
  }

  .service-process__list li:nth-child(2)::after {
    display: block;
    content: "";
    top: auto;
    bottom: -18px;
    right: auto;
    left: 50%;
    width: 16px;
    height: 16px;
    border: 0;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23c23a2b' d='M2.5 4h11L8 13 2.5 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    transform: translate(-50%, 50%);
    animation: service-process-arrow-y 1.4s var(--ease) infinite;
  
  }
}

@media (max-width: 640px) {
  .portfolio-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-tile {
    aspect-ratio: 4 / 3;
  }

  .portfolio-tile__face {
    padding: 16px 12px;
  }

  .portfolio-tile__site {
    display: none;
  }

  .agency-services__grid,
  .agency-formats__grid,
  .agency-process__list {
    grid-template-columns: 1fr;
  }

  .agency-services__grid:has(> article.agency-card):not(:has(> a.agency-card--link)) {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .service-hero__actions,
  .page-hero__actions {
    flex-direction: column;
  }

  .service-hero__actions .btn,
  .page-hero__actions .btn {
    width: 100%;
  }

  .about-stats__grid {
    grid-template-columns: 1fr;
  }

  .service-pricing__grid,
  .service-result__grid,
  .service-process__list {
    grid-template-columns: 1fr;
  }

  .service-process__list {
    gap: 28px;
  }

  .service-process__list li:not(:last-child)::after,
  .service-process__list li:nth-child(odd):not(:last-child)::after,
  .service-process__list li:nth-child(2)::after {
    display: block;
    content: "";
    top: auto;
    bottom: -20px;
    right: auto;
    left: 50%;
    width: 16px;
    height: 16px;
    border: 0;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23c23a2b' d='M2.5 4h11L8 13 2.5 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    transform: translate(-50%, 50%);
    animation: service-process-arrow-y 1.4s var(--ease) infinite;
  
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .service-process__list li:not(:last-child)::after,
  .service-process__list li:nth-child(odd):not(:last-child)::after,
  .service-process__list li:nth-child(2)::after {
    animation: none;
    opacity: 0.85;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


.service-result__note {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.sites-type-page__siblings {
  display: grid;
  gap: 10px;
}


/* —— Guarantees (icon blocks) —— */
.guarantees__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.guarantees__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.4vw, 28px);
  background: #f7f7f7;
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--accent);
  cursor: default;
  transition:
    transform 220ms var(--ease),
    border-color 220ms var(--ease),
    background-color 220ms var(--ease),
    opacity 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.guarantees__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--accent);
  font-size: 1.25rem;
  background: rgba(194, 58, 43, 0.08);
  transition:
    transform 220ms var(--ease),
    background-color 220ms var(--ease),
    color 220ms var(--ease);
}

.guarantees__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 220ms var(--ease);
}

.guarantees__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted, #5c554e);
}

.guarantees__grid:hover .guarantees__item {
  opacity: 0.48;
}

.guarantees__item:hover {
  opacity: 1 !important;
  transform: translateY(-4px);
  background: #fff;
  border-color: rgba(194, 58, 43, 0.4);
  border-top-color: var(--accent);
  box-shadow: 0 10px 28px rgba(26, 23, 20, 0.08);
}

.guarantees__item:hover .guarantees__icon {
  transform: scale(1.08);
  background: var(--accent);
  color: #f2eee9;
}

.guarantees__item:hover .guarantees__title {
  color: var(--accent);
}

@media (max-width: 900px) {
  .guarantees__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .guarantees__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guarantees__item,
  .guarantees__icon {
    transition: none;
  }

  .guarantees__item:hover {
    transform: none;
  }

  .guarantees__item:hover .guarantees__icon {
    transform: none;
  }
}

/* Guarantees right after hero: tighter top spacing */
.page > main > .section.guarantees:first-child,
main#main > .section.guarantees:first-of-type {
  padding-top: 56px;
  padding-bottom: 56px;
  border-top: 1px solid var(--line-soft);
}

.section.guarantees + .section.services {
  padding-top: 48px;
}

/* Scroll reveal */
.js.reveal-ready .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(18px);
}

.js .reveal {
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: 0ms;
}

.js .reveal.reveal--stagger {
  transition-delay: calc(var(--reveal-i, 0) * 55ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js.reveal-ready .reveal:not(.is-in),
  .js .reveal,
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

