/* «Услуги»: all 15 directions in the about page style (tokens and hero come from about.css) */
.svc-hero { align-items: end; }
.svc-hero h1 { font-size: clamp(44px, 5.6vw, 96px); }
.svc-jump {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 18px;
  padding: clamp(16px, 1.8vw, 26px);
  border: 1px solid #ebe5f6;
  border-radius: 22px;
  background: #ffffffb8;
}
.svc-jump a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 36px;
  padding: 7px 6px;
  border-bottom: 1px solid #eee8f7;
  color: var(--ink);
  font-size: 15px;
  font-weight: 550;
  transition: color .18s ease;
}
.svc-jump a span { flex: none; width: 22px; color: var(--violet); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.svc-jump a:hover { color: var(--violet-deep); }

.svc-list { padding-block: clamp(36px, 4.5vw, 72px) clamp(56px, 7vw, 110px); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.4vw, 22px); }
.svc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #ebe5f6;
  border-radius: 24px;
  background: white;
  scroll-margin-top: 110px;
}
.svc-card:target { box-shadow: 0 0 0 3px #b99cea; }
.svc-art { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #ede6fb; }
.svc-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
/* kbth.ru pictures (transparent PNG) for services whose redesign picture would repeat: shown whole */
.svc-art img.svc-art-kbth { object-fit: contain; padding: 7% 14%; }
.svc-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: clamp(18px, 1.8vw, 28px); }
.svc-num { color: var(--violet); font-size: 13px; font-weight: 700; }
.about-page .svc-body h2 { font-size: clamp(22px, 1.9vw, 30px); letter-spacing: -.045em; }
.svc-body p { color: #4e4865; font-size: 15px; line-height: 1.55; }
.svc-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: auto; padding-top: 8px; }
.svc-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--violet-deep); font-size: 14px; font-weight: 600; }
.svc-links a span { display: inline-block; transition: transform .2s var(--ease-out); }
.svc-art { display: block; }
.svc-body h2 a { color: inherit; }
.svc-body h2 a:hover { color: var(--violet-deep); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .svc-card { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
  .svc-card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px #4d2d6c1f; }
  .svc-card:hover .svc-art img { transform: scale(1.04); }
  .svc-links a:hover span { transform: translateX(3px); }
}
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .svc-jump { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .svc-grid, .svc-jump { grid-template-columns: minmax(0, 1fr); }
  .svc-jump a { font-size: 14px; }
}

/* Article pages (service-<key>.html) */
.art-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding-top: clamp(118px, 10.5vw, 160px);
  padding-bottom: clamp(28px, 4vw, 56px);
  background: radial-gradient(ellipse at 85% 10%, #e3d6ff, transparent 55%), linear-gradient(180deg, #f1eefb, var(--paper));
}
.art-crumbs { margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.art-crumbs a { color: var(--violet-deep); font-weight: 550; }
.art-crumbs a:hover { text-decoration: underline; }
.art-hero h1 { margin-top: 14px; font-size: clamp(38px, 4.6vw, 76px); font-weight: 600; line-height: 1; letter-spacing: -.06em; text-wrap: balance; }
.art-hero h1, .about-page .art-section h2, .svc-body h2 { overflow-wrap: break-word; hyphens: auto; }
.art-hero-image { position: relative; margin: 0; overflow: hidden; aspect-ratio: 3 / 2; border-radius: clamp(18px, 2vw, 30px); background: #ede6fb; box-shadow: 0 30px 70px #4d2d6c26; }
.art-hero-image img { width: 100%; height: 100%; object-fit: cover; }

.art-layout {
  display: grid;
  grid-template-columns: minmax(250px, .34fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 3.5vw, 64px);
  padding-block: clamp(36px, 4.5vw, 72px) clamp(56px, 7vw, 110px);
}
/* Side columns (redesign/shell.mjs): left — contents + «Услуги по теме», right on wide screens — «discuss the
   project» card + the next item with its picture. Both are sticky; columns grow with the screen, so no empty bands. */
.art-rail { position: sticky; top: 28px; display: grid; gap: 14px; }
.art-toc { position: relative; overflow: hidden; padding: 20px; border: 1px solid #ebe5f6; border-radius: 20px; background: #ffffffb8; }
.art-toc p { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.art-toc ol { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: toc; }
.art-toc li { counter-increment: toc; }
.art-toc a { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); padding: 7px 0; border-top: 1px solid #f0eaf8; color: var(--ink); font-size: 14px; line-height: 1.35; transition: color .2s ease; }
.art-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--violet); font-size: 11px; font-weight: 700; padding-top: 2px; }
.art-toc a:hover { color: var(--violet-deep); }
.art-toc a.is-active { color: var(--violet-deep); font-weight: 600; }
.art-toc a.is-active::after { content: ""; position: absolute; left: -20px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--violet); }
.art-toc-progress { position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, #9a49ff, #6723ef); transform: scaleX(0); transform-origin: left; }

.art-aside-links { padding: 18px 20px 12px; border: 1px solid #ebe5f6; border-radius: 20px; background: #ffffffb8; }
.art-aside-links p { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.art-aside-links ul { display: grid; gap: 2px; margin: 10px 0 0; padding: 0; list-style: none; }
.art-mini { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 12px; padding: 6px 0; color: var(--ink); font-size: 14px; font-weight: 550; line-height: 1.3; transition: color .2s ease; }
.art-mini-img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #ede6fb; }
.art-mini-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.art-mini-img img[src*="/Content/"] { object-fit: contain; padding: 4px; }
.art-mini:hover { color: var(--violet-deep); }

.art-aside { display: none; gap: 14px; }
.art-cta { display: grid; justify-items: start; gap: 10px; padding: 22px; border-radius: 20px; color: white; background: radial-gradient(ellipse at 90% 0%, #6631a7 0%, #201b39 60%, #121222 100%); }
.art-cta-kicker { display: inline-flex; align-items: center; gap: 8px; color: #cdb8f5; font-size: 13px; font-weight: 550; }
.art-cta-kicker::before { content: ""; width: 7px; aspect-ratio: 1; border-radius: 50%; background: #a77bff; }
.art-cta-title { font-size: 21px; font-weight: 600; line-height: 1.2; letter-spacing: -.035em; }
.art-cta-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px; padding: 10px 18px; border-radius: 999px; color: var(--violet-deep); background: white; font-size: 14px; font-weight: 650; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.art-cta-btn span { display: inline-block; transition: transform .25s var(--ease-out); }
.art-cta-mail { color: #e6dcff; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.art-cta-mail:hover { color: white; }
.art-next { display: grid; gap: 8px; padding: 10px 10px 18px; border: 1px solid #ebe5f6; border-radius: 20px; background: #ffffffb8; color: var(--ink); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.art-next-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 14px; background: #ede6fb; }
.art-next-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.art-next-img img[src*="/Content/"] { object-fit: contain; padding: 8%; }
.art-next-kicker { padding: 6px 10px 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.art-next strong { padding: 0 10px; font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -.025em; }
.art-next-go { display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--violet-deep); font-size: 14px; font-weight: 600; }
.art-next-go span { display: inline-block; transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .art-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px #0000003d; }
  .art-cta-btn:hover span, .art-next:hover .art-next-go span { transform: translateX(4px); }
  .art-mini:hover .art-mini-img img, .art-next:hover .art-next-img img { transform: scale(1.05); }
  .art-next:hover { transform: translateY(-3px); box-shadow: 0 18px 40px #4d2d6c1f; }
}
@media (prefers-reduced-motion: no-preference) {
  .art-toc-progress { transition: transform .15s linear; }
}
/* Wide screens: three columns that share the width — contents and services | text | card and next item */
@media (min-width: 1500px) {
  .art-layout { grid-template-columns: minmax(270px, 1fr) minmax(0, 2.4fr) minmax(270px, 1fr); gap: clamp(32px, 2.4vw, 56px); }
  .art-aside { display: grid; position: sticky; top: 28px; }
  .about-page .art-section > p, .about-page .art-section p:not([class]) { max-width: 80ch; }
}
/* Short screens: the columns would not fit, so they scroll with the page */
@media (min-width: 1001px) and (max-height: 760px) {
  .art-rail, .art-aside { position: static; }
}

.art-body { min-width: 0; }
.art-section { padding-block: clamp(22px, 2.6vw, 38px); border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.art-section:first-child { padding-top: 0; border-top: 0; }
.about-page .art-section h2 { font-size: clamp(26px, 2.6vw, 40px); }
.art-section > p, .art-section p:not([class]) { max-width: 70ch; margin-top: 16px; color: #3f3956; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.65; }
.art-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.art-list li { position: relative; padding-left: 28px; color: #2f2944; font-size: 16px; line-height: 1.55; }
.art-list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; aspect-ratio: 1; border-radius: 3px; background: linear-gradient(140deg, #a77cff, #6522ea); transform: rotate(45deg); }

.art-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.art-steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 18px; border: 1px solid #ebe5f6; border-radius: 18px; background: white; }
.art-steps li > span { color: #c2adec; font-size: 28px; font-weight: 600; line-height: 1; letter-spacing: -.05em; }
.art-steps h3 { font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.art-steps p { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.45; }

.art-stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.art-stack li { padding: 7px 13px; border: 1px solid #e2d8f4; border-radius: 99px; background: white; color: #3a2f57; font-size: 14px; font-weight: 550; }

.art-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.art-case { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #ebe5f6; border-radius: 20px; background: white; }
.art-case-img { display: block; aspect-ratio: 1.7; overflow: hidden; background: #ede6fb; }
.art-case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.art-case-body { display: grid; gap: 4px; padding: 16px 18px 18px; }
.art-case-body small { color: var(--muted); font-size: 13px; }
.art-case-body strong { font-size: 20px; letter-spacing: -.03em; }
.art-case-body > span { color: #4e4865; font-size: 15px; line-height: 1.5; }

.art-faq { display: grid; gap: 10px; margin-top: 20px; }
.about-page .art-faq details, .about-page .art-faq details[open] { margin: 0; padding: 0; border: 1px solid #ebe5f6; border-radius: 16px; background: white; box-shadow: none; }
.about-page .art-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 20px; color: var(--ink); font-size: clamp(16px, 1.2vw, 18px); font-weight: 600; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.about-page .art-faq summary::-webkit-details-marker { display: none; }
.about-page .art-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; aspect-ratio: 1; border-radius: 50%; background: #efe6ff; color: var(--violet); font-size: 20px; font-weight: 400; transition: transform .2s var(--ease-out); }
.about-page .art-faq details[open] summary::after { transform: rotate(45deg); }
.about-page .art-faq details p { margin: 0; padding: 0 20px 18px; color: #4a4460; font-size: 16px; line-height: 1.6; }

.art-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.art-related-card { position: relative; display: grid; overflow: hidden; border: 1px solid #ebe5f6; border-radius: 18px; background: white; }
.art-related-img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #ede6fb; }
.art-related-img img { width: 100%; height: 100%; object-fit: cover; }
.art-related-card strong { padding: 12px 44px 14px 16px; font-size: 16px; line-height: 1.25; letter-spacing: -.02em; }
.art-related-card > span:last-child { position: absolute; right: 14px; bottom: 13px; color: var(--violet); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .art-case { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
  .art-case:hover, .art-related-card:hover { box-shadow: 0 18px 40px #4d2d6c1f; }
  .art-case:hover { transform: translateY(-3px); }
  .art-case:hover .art-case-img img { transform: scale(1.04); }
}
@media (max-width: 1000px) {
  .art-hero, .art-layout { grid-template-columns: minmax(0, 1fr); }
  .art-rail, .art-toc { position: static; }
  .art-aside, .art-aside-links { display: none; }
  .art-toc ol { columns: 2; column-gap: 20px; }
  .art-toc li { break-inside: avoid; }
}
@media (max-width: 420px) {
  .art-hero h1 { font-size: clamp(29px, 9.2vw, 38px); }
}
@media (max-width: 650px) {
  .art-hero { padding-top: 108px; }
  .art-steps, .art-cases { grid-template-columns: minmax(0, 1fr); }
  .art-related-grid { grid-template-columns: minmax(0, 1fr); }
  .art-toc ol { columns: 1; }
}
