/*============================================================================*/
/* Лендинг сервисных услуг «КомТехника»                                       */
/* Подключается только шаблоном template/service.htm вместе с menu-page.css.  */
/* Основной style.css сайта намеренно не используется: у лендинга свои шапка, */
/* футер и сетка, наследование правил каталога только мешало бы.              */
/*============================================================================*/

:root {
  --graphite: #181716;
  --graphite-2: #1f1f1f;
  --red: #e31e24;
  --red-hover: #c4181e;
  --text: #2b2b2b;
  --text-muted: #5a5a5e;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.72);
  --bg: #ffffff;
  --bg-alt: #f5f5f6;
  --bg-soft: #fafafa;
  --border: #e4e4e7;
  --shadow: 0 8px 28px rgba(24, 23, 22, 0.08);
  --shadow-hover: 0 14px 36px rgba(24, 23, 22, 0.14);
  --radius: 12px;
  --header-h: 60px;
  --container: 1180px;
  --font: Verdana, Tahoma, sans-serif;
  --font-display: "Segoe UI", Verdana, Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: calc(100% - 40px);
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/*----------------------------------------------------------------------------*/
/* Кнопки                                                                      */
/*----------------------------------------------------------------------------*/

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 6px 18px rgba(227, 30, 36, 0.28);
}
.btn:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 56px; padding: 0 36px; font-size: 16px; }
.btn--block { width: 100%; }

/*----------------------------------------------------------------------------*/
/* Шапка. #top_submenu и .btn11 приходят из штатной разметки CMS,              */
/* .btn11 позиционируется абсолютно относительно шапки (см. menu-page.css).    */
/*----------------------------------------------------------------------------*/

#top_submenu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* .btn11 позиционируется абсолютно от шапки и занимает 30..60px,
   поэтому содержимое сдвинуто отступом слева */
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 48px;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header__logo img {
  height: 26px;
  width: auto;
}

.header__nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}
.header__nav a {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.header__nav a:hover,
.header__nav a.is-active {
  color: var(--red);
  background: rgba(227, 30, 36, 0.06);
}

.header__contacts {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.header__phone {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}
.header__phone:hover { color: var(--red); }
.header__mail {
  display: none;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}
.header__mail:hover { color: var(--red); }

/*----------------------------------------------------------------------------*/
/* Левое меню сайта. Раскрывается штатной show_submenu() из script.js,         */
/* которая анимирует margin-left от -250px до 0.                              */
/*----------------------------------------------------------------------------*/

#left_menu_panel {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1100;
  width: 250px;
  height: 100%;
  margin: var(--header-h) 0 0 -250px;
  padding-bottom: var(--header-h);
  background: var(--graphite);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
#left_menu_panel::-webkit-scrollbar { width: 0; height: 0; }

#left_menu_panel a {
  display: block;
  padding: 12px 20px;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}
#left_menu_panel a:hover,
#left_menu_panel a.sl { background: var(--red); color: #fff; }

#left_menu_panel .list a { padding-left: 36px; text-transform: none; font-size: 13px; }

#left_menu_panel .menu-phone {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
#left_menu_panel .menu-phone a {
  display: block;
  padding: 2px 0;
  border: none;
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
}
#left_menu_panel .menu-phone a:hover { background: none; color: var(--red); }

/*----------------------------------------------------------------------------*/
/* Hero — фото cover на 100%, затемнение отдельным слоем, без тёмного фона    */
/* (graphite на .hero давал чёрную полоску на стыке с белой секцией ниже)     */
/*----------------------------------------------------------------------------*/

.hero {
  position: relative;
  margin-top: var(--header-h);
  display: flex;
  align-items: center;
  padding: 48px 0 56px;
  color: var(--text-on-dark);
  background: transparent;
  overflow: hidden;
  isolation: isolate;
}
/* Сетка поверх фото */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Фото: background-size: cover на весь блок (без <img> и щелей) */
.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("/service-data/images/hero/forklift-head.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  will-change: transform;
  transform: scale(1.06);
  transform-origin: center center;
  pointer-events: none;
}

/* Затемнение 70% → 40% слева направо (отдельный слой, не псевдо у картинки) */
.hero__dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
}

/* padding-left 48px — как у .header__inner под бургер, чтобы текст
   совпал с левым краем логотипа. max-width только у .hero__content —
   иначе .container с max-width:560px центрируется посреди экрана. */
