:root {
  --bg: #0b0b0b;
  --card: #161616;
  --text: #f5f5f5;
  --accent: #e11d48;
  --accent-2: #ffb000;
  --muted: #c7c7c7;
  --line: #272727;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

main {
  flex: 1 0 auto;
}

/* --- ШАПКА --- */
header {
  background-color: var(--card);
  border-bottom: 1px solid #222;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(14px);
}

.top-contact-bar {
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #090909;
  color: var(--muted);
  font-size: .92rem;
}

.top-contact-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

/* --- ЛОГОТИП --- */
.navbar-brand img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #fff;
  padding: 4px;
  border: 1px solid #222;
  box-shadow: 0 0 6px rgba(255,255,255,0.2);
  transition: 0.3s;
}

.navbar-brand span {
  font-weight: 800;
  letter-spacing: .02em;
}

.header-phone {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-left: auto;
  margin-right: 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}
.navbar-brand img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(225,29,72,0.4);
}

/* --- МЕНЮ --- */
.navbar-nav .nav-link {
  color: var(--muted);
  margin-left: 20px;
  transition: 0.3s;
}
.navbar-nav .nav-link:hover {
  color: var(--accent);
}

/* --- ГЛАВНЫЙ БЛОК --- */
.hero {
  position: relative;
  background: url('../banner.jpg') center center / cover no-repeat;
  padding: 180px 0; /* увеличили высоту */
  text-align: center;
  color: #f5f5f5;
  overflow: hidden;
}

.hero-video {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  display: grid;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero-video-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(225, 29, 72, .34), transparent 32%),
    linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.58) 48%, rgba(0,0,0,.38));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-top: 90px;
  padding-bottom: 90px;
}

.hero-content h1 {
  max-width: 850px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: .92;
  font-weight: 900;
  letter-spacing: -.05em;
  margin-bottom: 24px;
}

