/* Локальные правки поверх перенесённых стилей (Laravel-версия devtechsg.ru) */

/* Воздух под CTA портфолио: отменён вместе с продлением фона (22.10.2026) */

/* Кнопка «наверх» (общая для всех страниц) */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(201, 243, 31, 0.35);
  background: #101012;
  color: #c9f31d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.25s ease;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  background: #c9f31d;
  color: #101012;
}
@media (max-width: 768px) {
  .to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

/* ===== Страница услуги «Разработка сайтов» (/services/razrabotka-saitov/) ===== */

/* Адаптивность картинок страницы */
.svc-hero--sz .svc-hero-art,
.svc-cta-banner > img {
  max-width: 100%;
}

/* Хлебные крошки под шапкой */
.sz-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  color: #667085;
}
.sz-crumbs a {
  color: #667085;
  text-decoration: none;
}
.sz-crumbs a:hover {
  color: #101012;
}
.sz-crumbs span {
  color: #98a2b3;
}
.sz-crumbs b {
  font-weight: 600;
  color: #101012;
}

/* Хиро: арт с зайцем прижат вправо */
.svc-hero--sz .svc-hero-art {
  object-position: right center;
}

/* Плюсы: 5 иконок в ряд */
.sz-feats {
  padding: 28px 0 8px;
}
.sz-feats ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sz-feats li {
  padding: 18px 16px;
  border: 1px solid rgba(16, 24, 40, 0.07);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}
.sz-feat-ico {
  display: inline-flex;
  color: var(--svc-pink, #e91e9c);
  margin-bottom: 10px;
}
.sz-feats b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}
.sz-feats p {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #667085;
}

/* Почему мы: текст + статистика */
.sz-why {
  padding: 36px 0 8px;
}
.sz-why-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}
.sz-why-copy h2 {
  margin: 8px 0 12px;
  font-family: var(--font-unbounded), Unbounded, sans-serif;
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.sz-why-copy h2 em {
  font-style: normal;
  color: var(--svc-pink, #e91e9c);
}
.sz-why-copy > p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: #344054;
}
.sz-why-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sz-why-stats li {
  padding: 18px 16px;
  border: 1px solid rgba(16, 24, 40, 0.07);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}
.sz-why-stats strong {
  display: block;
  font-family: var(--font-unbounded), Unbounded, sans-serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--svc-pink, #e91e9c);
}
.sz-why-stats span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #667085;
}

/* Этапы: 5 в ряд (переопределяем список услуг) */
.sz-steps ol {
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

/* Технологии */
.sz-tech {
  padding: 4px 0 48px;
}
.sz-tech ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.sz-tech li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: #101012;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.05);
}
.sz-tech li span {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--svc-pink, #e91e9c);
}

@media (max-width: 1100px) {
  .sz-feats ul {
    grid-template-columns: repeat(3, 1fr);
  }
  .sz-steps ol {
    grid-template-columns: repeat(3, 1fr);
  }
  .sz-why-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .sz-feats ul {
    grid-template-columns: repeat(2, 1fr);
  }
  .sz-steps ol {
    grid-template-columns: 1fr;
  }
  .sz-why-stats {
    grid-template-columns: 1fr;
  }
  .sz-why {
    padding-top: 24px;
  }
}

/* Карточка-ссылка услуги: стрелка ведёт на страницу услуги */
a.svc-card-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Этапы на странице услуги — видны на всех разрешениях */
.sz-steps {
  display: block;
  padding: 36px 0 8px;
}
/* Хиро услуги: арт прижат вправо, чтобы не перекрывать текст (десктоп) */
@media (min-width: 1101px) {
  .svc-hero--sz .svc-hero-art {
    left: auto;
    right: 0;
    width: 58%;
    object-position: right center;
  }
}

