/* Страницы видов доставки (/delivery/*.html) и блок сравнения на «Услугах».
   Токены и кнопки — из styles.css. Адаптив: 980 → 640 → 420. */

/* ---- верх страницы ---- */
.dl-hero { padding-block: var(--space-3) var(--space-3); border-bottom: 1px solid var(--color-line); }
.dl-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 var(--space-2); padding: 0; font-size: .88rem; color: var(--color-muted); }
.dl-crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--color-line-2); }
.dl-crumbs a { color: var(--color-link); text-decoration: none; }
.dl-crumbs a:hover { text-decoration: underline; }
.dl-hero__row { display: flex; gap: 22px; align-items: flex-start; }
.dl-hero__ico { flex: none; width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; background: var(--color-steel); color: var(--color-accent); }
.dl-hero__ico svg { width: 40px; height: 40px; }
.dl-hero__txt { min-width: 0; }
.dl-hero h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); line-height: 1.12; margin: 0 0 var(--space-1); letter-spacing: -.01em; overflow-wrap: anywhere; }
.dl-hero .hero__eyebrow { margin: 0 0 6px; font-family: var(--font-mono); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.dl-lead { margin: 0 0 var(--space-2); max-width: 62ch; font-size: 1.1rem; line-height: 1.55; color: var(--color-muted); }

/* ---- основная раскладка ---- */
.dl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; padding-block: var(--space-3) var(--space-3); align-items: start; }
.dl-article { min-width: 0; max-width: 780px; }
.dl-article section { margin-bottom: var(--space-3); scroll-margin-top: 90px; }
.dl-article h2 { font-size: clamp(1.3rem, 1.15rem + .8vw, 1.75rem); line-height: 1.2; margin: 0 0 14px; }
.dl-article h3 { font-size: 1.12rem; margin: 26px 0 10px; }
.dl-article h3 a { color: inherit; text-decoration: none; border-bottom: 2px solid var(--color-accent); }
.dl-article p { margin: 0 0 12px; line-height: 1.7; font-size: 1.02rem; }

.dl-limits { list-style: none; counter-reset: dl; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dl-limits li { counter-increment: dl; position: relative; padding: 14px 16px 14px 56px; border: 1px solid var(--color-line); border-radius: var(--radius-m); background: var(--color-surface); line-height: 1.6; }
.dl-limits li::before { content: counter(dl); position: absolute; left: 15px; top: 15px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--color-steel); color: var(--color-accent); border: 1px solid var(--color-steel-2); font: 600 .82rem var(--font-mono); }
.dl-limits strong { display: block; margin-bottom: 2px; }

.dl-why { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dl-why li { position: relative; padding: 14px 16px 14px 56px; border-radius: var(--radius-m); line-height: 1.6;
  background: color-mix(in srgb, var(--color-accent) 11%, var(--color-surface)); border: 1px solid color-mix(in srgb, var(--color-accent) 40%, var(--color-line)); }
.dl-why li::before { content: ""; position: absolute; left: 15px; top: 15px; width: 28px; height: 28px; border-radius: 50%; background: var(--color-accent);
  -webkit-mask: none; }
.dl-why li::after { content: ""; position: absolute; left: 25px; top: 21px; width: 7px; height: 13px; border: solid var(--color-accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.dl-why strong { display: block; margin-bottom: 2px; }

.dl-docs { margin: 0 0 12px; display: flex; flex-direction: column; gap: 10px; }
.dl-docs > div { padding: 12px 16px; border: 1px solid var(--color-line); border-left: 4px solid var(--color-accent); border-radius: var(--radius-m); background: var(--color-surface); }
.dl-docs dt { font-weight: 700; line-height: 1.35; }
.dl-docs dd { margin: 4px 0 0; color: var(--color-muted); line-height: 1.55; font-size: .95rem; }
.dl-more { font-weight: 600; color: var(--color-link); text-decoration: underline; text-underline-offset: 3px; }
.dl-more::after { content: " →"; }
.dl-more:hover { color: var(--color-link-hover); }

.dl-faq { display: flex; flex-direction: column; gap: 8px; }
.dl-faq details { border: 1px solid var(--color-line); border-radius: var(--radius-m); background: var(--color-surface); }
.dl-faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 600; line-height: 1.4; position: relative; }
.dl-faq summary::-webkit-details-marker { display: none; }
.dl-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 500 1.4rem var(--font-mono); color: var(--color-accent); }
.dl-faq details[open] summary::after { content: "–"; }
.dl-faq details p { margin: 0; padding: 0 16px 16px; color: var(--color-muted); }
.dl-faq summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: var(--radius-m); }

