/* ПромГидравлика-С — общие стили лендингов, по макету нового сайта p-gidravlika.ru.
   Шрифт сайта — PF DinDisplay Pro (ParaType, платный). Если положить его файлы в assets/fonts/,
   он подключится автоматически; до этого используется Roboto. */

@font-face { font-family: 'PF DinDisplay Pro'; src: local('PF DinDisplay Pro'), url('fonts/pfdindisplaypro-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'PF DinDisplay Pro'; src: local('PF DinDisplay Pro Medium'), url('fonts/pfdindisplaypro-medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'PF DinDisplay Pro'; src: local('PF DinDisplay Pro Bold'), url('fonts/pfdindisplaypro-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --red: #c62328;
  --red-dark: #a81d22;
  --ink: #232122;
  --ink-2: #4a4848;
  --grey: #8a8889;
  --line: #e4e4e7;
  --bg: #f2f2f4;
  --dark: #1d1b1c;
  --dark-2: #2b292a;
  --white: #fff;
  --radius: 4px;
  --wrap: 1240px;
  --font: 'PF DinDisplay Pro', 'Roboto', Arial, sans-serif;
  --carbon: repeating-linear-gradient(135deg, rgba(255,255,255,.022) 0 2px, transparent 2px 7px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; font-weight: 700; }
h1 { font-size: clamp(32px, 4vw, 50px); letter-spacing: .005em; }
h2 { font-size: clamp(26px, 2.6vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.accent { color: var(--red); }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 30px; }

/* ---------- секции: белые блоки на сером фоне ---------- */
.section { padding: 10px 0; }
.section > .wrap { max-width: calc(var(--wrap) - 60px); background: var(--white); border-radius: var(--radius); padding: 52px 48px; }
.section__lead { max-width: 780px; color: var(--grey); font-size: 18px; margin-bottom: 36px; }
.section--dark > .wrap { background: var(--dark) var(--carbon); color: var(--white); }
.section--dark .section__lead { color: #b2b0b1; }
.section--grey > .wrap { background: var(--white); }
main > .section:last-child { padding-bottom: 40px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 17px 26px; border: 2px solid var(--red); border-radius: 2px;
  background: var(--red); color: var(--white); font: 700 17px/1 var(--font);
  text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: #cfcfd3; }
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--block { width: 100%; }

/* ---------- верхняя полоса ---------- */
.topbar { background: var(--dark-2); color: var(--white); font-size: 14px; }
.topbar__in { display: flex; align-items: stretch; min-height: 36px; }
.topbar__social { display: flex; align-items: center; gap: 16px; }
.topbar__social a { display: flex; color: #e9e9e9; }
.topbar__social a:hover { color: var(--white); }
.topbar__social svg { width: 17px; height: 17px; fill: currentColor; }
.topbar__kp { margin-left: auto; display: flex; align-items: center; padding: 0 16px; background: var(--red); color: var(--white); text-decoration: none; font-weight: 500; }
.topbar__kp:hover { background: var(--red-dark); }
.topbar__phones { display: flex; align-items: center; gap: 56px; margin-left: 100px; }
.topbar__phones a { color: var(--white); text-decoration: none; }

/* ---------- шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; min-height: 76px; }
.header__logo img { width: 262px; }
.header__nav { display: flex; gap: 46px; margin-left: auto; }
.header__nav a { text-decoration: none; font-size: 18px; font-weight: 500; color: var(--ink); }
.header__nav a:hover { color: var(--red); }
.header__call { display: none; }

/* ---------- первый экран ---------- */
.hero { position: relative; overflow: hidden; background: var(--dark) var(--carbon); color: var(--white); }
.hero__in { position: relative; z-index: 1; padding-top: 22px; padding-bottom: 44px; }
.hero__text { max-width: 640px; }
.crumbs { font-size: 13px; color: #b2b0b1; margin-bottom: 28px; }
.crumbs a { color: #b2b0b1; text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.hero__kicker { font-size: 13px; font-weight: 700; color: #b2b0b1; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.hero h1 { margin-bottom: 18px; }
.hero__sub { font-size: 18px; color: #ececec; margin-bottom: 24px; max-width: 610px; }
.hero__feats { display: flex; gap: 38px; margin-bottom: 26px; }
.hero__feat { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; line-height: 1.3; }
.hero__feat .box { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #373737; border: 1px solid #4a4849; border-radius: 3px; }
.hero__note { margin: 22px 0 0; font-size: 13px; color: #9c9a9b; }
.hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; background: var(--red); clip-path: polygon(110px 0, 100% 0, 100% 100%, 0 100%); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: polygon(120px 0, 100% 0, 100% 100%, 10px 100%); }
.hero__media--light img { background: #e9e9ea; object-fit: contain; padding: 30px 30px 30px 110px; }

/* ---------- карточки доверия ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px auto 12px; }
.trust__item { display: flex; align-items: center; gap: 16px; background: var(--white); border-left: 3px solid var(--red); padding: 18px 20px; min-height: 80px; }
.trust__icon { display: flex; align-items: center; justify-content: center; flex: 0 0 42px; height: 42px; border-radius: 50%; background: #f1eeee; color: var(--red); }
.trust__icon svg.i { width: 22px; height: 22px; }
.trust__item b { display: block; font-size: 15px; line-height: 1.25; }
.trust__item small { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }

/* ---------- цифры ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--white); border-radius: var(--radius); }
.stat { padding: 26px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 38px; line-height: 1; color: var(--ink); }
.stat b span { color: var(--red); }
.stat small { display: block; margin-top: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.35; }

/* ---------- карточки ---------- */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; background: var(--bg); border-radius: var(--radius); padding: 26px 24px; border-left: 3px solid transparent; transition: border-color .2s, background .2s; }
.card:hover { border-left-color: var(--red); background: #ececef; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); margin: 0; font-size: 16px; }
.card__num { font-size: 14px; font-weight: 700; color: var(--red); margin-bottom: 10px; letter-spacing: .06em; }
.card__link { display: inline-block; margin-top: 14px; color: var(--red); font: 700 15px/1.2 var(--font); text-decoration: none; border: 0; border-bottom: 1px dashed currentColor; background: none; padding: 0 0 1px; cursor: pointer; }
.card__link:hover { color: var(--red-dark); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tag-list li { padding: 9px 15px; background: var(--bg); border-radius: 2px; font-size: 16px; }

/* ---------- фото ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split__img img { width: 100%; border-radius: var(--radius); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-grid figure { margin: 0; background: var(--bg); border-radius: var(--radius); overflow: hidden; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid figcaption { padding: 13px 16px; font-size: 15px; font-weight: 500; }

/* ---------- характеристики ---------- */
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { font-weight: 400; color: var(--ink-2); width: 55%; padding-right: 20px; }
.specs td { font-weight: 700; }

/* ---------- шаги ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { counter-increment: step; position: relative; padding-top: 58px; }
.step::before { content: '0' counter(step); position: absolute; top: 0; left: 0; font-size: 42px; font-weight: 700; line-height: 1; color: var(--red); }
.step h3 { font-size: 19px; }
.step p { color: var(--ink-2); font-size: 16px; margin: 0; }
.section--dark .step p { color: #b2b0b1; }

/* ---------- преимущества ---------- */
.adv { display: flex; gap: 16px; align-items: flex-start; }
.adv img { flex: 0 0 52px; width: 52px; height: 52px; }
.adv h3 { font-size: 18px; margin-bottom: 6px; }
.adv p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* ---------- форма ---------- */
.order { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.order__aside { position: sticky; top: 100px; }
.order__aside p { color: #b2b0b1; }
.order__contacts { margin-top: 28px; display: grid; gap: 12px; }
.order__contacts a { color: var(--white); text-decoration: none; font-size: 22px; font-weight: 700; }
.order__contacts small { display: block; color: var(--grey); font-size: 14px; font-weight: 400; }
.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 32px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__row--3 { grid-template-columns: repeat(3, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field span { font-size: 14px; color: var(--grey); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #d3d3d7; border-radius: 2px;
  font: 400 17px/1.3 var(--font); color: var(--ink); background: var(--white);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: var(--red); }
.form__legend { font-weight: 700; font-size: 18px; margin: 6px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.form__legend:first-child { border-top: 0; padding-top: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.radio-row label { cursor: pointer; }
.radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.radio-row span { display: inline-block; padding: 10px 16px; border: 1px solid #d3d3d7; border-radius: 2px; font-size: 16px; }
.radio-row input:checked + span { border-color: var(--red); background: var(--red); color: var(--white); }
.radio-row input:focus-visible + span { outline: 2px solid var(--ink); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--grey); margin: 6px 0 18px; }
.consent input { margin-top: 3px; accent-color: var(--red); }
.form__note { font-size: 14px; color: var(--grey); margin: 12px 0 0; }
.form__ok { display: none; padding: 16px; background: #eef7ee; border-left: 3px solid #2e8b3e; margin-top: 14px; font-size: 16px; }
.form.is-sent .form__ok { display: block; }

/* ---------- логистика ---------- */
.delivery { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.delivery span { padding: 11px 16px; background: var(--bg); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; position: relative; padding-right: 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: -4px; font-size: 28px; color: var(--red); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* ---------- подвал ---------- */
.footer { background: var(--dark-2); color: #b2b0b1; padding: 48px 0 28px; font-size: 15px; }
.footer__in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer img { width: 230px; margin-bottom: 16px; }
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { color: var(--red); }
.footer h4 { color: var(--white); margin: 0 0 12px; font-size: 17px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid #3d3b3c; font-size: 13px; color: var(--grey); }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #4a4849; border-radius: 2px; color: #e9e9e9; }
.social a:hover { border-color: var(--red); color: var(--white); background: var(--red); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- плавающая кнопка заявки ---------- */
.fab { position: fixed; right: 26px; bottom: 26px; z-index: 70; display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: var(--red); color: var(--white); box-shadow: 0 0 0 8px rgba(198,35,40,.18); transition: transform .2s; }
.fab:hover { transform: scale(1.06); }
.fab svg.i { width: 24px; height: 24px; }
.callbar { display: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .topbar__phones { margin-left: 40px; gap: 30px; }
  .header__nav { gap: 28px; }
  .header__nav a { font-size: 16px; }
  .hero__text { max-width: 54%; }
  .hero__feats { flex-wrap: wrap; gap: 14px 26px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .header__nav { display: none; }
  .header__call { display: block; margin-left: auto; font-weight: 700; font-size: 18px; text-decoration: none; }
  .hero__text { max-width: none; }
  .hero__in { padding-bottom: 32px; }
  .hero__media { position: relative; width: auto; height: 260px; clip-path: none; background: none; }
  .hero__media img { clip-path: none; }
  .hero__media--light img { padding: 20px; }
  .trust { grid-template-columns: 1fr; }
  .section > .wrap { padding: 36px 24px; border-radius: 0; }
  .wrap { padding: 0 16px; }
  .section { padding: 6px 0; }
  .split, .order { grid-template-columns: 1fr; gap: 28px; }
  .order__aside { position: static; }
  .grid--3, .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__in { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; padding-bottom: 60px; }
  .topbar__phones, .topbar__kp { display: none; }
  .header__logo img { width: 180px; }
  .header__call { font-size: 15px; }
  .hero__feats { flex-direction: column; gap: 10px; }
  .hero .btn { width: 100%; }
  .hero__media { height: 200px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat:nth-child(4) { padding: 18px 16px; border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { grid-column: 1 / -1; border-top: 0; }
  .stat:nth-child(3), .stat:nth-child(5) { border-left: 1px solid var(--line); }
  .stat b { font-size: 32px; }
  .grid--2, .grid--3, .grid--4, .steps, .photo-grid, .form__row, .form__row--3 { grid-template-columns: 1fr; }
  .form { padding: 20px; }
  .fab { display: none; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; }
  .callbar a { padding: 18px 10px; text-align: center; font-weight: 700; text-decoration: none; color: var(--white); background: var(--dark-2); }
  .callbar a + a { background: var(--red); }
}

/* ---------- юридические страницы ---------- */
.legal h1 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 26px; }
.legal h2 { font-size: 21px; margin: 32px 0 12px; }
.legal p, .legal li { max-width: 880px; color: var(--ink-2); font-size: 16px; }
.legal .crumbs, .legal .crumbs a { color: var(--grey); }
.legal a { color: var(--red); }

/* ---------- окно расчёта ---------- */
.modal { width: min(620px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: var(--radius); background: transparent; overflow: visible; }
.modal::backdrop { background: rgba(20,18,19,.72); }
.modal[open] { animation: modal-in .2s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } }
.modal__form { position: relative; padding: 38px 40px 30px; border-top: 4px solid var(--red); max-height: calc(100vh - 24px); overflow: auto; }
.modal__close { position: absolute; top: 10px; right: 14px; width: 40px; height: 40px; border: 0; background: none; font-size: 32px; line-height: 1; color: var(--grey); cursor: pointer; }
.modal__close:hover { color: var(--ink); }
.modal__kicker { font-size: 13px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.modal h2 { font-size: 28px; margin-bottom: 10px; padding-right: 30px; }
.modal__sub { color: var(--ink-2); font-size: 16px; margin-bottom: 22px; }
body.modal-open { overflow: hidden; }

/* ---------- прикрепление файла ---------- */
.file { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 18px; border: 1px dashed #bdbdc2; border-radius: 2px; background: #fafafb; cursor: pointer; transition: border-color .2s, background .2s; }
.file:hover, .file.is-filled { border-color: var(--red); background: #fdf6f6; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file input:focus-visible + .file__icon { outline: 2px solid var(--red); outline-offset: 2px; }
.file__icon { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--red); border: 1px solid var(--line); }
.file__text b { display: block; font-size: 16px; line-height: 1.3; word-break: break-word; }
.file__text small { display: block; font-size: 13px; color: var(--grey); }
.file.is-error { border-color: var(--red); }
.file.is-error small { color: var(--red); }

.consent-note { font-size: 13px; line-height: 1.45; color: var(--grey); margin: 12px 0 0; }
.consent-note a { color: var(--ink-2); }
.form.is-sent .form__ok:empty { display: none; }
.form.is-sending .btn[type="submit"] { opacity: .6; pointer-events: none; }

@media (max-width: 600px) {
  .modal { width: 100%; max-width: 100%; max-height: 100%; height: 100%; margin: 0; border-radius: 0; }
  .modal__form { min-height: 100%; max-height: 100vh; padding: 30px 20px 24px; border-radius: 0; }
  .modal h2 { font-size: 24px; }
}
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- главная: два основных направления ---------- */
.dirs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dir { position: relative; display: flex; flex-direction: column; background: var(--bg); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; border-bottom: 3px solid transparent; transition: border-color .2s, box-shadow .2s; }
.dir:hover { border-bottom-color: var(--red); box-shadow: 0 14px 34px rgba(0,0,0,.08); }
.dir__img { aspect-ratio: 16 / 9; overflow: hidden; background: #e9e9ea; }
.dir__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dir:hover .dir__img img { transform: scale(1.03); }
.dir__body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.dir__body h3 { font-size: 26px; margin-bottom: 10px; }
.dir__body p { color: var(--ink-2); margin-bottom: 14px; }
.dir__list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 6px; }
.dir__list li { position: relative; padding-left: 18px; font-size: 16px; }
.dir__list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; background: var(--red); }
.dir__more { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- главная: остальная продукция ---------- */
.mini { display: flex; flex-direction: column; background: var(--bg); border-radius: var(--radius); padding: 22px 22px 20px; border-left: 3px solid transparent; transition: border-color .2s, background .2s; }
.mini:hover { border-left-color: var(--red); background: #ececef; }
.mini__icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--red); margin-bottom: 14px; }
.mini__icon svg.i { width: 22px; height: 22px; }
.mini h3 { font-size: 18px; margin-bottom: 6px; }
.mini p { color: var(--ink-2); font-size: 15px; margin: 0 0 12px; }
.mini .card__link { margin-top: auto; align-self: flex-start; }

/* ---------- услуги и сервис ---------- */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; padding: 0; margin: 0; }
.svc li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg); border-radius: 2px; font-weight: 500; }
.svc li svg.i { color: var(--red); }
.brands { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.brands span { padding: 9px 14px; border: 1px solid var(--line); border-radius: 2px; font-weight: 700; font-size: 15px; }

/* ---------- история ---------- */
.timeline { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; position: relative; margin-top: 10px; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: #4a4849; }
.tl { position: relative; padding: 36px 14px 0 0; }
.tl::before { content: ''; position: absolute; top: 6px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(198,35,40,.25); }
.tl b { display: block; font-size: 26px; line-height: 1; margin-bottom: 8px; }
.tl span { display: block; font-size: 15px; color: #c9c7c8; line-height: 1.35; }

/* ---------- география ---------- */
.geo { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.geo__img img { width: 100%; border-radius: var(--radius); }
.geo__cities { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.geo__cities li { padding: 8px 13px; background: var(--bg); font-size: 15px; }

/* ---------- контакты ---------- */
.depts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dept { background: var(--bg); border-radius: var(--radius); padding: 26px 26px 22px; border-left: 3px solid var(--red); }
.dept h3 { margin-bottom: 14px; }
.dept dl { margin: 0; display: grid; grid-template-columns: 90px 1fr; gap: 8px 14px; font-size: 16px; }
.dept dt { color: var(--grey); }
.dept dd { margin: 0; }
.dept a { text-decoration: none; font-weight: 700; }
.dept a:hover { color: var(--red); }
.map { width: 100%; height: 440px; border: 0; border-radius: var(--radius); background: var(--bg); display: block; }
.contact-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-main > a { display: block; font-size: 30px; font-weight: 700; text-decoration: none; line-height: 1.25; }
.contact-main > a:hover { color: var(--red); }
.contact-main small { display: block; color: var(--grey); font-size: 15px; margin: 2px 0 16px; }

@media (max-width: 1180px) {
  .timeline { grid-template-columns: repeat(4, 1fr); row-gap: 30px; }
  .timeline::before { display: none; }
  .svc { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .dirs, .geo, .contact-top, .depts { grid-template-columns: 1fr; gap: 24px; }
  .map { height: 340px; }
}
@media (max-width: 600px) {
  .timeline { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr; }
  .dir__body { padding: 22px 20px; }
  .dir__body h3 { font-size: 22px; }
  .contact-main a { font-size: 24px; }
  .dept dl { grid-template-columns: 1fr; gap: 2px; }
  .dept dt { margin-top: 8px; }
}
.hp + .form__legend { border-top: 0; padding-top: 0; }
.geo__img img { max-height: 560px; object-fit: cover; object-position: center 62%; }

.dept .social a { color: var(--ink); border-color: #d3d3d7; }
.dept .social a:hover { color: var(--white); }
.contact-main .btn { display: inline-flex; }
/* кадр целиком (шкаф + станция + подъёмник): вписываем, а не обрезаем; слева — тёмный фон под диагональю */
.hero__media--fit { background: var(--red); }
.hero__media--fit img { object-fit: contain; object-position: right bottom; padding: 0 0 0 90px; background: var(--dark) var(--carbon); }
@media (max-width: 920px) { .hero__media--fit img { padding: 0; object-position: center; } }

/* ---------- фото изделий без фона: ровный светлый фон блока, без теней и размытий ---------- */
:root { --product-bg: #ededef; }
.hero__media--product img { object-fit: contain; object-position: center; padding: 40px 44px 36px 150px; background: var(--product-bg); }
.hero__media--bleed img { object-position: right top; padding: 0 0 34px 140px; }
.dir__img { background: var(--product-bg); }
.dir__img img { object-fit: contain; padding: 24px 32px; }
.dir:hover .dir__img img { transform: none; }
.photo-grid--product figure img { object-fit: contain; padding: 22px 26px; background: var(--product-bg); }
.split__img--product { background: var(--product-bg); border-radius: var(--radius); padding: 34px; }
.split__img--product img { border-radius: 0; }
@media (max-width: 920px) {
  .hero__media--product img, .hero__media--bleed img { padding: 18px; object-position: center; }
}
