@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&display=swap');

:root {
  --bg: #f5f3ef;
  --ink: #20242a;
  --muted: #5f636b;
  --line: #ddd6ca;
  --accent: #f49d23;
  --accent-ink: #1a1d22;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Manrope, sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; }
.wrap { width: min(1140px, 92vw); margin: 0 auto; }

.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); border-bottom: 1px solid #ece6db; backdrop-filter: blur(8px); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { text-decoration: none; font-size: 24px; font-weight: 800; }
.nav { display: flex; gap: 18px; }
.nav a { text-decoration: none; font-weight: 500; color: #50545d; }
.phone { text-decoration: none; font-weight: 700; }

.hero { position: relative; padding: 80px 0 72px; background: url('../media/site/hero-bg.jpg') center/cover no-repeat; color: #fff; overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,17,20,.86) 0%, rgba(14,17,20,.58) 55%, rgba(14,17,20,.78) 100%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.kicker { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; margin: 0 0 10px; color: #e3dfd6; }
h1 { margin: 0; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.4; max-width: 12ch; }
h2,
h3 { line-height: 1.4; }
.lead { margin-top: 16px; max-width: 58ch; line-height: 1.62; color: #efe9dd; font-size: 19px; }
.hero-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-panel { border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.1); border-radius: 14px; padding: 24px; backdrop-filter: blur(4px); }
.hero-panel h3 { margin: 0 0 10px; font-size: 28px; }
.hero-panel ul { margin: 0; padding-left: 20px; line-height: 1.7; }

.btn { display: inline-block; text-decoration: none; border-radius: 6px; padding: 12px 18px; font-weight: 700; border: 1px solid transparent; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline { background: transparent; color: var(--ink); border-color: #bcb4a6; }

.services, .benefits, .partners, .contacts { padding: 56px 0; }
.services-title { margin-bottom: 0; }
.service-section { padding: 0 0 2.5em; }
.service-divider { border: 0; border-top: 1px solid #d9d2c6; width: min(1140px, 92vw); margin: 0 auto 2.5em; }
h2 { margin: 0 0 1em; font-size: clamp(30px, 3.1vw, 44px); line-height: 1.1; }

.service-row { display: grid; grid-template-columns: 1fr 430px; gap: 26px; align-items: center; }
.service-copy h3 { margin: 0 0 12px; font-size: clamp(30px, 3vw, 52px); line-height: 1.4; }
.service-copy p { margin: 0 0 22px; color: var(--muted); font-size: 24px; line-height: 1.42; max-width: 32ch; }
.service-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.service-media { display: block; }
.service-media img { width: 100%; height: 320px; object-fit: cover; display: block; border-radius: 10px; }

.benefit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5em; }
.benefit { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 16px 18px; font-weight: 600; }

.partner-box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.partner-row { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 20px; align-items: center; }
.partner-copy { max-width: 70ch; }
.partner-copy p { color: var(--muted); line-height: 1.65; }
.partners-dealer { padding: 0 0 56px; }
.partner-copy h3 { margin: 0 0 1em; font-size: clamp(24px, 2.2vw, 32px); }
.partner-logo { display: block; width: min(100%, 360px); height: auto; }
.partner-certificate {
  display: block;
  width: 100%;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.partners-carousel {
  width: 100%;
  overflow: hidden;
  margin-top: 18px;
}
.partners-track {
  display: flex;
  gap: 50px;
  width: max-content;
  align-items: center;
}
.partner-logo-card {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: #fff;
  padding: 8px;
}
.partner-logo-card .partner-logo {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.contacts-grid p { margin: 0 0 8px; }
.contacts-grid a { text-decoration: none; }
.contacts-copy .btn { margin-top: 10px; }
.map-card { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.map-card iframe { display: block; width: 100%; height: 280px; border: 0; }
.about-seo { padding: 0 0 56px; }
.about-seo p { margin: 0 0 14px; line-height: 1.65; color: var(--muted); }
.about-seo ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.about-seo li { line-height: 1.6; }

.page, .service-page { padding: 54px 0 72px; }
.prose, .service-content { line-height: 1.75; }
.prose img, .service-content img { width: 100%; max-width: 360px; border-radius: 10px; border: 1px solid var(--line); margin: 8px 10px 0 0; }
.footer { background: #1f2329; color: #ddd; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 0; }
.footer-left p,
.footer-right p { margin: 0 0 8px; }
.footer-right { text-align: right; }
.footer-policy { margin-top: 6px; color: #ddd; border-color: #7c7f86; background: transparent; cursor: pointer; }

@media (max-width: 960px) {
  .nav { display: none; }
  .hero-grid, .contacts-grid, .benefit-grid, .partner-row { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .service-row { grid-template-columns: 1fr; gap: 14px; }
  .service-media { order: -1; }
  .service-media img { height: 240px; }
  .service-copy h3 { margin-top: 12px; }
  .service-copy h3 { font-size: 32px; }
  .service-copy p { font-size: 18px; margin-bottom: 20px; }
  .service-actions { flex-direction: column; align-items: stretch; }
  .service-actions .btn { text-align: center; }
  .partner-copy h2 { display: none; }
  .partner-certificate { margin-top: 8px; }
  .contacts-copy .btn { margin-top: 14px; }
  .footer-inner { flex-direction: column; }
  .footer-left,
  .footer-right { text-align: center; width: 100%; }
}

.service-hero {
  padding: 64px 0;
}
.service-hero-grid {
  grid-template-columns: 1fr 420px;
  align-items: center;
}
.service-hero-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}
.service-seo,
.service-gallery {
  padding: 48px 0;
}
.service-seo p {
  margin: 0;
  max-width: 78ch;
  color: var(--muted);
  line-height: 1.7;
  font-size: 18px;
}
.gallery-grid {
  column-count: 3;
  column-gap: 14px;
}
.gallery-item {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  border: 0;
  background: transparent;
  padding: 0;
  break-inside: avoid;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.gallery-lightbox.is-open {
  display: flex;
}
.gallery-lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 10px;
}
@media (max-width: 960px) {
  .service-hero-grid {
    grid-template-columns: 1fr;
  }
  .service-hero-media {
    order: -1;
  }
  .service-hero-media img {
    height: 220px;
  }
  .service-hero h1 {
    font-size: clamp(36px, 9.2vw, 52px);
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
  }
  .gallery-grid { column-count: 2; }
}
