/* IT Web Master — стиль обложек Авито */
:root {
  --bg-0: #121826;
  --bg-1: #1c2438;
  --panel: #ffffff;
  --text: #161c28;
  --muted: #5a6278;
  --line: #e4e8f0;
  --nav: #b4bed2;
  --accent: #2e7dd2;
  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --container: 1120px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: #e8edf7;
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1) 45%, #151c2c);
  background-attachment: fixed;
  line-height: 1.5;
}

body::before {
  content: none;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(18, 24, 38, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
}

.brand {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #e8eef8;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: none;
}

a.brand:focus,
a.brand:active,
a.brand--sign:focus,
a.brand--sign:active,
a.nav__logo:focus,
a.nav__logo:active {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.brand__mark {
  width: 72px;
  height: 72px;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
}

.brand__mark img,
.brand img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.72);
  mask-image: none;
  filter: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
  padding-left: 12px;
  border-left: 2px solid #3ad7ff;
  box-shadow: -8px 0 16px rgba(58, 215, 255, 0.12);
}

.brand__text strong {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  white-space: nowrap;
}

.brand__text strong span {
  color: #3ad7ff;
}

.brand__text small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #8ec8ea;
}

.brand--sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  gap: 1px;
  line-height: 1;
  position: relative;
  padding-top: 10px;
}

.brand--sign::before,
.brand--sign::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.brand--sign::before {
  top: 0;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, transparent, #bff2ff 6%, #f2fdff 50%, #bff2ff 94%, transparent);
  box-shadow: 0 0 3px rgba(58, 215, 255, 0.9);
}

.brand--sign::after {
  top: 1px;
  left: 9px;
  right: 9px;
  z-index: 1;
  height: 34px;
  background:
    radial-gradient(35% 100% at var(--beam-x, 50%) 0%, rgba(170, 238, 255, 0.22), transparent 100%),
    linear-gradient(180deg, rgba(58, 215, 255, 0.42), rgba(58, 215, 255, 0.13) 40%, rgba(58, 215, 255, 0.03) 75%, transparent);
  border-radius: 14px 14px 40px 40px / 6px 6px 32px 32px;
  filter: blur(6px);
  clip-path: inset(0 -20px -20px -20px);
  mix-blend-mode: screen;
}

/* Beam modes: one is picked at random on each page load (site.js) */
.brand--sign[data-neon="flicker"]::after {
  animation: beamFlicker 9s linear infinite;
}

.brand--sign[data-neon="ignite"]::after {
  animation: beamIgnite 2.6s linear 1 both;
}

.brand--sign[data-neon="pulse"]::after {
  animation: beamPulse 5s ease-in-out infinite;
}

.brand--sign[data-neon="impulse"]::after {
  animation: beamImpulse 7s ease-out infinite;
}

.brand--sign[data-neon="wave"]::after {
  animation: beamWave 7s ease-in-out infinite;
}

@property --beam-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 50%;
}

@keyframes beamFlicker {
  0%, 70%, 100% { opacity: 1; }
  71% { opacity: 0.1; }
  72% { opacity: 1; }
  73% { opacity: 0.25; }
  74.5% { opacity: 0; }
  77% { opacity: 1; }
  88% { opacity: 1; }
  88.6% { opacity: 0.45; }
  89.2% { opacity: 1; }
}

@keyframes beamIgnite {
  0% { opacity: 0; }
  10% { opacity: 0.8; }
  13% { opacity: 0; }
  30% { opacity: 0; }
  34% { opacity: 1; }
  37% { opacity: 0.15; }
  45% { opacity: 0.9; }
  48% { opacity: 0.3; }
  60%, 100% { opacity: 1; }
}

@keyframes beamPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes beamImpulse {
  0% { opacity: 1; height: 44px; }
  10% { opacity: 0.55; height: 34px; }
  85%, 100% { opacity: 0.55; height: 34px; }
}

@keyframes beamWave {
  0%, 100% { --beam-x: 12%; }
  50% { --beam-x: 88%; }
}

@media (prefers-reduced-motion: reduce) {
  .brand--sign[data-neon]::after,
  .brand--sign img.is-out {
    animation: none;
  }
}

.brand--sign {
  background: url("../logo-word-off.png") center 10px / auto 66px no-repeat;
}

