/* rvd174.ru — страницы услуг: «Ремонт РВД» (/uslugi/remont-rvd/) и «Изготовление РВД» (/uslugi/izgotovlenie-rvd/).
   Вёрстка с нуля (06.11.2026) по замерам старого сайта (computed-стили и скриншоты, 1440 и 390 px).
   Отличия от старого: на телефоне «Гидрокомплект Сервис» мельче заголовка (было 44 px при H1 26 px), таблица в тексте
   не раздвигает страницу (листается сама), фотолента производства видна и на телефоне, у всех фото одинаковое скругление,
   у списков один маркер (на старом — точка браузера и красные точки сразу). */
@layer components {
  .svc-page { --svc-gap: clamp(20px, 3.9vw, 56px); --svc-space: clamp(50px, 10.4vw, 150px); --svc-radius: clamp(24px, 5.6vw, 80px); }
  .svc-page > .crumbs, .svc-page > .wrap > .crumbs { margin: 20px 0 clamp(24px, 4vw, 50px); }
  .svc-accent { color: var(--c-red); }

  /* заголовок блока (60/600 на компьютере) и подпись-«пилюля» над блоком */
  .svc-h2 { font-size: clamp(26px, 4.2vw, 60px); font-weight: 600; line-height: 1; overflow-wrap: break-word; }
  .svc-label {
    display: inline-block; margin-bottom: clamp(24px, 4.9vw, 70px); padding: 10px 20px; border: 1px solid var(--c-text); border-radius: 30px;
    font-size: clamp(14px, 1.55vw, 22px); line-height: 1.2; text-transform: uppercase;
  }
  .svc-btn { min-height: 44px; padding: 10px 25px; border-radius: 15px; font-size: 14px; font-weight: 400; line-height: 1.7; text-transform: uppercase; }
  .svc-btn--dark { background: #000; }
  .svc-btn--dark:hover { background: #333; }

  /* ---------- первый экран: фото слева, текст справа ---------- */
  .svc-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--svc-gap); margin-bottom: var(--svc-space); }
  .svc-hero__img { width: 100%; height: auto; border-radius: var(--svc-radius); object-fit: cover; }
  .svc-hero__text { display: flex; flex-direction: column; min-width: 0; }
  .svc-hero__over { margin-bottom: clamp(16px, 3.1vw, 45px); color: var(--c-red); font-size: clamp(24px, 3.05vw, 44px); font-weight: 600; line-height: 1; }
  .svc-hero__title { margin-bottom: clamp(20px, 2.8vw, 40px); font-size: clamp(26px, 4.2vw, 60px); font-weight: 600; line-height: 1; overflow-wrap: break-word; }
  .svc-hero__sub { margin-bottom: clamp(16px, 2.4vw, 35px); color: #000; font-size: clamp(18px, 1.4vw, 20px); line-height: 1.2; }
  .svc-hero .svc-btn { align-self: flex-start; }

  .svc-contacts { display: grid; gap: 32px; }
  .svc-contacts dt { margin-bottom: 4px; color: var(--c-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; }
  .svc-contacts dd { margin: 0; color: #000; font-size: clamp(18px, 1.4vw, 20px); line-height: 1.2; }
  .svc-contacts dd + dd { margin-top: 12px; }
  .svc-contacts a { color: inherit; text-decoration: none; }
  .svc-contacts a:hover { color: var(--c-red); }

  /* фотолента производства: три фото в ряд, листается свайпом и стрелками; фото открывается в окне */
  .svc-strip { position: relative; margin-top: auto; padding-top: 30px; }
  .svc-strip__list {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 18px) / 3); gap: 9px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .svc-strip__list::-webkit-scrollbar { display: none; }
  .svc-strip__item { scroll-snap-align: start; }
  .svc-strip__link { display: block; border-radius: 6px; overflow: hidden; }
  .svc-strip__link:focus-visible { outline: 2px solid var(--c-red); outline-offset: -2px; }
  .svc-strip__img { width: 100%; height: auto; aspect-ratio: 224 / 130; object-fit: cover; transition: scale var(--t); }
  .svc-strip__link:hover .svc-strip__img { scale: 1.05; }
  .svc-strip__btn {
    position: absolute; top: calc(30px + 50%); translate: 0 -50%; display: grid; place-items: center; width: 36px; height: 36px;
    border: 0; border-radius: 50%; background: rgb(255 255 255 / .9); box-shadow: 0 2px 8px rgb(0 0 0 / .25); color: var(--c-text); font-size: 24px; line-height: 1;
  }
  .svc-strip__btn[hidden] { display: none; }
  .svc-strip__btn:hover { color: var(--c-red); }
  .svc-strip__btn:disabled { opacity: .4; cursor: default; }
  .svc-strip__btn--prev { left: 6px; }
  .svc-strip__btn--next { right: 6px; }
  .svc-strip__btn span[aria-hidden] { margin-top: -3px; }

  /* окно с фото */
  .svc-lightbox { width: min(1100px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); overflow: visible; background: transparent; }
  .svc-lightbox::backdrop { background: rgb(0 0 0 / .85); }
  .svc-lightbox__img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 90px); margin-inline: auto; border-radius: 8px; user-select: none; }   /* width: auto — фото в размере файла, маленькие сканы не растягиваются */
  .svc-lightbox__close { position: absolute; top: -46px; right: 0; color: #fff; }
  .svc-lightbox__close:hover { color: #fff; opacity: .8; }
  .svc-lightbox__btn {
    position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px;
    border: 0; border-radius: 50%; background: rgb(255 255 255 / .9); color: var(--c-text); font-size: 30px; line-height: 1;
  }
  .svc-lightbox__btn span[aria-hidden] { margin-top: -4px; }
  .svc-lightbox__btn--prev { left: 10px; }
  .svc-lightbox__btn--next { right: 10px; }
  .svc-lightbox__count { position: absolute; left: 0; bottom: -32px; color: #fff; font-size: 14px; }

  /* ---------- «Ремонт РВД»: карточки видов ремонта ---------- */
  .svc-cards { margin-bottom: var(--svc-space); }
  .svc-cards__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 37px; }
  .svc-card__pic { display: block; margin-bottom: 30px; }
  .svc-card__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
  .svc-card__title { margin-bottom: 20px; color: #000; font-size: clamp(18px, 1.4vw, 20px); font-weight: 600; line-height: 1.2; }
  .svc-card__facts div { display: flex; justify-content: space-between; gap: 12px; padding: 0 15px 20px 0; font-size: clamp(14px, 1.25vw, 18px); line-height: 24px; }
  .svc-card__facts dt { color: var(--c-muted); }
  .svc-card__facts dd { margin: 0; white-space: nowrap; }

  /* схема проезда: две карты */
  .svc-map { margin-bottom: 30px; padding-bottom: var(--svc-space); border-bottom: 1px solid #ccc; }
  .svc-map .svc-h2 { margin-bottom: 35px; }
  .svc-map__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; }
  .svc-map__addr { min-height: 2.4em; margin-bottom: 20px; color: #000; font-size: clamp(18px, 1.4vw, 20px); line-height: 1.2; }
  .svc-map__frame { display: block; width: 100%; height: 418px; border: 0; background: var(--c-bg-soft); }

  /* этапы ремонта: слева этапы 1–2, справа заголовок и форма, затем этап 3 */
  .svc-steps { margin-bottom: clamp(30px, 5vw, 70px); }
  .svc-steps__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto; column-gap: 28px; }
  .svc-steps__title { grid-column: 2; grid-row: 1; margin-bottom: 40px; }
  .svc-steps__form { grid-column: 2; grid-row: 2; align-self: start; margin-bottom: 100px; }
  .svc-steps__list { grid-column: 1 / -1; grid-row: 1 / 4; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; pointer-events: none; }
  .svc-step { pointer-events: auto; margin-bottom: 100px; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.2; }
  .svc-step--1 { grid-column: 1; grid-row: 1 / 3; }
  .svc-step--2 { grid-column: 1; grid-row: 3; }
  .svc-step--3 { grid-column: 2; grid-row: 3; }
  .svc-step__pic { display: block; margin-bottom: 30px; }
  .svc-step__img { width: 100%; height: auto; object-fit: cover; border-radius: 20px; }
  .svc-step--1 .svc-step__img, .svc-step--2 .svc-step__img { width: min(300px, 100%); aspect-ratio: 3 / 2; }
  .svc-step--2 .svc-step__img { aspect-ratio: 4 / 3; }
  .svc-step__title { margin-bottom: 15px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; line-height: 1.2; }
  .svc-step--3 .svc-step__title { margin-bottom: 30px; }
  .svc-step > p, .svc-step__cols p { max-width: 300px; }
  .svc-step__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .svc-step__cols p { max-width: none; }
  .svc-step__sub { margin-bottom: 10px; font-size: 16px; font-weight: 500; text-transform: uppercase; }
  .svc-steps__offer { margin-bottom: 10px; color: var(--c-red); font-size: clamp(18px, 1.4vw, 20px); font-weight: 600; line-height: 1.2; }
  .svc-steps__note { margin-bottom: 25px; font-size: 14px; font-weight: 300; }

  /* короткая форма на странице: серые поля со скруглением, как на старом */
  .form--inline { max-width: 480px; gap: 20px; }
  .form--inline .form__input { min-height: 46px; padding: 13px 20px; border: 0; border-radius: 14px; background: var(--c-bg-soft); color: #000; font-size: 14px; }
  .form--inline .form__input::placeholder { color: #666; }
  .form--inline .form__check { font-size: 12px; line-height: 1.3; }
  .form--inline .form__submit { min-height: 54px; border-radius: 14px; font-size: 14px; font-weight: 400; text-transform: uppercase; }

  /* ---------- «Изготовление РВД»: каталожные номера ---------- */
  .svc-catnum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--svc-gap); margin-bottom: var(--svc-space); }
  .svc-catnum__logos .svc-label { margin-bottom: 40px; }
  .svc-catnum__list { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 10px; }
  .svc-catnum__list img { width: 122px; height: auto; }
  .svc-catnum__text { padding-top: 55px; }
  .svc-catnum__title { margin-bottom: 20px; font-size: clamp(24px, 2.5vw, 36px); font-weight: 600; line-height: 1; }
  .svc-more {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px 9px 16px; border-bottom: 1px solid currentColor;
    color: var(--c-red); font-size: 14px; font-weight: 500; line-height: 24px; text-transform: uppercase; text-decoration: none;
  }
  .svc-more:hover { color: var(--c-red-hover); }
  .svc-more__ico { width: 12px; height: 12px; margin-top: 6px; }

  /* два блока «фото/видео + текст» */
  .svc-about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--svc-gap); margin-bottom: clamp(50px, 7vw, 100px); }
  .svc-about__media { min-width: 0; }
  .svc-about__img { width: 100%; height: auto; border-radius: var(--svc-radius); object-fit: cover; }
  .svc-about .svc-h2 { margin-bottom: clamp(24px, 3.5vw, 50px); line-height: .95; }
  .svc-about__text p { margin-bottom: 20px; font-size: clamp(14px, 1.25vw, 18px); line-height: 24px; }
  .svc-video { position: relative; aspect-ratio: 655 / 492; overflow: hidden; border-radius: var(--svc-radius); }
  .svc-video:has(iframe) { background: #000; }   /* у обложки свои скруглённые углы — чёрный фон только под плеером */
  .svc-video__link { display: block; height: 100%; }
  .svc-video__poster { width: 100%; height: 100%; object-fit: cover; }
  .svc-video__play {
    position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: grid; place-items: center;
    width: clamp(64px, 9.7vw, 140px); aspect-ratio: 1; border: 4px solid #fff; border-radius: 50%; background: rgb(0 0 0 / .15); transition: scale var(--t);
  }
  .svc-video__play svg { width: 46%; fill: #fff; margin-left: 6%; }
  .svc-video__link:hover .svc-video__play { scale: 1.08; }
  .svc-video__link:focus-visible { outline: 3px solid var(--c-red); outline-offset: -3px; }
  .svc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

  /* «Остались вопросы?» — серая полоса на всю ширину */
  .svc-ask { margin-bottom: var(--svc-space); padding: clamp(40px, 5.2vw, 75px) 0; background: var(--c-bg-soft); }
  .svc-ask__title { margin-bottom: clamp(20px, 3.1vw, 45px); text-align: center; }
  .svc-ask__body { padding-left: 50%; }
  .svc-ask__text { max-width: 440px; color: #000; font-size: clamp(16px, 1.8vw, 26px); line-height: 1.2; }
  .svc-ask__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
  .svc-ask__btns .svc-btn { min-width: 150px; }

  /* текст и вопросы под лендингом */
  .svc-page .cat-content { margin-top: 0; }
  .cat-content--strong h2 { font-weight: 700; }
  .cat-content--strong p, .cat-content--strong ul, .cat-content--strong ol { margin-bottom: 20px; }
  .cat-content--strong h3 { margin: 1.2em 0 10px; color: var(--c-text); font-size: clamp(20px, 1.7vw, 24px); }
  .svc-page .faq { max-width: none; margin-top: clamp(50px, 7vw, 100px); margin-bottom: 30px; }
  .svc-page .faq__title { margin-bottom: 30px; color: var(--c-text); font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; line-height: 1.1; }
  .svc-page--repair .cat-content { margin-bottom: clamp(40px, 6vw, 80px); }

  /* ---------- адаптив ---------- */
  @media (max-width: 1100px) {
    .svc-cards__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .svc-ask__body { padding-left: 40%; }
  }
  @media (max-width: 860px) {
    .svc-hero, .svc-catnum, .svc-about { grid-template-columns: minmax(0, 1fr); }
    .svc-hero__over { margin-bottom: 16px; }
    .svc-hero__sub { margin-bottom: 16px; }
    .svc-strip__list { grid-auto-columns: calc((100% - 18px) / 2.4); }
    .svc-catnum__text { padding-top: 0; }
    .svc-catnum__list { padding-left: 0; }
    .svc-map__list { grid-template-columns: minmax(0, 1fr); }
    .svc-map__addr { min-height: 0; }
    .svc-map__frame { height: 300px; }
    /* этапы: заголовок, этапы по порядку, форма — одной колонкой */
    .svc-steps__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
    .svc-steps__title, .svc-steps__form, .svc-steps__list, .svc-step--1, .svc-step--2, .svc-step--3 { grid-column: auto; grid-row: auto; }
    .svc-steps__title { margin-bottom: 30px; }
    .svc-steps__list { display: block; pointer-events: auto; }
    .svc-step { margin-bottom: 50px; }
    .svc-steps__form { margin-bottom: 30px; }
    .form--inline { max-width: none; }
    .svc-ask__body { padding-left: 0; text-align: center; }
    .svc-ask__text { margin-inline: auto; }
    .svc-ask__btns { justify-content: center; margin-top: 24px; }
  }
  @media (max-width: 560px) {
    .svc-cards__list { grid-template-columns: minmax(0, 1fr); }
    .svc-step__cols { grid-template-columns: minmax(0, 1fr); }
    .svc-lightbox__btn { width: 36px; height: 36px; font-size: 24px; }
  }
}
