/* ============================================================
   dopamine-interior.ru – страница «Услуги»
   ============================================================ */

/* ---------- Задачи ---------- */
.sv-tasks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: clamp(40px, 5vw, 72px); }
.sv-task {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 18px 16px; background: var(--card);
  transition: border-color .25s, transform .25s var(--ease);
}
.sv-task:hover { border-color: var(--ink); transform: translateY(-3px); }
.sv-task b { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.2; }
.sv-task span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.sv-task i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--accent); margin-top: auto; }

/* ---------- Услуга ---------- */
.sv-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(22px, 3.2vw, 56px); align-items: center; padding-block: clamp(34px, 4vw, 58px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.sv-item:nth-child(even) .sv-pic { order: 2; }
.sv-pic { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.sv-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ease); }
.sv-item:hover .sv-pic img { transform: scale(1.04); }
.sv-pic .num {
  position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(255,255,255,.92); color: var(--ink);
  border-radius: var(--pill); padding: 6px 14px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
}
.sv-body h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.5vw, 34px); line-height: 1.08; margin: 0 0 12px; }
.sv-body > p { color: var(--ink-2); font-size: 16.5px; line-height: 1.65; margin: 0 0 18px; max-width: 58ch; }
.sv-inc { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 9px; }
.sv-inc li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.sv-inc li::before { content: '✓'; color: var(--accent); font-weight: 700; line-height: 1.4; }
.sv-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.sv-meta div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 16px; background: var(--bg-2); }
.sv-meta span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.sv-meta b { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.sv-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sv-actions .btn-flat { white-space: nowrap; }

/* ---------- Пакеты и цены ---------- */
.sv-prices { background: var(--bg-2); padding-block: clamp(48px, 6vw, 84px); }
.sv-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.sv-table th, .sv-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 15.5px; vertical-align: top; }
.sv-table th { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--bg-2); }
.sv-table tr:last-child td { border-bottom: 0; }
.sv-table td:first-child { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.sv-table td.price { white-space: nowrap; font-weight: 700; color: var(--accent); }
.sv-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 70ch; }

/* ---------- Как работаем ---------- */
.sv-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.sv-step { border-top: 2px solid var(--ink); padding-top: 14px; }
.sv-step b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.sv-step span { font-size: 14px; color: var(--muted); line-height: 1.55; }
.sv-step em { display: block; font-style: normal; font-size: 12px; letter-spacing: .08em; color: var(--accent); font-weight: 700; margin-bottom: 8px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .sv-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-item { grid-template-columns: 1fr; }
  .sv-item:nth-child(even) .sv-pic { order: 0; }
  .sv-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sv-tasks { grid-template-columns: 1fr; }
  .sv-steps { grid-template-columns: 1fr; }
  .sv-table thead { display: none; }
  .sv-table, .sv-table tbody, .sv-table tr, .sv-table td { display: block; width: 100%; }
  .sv-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .sv-table td { border: 0; padding: 4px 18px; }
  .sv-table td::before { content: attr(data-l) ': '; color: var(--muted); font-size: 13px; }
  .sv-table td:first-child::before { content: ''; }
}

/* ============================================================
   Внутренняя страница одной услуги
   ============================================================ */
.svp-hero { border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; background: var(--bg-2); margin-bottom: clamp(28px, 3.4vw, 48px); }
.svp-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.svp-wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding-bottom: clamp(40px, 5vw, 72px); }
.svp-body > h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.1; margin: 38px 0 14px; }
.svp-body > h2:first-child { margin-top: 0; }
.svp-body p { color: var(--ink-2); font-size: 17px; line-height: 1.68; margin: 0 0 16px; }
.svp-lead p { font-size: 18.5px; color: var(--ink); }
.svp-who { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.svp-who li { position: relative; padding-left: 28px; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.svp-who li::before { content: ''; position: absolute; left: 6px; top: 11px; width: 10px; height: 2px; background: var(--accent); }
.svp-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 6px 0 8px; }
.svp-step { border-top: 2px solid var(--ink); padding-top: 13px; }
.svp-step em { display: block; font-style: normal; font-size: 12px; letter-spacing: .08em; color: var(--accent); font-weight: 700; margin-bottom: 7px; }
.svp-step b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16.5px; margin-bottom: 5px; }
.svp-step span { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* липкая колонка с ценой */
.svp-aside { position: sticky; top: calc(var(--header-h) + 18px); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--card); }
.svp-aside .svp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.svp-aside .svp-row:first-of-type { padding-top: 0; }
.svp-aside .svp-row span { font-size: 13.5px; color: var(--muted); }
.svp-aside .svp-row b { font-family: var(--font-display); font-weight: 600; font-size: 19px; text-align: right; }
.svp-aside .btn { width: 100%; justify-content: center; margin-top: 18px; }
.svp-aside .svp-phone { display: block; margin-top: 14px; text-align: center; font-size: 15px; color: var(--ink); text-decoration: none; }
.svp-aside .svp-phone:hover { color: var(--accent); }
.svp-aside .note { margin: 14px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* кейсы */
.svp-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.svp-case { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; background: var(--card); transition: border-color .25s, transform .25s var(--ease); }
.svp-case:hover { border-color: var(--ink); transform: translateY(-3px); }
.svp-case b { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.svp-case span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.svp-case i { font-style: normal; display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.svp-case i svg { width: 15px; height: 15px; }

/* другие услуги */
.svp-other { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.4vw, 20px); }
.svp-oth {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line); transition: transform .35s var(--ease), box-shadow .35s;
}
.svp-oth:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--ink), 0 18px 34px -22px rgba(23, 22, 26, .5); }
.svp-oth .pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.svp-oth .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.svp-oth:hover .pic img { transform: scale(1.06); }
.svp-oth .pic::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 58%;
  background: linear-gradient(to top, rgba(23, 22, 26, .55), rgba(23, 22, 26, 0));
  opacity: 0; transition: opacity .35s ease;
}
.svp-oth:hover .pic::after { opacity: 1; }
.svp-oth .num {
  position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(255, 255, 255, .92); color: var(--ink);
  border-radius: var(--pill); padding: 5px 11px; font-size: 11px; font-weight: 700; letter-spacing: .06em;
}
.svp-oth .txt { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svp-oth b { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.2; }
.svp-oth i {
  font-style: normal; display: inline-flex; align-items: center; gap: 7px; margin-top: auto;
  font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent);
}
.svp-oth i svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.svp-oth:hover i svg { transform: translateX(4px); }

@media (max-width: 1000px) {
  .svp-wrap { grid-template-columns: 1fr; }
  .svp-aside { position: static; }
  .svp-cases { grid-template-columns: 1fr; }
  .svp-other { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svp-hero { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .svp-steps { grid-template-columns: 1fr; }
  .svp-body p { font-size: 16.5px; }
}
