/* ============================================================
   Ремонт бытовой техники в Могилёве — стили
   Простой, аккуратный дизайн: синий + оранжевый акцент.
   Шрифты системные — сайт грузится быстро (плюс к SEO).
   ============================================================ */

:root {
  --blue: #12467d;
  --blue-dark: #0d3560;
  --blue-light: #eaf1f9;
  --accent: #ef6c1a;
  --accent-dark: #d95c0f;
  --text: #1e2733;
  --muted: #5b6879;
  --line: #dde4ec;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(18, 70, 125, .07);
  --shadow-lg: 0 8px 28px rgba(18, 70, 125, .12);
  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 2.35rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { font-weight: 700; }
em { font-style: normal; font-weight: 600; color: var(--blue-dark); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 860px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------------- Кнопки ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 2px solid transparent; border-radius: var(--radius);
  font-size: 1rem; font-weight: 700; text-align: center; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .12s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: var(--blue-dark); background: var(--blue-light); }
.btn-ghost:hover { background: #dce8f5; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-sm { padding: 9px 16px; font-size: .93rem; }
.btn-block { display: flex; width: 100%; margin-bottom: 10px; }

/* ---------------- Шапка ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 74px; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); flex: 0 0 auto; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 9px; flex: 0 0 auto;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 1.12rem; color: var(--blue-dark); }
.logo-text small { font-size: .76rem; color: var(--muted); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--text); font-size: .95rem; font-weight: 500; padding: 6px 0; }
.main-nav a:hover { color: var(--blue); text-decoration: none; border-bottom: 2px solid var(--accent); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { font-weight: 700; font-size: 1.05rem; color: var(--blue-dark); white-space: nowrap; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 40px;
  background: var(--blue-light); border: 0; border-radius: 8px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--blue-dark); }

/* ---------------- Главный экран ---------------- */
.hero {
  background: linear-gradient(180deg, var(--blue-light) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 56px;
}
.hero-inner { display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px; align-items: start; }
.hero-kicker {
  display: inline-block; margin: 0 0 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 14px; font-size: .85rem; color: var(--blue-dark); font-weight: 600;
}
.hero h1 { font-size: 2.6rem; color: var(--blue-dark); margin-bottom: .5em; }
.hero-lead { font-size: 1.1rem; color: #2c3849; max-width: 640px; }

.hero-facts { list-style: none; margin: 26px 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hero-facts li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; font-size: .86rem; color: var(--muted); line-height: 1.35;
}
.hero-facts span { display: block; font-size: 1.28rem; font-weight: 700; color: var(--accent); margin-bottom: 2px; }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.hero-note { font-size: .9rem; color: var(--muted); margin: 0; }

.hero-card {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 26px 24px;
}
.hero-card h2 { font-size: 1.35rem; color: var(--blue-dark); margin-bottom: .4em; }
.hero-card > p { font-size: .95rem; color: var(--muted); }
.hero-steps { margin: 0 0 20px; padding-left: 1.15em; font-size: .95rem; }
.hero-steps li { margin-bottom: 6px; }
.hero-card-note { font-size: .82rem; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* ---------------- Секции ---------------- */
.section { padding: 62px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 780px; margin-bottom: 34px; }
.section-head h2 { color: var(--blue-dark); }
.section-head p { color: var(--muted); margin: 0; }
.section-head-light h2, .section-head-light p { color: #fff; }
.section-head-light p { opacity: .9; }

/* ---------------- Карточки услуг ---------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column;
  transition: box-shadow .18s, transform .18s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-icon {
  width: 50px; height: 50px; border-radius: 10px; margin-bottom: 16px;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { color: var(--blue-dark); }
.card p { font-size: .95rem; color: var(--muted); }
.card-price { font-weight: 700; color: var(--accent) !important; font-size: 1rem !important; }
.card-link { margin-top: auto; font-weight: 600; font-size: .95rem; }
.card-cta { background: var(--blue); border-color: var(--blue); color: #fff; justify-content: center; }
.card-cta h3 { color: #fff; }
.card-cta p { color: rgba(255,255,255,.88); }

/* ---------------- Цены ---------------- */
.price-search { max-width: 560px; margin: 0 0 24px; }
.price-search label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 8px; }
.price-search-field {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px;
}
.price-search-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,70,125,.1); }
.price-search-field svg { color: var(--muted); flex: 0 0 auto; }
.price-search input {
  flex: 1; border: 0; padding: 13px 0; font-size: 1rem; font-family: inherit;
  background: transparent; color: var(--text); outline: none; min-width: 0;
}
.price-search-hint { font-size: .87rem; color: var(--accent-dark); margin: 8px 0 0; min-height: 1.2em; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; font-size: .94rem; font-weight: 600; font-family: inherit;
  color: var(--text); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

.panel { animation: fade .25s ease; }
.panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.panel-title { font-size: 1.25rem; color: var(--blue-dark); margin-bottom: .7em; }

.price-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  font-size: .97rem;
}
.price-table thead th {
  background: var(--blue); color: #fff; text-align: left;
  padding: 13px 18px; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em;
}
.price-table thead th:last-child { text-align: right; width: 150px; }
.price-table td { padding: 12px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.price-table tbody tr:nth-child(even) { background: #fafcfe; }
.price-table tbody tr:hover { background: var(--blue-light); }
.price-table .price { text-align: right; font-weight: 700; color: var(--blue-dark); white-space: nowrap; }
.td-note { display: block; font-size: .82rem; color: var(--muted); font-weight: 400; }
.price-table tr[hidden] { display: none; }

.panel-note { font-size: .9rem; color: var(--muted); margin: 16px 0 0; }
.price-disclaimer {
  margin: 26px 0 0; padding: 14px 18px; font-size: .88rem; color: var(--muted);
  background: #fff; border-left: 3px solid var(--accent); border-radius: 4px;
}

/* ---------------- Шаги ---------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; margin-bottom: 14px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 1.05rem;
}
.steps h3 { color: var(--blue-dark); font-size: 1.1rem; }
.steps p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------------- Преимущества ---------------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; border-top: 3px solid var(--blue);
}
.feature h3 { font-size: 1.05rem; color: var(--blue-dark); }
.feature p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------------- Бренды ---------------- */
.brands { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.brands li {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-size: .93rem; font-weight: 600; color: var(--blue-dark);
}
.brands-note { margin: 18px 0 0; font-size: .92rem; color: var(--muted); }

/* ---------------- Форма заявки ---------------- */
.section-form { background: var(--blue); color: #fff; padding: 62px 0; }
.form-wrap {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 22px; max-width: 780px; margin: 0 auto;
}
.form-wrap iframe { display: block; width: 100%; border: 0; height: 870px;}
.form-placeholder {
  border: 2px dashed #c3d2e2; border-radius: var(--radius);
  padding: 46px 24px; text-align: center; color: var(--muted);
}
.form-placeholder-badge {
  display: inline-block; background: var(--blue-light); color: var(--blue-dark);
  font-weight: 700; font-size: .9rem; padding: 6px 16px; border-radius: 999px; margin: 0 0 12px;
}
.form-benefits {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
  font-size: .95rem;
}
.form-benefits li { position: relative; padding-left: 24px; }
.form-benefits li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--accent); font-weight: 700;
}

/* ---------------- Районы ---------------- */
.districts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.districts li {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; font-size: .94rem; font-weight: 500;
}
.districts-note { margin: 20px 0 0; font-size: .93rem; color: var(--muted); }

/* ---------------- Отзывы ---------------- */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin: 0; padding: 24px 24px 20px; position: relative;
}
.review::before {
  content: "★★★★★"; display: block; color: var(--accent);
  letter-spacing: 2px; font-size: .95rem; margin-bottom: 10px;
}
.review p { font-size: .97rem; color: #2c3849; }
.review footer { font-size: .88rem; color: var(--muted); }
.review footer strong { color: var(--blue-dark); }

/* ---------------- FAQ ---------------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: 17px 52px 17px 20px; font-weight: 600; font-size: 1.02rem;
  color: var(--blue-dark); position: relative; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item summary:hover { background: var(--bg-alt); }
.faq-body { padding: 0 20px 18px; }
.faq-body p { font-size: .96rem; color: var(--muted); margin: 0; }

/* ---------------- Контакты ---------------- */
.contacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.contact-card h3 { font-size: .88rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.contact-card p { font-size: .92rem; color: var(--muted); margin-bottom: .6em; }
.contact-big { font-size: 1.22rem; font-weight: 700; color: var(--blue-dark); }
.contacts-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.map-placeholder {
  margin-top: 26px; height: 260px; border: 2px dashed #c3d2e2; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .95rem; background: #fff;
}

/* ---------------- SEO-текст ---------------- */
.seo-text { padding-top: 52px; padding-bottom: 52px; }
.seo-text h2 { font-size: 1.5rem; color: var(--blue-dark); }
.seo-text h3 { font-size: 1.12rem; color: var(--blue-dark); margin-top: 1.4em; }
.seo-text p { font-size: .97rem; color: #3b4757; }
.seo-tags { font-size: .88rem; color: var(--muted); }

/* ---------------- Подвал ---------------- */
.site-footer { background: var(--blue-dark); color: rgba(255,255,255,.82); padding: 46px 0 22px; font-size: .93rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-logo { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: .5em; }
.footer-phone { font-size: 1.15rem; font-weight: 700; color: #fff !important; }
.footer-bottom {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15);
  font-size: .85rem; color: rgba(255,255,255,.6);
}
.footer-bottom p { margin: 0 0 6px; }
.footer-small { font-size: .8rem; }

/* ---------------- Наверх ---------------- */
.to-top {
  position: fixed; right: 18px; bottom: 24px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
}
.to-top:hover { background: var(--blue-dark); }
.to-top[hidden] { display: none; }

/* ---------------- Мобильная панель ---------------- */
.mobile-bar { display: none; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1080px) {
  .cards, .features, .contacts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .districts { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .main-nav ul { gap: 14px; }
  .main-nav a { font-size: .9rem; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.05rem; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .main-nav {
    flex: 0 0 100%; margin-left: 0; display: none;
    border-top: 1px solid var(--line); padding: 10px 0 14px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 12px 2px; font-size: 1rem; }
  .main-nav a:hover { border-bottom: 0; }
  body { padding-bottom: 64px; }
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  }
  .mobile-bar a {
    flex: 1; text-align: center; padding: 15px 8px; font-weight: 700; font-size: .95rem;
  }
  .mobile-bar a:hover { text-decoration: none; }
  .mobile-bar-call { background: var(--blue); color: #fff !important; }
  .mobile-bar-form { background: var(--accent); color: #fff !important; }
  .to-top { bottom: 74px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.45rem; }
  .section { padding: 44px 0; }
  .hero { padding: 34px 0 40px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-lead { font-size: 1.02rem; }
  .cards, .features, .contacts, .steps, .reviews { grid-template-columns: 1fr; }
  .districts { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-buttons .btn, .contacts-cta .btn { width: 100%; }
  .logo-text small { display: none; }
  .tabs { gap: 6px; }
  .tab { padding: 9px 14px; font-size: .88rem; }
  .price-table { font-size: .93rem; }
  .price-table thead th, .price-table td { padding: 10px 12px; }
  .price-table thead th:last-child { width: 92px; }
  .form-wrap { padding: 12px; }
  .map-placeholder { height: 200px; }
}

@media print {
  .site-header, .mobile-bar, .to-top, .tabs, .price-search, .section-form { display: none; }
  .panel[hidden] { display: block !important; }
  body { font-size: 12pt; }
}