@property --lit {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

/* Letter burnout: site.js sets --ga/--gb to the letter's span; the top 69.4% is the IT-TECHNOLOGY row */
.brand--sign img {
  width: auto;
  height: 66px;
  max-width: none;
  object-fit: contain;
  transform: none;
  border-radius: 0;
  filter: none;
  mask-image:
    linear-gradient(90deg, #000 var(--ga, 0%), rgba(0, 0, 0, var(--lit)) calc(var(--ga, 0%) + 1%), rgba(0, 0, 0, var(--lit)) calc(var(--gb, 0%) - 1%), #000 var(--gb, 0%)),
    linear-gradient(#000, #000);
  mask-size: 100% 69.4%, 100% 30.6%;
  mask-position: 0 0, 0 100%;
  mask-repeat: no-repeat;
}

.brand--sign img.is-out {
  animation: letterOut 2.6s linear 1;
}

.brand--sign.brand--custom {
  background: none;
}

.brand--sign.brand--custom img,
.nav__logo.brand--custom img {
  mask-image: none;
  width: auto;
  max-width: 250px;
  height: 66px;
  object-fit: contain;
}

.nav__logo.brand--custom img {
  height: 44px;
  max-width: 168px;
}

@keyframes letterOut {
  0% { --lit: 1; }
  3% { --lit: 0.25; }
  5% { --lit: 1; }
  9% { --lit: 0.1; }
  12% { --lit: 0.8; }
  15%, 62% { --lit: 0; }
  65% { --lit: 0.6; }
  67% { --lit: 0.1; }
  72%, 100% { --lit: 1; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--nav);
  font-size: 0.95rem;
  transition: color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav__body > a:not(.nav__logo):not(.btn),
.nav__body > .head-phone--market > .head-phone__btn {
  position: relative;
  padding: 6px 0;
}

.nav a:hover {
  color: #fff;
}

.nav__body > a.is-active:not(.nav__logo):not(.btn),
.nav__body > .head-phone--market.is-active > .head-phone__btn,
.nav__body > .head-phone--market > .head-phone__btn.is-active {
  color: #fff;
  font-weight: 700;
}

.nav__body > a.is-active:not(.nav__logo):not(.btn)::after,
.nav__body > .head-phone--market.is-active > .head-phone__btn::after,
.nav__body > .head-phone--market > .head-phone__btn.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: #2e7dd2;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  border: 2px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn--primary:hover {
  background: #246bb8;
}

.btn--ghost {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

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

.btn--block {
  width: 100%;
}

/* Panels / cards */
.panel {
  background: var(--panel);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel__bar {
  background: var(--card-accent, var(--accent));
  color: #fff;
  padding: 14px 28px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel__body {
  padding: 28px 32px 32px;
}

.section {
  padding: 56px 0;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 16px;
  margin-bottom: 28px;
}

.section__head > .section__title {
  margin-right: auto;
}

.section__head > .dir-nav,
.section__head > .section__link {
  flex: none;
  align-self: center;
}

/* заголовок + лид — всегда колонкой (лид под заголовком, не справа) */
.section__head:has(> .section__lead) {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.section__head:has(> .section__lead) .section__lead {
  max-width: none;
  width: 100%;
}

.section__title {
  margin: 0;
  flex: none;
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  color: #fff;
  overflow-wrap: anywhere;
}

.section__lead {
  margin: 0;
  max-width: none;
  width: 100%;
  color: var(--nav);
  font-size: 1.05rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.section__link {
  color: var(--nav);
  font-weight: 600;
  flex: none;
}

.section__link:hover {
  color: #fff;
}

/* Hero */
.hero {
  padding: 36px 0 20px;
}

.hero__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: center;
  min-height: 300px;
}

.hero__content {
  padding: 8px 8px 8px 0;
}

.hero__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero__sub {
  margin: 0 0 28px;
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__deco {
  position: relative;
  min-height: 220px;
}

.hero__deco::before,
.hero__deco::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  right: 8%;
  top: 50%;
  translate: 0 -50%;
}

.hero__deco::before {
  width: 220px;
  height: 220px;
  border: 8px solid var(--card-accent, var(--accent));
}

.hero__deco::after {
  width: 140px;
  height: 140px;
  right: calc(8% + 40px);
  background: var(--card-accent, var(--accent));
}

/* Directions */
.dir-nav {
  display: flex;
  gap: 8px;
}

.dir-nav__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgb(58 215 255 / 35%);
  background: rgb(8 14 26 / 72%);
  color: #d7f6ff;
  cursor: pointer;
  box-shadow: 0 0 16px rgb(58 215 255 / 12%);
}

.dir-nav__btn:hover {
  border-color: rgb(58 215 255 / 70%);
  box-shadow: 0 0 18px rgb(58 215 255 / 28%);
}

.dir-nav__btn:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.dir-carousel {
  overflow: visible;
  padding: 8px 0 10px;
}

.dir-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 24px 12px 32px;
  scroll-padding-inline: 12px;
}

.dir-grid::-webkit-scrollbar {
  display: none;
}

.dir-card {
  flex: 0 0 calc((100% - 42px) / 4);
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: stretch;
  gap: 0;
  background: var(--panel);
  color: var(--text);
  border-radius: 20px;
  padding: 0 0 0 16px;
  height: 128px;
  min-height: 128px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.dir-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: var(--card-accent);
}

.dir-card:hover {
  transform: translateY(-3px);
}

.dir-card__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  position: relative;
  z-index: 1;
  padding: 16px 0 16px 4px;
}

.dir-card__badge {
  color: var(--card-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.dir-card__name {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.dir-card__note {
  margin: 6px 0 0;
  color: color-mix(in srgb, currentColor 62%, transparent);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
}

.dir-card__art {
  width: 120px;
  height: 128px;
  align-self: stretch;
  justify-self: end;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
}

/* Service cards */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.svc-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  background: var(--panel);
  color: var(--text);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.svc-card:hover {
  transform: translateY(-4px);
}

.svc-card__bar {
  background: var(--card-accent);
  color: #fff;
  padding: 12px 20px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.svc-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
  flex: 1;
}

.svc-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.svc-card__sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.svc-card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--card-accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
}

.term {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  background: var(--panel);
  color: var(--text);
  border-radius: 20px;
  padding: 22px;
}

.step__n {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}

.step__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.step__text {
  margin: 0;
  color: var(--muted);
}

/* Portfolio / stack */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.case-card {
  background: var(--panel);
  color: var(--text);
  border-radius: 22px;
  padding: 24px;
  border-left: 12px solid var(--card-accent, var(--accent));
}

.case-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.case-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.case-card strong {
  color: var(--text);
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack span {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #d7deeb;
  font-weight: 600;
  font-size: 0.92rem;
}

/* CTA band */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  border-radius: 24px;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 0;
  opacity: 0.9;
}

/* Who does the work */
.me {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(14px, 2.4vw, 24px);
  border-radius: 32px;
  overflow: hidden;
}

.me::before {
  content: none;
  display: none;
  position: absolute;
  inset: -40% -18%;
  z-index: -1;
  pointer-events: none;
  white-space: pre;
  font-family: Consolas, monospace;
  font-size: clamp(13px, 1.15vw, 18px);
  line-height: 2.1;
  letter-spacing: 0.14em;
  color: rgb(95 232 255 / 18%);
  text-shadow: 0 0 18px rgb(58 215 255 / 45%);
  background:
    radial-gradient(circle at 22% 28%, rgb(58 215 255 / 18%), transparent 34%),
    radial-gradient(circle at 78% 68%, rgb(92 255 190 / 12%), transparent 30%),
    repeating-linear-gradient(180deg, rgb(58 215 255 / 8%) 0 1px, transparent 1px 34px);
  opacity: 0.95;
  transform: rotate(-7deg);
  animation: me-code-drift 17s linear infinite;
}

.me::after {
  content: none;
  display: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgb(4 9 17 / 72%), transparent 28%, transparent 68%, rgb(4 9 17 / 64%)),
    radial-gradient(circle at 50% 50%, transparent 0 42%, rgb(58 215 255 / 7%) 68%, transparent 100%);
  border: 1px solid rgb(58 215 255 / 8%);
}

.me > * {
  position: relative;
  z-index: 1;
}

@keyframes me-code-drift {
  from {
    background-position: 0 0, 0 0, 0 0;
    transform: rotate(-7deg) translateY(-2%);
  }

  to {
    background-position: 0 0, 0 0, 0 240px;
    transform: rotate(-7deg) translateY(8%);
  }
}

.me__photo {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #05070d;
  border: 1px solid rgba(58, 215, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(58, 215, 255, 0.06), 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 48px rgba(58, 215, 255, 0.14);
}

.me__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.me__name {
  margin: 10px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.me__role {
  margin: 0 0 18px;
  color: #7fdcff;
  font-weight: 700;
}

.me__text {
  margin: 0 0 18px;
  max-width: 60ch;
  color: #b9c4d6;
  line-height: 1.6;
}

.me__facts {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.me__facts li {
  position: relative;
  padding-left: 22px;
}

.me__facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ad7ff;
  box-shadow: 0 0 8px rgba(58, 215, 255, 0.8);
}

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

  .me__photo {
    max-width: 340px;
  }
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  border: 0;
  border-radius: 14px;
  min-height: 42px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.filter-btn.is-active {
  background: var(--card-accent, var(--accent));
}

.filter-btn:hover {
  transform: translateY(-1px);
}

.svc-card.is-hidden,
.svc-grid .slide.is-hidden,
.svc-grid .shot.is-hidden {
  display: none;
}

.svc-carousel {
  position: relative;
  overflow: visible;
}

.svc-carousel__btn {
  position: absolute;
  top: 38%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgb(58 215 255 / 40%);
  background: rgb(8 14 26 / 78%);
  color: #d7f6ff;
  cursor: pointer;
  box-shadow: 0 0 18px rgb(58 215 255 / 16%);
  transform: translateY(-50%);
}

.svc-carousel__btn--prev {
  left: 0;
  transform: translate(-35%, -50%);
}

.svc-carousel__btn--next {
  right: 0;
  transform: translate(35%, -50%);
}

.svc-carousel__btn:hover {
  border-color: rgb(58 215 255 / 75%);
  box-shadow: 0 0 20px rgb(58 215 255 / 30%);
}

.svc-carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

/* Service detail */
.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.detail-hero .panel__body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: center;
}

.detail-hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-hero .hero__sub {
  margin-bottom: 20px;
}

.list-block h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.list-block + .list-block {
  margin-top: 28px;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  color: #2a3348;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--card-accent, var(--accent));
}

.form-card .panel__body {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--card-accent, var(--accent));
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-ok {
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  background: #e8f7ef;
  color: #1f7a4c;
  font-weight: 700;
}

.form-ok.is-visible {
  display: block;
}

/* About / contacts */
.prose {
  color: var(--text);
  font-size: 1.05rem;
}

.prose p {
  margin: 0 0 14px;
  color: var(--muted);
}

.partners__lead {
  margin: -8px 0 22px;
  max-width: 68ch;
  color: rgb(169, 182, 204);
  font-size: 1.05rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.cert {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  border-radius: 16px;
  overflow: visible;
  background: rgba(12, 18, 32, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.cert:hover {
  z-index: 3;
  transform: translateY(-6px);
  border-color: var(--card-accent, #2e7dd2);
  box-shadow:
    0 0 0 1px var(--card-accent, #2e7dd2),
    0 14px 36px color-mix(in srgb, var(--card-accent, #2e7dd2) 42%, transparent);
}

.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 16px 6px 8px;
  border-radius: 14px;
  border: 1px solid rgba(209, 10, 17, 0.55);
  background: rgba(209, 10, 17, 0.12);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(209, 10, 17, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.partner-link img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: none;
}

.partner-link:hover {
  transform: translateY(-2px);
  background: rgba(209, 10, 17, 0.22);
  box-shadow: 0 0 26px rgba(209, 10, 17, 0.45);
}

.tip {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.55);
  cursor: help;
}

.tip-bubble {
  position: fixed;
  z-index: 40;
  transform: translate(-50%, calc(-100% - 8px));
  padding: 6px 10px;
  border-radius: 10px;
  background: #101826;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}

.cert img {
  display: block;
  width: 100%;
  aspect-ratio: 1024 / 724;
  height: auto;
  object-fit: cover;
  object-position: center top;
  background: transparent;
  flex: none;
  border-radius: 15px 15px 0 0;
}

.cert__meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  flex: 1;
  min-height: 4.6em;
  padding: 12px 12px 14px;
  box-sizing: border-box;
}

.cert__meta strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.25;
}

.cert__meta small {
  display: block;
  margin-top: 0;
  color: rgb(169, 182, 204);
  font-size: 0.75rem;
  line-height: 1.35;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.contact-list a {
  color: var(--accent);
  font-weight: 700;
}

/* Footer */
.site-footer {
  width: min(var(--container), calc(100% - 48px));
  margin: 56px auto 28px;
  padding: 0;
  border-top: 0;
}

.site-footer .container {
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 32px 32px 26px;
  border: 1px solid rgb(58 215 255 / 24%);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at 8% 0%, rgb(58 215 255 / 16%), transparent 36%),
    linear-gradient(165deg, rgb(16 26 46), rgb(8 12 22) 70%);
  box-shadow: 0 0 42px rgb(58 215 255 / 8%);
}

.footer-grid > div:first-child h3 {
  margin: 0 0 12px;
  color: #f4fbff;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #7fdcff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer a,
.site-footer p {
  color: #b7c3d8;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-grid li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-grid li a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ad7ff;
  box-shadow: 0 0 8px #3ad7ff;
}

.footer-copy {
  margin: 0;
  padding: 16px 32px 18px;
  border: 1px solid rgb(58 215 255 / 24%);
  border-radius: 0 0 28px 28px;
  background: rgb(6 10 18 / 92%);
  color: #8ea0b8;
  font-size: 0.88rem;
}

.footer-copy p {
  margin: 0 0 10px;
  max-width: 78ch;
  line-height: 1.5;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-legal a {
  padding: 6px 12px;
  border: 1px solid rgb(58 215 255 / 28%);
  border-radius: 999px;
  color: #d7f6ff;
  text-decoration: none;
}

.footer-legal a:hover {
  border-color: #3ad7ff;
  box-shadow: 0 0 16px rgb(58 215 255 / 28%);
}

.consent {
  display: block;
  position: relative;
  margin: 4px 0 14px;
  padding-left: 28px;
  color: #b9c4d6;
  font-size: 0.92rem;
  line-height: 1.45;
}

.consent input {
  position: absolute;
  left: 0;
  top: 0.2em;
  margin: 0;
}

.consent a {
  color: #7fdcff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Page title strip */
.page-intro {
  padding: 36px 0 8px;
}

.page-intro h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
}

.page-intro p {
  margin: 0;
  color: var(--nav);
  font-size: 1.1rem;
}

.page-intro a:not(.page-intro__chip) {
  color: #7fdcff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: 600;
}

.page-intro a:not(.page-intro__chip):hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 980px) {
  .dir-card {
    flex-basis: calc((100% - 14px) / 2);
  }

  .dir-grid,
  .svc-grid,
  .case-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero__panel,
  .detail-layout,
  .detail-hero .panel__body,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero__deco {
    min-height: 160px;
  }

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

@media (max-width: 720px) {
  .dir-card {
    flex-basis: 100%;
  }

  .dir-card__name {
    font-size: 1.2rem;
  }

  /* заголовок + стрелки/«Все …» — одна строка (как на десктопе) */
  .section__head {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px 12px;
  }

  .section__head > .section__title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(1.45rem, 6.2vw, 1.85rem);
  }

  .section__head > .dir-nav {
    gap: 6px;
  }

  .section__head > .dir-nav .dir-nav__btn {
    width: 36px;
    height: 36px;
  }

  .section__head > .section__link {
    font-size: 0.92rem;
    white-space: nowrap;
  }

  /* лид по-прежнему под заголовком */
  .section__head:has(> .section__lead) {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section__head:has(> .section__lead) > .section__title {
    margin-right: 0;
  }

  .section__lead {
    max-width: none;
    width: 100%;
  }

  body::before {
    display: none;
  }

  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .site-footer {
    width: min(var(--container), calc(100% - 28px));
  }

  .footer-grid,
  .footer-copy {
    padding-right: 18px;
    padding-left: 18px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    position: fixed;
    inset: 72px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 18px;
    background: #182033;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a,
  .nav .btn {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding: 12px 14px;
  }

  .dir-grid,
  .svc-grid,
  .case-grid,
  .steps {
    grid-template-columns: 1fr;
  }

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

  .panel__body,
  .cta-band {
    padding: 22px;
  }
}
