/* ============================================================
   Гибрид Сервис Казань — общие стили сайта
   Тёмно-синий + бирюзовый/зелёный (гибрид = электроэнергия)
   ============================================================ */

:root {
  --dark: #0b1f33;
  --dark-2: #122b45;
  --accent: #19c37d;
  --accent-2: #14b8a6;
  --light: #f4f7fa;
  --text: #26333f;
  --muted: #5b6b7a;
  --white: #ffffff;
  --border: #dfe7ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 51, 0.08);
  --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 2px 14px rgba(0,0,0,.18);
}
.header__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 18px; }
.logo:hover { text-decoration: none; }
.logo__icon { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }
.logo small { display: block; font-weight: 500; font-size: 11px; color: #9db4c8; letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: #d7e3ee; font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav a.active { color: var(--accent); }

.header__cta { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: none; cursor: pointer;
  font-weight: 700; font-size: 15px; transition: .2s; text-decoration: none !important;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #0fa96a; }
.btn--outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.45); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: var(--dark-2); }
.btn--wa { background: #25d366; color: #fff; }
.btn--wa:hover { background: #1eb85a; }
.btn--sm { padding: 9px 16px; font-size: 14px; }

.logo__img { height: 34px; width: auto; border-radius: 6px; background: #fff; padding: 2px 6px; }

/* Галерея работ */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: #fff; }
.gallery img { width: 100%; height: 200px; object-fit: cover; }
.gallery figcaption { padding: 10px 14px; font-size: 13.5px; color: var(--muted); }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2.5px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 60%, #0e3a33 100%);
  color: var(--white); padding: 64px 0 72px; overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; margin-bottom: 18px; font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: 18px; color: #c6d6e4; margin-bottom: 26px; max-width: 540px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.badge {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; color: #dce8f2;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__rating { margin-top: 22px; font-size: 14px; color: #b8c9d9; }
.hero__rating b { color: var(--accent); font-size: 18px; }

/* ---------- Секции ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--light); }
.section__title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.section__sub { color: var(--muted); margin-bottom: 36px; max-width: 700px; }
.section__head { text-align: center; }
.section__head .section__sub { margin-left: auto; margin-right: auto; }

/* Карточки услуг */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-2); }
.card__icon { width: 52px; height: 52px; border-radius: 12px; background: #e6f7ef; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; }
.card h3 { font-size: 18px; color: var(--dark); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .price { display: inline-block; margin-top: 12px; font-weight: 800; color: var(--accent-2); }

/* Марки */
.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.brand {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center; transition: .2s; color: var(--dark);
}
.brand:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; }
.brand b { display: block; font-size: 17px; margin-bottom: 4px; }
.brand small { color: var(--muted); font-size: 13px; }

/* Цены */
.prices { max-width: 760px; margin: 0 auto; }
.price-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 4px; border-bottom: 1px solid var(--border);
}
.price-row:last-child { border-bottom: none; }
.price-row b { color: var(--dark); font-size: 15.5px; }
.price-row span { font-weight: 800; color: var(--accent-2); white-space: nowrap; }

/* Преимущества */
.adv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.adv__item { text-align: center; padding: 24px 14px; }
.adv__item .num { font-size: 34px; font-weight: 800; color: var(--accent-2); }
.adv__item p { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* Отзывы */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.review {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.review .stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 10px; }
.review p { font-size: 14.5px; color: var(--text); }
.review .author { margin-top: 14px; font-weight: 700; color: var(--dark); font-size: 14px; }

/* Акции */
.promo {
  background: linear-gradient(135deg, #0e3a33, var(--dark));
  color: #fff; border-radius: var(--radius); padding: 34px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px;
}
.promo h3 { font-size: 22px; margin-bottom: 6px; }
.promo p { color: #bcd8ce; font-size: 15px; }

/* CTA */
.cta { text-align: center; }
.cta h2 { font-size: clamp(24px, 3vw, 32px); color: var(--dark); margin-bottom: 14px; }
.cta p { color: var(--muted); margin-bottom: 26px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Форма */
.form-card { max-width: 620px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-card label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--dark); }
.form-card input, .form-card textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; margin-bottom: 16px; font-family: inherit; background: var(--light);
}
.form-card input:focus, .form-card textarea:focus { outline: 2px solid var(--accent-2); background: #fff; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* Контакты */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.contact-item { display: flex; gap: 14px; margin-bottom: 18px; }
.contact-item .ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: #e6f7ef; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.contact-item b { display: block; color: var(--dark); }
.contact-item span, .contact-item a { color: var(--muted); font-size: 15px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Кнопки карт */
.map-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Статьи / полезные данные */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-bottom: 44px; }
.fact { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; padding: 20px; }
.fact b { color: var(--dark); display: block; margin-bottom: 6px; }
.fact p { font-size: 14px; color: var(--muted); }

.articles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.article {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.article .tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--accent-2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.article h3 { font-size: 18px; color: var(--dark); margin-bottom: 8px; }
.article p { color: var(--muted); font-size: 14.5px; flex: 1; }
.article .soon { margin-top: 14px; font-size: 13px; color: #9aa7b3; font-style: italic; }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; background: var(--white); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--dark); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--accent-2); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--muted); font-size: 15px; }

/* Таблица */
.table-wrap { overflow-x: auto; }
table.spec { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
table.spec th, table.spec td { padding: 14px 16px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--border); }
table.spec th { background: var(--dark); color: #fff; font-weight: 700; }
table.spec tr:last-child td { border-bottom: none; }

/* Хлебные крошки */
.breadcrumbs { padding: 22px 0 0; font-size: 13.5px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-2); }

/* Page head (внутренние страницы) */
.page-head { background: linear-gradient(135deg, var(--dark), var(--dark-2)); color: #fff; padding: 46px 0 42px; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.page-head p { color: #c6d6e4; margin-top: 10px; max-width: 720px; }

/* 404 */
.error { text-align: center; padding: 90px 20px; }
.error h1 { font-size: 72px; color: var(--dark); }
.error p { color: var(--muted); margin: 14px 0 28px; }

/* Подвал */
.footer { background: var(--dark); color: #b8c9d9; padding: 48px 0 26px; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; font-size: 14px; }
.footer a { color: #b8c9d9; }
.footer a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; font-size: 13px; text-align: center; color: #7d93a8; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav {
    position: fixed; top: 68px; left: 0; right: 0; background: var(--dark);
    flex-direction: column; align-items: stretch; gap: 0; padding: 0 20px;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 420px; padding-bottom: 18px; }
  .nav a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .burger { display: block; }
  .header__cta .btn--outline { display: none; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 52px; }
  .section { padding: 46px 0; }
  .promo { padding: 24px; }
}
