/* ===== База ===== */
:root {
  --orange: #ff7a00;
  --orange-dark: #e56a00;
  --ink: #1d2430;
  --muted: #67707e;
  --line: #e6e9ef;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(29, 36, 48, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--orange-dark); text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 760px; }
.accent { color: var(--orange); }

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 13px 26px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 122, 0, .35);
}
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
}
.btn--ghost:hover { border-color: var(--orange); color: var(--orange-dark); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 34px; font-size: 17px; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ===== Хедер ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 66px;
}
.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo__icon { color: var(--orange); font-size: 18px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav__link { color: var(--ink); font-weight: 500; font-size: 15px; }
.nav__link:hover { color: var(--orange-dark); }
.header__phone { font-weight: 700; color: var(--ink); white-space: nowrap; }
.header__phone:hover { color: var(--orange-dark); }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
}
.burger span { width: 24px; height: 2px; background: var(--ink); display: block; }

/* ===== Герой ===== */
.hero {
  background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  padding: 64px 0 56px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  align-items: center;
}
.hero h1 { font-size: 44px; font-weight: 800; }
.hero p { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 30px; }
.hero__facts {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-size: 26px; color: var(--orange); }
.hero__facts span { font-size: 14px; color: var(--muted); }
.hero__image img {
  border-radius: 20px;
  box-shadow: var(--shadow);
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* ===== Секции ===== */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: 34px; font-weight: 800; text-align: center; }
.section__subtitle { text-align: center; color: var(--muted); margin: 0 0 38px; }

/* ===== Карточки техники ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__img { height: 170px; width: 100%; object-fit: cover; }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.card__desc { font-size: 14px; color: var(--muted); margin: 0 0 14px; flex: 1; }
.card__price { font-size: 20px; font-weight: 800; color: var(--orange-dark); margin-bottom: 12px; }
.card__price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.card .btn { padding: 10px 16px; font-size: 14px; }

/* ===== Калькулятор ===== */
.calc {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.calc__controls { display: flex; flex-direction: column; gap: 20px; }
.calc__result {
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calc__row { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.calc__row strong { color: var(--ink); }
.calc__total {
  font-size: 22px;
  font-weight: 800;
  border-top: 2px dashed var(--line);
  padding-top: 14px;
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
}
.calc__total span { color: var(--orange-dark); }
.calc__note { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }

/* ===== Поля ===== */
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-size: 14px; font-weight: 600; }
.input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease;
}
.input:focus { outline: none; border-color: var(--orange); }
.input--error { border-color: #e03131; background: #fff5f5; }
.slider { width: 100%; accent-color: var(--orange); }
.slider__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 9px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--orange); }
.hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  width: 0;
}

