.services-page { background: var(--bg); }
.services-page em { color: var(--accent); font-style: normal; }
body.admin-bar .header { top: 32px; }

.services-hero {
  position: relative;
  overflow: hidden;
  padding: 138px 0 88px;
  background:
    radial-gradient(circle at 8% 20%, rgba(59,130,246,.10), transparent 33%),
    linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}
.services-hero__glow { position: absolute; border-radius: 999px; filter: blur(2px); pointer-events: none; }
.services-hero__glow--one { width: 420px; height: 420px; right: -160px; top: 20px; background: rgba(29,78,216,.07); }
.services-hero__glow--two { width: 260px; height: 260px; left: -120px; bottom: -80px; background: rgba(59,130,246,.08); }
.services-hero__inner {
  position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); gap: 82px; align-items: center;
}
.services-hero__breadcrumb { display: flex; gap: 9px; align-items: center; margin-bottom: 26px; color: var(--muted); font-size: 13px; font-weight: 600; }
.services-hero__breadcrumb a { color: var(--accent); text-decoration: none; }
.services-hero__eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.4px; }
.services-hero__eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 5px rgba(34,197,94,.12); }
.services-hero__title { max-width: 750px; margin: 0; color: var(--navy); font-size: clamp(44px,5vw,68px); line-height: .99; letter-spacing: -3.3px; font-weight: 900; }
.services-hero__lead { max-width: 700px; margin-top: 24px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.services-hero__directions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.services-hero__directions a { color: var(--navy); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 9px 13px; font-size: 12.5px; font-weight: 700; text-decoration: none; transition: border-color .18s, color .18s, transform .18s; }
.services-hero__directions a:hover { color: var(--accent); border-color: #93c5fd; transform: translateY(-1px); }
.services-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.services-btn { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 13px; padding: 13px 20px; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .18s, background .18s, border-color .18s; }
.services-btn:hover { transform: translateY(-2px); }
.services-btn--primary { border: 1px solid var(--accent); background: var(--accent); color: #fff; box-shadow: 0 12px 30px rgba(29,78,216,.20); }
.services-btn--primary:hover { background: #1e40af; }
.services-btn--secondary { border: 1.5px solid var(--border); background: #fff; color: var(--navy); }
.services-btn--secondary:hover { border-color: #93c5fd; color: var(--accent); }

.services-hero__visual { position: relative; max-width: 390px; justify-self: end; width: 100%; }
.services-hero__photo-card { position: relative; border: 1px solid rgba(226,232,240,.9); border-radius: 28px; overflow: hidden; background: #eaf0f9; box-shadow: 0 28px 80px rgba(10,22,40,.15); }
.services-hero__photo-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,22,40,.38)); pointer-events: none; }
.services-hero__photo-card > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; }
.services-hero__photo-caption { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 11px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.3); border-radius: 15px; background: rgba(255,255,255,.93); backdrop-filter: blur(14px); }
.services-hero__status-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 5px rgba(34,197,94,.15); }
.services-hero__photo-caption strong, .services-hero__photo-caption small { display: block; }
.services-hero__photo-caption strong { color: var(--navy); font-size: 14px; }
.services-hero__photo-caption small { color: var(--muted); font-size: 11px; }
.services-hero__badge { position: absolute; z-index: 3; min-width: 116px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: 0 16px 36px rgba(10,22,40,.13); backdrop-filter: blur(12px); }
.services-hero__badge strong, .services-hero__badge span { display: block; }
.services-hero__badge strong { color: var(--accent); font-size: 23px; line-height: 1.1; }
.services-hero__badge span { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 700; }
.services-hero__badge--top { right: -34px; top: 54px; }
.services-hero__badge--bottom { left: -42px; bottom: 84px; }

.service-section { scroll-margin-top: 125px; padding: 90px 0 96px; }
.service-section--soft { background: var(--soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.service-section__inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.service-section__head { margin-bottom: 38px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.service-section__head > div { max-width: 790px; }
.service-section__eyebrow { margin-bottom: 10px; color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; }
.service-section__head h2 { color: var(--navy); font-size: clamp(32px,4vw,48px); line-height: 1.06; letter-spacing: -2px; font-weight: 900; }
.service-section__head h2 + p { margin-top: 16px; color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.service-section__future-link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); border-bottom: 1px dashed #94a3b8; padding-bottom: 3px; font-size: 13px; font-weight: 700; cursor: default; }
.service-section__future-link span { color: var(--accent); background: #eff6ff; border-radius: 999px; padding: 2px 7px; font-size: 9px; text-transform: uppercase; letter-spacing: .5px; }

.service-cards { display: grid; align-items: stretch; gap: 20px; }
.service-cards--three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.service-cards--two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.service-card { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 27px; overflow: hidden; border: 1.5px solid var(--border); border-radius: 22px; background: #fff; box-shadow: 0 10px 36px rgba(15,23,42,.055); transition: transform .2s, border-color .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-4px); border-color: #bfdbfe; box-shadow: 0 22px 46px rgba(15,23,42,.10); }
.service-card--featured { border-color: #93c5fd; box-shadow: 0 18px 48px rgba(29,78,216,.10); }
.service-card--accent { color: #fff; border-color: #1d4ed8; background: linear-gradient(155deg,#0a1628 0%,#142f5d 100%); }
.service-card h3 { margin: 0 0 12px; color: var(--navy); font-size: 22px; line-height: 1.18; letter-spacing: -.55px; }
.service-card--accent h3 { color: #fff; }
.service-card__intro { margin: 0 0 19px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.service-card--accent .service-card__intro { color: #cbd5e1; }
.service-card__features { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; }
.service-card__features li { position: relative; padding-left: 22px; color: #334155; font-size: 12.5px; line-height: 1.52; }
.service-card__features li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 900; }
.service-card--accent .service-card__features li { color: #e2e8f0; }
.service-card--accent .service-card__features li::before { color: #60a5fa; }
.service-card__notice { margin: -2px 0 22px; padding: 11px 12px; color: #92400e; border: 1px solid #fde68a; border-radius: 10px; background: #fffbeb; font-size: 10.5px; line-height: 1.45; }
.service-card__footer { margin-top: auto; padding-top: 21px; border-top: 1px solid var(--border); }
.service-card--accent .service-card__footer { border-top-color: rgba(255,255,255,.15); }
.service-card__price-label { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.service-card--accent .service-card__price-label { color: #94a3b8; }
.service-card__price { margin: 3px 0 0; color: var(--navy); font-size: 27px; line-height: 1.15; font-weight: 900; letter-spacing: -.8px; }
.service-card--accent .service-card__price { color: #fff; }
.service-card__price--text { max-width: none; font-size: 22px; line-height: 1.2; letter-spacing: -.45px; }
.service-card__price-note { min-height: 22px; margin: 5px 0 14px; color: var(--muted); font-size: 11px; }
.service-card--accent .service-card__price-note { color: #94a3b8; }
.service-card__primary, .service-card__secondary { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 11px; padding: 11px 14px; font: inherit; font-size: 12.5px; font-weight: 800; text-align: center; }
.service-card__primary { border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; transition: background .18s, transform .18s; }
.service-card__primary:hover { background: #1e40af; transform: translateY(-1px); }
.service-card--accent .service-card__primary { border-color: #fff; background: #fff; color: var(--navy); }
.service-card--accent .service-card__primary:hover { background: #eff6ff; }
.service-card__secondary { margin-top: 8px; border: 1px solid var(--border); color: var(--muted); background: var(--soft); cursor: default; }
.service-card--accent .service-card__secondary { color: #cbd5e1; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.07); }
.service-card__columns { display: grid; grid-template-columns: 1fr; gap: 20px; }
.service-card--wide { padding: 30px; }
.service-card--wide .service-card__features { grid-template-columns: repeat(2,minmax(0,1fr)); }
.service-card__crm-logo {
  width: 100%; height: 132px; margin: 0 0 25px; padding: 18px 28px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 1px solid #dbeafe; border-radius: 17px;
  background: linear-gradient(135deg,#f8fbff 0%,#eff6ff 100%);
}
.service-card__crm-logo img { display: block; width: auto; height: auto; max-width: 82%; max-height: 90px; object-fit: contain; }
.service-card__crm-logo--amo { border-color: #d8eef9; background: linear-gradient(135deg,#fff 0%,#f2fbff 100%); }
.service-card__crm-logo--amo img { width: 310px; max-width: 90%; max-height: 94px; }
.service-card__crm-logo--bitrix img { width: 320px; max-width: 90%; max-height: 64px; }

@media (max-width: 1080px) {
  .services-hero__inner { gap: 52px; }
  .service-cards--three { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-cards--three .service-card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 10px); width: 100%; justify-self: center; }
  .service-cards--two { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .services-hero { padding: 118px 0 68px; }
  .services-hero__inner { padding: 0 24px; grid-template-columns: 1fr; gap: 46px; }
  .services-hero__title { font-size: clamp(42px,11vw,58px); }
  .services-hero__visual { justify-self: center; max-width: 360px; }
  .service-section__inner { padding-left: 24px; padding-right: 24px; }
  .service-section { padding: 70px 0 76px; }
  .service-section__head { align-items: flex-start; flex-direction: column; gap: 18px; }
  .service-section__head h2 { letter-spacing: -1.5px; }
  .service-card--wide .service-card__features { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
  body.admin-bar .header { top: 46px; }
}

@media (max-width: 640px) {
  .services-hero { padding-top: 106px; }
  .services-hero__inner { padding: 0 18px; }
  .services-hero__breadcrumb { margin-bottom: 20px; }
  .services-hero__title { font-size: 40px; letter-spacing: -2.1px; }
  .services-hero__lead { font-size: 15px; line-height: 1.68; }
  .services-hero__actions, .services-btn { width: 100%; }
  .services-hero__directions { gap: 7px; }
  .services-hero__directions a { padding: 8px 10px; font-size: 11.5px; }
  .services-hero__badge--top { right: -9px; top: 35px; }
  .services-hero__badge--bottom { left: -8px; bottom: 78px; }
  .service-section { scroll-margin-top: 114px; padding: 58px 0 62px; }
  .service-section__inner { padding: 0 16px; }
  .service-section__head { margin-bottom: 26px; }
  .service-section__head h2 { font-size: 34px; }
  .service-section__head h2 + p { font-size: 14px; }
  .service-cards--three, .service-cards--two { grid-template-columns: 1fr; }
  .service-cards--three .service-card:last-child:nth-child(odd) { grid-column: auto; max-width: none; }
  .service-card, .service-card--wide { padding: 22px; border-radius: 18px; }
  .service-card h3 { font-size: 21px; }
  .service-card__crm-logo { height: 108px; padding: 16px 20px; }
  .service-card__crm-logo--amo img, .service-card__crm-logo--bitrix img { max-width: 88%; }
}

@media (prefers-reduced-motion: reduce) {
  .services-page *, .services-page *::before, .services-page *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
