:root {
  --ink: #0d1117;
  --ink-2: #161c25;
  --text: #111827;
  --muted: #667085;
  --soft: #f4f7fb;
  --panel: #ffffff;
  --line: #dce3ec;
  --cyan: #2fb7c9;
  --blue: #245fd6;
  --violet: #7a5cff;
  --orange: #ff7a59;
  --shadow: 0 18px 46px rgba(13, 17, 23, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--soft);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, select, input { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 34px;
  padding: 2px clamp(10px, 3vw, 30px);
  border-bottom: 1px solid rgba(13, 17, 23, 0.1);
  background: rgba(244, 247, 251, 0.96);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.brand { flex: 0 0 auto; display: inline-flex; align-items: center; width: 74px; }
.brandLogo { width: 74px; height: auto; }
.nav {
  flex: 1 1 auto;
  display: flex;
  gap: 13px;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: 0 0 auto; }
.nav a:hover, .phone:hover { color: var(--text); }
.phone {
  flex: 0 0 auto;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 9, 14, 0.94), rgba(6, 9, 14, 0.72) 36%, rgba(6, 9, 14, 0.2) 72%),
    linear-gradient(0deg, rgba(6, 9, 14, 0.72), rgba(6, 9, 14, 0) 44%);
}
.heroContent {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
  padding: 86px clamp(18px, 5vw, 76px) 72px;
  color: #fff;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}
h3 { margin-bottom: 10px; font-size: 22px; line-height: 1.14; }
.lead {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.52;
}
.actions, .messengers { display: flex; flex-wrap: wrap; gap: 12px; }
.button, .messengers a, .messengers button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 900;
}
.button.primary { background: var(--cyan); color: #05262c; }
.button.dark { background: var(--ink); color: #fff; }
.button.light { border-color: rgba(255,255,255,.34); color: #fff; }
.button.ghost { border-color: var(--line); background: var(--panel); color: var(--ink-2); }
.button:hover, .cardLink:hover, .projectLink:hover, .brandTile:hover { transform: translateY(-1px); }

.quickQuote {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.quoteItem {
  min-height: 116px;
  padding: 24px clamp(16px, 2.4vw, 34px);
  border-right: 1px solid var(--line);
  transition: background .18s ease, transform .18s ease;
}
.quoteItem:last-child { border-right: 0; }
.quoteItem:hover { background: #edfafd; transform: translateY(-1px); }
.quoteItem strong { display: block; margin-bottom: 8px; font-size: 26px; }
.quoteItem span { color: var(--muted); line-height: 1.42; }

.section { padding: 76px clamp(18px, 5vw, 76px); }
.section.tight { padding-top: 48px; }
.sectionHead { max-width: 860px; margin-bottom: 34px; }
.sectionHead p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.serviceRibbon {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.servicePill {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.servicePill:hover { border-color: rgba(47,183,201,.6); box-shadow: var(--shadow); }
.servicePill span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #e9f8fb;
  color: #0d7280;
  font-weight: 900;
}
.servicePill strong { display: block; margin-bottom: 6px; }
.servicePill small { color: var(--muted); line-height: 1.35; }

.brandGrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.brandTile {
  position: relative;
  min-height: 158px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.brandTile:hover { border-color: rgba(36,95,214,.38); box-shadow: var(--shadow); }
.brandTile:nth-child(2n) { background: #f6f3ff; }
.brandTile:nth-child(3n) { background: #edfafd; }
.brandTile:nth-child(4n) { background: #fff2ed; }
.brandBadge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 62px;
  margin-bottom: 14px;
  border: 1px solid rgba(13,17,23,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.86);
}
.brandBadge img { max-width: 62px; max-height: 44px; object-fit: contain; }
.brandTile strong { display: block; margin-bottom: 6px; font-size: 18px; }
.brandTile span:last-child { color: var(--muted); font-size: 13px; }

.packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.packageCard {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.packageCard.featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.packageCard.featured p, .packageCard.featured li { color: rgba(255,255,255,.72); }
.packageCard p { color: var(--muted); line-height: 1.45; }
.packageCard ul { margin: 22px 0 0; padding: 0; list-style: none; }
.packageCard li { padding: 10px 0; border-bottom: 1px solid rgba(102,112,133,.22); color: var(--muted); }
.packageCard li:last-child { border-bottom: 0; }

.projectGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.projectCard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: transform .18s ease, box-shadow .18s ease;
}
.projectCard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.projectCard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.projectCard div { padding: 22px; }
.projectCard p { color: var(--muted); line-height: 1.45; }
.projectMeta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.projectMeta span, .tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}
.projectLink, .cardLink {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 900;
}

.pageHero {
  padding: 80px clamp(18px, 5vw, 76px) 54px;
  background: var(--ink);
  color: #fff;
}
.pageHero .lead { margin-bottom: 0; }

.calculatorLayout {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(340px, 1.1fr);
  gap: 18px;
  align-items: start;
}
.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 8px; color: var(--ink-2); font-size: 14px; font-weight: 900; }
.fieldGroup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.field select, .field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
}
.field input::placeholder { color: #98a2b3; }
.miniBrands {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}
.miniBrand {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf4f8;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}
.miniBrand img {
  width: 34px;
  height: 28px;
  padding: 4px;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}
.miniBrand:hover, .miniBrand.active { background: var(--cyan); color: #05262c; border-color: rgba(5,38,44,.28); }
.miniBrand.active::after {
  content: "выбрано";
  grid-column: 2;
  color: rgba(5,38,44,.72);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.resultBox {
  transition: transform .18s ease, box-shadow .18s ease;
}
.resultBox.isUpdated {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.priceResult {
  padding: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ink), #18374a);
  color: #fff;
}
.priceResult span { display: block; margin-bottom: 10px; color: rgba(255,255,255,.68); }
.priceResult strong { display: block; font-size: clamp(38px, 6vw, 70px); line-height: .95; }
.breakdown { margin: 0 0 22px; padding: 0; list-style: none; }
.breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.breakdown li:last-child { border-bottom: 0; }
.note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.serviceList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.serviceList.expanded { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.serviceCard {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.serviceCard p, .panel p { color: var(--muted); line-height: 1.48; }
.miniLabel {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mutedLink { margin-left: 14px; color: var(--muted); }
.categoryRail {
  display: flex;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.categoryRail::-webkit-scrollbar { display: none; }
.categoryRail a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  font-weight: 900;
}
.categoryRail a:hover { border-color: rgba(47,183,201,.6); color: #0d7280; }
.factList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}
.factList div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafc;
}
.factList dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.factList dd {
  margin: 0;
  color: var(--ink-2);
  font-weight: 900;
}
.factList.large { grid-template-columns: 1fr; margin-bottom: 20px; }
.serviceDetail {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, .75fr);
  gap: 18px;
}
.serviceDetail h2 { font-size: clamp(26px, 3vw, 38px); }
.checkList {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.checkList li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.45;
}
.checkList li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
}
.checkList li:last-child { border-bottom: 0; }
.brandStrip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}
.brandStrip a {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 98px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 900;
}
.brandStrip img {
  width: 58px;
  height: 38px;
  object-fit: contain;
}
.brandHero {
  position: relative;
  overflow: hidden;
}
.brandHeroMark {
  width: 118px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
}
.brandHeroMark img {
  max-width: 86px;
  max-height: 60px;
  object-fit: contain;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.priceTable {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.priceTable th, .priceTable td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.priceTable th { background: #eaf0f6; color: var(--ink-2); }
.priceTable tr:last-child td { border-bottom: 0; }

.contactBand {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 500px);
  gap: clamp(24px, 5vw, 76px);
  align-items: center;
  background: var(--ink);
  color: #fff;
}
.contactBand p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255,255,255,.72);
  font-size: 19px;
  line-height: 1.55;
}
.contactPanel {
  padding: 26px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}
.bigPhone {
  display: block;
  margin-bottom: 22px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  line-height: 1;
}
.messengers a, .messengers button { background: #fff; color: var(--ink); font-weight: 900; }
.messengers button { border: 0; }
.messengers img { width: 20px; height: 20px; margin-right: 8px; }

.faqGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
details {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
summary { cursor: pointer; font-weight: 900; }
details p { margin: 14px 0 0; color: var(--muted); line-height: 1.48; }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 5vw, 76px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}
.footer strong { color: var(--ink); }
.footerLinks { display: flex; flex-wrap: wrap; gap: 14px; font-weight: 900; color: var(--ink-2); }
.footerLinks a:hover { color: var(--blue); }
.mobileDock { display: none; }

@media (max-width: 1100px) {
  .brandGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .serviceRibbon { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .serviceList.expanded { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brandStrip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .phone { display: none; }
  .hero { min-height: 600px; }
  .quickQuote, .packages, .projectGrid, .calculatorLayout, .contactBand, .serviceList, .serviceList.expanded, .serviceDetail, .faqGrid {
    grid-template-columns: 1fr;
  }
  .footer { align-items: flex-start; flex-direction: column; }
  .quoteItem { border-right: 0; border-bottom: 1px solid var(--line); }
  .quoteItem:last-child { border-bottom: 0; }
}

@media (max-width: 620px) {
  body { padding-bottom: 76px; }
  .topbar {
    height: 46px;
    gap: 8px;
    padding: 6px 12px;
  }
  .brand { width: 72px; }
  .brandLogo { width: 72px; }
  .nav {
    gap: 8px;
    font-size: 11px;
    padding: 0 2px;
  }
  .nav a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
  }
  .hero {
    min-height: calc(100svh - 46px);
    align-items: end;
  }
  .hero > img { object-position: 64% center; }
  .hero::after {
    background:
      linear-gradient(90deg, rgba(6, 9, 14, 0.94), rgba(6, 9, 14, 0.66) 58%, rgba(6, 9, 14, 0.16)),
      linear-gradient(0deg, rgba(6, 9, 14, 0.84), rgba(6, 9, 14, 0.08) 58%);
  }
  h1 { font-size: 34px; line-height: 1.02; }
  h2 { font-size: 30px; line-height: 1.06; }
  h3 { font-size: 20px; }
  .eyebrow { font-size: 11px; margin-bottom: 10px; }
  .lead, .sectionHead p:not(.eyebrow), .contactBand p:not(.eyebrow) { font-size: 16px; }
  .heroContent { padding: 74px 18px 34px; }
  .section, .pageHero { padding: 42px 16px; }
  .pageHero { padding-top: 38px; padding-bottom: 34px; }
  .pageHero h1 { font-size: 32px; }
  .quickQuote { grid-template-columns: 1fr 1fr; }
  .quoteItem {
    min-height: 104px;
    padding: 18px 16px;
    border-right: 1px solid var(--line);
  }
  .quoteItem:nth-child(2n) { border-right: 0; }
  .quoteItem strong { font-size: 18px; line-height: 1.08; }
  .quoteItem span { font-size: 13px; }
  .brandGrid, .serviceRibbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brandStrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factList { grid-template-columns: 1fr; }
  .servicePill { min-height: 132px; padding: 14px; }
  .brandTile { min-height: 134px; padding: 12px; }
  .brandBadge {
    width: 66px;
    height: 50px;
    margin-bottom: 10px;
  }
  .brandBadge img { max-width: 50px; max-height: 34px; }
  .brandTile strong { font-size: 16px; }
  .brandTile span:last-child { font-size: 12px; }
  .panel, .packageCard, .serviceCard, .contactPanel { padding: 18px; }
  .calculatorLayout { gap: 14px; }
  .fieldGroup { grid-template-columns: 1fr; gap: 0; }
  .field { margin-bottom: 12px; }
  .field select, .field input { min-height: 48px; }
  .miniBrands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .miniBrand {
    min-height: 50px;
    padding: 7px 10px;
  }
  .resultBox { position: static; }
  .priceResult { padding: 20px; }
  .priceResult strong { font-size: 38px; }
  .breakdown li {
    gap: 10px;
    font-size: 14px;
  }
  .projectCard div { padding: 18px; }
  .priceTable {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .button, .messengers a, .messengers button { width: 100%; }
  .mobileDock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 80;
    display: grid;
    grid-template-columns: 1fr 1fr 1.1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(13,17,23,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 14px 38px rgba(13,17,23,.18);
    backdrop-filter: blur(16px);
  }
  .mobileDock a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 7px;
    background: #edf4f8;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 900;
  }
  .mobileDock a:last-child {
    background: var(--cyan);
    color: #05262c;
  }
}

@media (max-width: 390px) {
  .nav { font-size: 10px; }
  h1 { font-size: 30px; }
  h2 { font-size: 27px; }
  .quickQuote, .brandGrid, .serviceRibbon, .miniBrands { grid-template-columns: 1fr; }
  .quoteItem { border-right: 0; }
  .mobileDock { grid-template-columns: 1fr 1fr; }
  .mobileDock a:last-child { grid-column: 1 / -1; }
}