/* ===== Форма ===== */
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field--full { grid-column: 1 / -1; }
.form__footer { margin-top: 22px; text-align: center; }
.form__legal { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.form__summary {
  background: #fff5f5;
  border: 1px solid #ffc9c9;
  color: #c92a2a;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  text-align: left;
}
.form__summary ul { margin: 0; padding-left: 18px; }
.form-success { text-align: center; padding: 46px 20px; }
.form-success__icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e6fcf5;
  color: #0ca678;
  font-size: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success h3 { font-size: 26px; }
.form-success p { color: var(--muted); }

/* ===== Контакты ===== */
.contacts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.contacts__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contacts__item span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.contacts__item a, .contacts__item strong { font-size: 17px; color: var(--ink); font-weight: 700; }
.contacts__item a:hover { color: var(--orange-dark); }

/* ===== Футер ===== */
.footer { border-top: 1px solid var(--line); padding: 22px 0; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ===== Тост ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 15px;
  z-index: 100;
  box-shadow: var(--shadow);
}
.toast--ok { background: #0ca678; }
.toast--err { background: #e03131; }

/* ===== Админка ===== */
.admin-login {
  max-width: 380px;
  margin: 10vh auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.admin-login h1 { font-size: 24px; text-align: center; }
.admin-login .field { margin-bottom: 16px; }
.admin { max-width: 1140px; margin: 30px auto; padding: 0 20px; }
.admin__head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.admin__head h1 { font-size: 26px; margin: 0; flex: 1; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 24px; }
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.stat strong { display: block; font-size: 26px; color: var(--orange-dark); }
.stat span { font-size: 13px; color: var(--muted); }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 900px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-alt); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge--new { background: #fff4e6; color: #d9480f; }
.badge--in-work { background: #e7f5ff; color: #1971c2; }
.badge--done { background: #e6fcf5; color: #0ca678; }
.badge--cancelled { background: #f1f3f5; color: #868e96; }
.table-select { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font-size: 13px; font-family: inherit; background: #fff; }
.icon-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 13px;
}
.icon-btn:hover { border-color: var(--orange); color: var(--orange-dark); }
.icon-btn--danger:hover { border-color: #e03131; color: #e03131; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* ===== Логотип и вкладки ===== */
.logo__img { width: 36px; height: 36px; border-radius: 8px; }

.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tab {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}
.tab:hover { color: var(--ink); }
.tab--active { color: var(--orange-dark); border-bottom-color: var(--orange); }
.tab-panel { animation: tabin .18s ease; }
@keyframes tabin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.panel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}
.panel-card h2 { font-size: 20px; margin: 0 0 18px; }

/* ===== Форма техники/настроек в админке ===== */
.eq-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.eq-form .field--full,
.eq-form .check,
.eq-form__actions,
.eq-form .form__summary { grid-column: 1 / -1; }
.eq-form__actions { display: flex; gap: 12px; }
.field__hint { font-size: 12px; color: var(--muted); }
.eq-photo-preview { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.eq-photo-preview img { height: 74px; width: auto; max-width: 180px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* ===== Список техники в админке ===== */
.eq-list { display: flex; flex-direction: column; gap: 12px; }
.eq-item {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.eq-item--busy { background: #fffafa; border-color: #ffc9c9; }
.eq-item__img { width: 84px; height: 60px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.eq-item__img--empty {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); color: var(--muted); font-size: 22px;
}
.eq-item__body { flex: 1; min-width: 0; }
.eq-item__name { font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eq-item__rate { color: var(--orange-dark); font-weight: 700; font-size: 14px; }
.eq-item__desc { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.eq-item__actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

/* ===== Бейджи наличия на карточке публичной страницы ===== */
.card__media { position: relative; }
.card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.card__badge--free { background: #e6fcf5; color: #0ca678; }
.card__badge--busy { background: #ffe3e3; color: #e03131; }
.card--busy { opacity: .75; }
.card--busy .btn { background: #adb5bd; box-shadow: none; cursor: not-allowed; }

/* ===== Карта в контактах ===== */
.map { margin-top: 30px; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map__frame { display: block; width: 100%; height: 360px; border: 0; }
.map__placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 360px; color: var(--muted); background: var(--bg-alt);
}
.map__link { display: block; padding: 10px 16px; text-align: right; font-size: 14px; background: #fff; border-top: 1px solid var(--line); }
.contacts__item--full { grid-column: 1 / -1; }

/* ===== Адаптив ===== */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image { order: -1; }
  .hero__image img { height: 260px; }
  .calc { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 20px;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav--open { display: flex; }
  .burger { display: flex; }
  .header__phone { display: none; }
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 32px; }
  .hero__facts { gap: 20px; }
  .hero__facts strong { font-size: 21px; }
  .section { padding: 44px 0; }
  .section__title { font-size: 26px; }
  .form { padding: 20px; }
  .form__grid { grid-template-columns: 1fr; }
  .calc { padding: 20px; }
  .eq-form { grid-template-columns: 1fr; }
  .eq-item { flex-wrap: wrap; }
  .eq-item__actions { width: 100%; justify-content: flex-end; }
  .map__frame, .map__placeholder { height: 280px; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero__actions .btn { width: 100%; }
}