.hero__inner {
  position: relative;
  z-index: 3;
  padding-left: 48px;
}
.hero__content { max-width: 560px; }
.hero h1 {
  font-size: 28px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.hero__sub {
  font-size: 16px;
  color: var(--text-on-dark-muted);
  margin-bottom: 28px;
}
.hero__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.hero__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.4;
  max-width: 520px;
}
.hero__list .check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(227, 30, 36, 0.15);
  border: 1px solid rgba(227, 30, 36, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.hero__list strong { color: #fff; font-weight: 700; }

/*----------------------------------------------------------------------------*/
/* Секции                                                                      */
/*----------------------------------------------------------------------------*/

.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(227, 30, 36, 0.12), transparent 55%),
    linear-gradient(180deg, var(--graphite) 0%, var(--graphite-2) 100%);
  color: var(--text-on-dark);
}
.section__head {
  margin-bottom: 40px;
  max-width: 720px;
}
.section__head h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}
.section__head h2 .accent { color: var(--red); }
.section--dark .section__head h2 .accent { color: #ff5a5f; }

/*----------------------------------------------------------------------------*/
/* Марки техники                                                               */
/*----------------------------------------------------------------------------*/

.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.brand-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 120px;
  padding: 0;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(24, 23, 22, 0.04);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
}
.brand-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d0d0d4;
}
.brand-tile__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 80px;
  padding: 14px 16px 10px;
  background: #fff;
}
.brand-tile__logo img {
  display: block;
  width: auto;
  max-width: 140px;
  max-height: 52px;
  height: auto;
  object-fit: contain;
}
.brand-tile__name {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 8px;
  border-top: 1px solid var(--border);
  background: #fafafa;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

/*----------------------------------------------------------------------------*/
/* Услуги — блок с графикой (иконка) + описание                                */
/*----------------------------------------------------------------------------*/

.services-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.service-row {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.service-row__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 28px 20px;
  background:
    radial-gradient(circle at 30% 30%, rgba(227, 30, 36, 0.18), transparent 55%),
    linear-gradient(145deg, #232326 0%, #181716 100%);
}
/* Было 88px у иконки — фото в 2 раза крупнее */
.service-row__photo {
  width: 176px;
  height: 176px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(227, 30, 36, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.service-row__body {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
}
.service-row__body h3 {
  font-size: 24px;
  margin-bottom: 14px;
}
.service-row__body p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.55;
}
.service-row__body p strong { color: var(--text); font-weight: 700; }
.service-row__body .btn {
  margin-top: 12px;
  align-self: flex-start;
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
}

/*----------------------------------------------------------------------------*/
/* Преимущества — графика + текст                                              */
/*----------------------------------------------------------------------------*/

.adv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.adv-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}
.adv-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(227, 30, 36, 0.35);
  transform: translateY(-3px);
}
.adv-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 110px;
  background:
    radial-gradient(circle at 50% 45%, rgba(227, 30, 36, 0.22), transparent 65%),
    #141413;
}
.adv-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(227, 30, 36, 0.22);
  border: 1px solid rgba(227, 30, 36, 0.5);
}
.adv-card__icon svg { width: 36px; height: 36px; }
.adv-card__body {
  flex: 1;
  min-width: 0;
  padding: 22px 22px 24px;
}
.adv-card__num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 10px;
}
.adv-card h3 { font-size: 20px; margin-bottom: 12px; }
.adv-card p { color: var(--text-on-dark-muted); font-size: 14px; }

/*----------------------------------------------------------------------------*/
/* Финальный блок с формой                                                     */
/*----------------------------------------------------------------------------*/

.cta {
  padding: 80px 0;
  background: var(--bg-alt);
}
.cta__box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.cta__intro h2 { font-size: 26px; margin-bottom: 12px; }
.cta__intro p { color: var(--text-muted); font-size: 15px; }
.cta__contacts { margin-top: 16px; font-size: 13px; }
.cta__contacts a { color: var(--red); font-weight: 700; }

/*----------------------------------------------------------------------------*/
/* Формы заявок                                                                */
/*----------------------------------------------------------------------------*/