/* Этапы услуги: явный grid (базовый grid был только в media-правиле) */
.sz-steps ol {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

/* CTA-баннер: не обрезать контент (было height:300px vs контент 314px) */
.svc-cta-banner {
  height: auto;
  min-height: 300px;
  max-height: none;
}

/* CTA услуги: арт шире баннера и прижат вправо — корона уходит за левый край */
.sz-banner > img {
  width: 135%;
  left: auto;
  right: 0;
  object-position: right center;
}

/* Этапы услуги: колонки поверх unscoped-правила (важно: этот блок — последний) */
@media (max-width: 1100px) {
  .sz-steps ol {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 720px) {
  .sz-steps ol {
    grid-template-columns: 1fr !important;
  }
}

/* CTA услуги: тёмная вуаль слева — текст читается поверх белых фрагментов арта */
.sz-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(7, 8, 13, 0.92), rgba(7, 8, 13, 0.65) 55%, rgba(7, 8, 13, 0) 85%);
  pointer-events: none;
}

/* Портфолио: фон CTA НЕ продолжается до футера (решение владельца 22.10.2026) —
   карточка и кролик возвращены внутрь секции (базовые bottom:15%, высоты 73%/48%) */
.portfolio-cta {
  overflow: hidden;
}
.portfolio-cta:before {
  bottom: 15%;
}
.portfolio-cta-rabbit {
  bottom: 15%;
  height: 73%;
}
@media (max-width: 768px) {
  .portfolio-cta-rabbit {
    height: 48%;
  }
}

/* Согласие на обработку ПДн в форме заявки */
.lead-consent{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:1.45;color:#6b7480;margin:6px 0 12px}
.lead-consent input{margin:2px 0 0;flex:0 0 auto;accent-color:#14181d}
.lead-consent a{color:inherit;text-decoration:underline}

/* Cookie-баннер */
.cookie-banner{position:fixed;left:16px;right:16px;bottom:16px;z-index:9999;max-width:680px;margin:0 auto;background:#14181d;color:#f5f7f9;border-radius:14px;padding:14px 16px;display:flex;gap:14px;align-items:center;font:14px/1.5 system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;box-shadow:0 10px 34px rgba(10,14,18,.28)}
.cookie-banner[hidden]{display:none}
.cookie-banner p{margin:0;flex:1}
.cookie-banner a{color:#fff;text-decoration:underline}
.cookie-banner button{flex:0 0 auto;background:#fff;color:#14181d;border:0;border-radius:10px;padding:9px 18px;font-weight:600;font-size:14px;cursor:pointer}
@media(max-width:560px){.cookie-banner{flex-direction:column;align-items:stretch;text-align:center}}

/* CTA-баннер: <picture> с артом — фоном под текстом. Базовое правило .svc-cta-banner>img
   цепляет только прямой <img>, поэтому арт в <picture> вставал отдельной строкой над текстом. */
.svc-cta-banner > picture {
  position: absolute;
  inset: 0;
  display: block;
}
.svc-cta-banner > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none !important;
  object-fit: cover;
  object-position: right center;
}

/* CTA услуги на мобильном: текст на всю ширину — горизонтальной вуали мало,
   нужна равномерно более тёмная вуаль, иначе текст сливается с ярким артом */
@media (max-width: 768px) {
  .sz-banner::after {
    background: rgba(7, 8, 13, 0.72);
  }
}

/* Контакты: тот же баг — арт в <picture>, а базовое .contacts-cta>img цепляет только прямой <img>;
   копия уходила ниже и обрезалась overflow:hidden (текста «не было» в футерной плашке) */
.contacts-cta > picture {
  position: absolute;
  inset: 0;
  display: block;
}
.contacts-cta > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none !important;
  object-fit: cover;
}

/* Контакты на мобильном: светлая равномерная вуаль — тёмный текст читается поверх арта */
@media (max-width: 768px) {
  .contacts-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(240, 242, 247, 0.66);
    pointer-events: none;
  }
}