/* ---- боковая колонка ---- */
.dl-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dl-aside__t { margin: 0 0 10px; font: 600 .78rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.dl-facts { background: var(--color-steel); color: #fff; border: 1px solid var(--color-steel-2); border-radius: var(--radius-l); padding: 22px; }
.dl-facts .dl-aside__t { color: var(--color-accent); }
.dl-facts dl { margin: 0 0 16px; }
.dl-facts dl > div { padding: 10px 0; border-top: 1px solid var(--color-steel-2); }
.dl-facts dt { font-size: .76rem; color: #9FB0B9; text-transform: uppercase; letter-spacing: .05em; }
.dl-facts dd { margin: 3px 0 0; font-weight: 600; line-height: 1.4; }
.dl-facts .btn { width: 100%; justify-content: center; text-align: center; }
.dl-toc ul { list-style: none; margin: 0; padding: 0; }
.dl-toc li { border-top: 1px solid var(--color-steel-2); }
.dl-toc a { display: block; padding: 9px 0; color: #fff; text-decoration: none; font-size: .95rem; }
.dl-toc a:hover { color: var(--color-accent); }
.dl-others { border: 1px solid var(--color-line); border-radius: var(--radius-l); background: var(--color-surface); padding: 18px 18px 8px; }
.dl-others .dl-aside__t { color: var(--color-muted); }
.dl-others ul { list-style: none; margin: 0; padding: 0; }
.dl-others li { border-top: 1px solid var(--color-line); }
.dl-others a { display: flex; align-items: center; gap: 12px; padding: 11px 0; color: var(--color-ink); text-decoration: none; }
.dl-others a:hover .dl-o__t b { color: var(--color-link-hover); text-decoration: underline; }
.dl-others a > svg { width: 20px; height: 20px; flex: none; color: var(--color-muted); }
.dl-mini { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--color-steel) 9%, var(--color-surface)); color: var(--color-steel); }
.dl-mini svg { width: 21px; height: 21px; }
:root[data-theme="dark"] .dl-mini { color: var(--color-link); background: color-mix(in srgb, var(--color-link) 14%, var(--color-surface)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dl-mini { color: var(--color-link); background: color-mix(in srgb, var(--color-link) 14%, var(--color-surface)); } }
.dl-o__t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.dl-o__t b { font-weight: 600; font-size: .95rem; }
.dl-o__t small { color: var(--color-muted); font: 500 .76rem var(--font-mono); }

/* ---- сравнительная таблица ---- */
.dl-cmp { padding-block: var(--space-3) var(--space-3); }
.dl-cmp h2 { font-size: clamp(1.3rem, 1.15rem + .8vw, 1.75rem); line-height: 1.2; margin: 0 0 8px; }
.dl-cmp__p { margin: 0 0 18px; color: var(--color-muted); max-width: 70ch; line-height: 1.6; }
.dl-cmp--svc .container { padding-block: 8px 8px; }
.dl-cmp__more { margin: 14px 0 0; }
.dl-tablewrap { border: 1px solid var(--color-line); border-radius: var(--radius-l); overflow: hidden; background: var(--color-surface); }
.dl-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.dl-table th { background: var(--color-steel); color: #fff; text-align: left; padding: 12px 14px; font: 600 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }
.dl-table td { padding: 14px; border-top: 1px solid var(--color-line); vertical-align: top; line-height: 1.5; }
.dl-table td:first-child { font-weight: 700; white-space: nowrap; }
.dl-table td:first-child a { color: var(--color-link); text-underline-offset: 3px; }
.dl-table tr.is-current td { background: color-mix(in srgb, var(--color-accent) 15%, var(--color-surface)); }
.dl-table tr.is-current td:first-child { box-shadow: inset 4px 0 0 var(--color-accent); }

/* ---- призыв к действию ---- */
.dl-ctawrap .container { padding-block: 8px 72px; }
.dl-cta { background: var(--color-steel); border: 1px solid var(--color-steel-2); border-radius: var(--radius-l); padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.dl-cta__t { flex: 1 1 360px; max-width: 640px; }
.dl-cta h2 { margin: 0 0 10px; color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.2; }
.dl-cta p { margin: 0; color: #C9D3D8; }
.dl-cta__b { display: flex; gap: 12px; flex-wrap: wrap; }
.dl-ob { border-color: #5B7380; color: #fff; background: transparent; }
.dl-ob:hover { border-color: #fff; }

/* ---- планшет / телефон ---- */
@media (max-width: 980px) {
  .dl-layout { display: flex; flex-direction: column; gap: 22px; }
  .dl-aside { display: contents; }
  .dl-facts { order: -1; }
  .dl-others { order: 2; width: 100%; box-sizing: border-box; }
  .dl-article { order: 1; }
  .dl-cmp { padding-block: var(--space-2) var(--space-3); }
}
@media (max-width: 860px) {
  .dl-table thead { display: none; }
  .dl-table, .dl-table tbody, .dl-table tr, .dl-table td { display: block; }
  .dl-table tr { padding: 10px 0; border-top: 1px solid var(--color-line); }
  .dl-table tr:first-child { border-top: 0; }
  .dl-table td { border: 0; padding: 6px 16px; }
  .dl-table td::before { content: attr(data-l); display: block; font: 600 .68rem var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--color-muted); margin-bottom: 1px; }
  .dl-table td:first-child { font-size: 1.08rem; white-space: normal; }
  .dl-table td:first-child::before { display: none; }
  .dl-table tr.is-current td:first-child { box-shadow: none; }
  .dl-table tr.is-current { box-shadow: inset 4px 0 0 var(--color-accent); }
}
@media (max-width: 640px) {
  .dl-hero__row { flex-direction: column; gap: 14px; }
  .dl-hero__ico { width: 56px; height: 56px; border-radius: 15px; }
  .dl-hero__ico svg { width: 32px; height: 32px; }
  .dl-lead { font-size: 1.02rem; }
  .dl-hero .hero__actions .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .dl-limits li, .dl-why li { padding: 12px 12px 12px 48px; }
  .dl-limits li::before { left: 11px; top: 13px; width: 26px; height: 26px; }
  .dl-why li::before { left: 11px; top: 13px; width: 26px; height: 26px; }
  .dl-why li::after { left: 20.5px; top: 19px; }
  .dl-cta { padding: 24px; }
  .dl-cta__b .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .dl-facts { padding: 18px; }
}

/* ---- главная: виды доставки и FAQ ---- */
.home-modes__p { margin: 0 0 18px; color: var(--color-muted); max-width: 70ch; line-height: 1.6; }
.home-modes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.home-mode { display: flex; align-items: center; gap: 12px; height: 100%; box-sizing: border-box; padding: 14px; border: 1px solid var(--color-line); border-radius: var(--radius-m);
  background: var(--color-surface); color: var(--color-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.home-mode:hover { border-color: var(--color-line-2); box-shadow: 0 6px 18px rgba(28,35,32,.07); }
.home-mode__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.home-mode__t b { font-size: .95rem; overflow-wrap: anywhere; }
.home-mode__t small { color: var(--color-muted); font: 500 .76rem var(--font-mono); }
.home-faq .dl-faq { max-width: 860px; }
.home-faq h2 { margin-bottom: 16px; }
@media (max-width: 1100px) { .home-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .home-modes { grid-template-columns: 1fr 1fr; } .home-mode { padding: 12px; gap: 10px; } }
@media (max-width: 420px) { .home-modes { grid-template-columns: 1fr; } }

/* ---- карта сайта ---- */
.sm-wrap { padding-block: var(--space-3) var(--space-4); }
.sm-wrap section { margin-bottom: var(--space-3); }
.sm-wrap h2 { font-size: clamp(1.2rem, 1.1rem + .6vw, 1.5rem); margin: 0 0 12px; }
.sm-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sm-list a { display: flex; align-items: center; gap: 12px; height: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--color-line); border-radius: var(--radius-m);
  background: var(--color-surface); color: var(--color-ink); text-decoration: none; }
.sm-list a:hover { border-color: var(--color-line-2); box-shadow: 0 6px 18px rgba(28,35,32,.07); }
.sm-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.sm-t b { font-size: .98rem; }
.sm-t small { color: var(--color-muted); font-size: .84rem; margin-top: 2px; }
@media (max-width: 640px) { .sm-list { grid-template-columns: 1fr; } }
