/* ООО «Хиталком» — стили сайта (по видео beta-версии) */
:root {
  --blue: #3aa9e0;
  --blue-dark: #2a93c8;
  --yellow: #ffc107;
  --orange: #e8581c;
  --dark: #1a1d21;
  --text: #333;
  --muted: #777;
  --line: #e5e5e5;
  --bg-grey: #ebebeb;
  --font: 'Open Sans', Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 14px; line-height: 1.55; color: var(--text); background: #fff; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 300; margin: 0 0 12px; }
p { margin: 0 0 14px; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }

/* ---------- Кнопки ---------- */
.btn { display: inline-block; background: var(--blue); color: #fff; border: 0; padding: 9px 26px; font: 600 13px var(--font); text-transform: uppercase; letter-spacing: .3px; cursor: pointer; transition: background .25s, box-shadow .25s, transform .15s; }
.btn:hover { background: var(--blue-dark); color: #fff; text-decoration: none; box-shadow: 0 3px 10px rgba(58,169,224,.35); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 3px 10px; font-size: 11px; text-transform: none; }

/* ---------- Шапка ---------- */
.topbar { background: var(--dark); color: #fff; position: relative; z-index: 50; }
.is-home .topbar { position: absolute; left: 0; right: 0; top: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
.topbar__inner { display: flex; align-items: stretch; justify-content: space-between; min-height: 56px; gap: 20px; }
.logo { display: flex; align-items: center; }
.logo img { height: 42px; width: auto; }
.nav { display: flex; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > a { display: flex; align-items: center; height: 36px; padding: 0 14px; color: #fff; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; border-radius: 2px; transition: background .25s, color .25s; }
.nav__item > a:hover, .nav__item.active > a, .nav__item.open > a { background: #fff; color: var(--dark); text-decoration: none; }
.nav__item.active > a { box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.nav__sub { position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.2); padding: 8px 0; margin-top: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s; z-index: 60; }
.nav__item.open .nav__sub, .nav__item:hover .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.nav__sub::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav__sub a { display: block; padding: 7px 18px; color: #333; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; transition: background .2s, color .2s, padding-left .2s; }
.nav__sub a:hover, .nav__sub a.active { background: #f2f8fc; color: var(--blue); text-decoration: none; padding-left: 24px; }
.topbar__phones { display: flex; flex-direction: column; justify-content: center; font-size: 11.5px; line-height: 1.5; }
.topbar__phones a { color: #fff; white-space: nowrap; }
.topbar__phones a:hover { color: var(--blue); text-decoration: none; }
.topbar__phones .ic { position: static; display: inline-block; margin-right: 6px; color: var(--blue); width: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- Заголовок страницы ---------- */
.page-head { position: relative; height: 90px; background: url(../img/header-bg.jpg) center/cover no-repeat; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 6px rgba(0,0,0,.15); overflow: hidden; }
.page-head::before { content: ''; position: absolute; inset: 0; background: rgba(58,169,224,.28); }
.page-head h1 { position: relative; color: #fff; font-size: 28px; text-transform: uppercase; font-weight: 300; letter-spacing: 1px; text-shadow: 0 2px 4px rgba(0,0,0,.5); padding: 0 30px; margin: 0; animation: fadeUp .5s var(--ease) both; }
.page-head h1::after { content: ''; position: absolute; left: 0; right: 0; bottom: -24px; height: 4px; background: var(--blue); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Слайдер ---------- */
.slider { position: relative; height: 470px; overflow: hidden; background: #222; }
.slider__slide { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transform: scale(1.04); transition: opacity 1.2s ease-in-out, transform 7s linear; }
.slider__slide.active { opacity: 1; transform: scale(1); z-index: 1; }
.slider__dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.slider__dots button { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; opacity: .7; transition: background .3s, opacity .3s; }
.slider__dots button.active, .slider__dots button:hover { background: #fff; opacity: 1; }

/* ---------- Главная ---------- */
.intro { padding: 36px 20px 10px; }
.lead { font-size: 17px; font-weight: 300; text-align: center; max-width: 1000px; margin: 0 auto 22px; line-height: 1.5; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 40px auto 30px; max-width: 980px; text-align: center; }
.feature svg { width: 34px; height: 34px; color: var(--blue); margin: 0 auto 10px; transition: transform .3s var(--ease); }
.feature:hover svg { transform: translateY(-4px) scale(1.1); }
.feature h3 { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #444; margin-bottom: 12px; }
.feature p { font-size: 11.5px; color: #666; line-height: 1.6; margin: 0; }

.tabs__nav { display: flex; justify-content: center; border-bottom: 1px solid var(--line); background: #fff; }
.tabs__nav a { padding: 10px 18px 6px; font-size: 22px; font-weight: 300; color: #777; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .3s; }
.tabs__nav a:hover { text-decoration: none; color: var(--text); }
.tabs__nav a.active { color: var(--text); border-bottom-color: var(--blue); }
.tabs__body { background: #f3f3f3; }
.tabs__pane { display: none; padding: 18px 0 20px; }
.tabs__pane.active { display: block; animation: fadeIn .4s both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { font-size: 12.5px; line-height: 1.5; }
.card h4 { font-size: 16px; margin: 0 0 4px 50px; }
.card .date-badge { float: left; margin: -4px 8px 0 0; }
.card__text { margin-bottom: 10px; }
.more-link { clear: both; display: inline-block; font-size: 12px; text-decoration: underline; }

.date-badge { display: inline-block; width: 40px; text-align: center; font-size: 12px; }
.date-badge span { display: block; background: #fff; color: #222; font-weight: 700; font-size: 15px; line-height: 28px; }
.date-badge em { display: block; background: var(--blue); color: #fff; font-style: normal; font-size: 11px; line-height: 18px; }

.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0 44px; }
.box { background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.12); font-size: 12.5px; transition: box-shadow .3s, transform .3s; }
.box:hover { box-shadow: 0 6px 18px rgba(0,0,0,.14); transform: translateY(-2px); }
.box__head { display: flex; align-items: center; gap: 12px; background: #f1f1f1; min-height: 46px; }
.box__head img { width: 42px; height: 42px; }
.box__head h3 { font-size: 18px; margin: 0; }
.box .arrow-list { padding: 20px 24px 24px; }
.arrow-list li { position: relative; padding-left: 12px; margin-bottom: 3px; }
.arrow-list li::before { content: ''; position: absolute; left: 0; top: 7px; border: 4px solid transparent; border-left: 5px solid #555; }

/* ---------- Форма обратной связи ---------- */
.callback { background: var(--bg-grey); padding: 50px 0 60px; text-align: center; }
.callback h2 { font-size: 36px; font-weight: 300; margin-bottom: 6px; }
.callback__sub { color: #888; font-size: 16px; margin-bottom: 40px; }
.callback__form { max-width: 308px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.callback__form input { height: 48px; border: 1px solid #ddd; padding: 0 14px; font: 600 15px var(--font); color: #555; transition: border-color .2s, box-shadow .2s; }
.callback__form input::placeholder { color: #999; }
.callback__form input:focus, .form-stack input:focus, .form-stack textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(58,169,224,.2); }
.callback__form .btn { height: 48px; font-size: 15px; text-transform: none; }

/* ---------- Подвал ---------- */
.footer { background: #111; color: #aaa; font-size: 12px; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; padding: 32px 20px 30px; }
.footer h3 { color: #fff; font-size: 22px; font-weight: 300; margin-bottom: 14px; }
.footer a { color: #fff; text-decoration: underline; }
.footer a:hover { color: var(--blue); }
.footer__nav li { margin-bottom: 4px; }
.footer__nav a { font-weight: 700; }
.subscribe { display: flex; max-width: 300px; margin-top: 12px; }
.subscribe input { flex: 1; height: 34px; border: 1px solid #ccc; border-right: 0; padding: 0 12px; font: 13px var(--font); min-width: 0; }
.subscribe button { height: 34px; padding: 0 14px; border: 1px solid #ccc; background: #eee; color: #555; font: 13px var(--font); cursor: pointer; transition: background .2s; }
.subscribe button:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.footer__copy { text-align: center; padding: 10px; border-top: 1px solid #222; color: #ccc; font-size: 12px; }

/* ---------- Макет с колонкой ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 40px; padding-top: 34px; padding-bottom: 40px; }
.layout--left { grid-template-columns: 200px minmax(0, 1fr); }
.main { min-width: 0; }
.content p { margin-bottom: 18px; }
.content--wide { padding-top: 34px; padding-bottom: 40px; max-width: 1180px; }
.content h2, .single h2 { color: var(--blue); font-size: 24px; font-weight: 300; margin-bottom: 10px; }
.sidebar .widget { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.sidebar .widget:last-child { border-bottom: 0; }
.sidebar h3 { color: var(--blue); font-size: 20px; font-weight: 300; margin-bottom: 10px; }
.sidebar p { font-size: 13px; margin: 0; }
.cat-list li { border-bottom: 1px solid var(--line); }
.cat-list a { display: block; padding: 7px 0 7px 18px; color: #666; font-size: 12.5px; position: relative; transition: background .2s, color .2s, padding-left .2s; }
.cat-list a::before { content: ''; position: absolute; left: 6px; top: 13px; border: 4px solid transparent; border-left: 5px solid #333; transition: border-left-color .2s; }
.cat-list a:hover { background: #f3f3f3; color: #333; text-decoration: none; padding-left: 22px; }
.cat-list a.active { color: var(--blue); }
.cat-list a.active::before, .cat-list a:hover::before { border-left-color: var(--blue); }
.sidebar--cats h3 { font-size: 16px; }

.contacts-list li { margin-bottom: 4px; font-size: 13.5px; padding-left: 18px; position: relative; }
.contacts-list b { font-weight: 700; }
.contacts-list--light { color: #aaa; font-size: 12px; }
.contacts-list--light b { color: #ccc; }

/* Иконки (CSS-символы вместо шрифта иконок) */
.ic { position: absolute; left: 0; top: 0; width: 14px; height: 18px; font-style: normal; font-size: 11px; line-height: 18px; text-align: center; color: #555; }
.contacts-list--light .ic { color: #aaa; }
.ic-pin::before    { content: '\25BC'; font-size: 9px; }
.ic-phone::before  { content: '\260E'; font-size: 13px; }
.ic-mobile::before { content: '\25AE'; font-size: 12px; }
.ic-mail::before   { content: '\2709'; font-size: 13px; }
.ic-chat::before   { content: '\1F4AC'; font-size: 10px; }
.ic-user::before   { content: '\1F464'; font-size: 10px; }
.ic-tag::before    { content: '\1F3F7'; font-size: 10px; }
.ic-video::before  { content: '\25B6'; font-size: 9px; }
.post__meta .ic { position: static; display: inline-block; margin-right: 4px; }

/* ---------- Каталог запчастей ---------- */
.catalog { padding: 30px 20px 50px; }
.catalog__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 20px; max-width: 760px; margin: 0 auto; }
.catalog__item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; color: #666; font-size: 12px; border-radius: 4px; transition: background .25s, transform .25s var(--ease), box-shadow .25s; animation: fadeUp .5s var(--ease) both; }
.catalog__item img { width: 66px; height: 66px; object-fit: contain; transition: transform .3s var(--ease); }
.catalog__item:hover { text-decoration: none; color: var(--blue); background: #fff; transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.catalog__item:hover img { transform: scale(1.12); }
.catalog__item:nth-child(n+5) { animation-delay: .08s; } .catalog__item:nth-child(n+9) { animation-delay: .16s; } .catalog__item:nth-child(n+13) { animation-delay: .24s; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-block; padding: 10px 14px; border: 1px solid var(--blue); color: var(--blue); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; background: #fff; transition: background .25s, color .25s, box-shadow .25s, transform .2s; }
.chip:hover { background: var(--blue); color: #fff; text-decoration: none; box-shadow: 0 4px 12px rgba(58,169,224,.35); transform: translateY(-1px); }
.models { border-collapse: collapse; margin: 10px 0 18px; font-size: 12.5px; }
.models td { padding: 4px 18px 4px 0; border-bottom: 1px dotted #ddd; min-width: 120px; }

/* ---------- Техника ---------- */
.equipment { padding: 34px 20px 40px; max-width: 900px; }
.eq { display: grid; grid-template-columns: 118px 1fr; gap: 14px; padding: 14px 10px; border-bottom: 1px solid var(--line); transition: background .25s; }
.eq:hover { background: #f8fbfd; }
.eq__img img { width: 118px; height: 90px; object-fit: cover; transition: transform .3s var(--ease), box-shadow .3s; }
.eq__img:hover img { transform: scale(1.05); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.eq__noimg { display: flex; align-items: center; justify-content: center; width: 118px; height: 90px; background: #f0f0f0; color: #999; font-size: 11px; text-align: center; }
.eq h2 { font-size: 18px; margin: 0 0 4px; }
.eq__info { font-size: 12px; color: #555; margin-bottom: 6px; }
.eq__meta { font-size: 10.5px; color: #888; margin: 0 0 2px; }
.eq-single__cols { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
.eq-single__img { width: 100%; }

/* ---------- Производители ---------- */
.brand { display: grid; grid-template-columns: 225px 1fr; gap: 24px; align-items: start; margin-bottom: 70px; font-size: 13.5px; }
.brand__logo { background: #fff; display: flex; align-items: center; }
.brand p { margin: 0; }

/* ---------- Услуги ---------- */
.doc-link { display: flex; align-items: center; gap: 8px; margin-top: 26px; }
.doc-link a { text-decoration: underline; }

/* ---------- Полезная информация ---------- */
.post { display: grid; grid-template-columns: 50px 1fr; gap: 8px; padding-bottom: 20px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.post .date-badge { margin-top: 6px; }
.post .date-badge span { background: #f3f3f3; }
.post h2 { font-size: 24px; font-weight: 300; margin: 0 0 6px; }
.post__text { font-size: 13.5px; }
.post__text ul, .single ul { padding: 10px 0 14px 28px; }
.post__text li, .single li { position: relative; padding-left: 12px; margin-bottom: 3px; }
.post__text li::before, .single li::before { content: ''; position: absolute; left: 0; top: 7px; border: 4px solid transparent; border-left: 5px solid #555; }
.post__meta { display: flex; align-items: center; gap: 24px; font-size: 12px; color: #666; margin-top: 6px; }
.post__tags a { text-decoration: underline; }
.post__meta .btn { margin-left: auto; }
.single__meta { border-top: 1px solid var(--line); padding-top: 10px; margin-bottom: 20px; }
.post__date { margin-left: auto; }
.back-link { color: #777; }
.video { position: relative; padding-top: 56.25%; margin: 10px 0 20px; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Список уклонистов ---------- */
.table { width: 100%; border-collapse: collapse; margin: 10px 0 30px; font-size: 12.5px; }
.table th { background: #cfcfcf; color: #444; font-weight: 600; padding: 9px 12px; text-align: center; }
.table td { background: #e5e5e5; padding: 9px 12px; text-align: center; border-top: 2px solid #fff; transition: background .2s; }
.table tr:hover td { background: #dcecf6; }
.form-stack { max-width: 300px; margin: 16px auto 0; display: flex; flex-direction: column; gap: 10px; }
.form-stack input, .form-stack textarea { width: 100%; border: 1px solid #ddd; padding: 9px 12px; font: 600 13px var(--font); color: #555; transition: border-color .2s, box-shadow .2s; }
.form-stack textarea { resize: vertical; }
.form-stack__row { display: flex; gap: 10px; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; padding-top: 34px; padding-bottom: 32px; }
.contacts__col { padding: 0 40px; }
.contacts__col + .contacts__col { border-left: 1px solid var(--line); }
.contacts h2 { color: var(--blue); font-size: 26px; font-weight: 300; }
.contacts .contacts-list { padding-left: 36px; }
.contacts .contacts-list li { font-size: 14.5px; }
.schedule { padding-left: 40px; font-size: 15px; }
.requisites { margin: 14px 0 0 36px; font-size: 13px; color: #555; animation: fadeIn .3s; }
.map { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.map img { width: 100%; height: 288px; object-fit: cover; }
.toggle-link { text-decoration: none; }

/* ---------- Лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.85); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox__box { position: relative; background: #fff; width: 560px; max-width: calc(100% - 40px); max-height: calc(100% - 60px); min-height: 160px; padding: 26px 30px; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); transform: scale(.6); opacity: 0; transition: transform .4s var(--ease), opacity .3s, width .3s; }
.lightbox.is-open .lightbox__box { transform: scale(1); opacity: 1; }
.lightbox__close { position: absolute; top: 6px; right: 10px; border: 0; background: none; font-size: 26px; line-height: 1; color: #999; cursor: pointer; transition: color .2s, transform .2s; }
.lightbox__close:hover { color: #333; transform: rotate(90deg); }
.lightbox__spinner { display: none; width: 28px; height: 28px; margin: 40px auto; border: 3px solid #ddd; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.lightbox.is-loading .lightbox__spinner { display: block; }
.lightbox.is-loading .lightbox__content { display: none; }
.lightbox__content { animation: fadeIn .3s; font-size: 13.5px; }
.lightbox__content .lb-title { color: var(--blue); font-size: 22px; font-weight: 300; margin: 0 0 10px; padding-right: 20px; }
.lightbox__content .lb-img { max-height: 260px; margin: 0 0 14px; }
.lightbox__content .lb-foot { border-top: 1px solid var(--line); padding-top: 10px; margin: 16px 0 0; font-size: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
body.lb-locked { overflow: hidden; }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .layout--left { grid-template-columns: 180px 1fr; }
  .nav__item > a { font-size: 10.5px; padding: 0 9px; }
  .topbar__phones { font-size: 10.5px; }
  .brand { grid-template-columns: 180px 1fr; }
  .slider { height: 360px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; align-self: center; }
  .topbar__phones { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 56px; background: var(--dark); flex-direction: column; }
  body.nav-open .nav { display: flex; }
  .nav__item { display: block; }
  .nav__item > a { height: auto; padding: 12px 20px; border-bottom: 1px solid #333; border-radius: 0; }
  .nav__item.active > a { box-shadow: none; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: #23272c; padding: 0; margin: 0; }
  .nav__sub a { color: #ccc; padding: 10px 34px; }
  .nav__sub a:hover, .nav__sub a.active { background: #2c3137; padding-left: 38px; }
  .is-home .topbar { position: relative; background: var(--dark); }
  .slider { height: 240px; }
  .features, .cards, .boxes, .footer__cols, .contacts, .eq-single__cols { grid-template-columns: 1fr; }
  .catalog__grid { grid-template-columns: repeat(3, 1fr); }
  .layout--left { grid-template-columns: 1fr; }
  .contacts__col { padding: 0; }
  .contacts__col + .contacts__col { border-left: 0; margin-top: 24px; }
  .brand { grid-template-columns: 1fr; }
  .brand__logo { max-width: 225px; }
  .callback h2 { font-size: 26px; }
  .tabs__nav a { font-size: 18px; padding: 8px 10px; }
  .page-head h1 { font-size: 22px; }
  .lightbox__box { padding: 20px 16px; }
}

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