.hero-content p {
  max-width: 720px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #e7e7e7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-card,
.contact-panel {
  background: rgba(22, 22, 22, .82);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  backdrop-filter: blur(14px);
}

.hero-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.section-kicker {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* затемнение для читаемости текста */
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.2rem;
  color: #d0d0d0;
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .hero {
    padding: 120px 20px;
    background-position: center top;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* --- КНОПКИ --- */
.btn-accent {
  background-color: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-outline-light {
  border-radius: 8px;
  font-weight: 700;
}
.btn-accent:hover {
  background-color: #c50c3c;
}

/* --- ОСНОВНЫЕ СЕКЦИИ --- */
section {
  padding: 80px 0;
}
.card {
  background-color: var(--card);
  border: 1px solid #222;
  border-radius: 12px;
  transition: 0.3s;
  color: var(--text);
}

.service-icon {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 18px;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.card p {
  color: var(--muted);
}

/* --- БЛОК МАРОК --- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
}
.brand-item {
  text-align: center;
  transition: 0.3s;
}
.brand-item img {
  max-height: 55px;
  filter: brightness(1.5);
  transition: 0.3s;
}
.brand-item:hover img {
  transform: scale(1.1);
  filter: brightness(2.5) drop-shadow(0 0 6px rgba(255,255,255,0.4));
}
.brand-item span {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --- ФУТЕР --- */
footer {
  margin-top: auto;
  background-color: var(--card);
  padding: 40px 0;
  color: var(--muted);
  border-top: 1px solid #222;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .8fr));
  gap: 22px;
  align-items: start;
  text-align: left;
}

.footer-grid a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.footer-title {
  color: #fff;
  font-weight: 900;
  margin-bottom: 10px;
}

/* --- КАРТОЧКИ РЕМОНТА --- */
.repair-card {
  background: rgba(22,22,22,0.9);
  border: 1px solid #222;
  border-radius: 14px;
  text-align: center;
  padding: 30px 20px;
  transition: 0.3s;
  height: 100%;
}
.repair-card:hover {
  border-color: #e11d48;
  box-shadow: 0 0 20px rgba(225,29,72,0.3);
  transform: translateY(-6px);
}
.repair-card i {
  font-size: 2rem;
  color: #e11d48;
  margin-bottom: 15px;
}
.repair-card h5 {
  font-size: 1rem;
  font-weight: 600;
}

.repair-card h3 {
  font-size: 1rem;
  font-weight: 700;
}

.repairs-section {
  background: radial-gradient(circle at 30% 20%, #1a1a1a 0%, #0c0c0c 100%);
  color: #f5f5f5;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.trust-grid div {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
}

.trust-grid strong {
  display: block;
  font-size: 2.5rem;
  color: #fff;
  line-height: 1;
}

.trust-grid span {
  color: var(--muted);
}

/* --- ФОРМА КОНТАКТОВ --- */
#contactForm .form-control:focus {
  border-color: #e11d48;
  box-shadow: 0 0 10px rgba(225,29,72,0.4);
}
#contactForm .btn-accent:hover {
  background-color: #c50c3c;
}

.contact-panel a {
  color: #fff;
  text-decoration: none;
}

.map-wrapper {
  min-height: 460px;
}

.form-status {
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
}

.form-status.is-success {
  color: #102615;
  background: #d8f8df;
}

.form-status.is-error {
  color: #3b1014;
  background: #ffe1e6;
}

.floating-call {
  display: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.gallery-card {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--card);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.empty-gallery {
  display: grid;
  place-items: center;
  min-height: 280px;
  border: 1px dashed var(--line);
  border-radius: 28px;
  color: var(--muted);
  text-align: center;
}

.empty-gallery i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.seo-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  background:
    radial-gradient(circle at 15% 15%, rgba(225,29,72,.18), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

.seo-panel p,
.faq-block p {
  color: var(--muted);
}

.faq-block {
  border-top: 1px solid var(--line);
}

.blog-card {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(circle at 18% 18%, rgba(225, 29, 72, .28), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.blog-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% 30%;
  height: 150px;
  background: rgba(255, 176, 0, .16);
  filter: blur(38px);
  transform: rotate(-12deg);
}

.blog-card .card-body {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 290px;
  flex-direction: column;
}

.blog-card h3 {
  font-weight: 900;
  letter-spacing: -.03em;
}

.blog-card p {
  color: #d8d8d8;
}

.blog-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,176,0,.14);
  color: var(--accent-2);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(225,29,72,.32), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(255,176,0,.16), transparent 26%),
    linear-gradient(135deg, #111, #070707);
}

.article-body {
  max-width: 860px;
  margin: 0 auto;
  color: #dedede;
}

.article-body p {
  font-size: 1.08rem;
  line-height: 1.8;
}

.service-hero {
  padding: 110px 0 88px;
  border-bottom: 1px solid var(--line);
}

.service-hero h1 {
  max-width: 920px;
  font-size: clamp(2.15rem, 5vw, 4.8rem);
  line-height: .96;
  font-weight: 900;
  letter-spacing: -.045em;
}

.service-hero p {
  max-width: 760px;
  color: #e4e4e4;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.service-article {
  max-width: 980px;
  margin: 0 auto;
}

.service-article h2 {
  margin-top: 44px;
  margin-bottom: 18px;
  color: #fff;
  font-weight: 900;
  letter-spacing: -.025em;
}

.service-article h2:first-child {
  margin-top: 0;
}

.service-article h3 {
  margin-top: 28px;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 850;
}

.service-article ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 26px;
  padding-left: 0;
  list-style: none;
}

.service-article li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  line-height: 1.7;
}

.service-article li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(225,29,72,.12);
}

.service-sidebar {
  position: sticky;
  top: 112px;
}

.service-links {
  display: grid;
  gap: 10px;
}

.service-links a,
.service-list-card {
  color: #fff;
  text-decoration: none;
}

.service-links a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  transition: .25s ease;
}

.service-links a:hover,
.service-list-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.service-list-card {
  display: flex;
  height: 100%;
  min-height: 260px;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 12%, rgba(225,29,72,.22), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  transition: .25s ease;
}

.service-list-card span {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,176,0,.14);
  color: var(--accent-2);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.service-list-card h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -.025em;
}

.service-list-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 991px) {
  .hero-video {
    min-height: 680px;
  }

  .navbar-nav {
    padding-top: 18px;
  }

  .navbar-nav .nav-link {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }

  .hero-video {
    min-height: 720px;
  }

  .hero-content {
    padding-top: 60px;
    padding-bottom: 110px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .top-contact-bar .container,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .floating-call {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 40px rgba(225, 29, 72, .4);
  }
}
