/* ФиксЛайн24 — мастерская мелкого ремонта. Статический сайт-визитка. */
:root {
  --ink: #23272b;
  --ink-soft: #5a626b;
  --paper: #f7f6f3;
  --card: #ffffff;
  --line: #e3e0da;
  --amber: #e8a020;
  --amber-dark: #c4820c;
  --ok: #2e7d4f;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
a { color: var(--amber-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Шапка */
header.site {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.head-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; letter-spacing: .2px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-soft); letter-spacing: 1.6px; text-transform: uppercase; }
nav.main { display: flex; gap: 22px; flex-wrap: wrap; }
nav.main a { color: var(--ink); font-weight: 500; font-size: 15.5px; }
nav.main a:hover { color: var(--amber-dark); text-decoration: none; border-bottom: 2px solid var(--amber); }
.head-phone { font-weight: 700; white-space: nowrap; }

/* Герой */
.hero { padding: 72px 0 64px; background: linear-gradient(180deg, #fbfaf8 0%, var(--paper) 100%); }
.hero h1 { font-size: 44px; line-height: 1.15; font-weight: 800; max-width: 720px; }
.hero h1 em { font-style: normal; color: var(--amber-dark); }
.hero p.lead { margin-top: 18px; font-size: 20px; color: var(--ink-soft); max-width: 640px; }
.hero .cta-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 8px; font-weight: 600; font-size: 16.5px; }
.btn-amber { background: var(--amber); color: #1d1d1d; }
.btn-amber:hover { background: var(--amber-dark); color: #fff; text-decoration: none; }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; text-decoration: none; }
.hero-badges { margin-top: 34px; display: flex; gap: 26px; flex-wrap: wrap; color: var(--ink-soft); font-size: 14.5px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 7px; }
.hero-badges svg { width: 17px; height: 17px; color: var(--ok); }

/* Секции */
section.block { padding: 56px 0; }
section.block.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2.sec { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
p.sec-sub { color: var(--ink-soft); margin-bottom: 30px; max-width: 560px; }

/* Карточки услуг */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px 22px 18px; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 6px 22px rgba(35,39,43,.08); }
.card .ic { width: 44px; height: 44px; border-radius: 10px; background: #faf1dd; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .ic svg { width: 24px; height: 24px; color: var(--amber-dark); }
.card h3 { font-size: 18.5px; margin-bottom: 6px; }
.card p { font-size: 15px; color: var(--ink-soft); }
.card .price-tag { margin-top: 12px; font-weight: 700; font-size: 15px; color: var(--ink); }

/* Таблица цен */
table.price { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table.price th, table.price td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 16px; }
table.price th { background: #f0eee9; font-size: 13.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-soft); }
table.price tr:last-child td { border-bottom: none; }
table.price td.sum { font-weight: 700; white-space: nowrap; }
.price-note { margin-top: 14px; color: var(--ink-soft); font-size: 14.5px; }

/* Как работаем */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 12px; }
.step h3 { font-size: 16.5px; margin-bottom: 5px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* Отзывы */
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.quote { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; font-size: 15.5px; }
.quote .who { margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.quote .stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 10px; font-size: 15px; }

/* Контакты */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.cbox { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.cbox h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-soft); margin-bottom: 10px; }
.cbox p, .cbox a { font-size: 17px; }

/* Текстовые страницы */
article.page { max-width: 760px; }
article.page h1 { font-size: 34px; font-weight: 800; margin: 46px 0 18px; }
article.page h2 { font-size: 23px; margin: 30px 0 10px; }
article.page p { margin-bottom: 14px; color: #34383d; }
article.page ul { margin: 0 0 16px 22px; color: #34383d; }
article.page li { margin-bottom: 6px; }

/* 404 */
.err { text-align: center; padding: 110px 20px; }
.err .code { font-size: 92px; font-weight: 800; color: var(--line); letter-spacing: 4px; }
.err h1 { font-size: 28px; margin: 8px 0 12px; }
.err p { color: var(--ink-soft); margin-bottom: 24px; }

/* Подвал */
footer.site { background: var(--ink); color: #c9cdd2; margin-top: 40px; }
footer.site .wrap { padding: 34px 20px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14.5px; }
footer.site a { color: #e8ebee; }
footer .fbrand { font-weight: 700; color: #fff; font-size: 17px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 33px; }
  body { font-size: 16px; }
  .head-phone { order: 2; }
}