.form { display: flex; flex-direction: column; gap: 14px; }
.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
/* display:flex выше перебивает нативный [hidden] — явно прячем */
.form label[hidden] {
  display: none !important;
}
.form input[type="text"],
.form input[type="tel"] {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form input:focus {
  outline: none;
  border-color: rgba(227, 30, 36, 0.55);
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.12);
  background: #fff;
}
.form label.form__check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}
.form__check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--red);
  flex-shrink: 0;
}
.form__check a { color: var(--red); text-decoration: underline; }

.form__note {
  display: none;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}
.form__note.is-shown { display: block; }
.form__note.is-ok {
  background: rgba(34, 160, 80, 0.1);
  color: #1b7a3a;
}
.form__note.is-error {
  background: rgba(227, 30, 36, 0.09);
  color: #b3161b;
}

.form button[disabled] {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

/*----------------------------------------------------------------------------*/
/* Футер — визуально как на главной, современная сетка                        */
/*----------------------------------------------------------------------------*/

#footer {
  background: #000 url(/img/design/komatsu/kom-footer.jpg) 50% 50% no-repeat;
  background-size: cover;
  color: #bbc1cd;
  padding: 28px 0 24px;
  font-size: 15px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  text-align: center;
}
.footer__col { color: #fff; }
#footer h4 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
}
#footer p { margin: 0 0 6px; color: #fff; }
#footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#footer a:hover { color: #fff; opacity: 0.85; }
.footer__logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer__logo img {
  width: 100%;
  max-width: 320px;
  height: auto;
}
.footer__copy {
  margin-top: 12px;
  color: #fff;
  font-size: 15px;
}
.footer__creater {
  color: #b2b3b3 !important;
  font-size: 12px;
  border-bottom: dotted 1px #b2b3b3;
  text-decoration: none !important;
}
.footer__creater:hover {
  color: #fff !important;
  border-bottom-color: #fff;
  opacity: 1;
}

/*----------------------------------------------------------------------------*/
/* Модальное окно заявки                                                       */
/*----------------------------------------------------------------------------*/

.modal {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__backdrop {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(24, 23, 22, 0.62);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
}
.modal__close:hover { background: var(--bg-alt); color: var(--text); }
.modal__title { font-size: 20px; margin: 0 40px 20px 0; }

/*----------------------------------------------------------------------------*/
/* Кнопка «наверх»                                                             */
/*----------------------------------------------------------------------------*/

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(227, 30, 36, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.to-top.is-shown { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--red-hover); }

/*----------------------------------------------------------------------------*/
/* Адаптив                                                                     */
/*----------------------------------------------------------------------------*/

@media (min-width: 480px) {
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 32px; }
  .hero__sub { font-size: 18px; }
  .hero__list li { font-size: 15px; }
  .section__head h2 { font-size: 30px; }
}

@media (min-width: 770px) {
  .header__nav { display: flex; }
  .header__mail { display: inline; }
  .header__logo img { height: 30px; }
  .hero { padding: 56px 0 64px; }
  .brands-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .services-list { gap: 36px; }
  .service-row {
    grid-template-columns: 280px 1fr;
    min-height: 280px;
  }
  /* Чередование: текст слева / справа, узкая media-панель всегда ~280px */
  .service-row--reverse {
    grid-template-columns: 1fr 280px;
  }
  .service-row--reverse .service-row__media { order: 2; }
  .service-row--reverse .service-row__body { order: 1; }
  .service-row__media { min-height: 100%; }
  .service-row__body {
    padding: 36px 36px 32px;
    justify-content: center;
  }
  .service-row__body h3 { font-size: 28px; }
  .adv-card__media { width: 140px; }
  .adv-card__icon { width: 72px; height: 72px; border-radius: 18px; }
  .adv-card__icon svg { width: 40px; height: 40px; }
  .cta__box {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px 44px;
    align-items: center;
  }
  .footer__grid {
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 24px;
    text-align: center;
  }
  .footer__logo img { max-width: 100%; }
  .section { padding: 96px 0; }
  .cta { padding: 96px 0; }
}

@media (min-width: 1200px) {
  .brands-grid { grid-template-columns: repeat(6, 1fr); }
  .service-row { min-height: 380px; }
  .service-row__body { padding: 44px 48px 40px; }
  .service-row__body h3 { font-size: 30px; }
  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 42px; }
  .hero__sub { font-size: 20px; }
  .section__head h2 { font-size: 36px; }
  .cta__intro h2 { font-size: 32px; }
  .container { width: calc(100% - 48px); }
}
