/* BOSFORUS prototype — service pages (T04): text on the left, sticky dark form on the right,
   sub-service grid, steps, "Other services". Shared pieces (tiles, forms, hero) live in base.css. */

.svc-index__lead { margin-bottom: 56px; max-width: 60ch; }

/* ---------- two columns ---------- */
.svc { padding-top: 72px; }
.svc__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: start; }
.svc__main, .svc__aside { min-width: 0; }
@media (min-width: 1024px) {
  .svc__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 72px; }
  .svc__aside {
    position: sticky; top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; overscroll-behavior: contain;
  }
}
@media (max-width: 767px) { .svc { padding-top: 48px; } .svc__grid { gap: 40px; } }

.svc__aside .form--dark { padding: 36px; }
@media (max-width: 767px) { .svc__aside .form--dark { padding: 28px 20px; } }

/* ---------- text blocks ---------- */
.svc-block { margin-top: 72px; }
.svc-block:first-child { margin-top: 0; }
.svc-block > :last-child { margin-bottom: 0; }
.svc-block--intro .lead { max-width: 46ch; margin-bottom: 1em; }
@media (max-width: 767px) { .svc-block { margin-top: 52px; } }
.svc__h { font-size: clamp(30px, 3.2vw, 42px); margin-bottom: .6em; }
.svc__cta { margin: 32px 0 0; }
.svc__cta .btn { min-width: 260px; }
@media (max-width: 767px) { .svc__cta .btn { width: 100%; min-width: 0; } }

.svc__figure { margin: 0 0 28px; background: var(--ice); }
.svc__figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* dash list; ordered variant numbers the steps in serif */
.svc-list { list-style: none; margin: 0 0 1.2em; max-width: 70ch; }
.svc-list li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--line); }
.svc-list li:last-child { border-bottom: 1px solid var(--line); }
.svc-list li::before { content: ""; position: absolute; left: 0; top: 1.5em; width: 18px; height: 1px; background: var(--navy); }
.svc-list--ordered { counter-reset: svc-step; }
.svc-list--ordered li { counter-increment: svc-step; padding-left: 48px; }
.svc-list--ordered li::before {
  content: counter(svc-step) "."; top: 10px; width: auto; height: auto; background: none;
  font: 500 30px/1.3 var(--serif);
}

/* sub-services grid */
.subs { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.sub { padding: 20px 0 22px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.sub__name { font: 500 26px/1.15 var(--serif); }
.sub__text { margin: 8px 0 0; font-size: 16px; color: var(--muted); }
.sub:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.subs > .sub:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 767px) {
  .subs { grid-template-columns: minmax(0, 1fr); }
  .sub:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .sub__name { font-size: 24px; }
}

/* steps (liferaft service) */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.step { display: flex; flex-direction: column; gap: 8px; padding: 18px 0 26px; border-top: 2px solid var(--sky); }
.step__n { font: 500 15px/1 var(--sans); letter-spacing: .12em; color: var(--muted); }
.step__t { font: 500 26px/1.15 var(--serif); overflow-wrap: anywhere; }
@media (max-width: 1279px) and (min-width: 1024px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { flex-direction: row; align-items: baseline; gap: 16px; padding: 14px 0; border-top-width: 1px; border-top-color: var(--line); }
  .step__n { flex: none; min-width: 2ch; }
  .step__t { font-size: 24px; }
}

/* ---------- Other services ---------- */
.svc-others .tile__title { font-size: 25px; }
.svc-others .tile__body { padding: 20px 22px 24px; }
.svc-others .tile__text { font-size: 16px; }
@media (max-width: 767px) { .svc-others .tile__title { font-size: 25px; } }
/* горизонтальный телефон и iPad mini (560-767): по две плитки в ряд, не на всю ширину (02.11) */
@media (min-width: 560px) and (max-width: 767px) {
  .svc-others .tiles { grid-template-columns: repeat(2, 1fr) !important; gap: 20px; }
  .svc-others .tile__title { font-size: 22px; }
  .svc-others .tile__body { padding: 16px 18px 20px; gap: 8px; }
  .svc-others .tile__text { font-size: 15px; }
}
/* низкий горизонтальный экран: фото площе, чтобы плитка помещалась на экране целиком */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1023px) {
  .svc-others .tile__media { aspect-ratio: 16 / 9; }
}

/* «Подбор экипажа»: на широком экране hero сильно режет фото по высоте, держим кадр у голов (капитан стоит выше всех) */
.page-hero__img[src*="crew-recruitment"] { object-position: 50% 30%; }
.page-hero__img[src*="liferaft-service-wide"] { object-position: 50% 35%; }  /* дорисованный кадр 21:9: каски и плот в кадре (16.11) */
