/* ===== База ===== */
:root {
  --ink: #252b31;
  --muted: #616a73;
  --paper: #edf0f2;
  --yellow: #efc72f;
  --yellow2: #ffe866;
  --line: #d5dade;
  --card: #fff;
  --dark: #343b42;
  --gold: #886613;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1180px;
  padding: 0 26px;
  margin: auto;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', Manrope, Arial, sans-serif;
  letter-spacing: -.055em;
  margin: 0;
}

/* ===== Верхняя полоса ===== */
.top {
  height: 32px;
  background: linear-gradient(112deg, #30373e 0%, #424a52 48%, #343c43 100%);
  color: #f7f8f8;
  font-size: 11px;
  border-bottom: 1px solid rgba(239, 242, 244, .18);
}

.top .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top span:last-child { color: var(--yellow); }

/* ===== Шапка ===== */
.header {
  background: linear-gradient(112deg, #30373e 0%, #424a52 48%, #343c43 100%);
  color: #f7f8f8;
  border-bottom: 1px solid rgba(239, 242, 244, .19);
  position: sticky;
  top: 0;
  z-index: 10;
}

.head {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header .brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 76px !important;
  height: 76px !important;
  min-width: 76px !important;
  padding: 4px !important;
  overflow: hidden !important;
  flex: 0 0 76px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #efcf5c, #a77c1e) !important;
  border: 1px solid rgba(255, 242, 173, .8) !important;
  box-shadow: rgba(14, 18, 22, .22) 0 4px 14px, rgba(255, 255, 255, .35) 0 0 0 2px inset !important;
  line-height: 0 !important;
}

header .brand img.round-original-logo {
  display: block !important;
  width: 66px !important;
  height: 66px !important;
  max-width: none !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  background: #20272e !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  padding: 2px !important;
  box-shadow: none !important;
}

.nav {
  display: flex;
  align-items: center;
  gap: 17px;
  color: #f2f4f5;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.nav a:hover,
.nav a[aria-current="page"] { color: #ffe05b; }

/* ===== Кнопки ===== */
.btn, .head-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(115deg, #fff17a 0%, #f6d93b 48%, #eabf22 100%);
  color: #262a2e;
  border: 1px solid rgba(143, 112, 17, .27);
  border-radius: 3px;
  padding: 13px 17px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: rgba(25, 33, 40, .12) 0 3px 10px;
  transition: .18s;
  cursor: pointer;
}

.btn:hover, .head-cta:hover {
  background: linear-gradient(115deg, #fff8a8, #ffe866);
  transform: translateY(-1px);
  box-shadow: rgba(25, 33, 40, .16) 0 5px 13px;
}

.btn.dark {
  background: linear-gradient(115deg, #454d55, #353d45);
  color: #f6f7f8;
  border-color: #66717a;
}

/* ===== Верхний блок страницы ===== */
.page-hero {
  padding: 48px 0;
  background: linear-gradient(105deg, var(--paper) 0 58%, #e1e5e8 58%);
  position: relative;
  overflow: hidden;
}

.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a { color: var(--gold); }

.eyebrow {
  text-transform: uppercase;
  color: #69757e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .17em;
}

.page-hero h1 {
  max-width: 880px;
  margin: 16px 0;
  font-size: clamp(40px, 5.1vw, 68px);
  line-height: .98;
  letter-spacing: -.06em;
  text-transform: uppercase;
  background: linear-gradient(100deg, #343d45 0%, #66727c 48%, #3a444d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #354049;
  filter: none;
  text-shadow: none;
}

.page-hero .btn { margin-top: 6px; }

/* ===== Секции ===== */
.section {
  padding: 68px 0;
  background: var(--paper);
}

.section h2 {
  font-size: clamp(29px, 3.8vw, 45px);
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: #273038;
}

.intro {
  color: #4b555e;
  max-width: 780px;
  line-height: 1.75;
  font-size: 16px;
}

/* ===== Сетка карточек ===== */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 27px;
}

.card {
  position: relative;
  min-height: 195px;
  padding: 23px;
  background: var(--card);
  border: 1px solid #d2d8dc;
  color: #273038;
  box-shadow: rgba(25, 33, 40, .09) 0 12px 30px;
  transition: .22s;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  width: 100%;
  background: var(--yellow);
  transform: scaleX(.18);
  transform-origin: left;
  transition: .2s;
}

.card:hover::before { transform: scaleX(1); }

.card:hover {
  transform: translateY(-3px);
  box-shadow: rgba(25, 33, 40, .13) 0 16px 34px;
}

.card h3 {
  font-size: 18px;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: #273038;
}

.card p {
  font-size: 15px;
  line-height: 1.75;
  color: #4b555e;
}

.num {
  display: block;
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: 17px;
}

/* ===== Двухколоночный блок ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* ===== Блок «Синхронизаторы и муфты» ===== */
.section.mkpp-terms-readable {
  background: linear-gradient(118deg, #e1e5e8 0%, #f1f3f4 54%, #e6e9eb 100%);
  color: #273038;
  border-top: 1px solid #d4dbe0;
  border-bottom: 1px solid #d4dbe0;
}

.mkpp-terms-readable .eyebrow { color: #66737d; }

.mkpp-terms-readable h2,
.mkpp-terms-readable h3 {
  background: none;
  -webkit-text-fill-color: #273038;
  color: #273038;
}

.mkpp-terms-readable .intro,
.mkpp-terms-readable p {
  color: #36424b;
  font-size: 16px;
  line-height: 1.78;
}

.mkpp-terms-readable .card {
  background: linear-gradient(145deg, #fff 0%, #f8f9fa 100%);
  border: 1px solid #cbd3d9;
  box-shadow: rgba(25, 33, 40, .09) 0 12px 28px;
}

.mkpp-terms-readable .card .num { color: #705719; }
.mkpp-terms-readable .card h3 { color: #273038; }

.mkpp-terms-readable .card p {
  color: #36424b;
  font-size: 15px;
  line-height: 1.75;
}

.mkpp-terms-readable .card + .card { margin-top: 15px; }

/* ===== FAQ ===== */
.faq { max-width: 850px; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq summary {
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  color: #273038;
}

.faq p {
  color: #4b555e;
  line-height: 1.75;
  font-size: 15px;
}

/* ===== CTA-полоса ===== */
.cta-band {
  background: linear-gradient(118deg, #444c54 0%, #555e67 55%, #424b53 100%);
  color: #f6f7f8;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 26px;
  border-left: 6px solid var(--yellow);
}

.cta-band b {
  color: #fff;
  font-size: 17px;
}

.cta-band p {
  color: #dde2e6;
  margin: 7px 0;
  line-height: 1.65;
}

/* ===== Подвал ===== */
.footer {
  background: linear-gradient(112deg, #30373e 0%, #424a52 48%, #343c43 100%);
  color: #f7f8f8;
  border-top: 1px solid rgba(239, 242, 244, .22);
  padding: 28px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer img[src*="autokrab-logo.png"],
.footer-logo[src*="autokrab-logo.png"] {
  display: block;
  width: clamp(118px, 13vw, 158px);
  height: auto;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  background: #08090a;
  border: 1px solid rgba(226, 180, 66, .3);
  border-radius: 4px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #ccd;
}

.footer-links a:hover { color: #ffe05b; }

.footer small {
  font-size: 10px;
  color: #a9aaa7;
}

/* ===== Адаптив ===== */
@media (max-width: 950px) {
  .nav { gap: 10px; font-size: 10px; }
  .head { gap: 12px; }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .head {
    flex-wrap: wrap;
    padding: 8px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow: auto;
    gap: 15px;
    padding: 5px 0;
  }

  .head-cta {
    margin-left: auto;
    padding: 10px;
    font-size: 9px;
  }

  .page-hero { padding: 33px 0; }
  .page-hero h1 { font-size: clamp(38px, 10vw, 56px); }

  .section { padding: 53px 0; }

  .grid3 { grid-template-columns: 1fr; }

  .split { grid-template-columns: 1fr; gap: 23px; }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  header .brand {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    flex-basis: 62px !important;
    padding: 3px !important;
  }

  header .brand img.round-original-logo {
    width: 54px !important;
    height: 54px !important;
  }

  .footer img[src*="autokrab-logo.png"],
  .footer-logo[src*="autokrab-logo.png"] {
    width: 128px;
  }

  .card {
    box-shadow: rgba(25, 33, 40, .067) 0 7px 20px;
  }

  .mkpp-terms-readable .intro,
  .mkpp-terms-readable p {
    font-size: 15px;
    line-height: 1.72;
  }
}